:root {
    --primary: #2d3436;
    --accent: #0984e3;
    --surface: #ffffff;
    --background: #f9f9f9;
    --text-light: #636e72;
    --border: #dfe6e9;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    margin: 0;
    background: var(--background);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Global Top Bar for Social Links */
.top-bar {
    background: var(--primary);
    padding: 0.5rem 0;
    color: white;
}

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

.social-links-top a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.social-links-top a:hover {
    color: white;
}

/* Navigation */
nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
}

/* Hero */
.hero {
    padding: 6rem 0;
    background: var(--surface);
    text-align: center;
}

.hero-avatar {
    width: 160px;
    /* Larger size */
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 2rem;
    border: 4px solid var(--surface);
    outline: 2px solid var(--accent);
    /* Subtle professional frame */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 3rem;
    margin: 0;
}

.title {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    margin: 0.5rem 0;
}

.tagline {
    max-width: 600px;
    margin: 1.5rem auto;
    color: var(--text-light);
    font-size: 1.2rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta {
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
}

.cta.secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.cta:hover {
    opacity: 0.9;
}


/*Service Note*/
.service-note {
    text-align: center;
    max-width: 700px;
    margin: 3rem auto 0;
    padding: 1.5rem;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    color: var(--primary);
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-note a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    margin-left: 10px;
    display: inline-block;
    transition: transform 0.2s;
}

.service-note a:hover {
    transform: translateX(5px);
}

/* Grids */
section {
    padding: 3.5rem 0;
    /* Reduced from 5rem */
}

h2 {
    font-size: 2rem;
    margin-top: 0;
    /* Ensure no extra top margin */
    margin-bottom: 2rem;
    /* Reduced from 3rem */
    border-left: 5px solid var(--accent);
    padding-left: 1rem;
}

/* Specific fix for the gap between sections */
#services {
    padding-bottom: 1.5rem;
}

#experience {
    padding-top: 1.5rem;
}

.services-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card,
.project-card,
.experience-item {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.service-card:hover,
.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.skill-tag {
    background: #f1f2f6;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.3rem;
    display: inline-block;
}

.experience-item {
    margin-bottom: 2rem;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.exp-header h3 {
    margin: 0;
}

.date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--surface);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

input,
textarea {
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    height: 120px;
    resize: vertical;
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--surface);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
        /* Show when toggled */
    }

    /* Highlight active page in nav */
    .llm-active,
    .ml-active {
        color: var(--accent) !important;
        font-weight: 700 !important;
    }

    /* Ensure social links look consistent on sub-pages */
    .social-links-top a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 0.85rem;
        transition: color 0.2s;
    }

    /* Animation for the hamburger to "X" */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .social-links-top {
        justify-content: center;
    }

    .exp-header {
        flex-direction: column;
    }
}