/* Base Styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --max-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    scroll-margin-top: 80px; /* Add space for fixed header */
}

/* Don't need min-height for contact section */
#contact {
    min-height: auto;
    padding-bottom: 4rem;
}

/* Make sure hero section fills viewport */
#home {
    min-height: calc(100vh - 80px);
    margin-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    background-color: #dbeafe;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 2rem 0;
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary);
    margin: 1.5rem 0;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e0f2fe;
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Experience Section */
.experience-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.experience-item:hover::before {
    width: 6px;
    background: var(--primary-dark);
}

.experience-item h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.experience-item h3::before {
    content: '💼';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.experience-item h4 {
    color: var(--dark);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.experience-item h4::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.date {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0 0 1rem 1.5rem;
    display: block;
    font-style: italic;
}

.experience-item > ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.experience-item ul ul {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #e2e8f0;
}

.experience-item ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
    line-height: 1.6;
}

.experience-item ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.2em;
    line-height: 1.2;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-category {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light);
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-category li {
    margin: 0;
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.25rem;
}

.skill-category li:before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.skill-category li strong {
    color: var(--dark);
    font-weight: 600;
}

/* Responsive adjustments for skills section */
@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 576px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-category {
        padding: 1.25rem;
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
    }
    
    .skill-category li {
        font-size: 0.9rem;
    }
}

/* Certifications Section */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cert-badge {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-item:hover .cert-badge {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cert-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.cert-item h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: var(--dark);
    line-height: 1.4;
}

.cert-item p {
    color: var(--gray);
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .certs-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .cert-badge {
        width: 100px;
        height: 100px;
    }
    
    .cert-item h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .certs-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact-info {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-info i {
    margin-right: 0.75rem;
    color: var(--primary);
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    border: 2px solid var(--primary);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Background Sections */
.bg-light {
    background-color: #f8fafc;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .skills-grid,
    .certs-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 0 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.8s ease-out forwards;
}
