/* ===== GLOBAL STYLES & VARIABLES ===== */
:root {
    /* Color Palette */
    --primary: #4F46E5; /* Indigo */
    --primary-hover: #4338ca;
    --secondary: #10B981; /* Emerald */
    --dark: #1F2937; /* Very dark gray for headings */
    --text: #4B5563; /* Medium gray for body text */
    --bg-light: #F9FAFB; /* Off-white for body background */
    --surface: #ffffff;
    --border: #E5E7EB;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    padding-top: 80px; /* Space for fixed navbar */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--dark);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 2rem;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #818CF8);
    border-radius: 2px;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

section {
    background-color: var(--surface);
    padding: 35px 40px;
    border-radius: 24px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(229, 231, 235, 0.5);
    scroll-margin-top: 100px; /* Account for fixed navbar */
}

.section-intro {
    font-size: 1.15rem;
    color: #6B7280;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, var(--primary), #818CF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Fix lint error */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    text-decoration: none;
}

.nav-link.active {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 3px 0;
    border-radius: 3px;
    transition: 0.3s;
}

/* Toggle Animation */
.nav-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* ===== HEADER & PROFILE ===== */
.main-section header {
    text-align: center;
    padding: 60px 0 40px 0;
    margin-bottom: 30px;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 20px;
    position: relative;
}

.section-content {
    margin-top: 40px;
}

.profile-image-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 25px auto;
    position: relative;
}

.profile-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--surface);
    box-shadow: var(--shadow-md);
}

.main-section header h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--dark);
}

.job-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary); 
    margin-top: 8px;
    margin-bottom: 20px;
}

.contact-links {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-links a {
    padding: 8px 16px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.contact-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ===== TIMELINE (Experience) ===== */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(229, 231, 235, 0.5) 100%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: var(--primary);
    border: 3px solid var(--surface);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.2);
}

.timeline-date {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.3);
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.timeline-content .company {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.timeline-content ul {
    margin-top: 10px;
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.95rem;
}

/* ===== EDUCATION GRID ===== */
.education-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
}

.education-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.3);
}

.education-card.current {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(79, 70, 229, 0.03) 100%);
}

.edu-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.education-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.25rem;
}

.education-card .institution {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1rem;
}

.education-card .edu-description {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    margin-top: 15px;
}

/* ===== CERTIFICATIONS GRID ===== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.cert-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    box-shadow: var(--shadow-sm);
}

.cert-card:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.cert-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    display: inline-block;
    transform-origin: center left;
}

.cert-card:hover .cert-icon {
    transform: scale(1.1);
}

.cert-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.15rem;
    line-height: 1.4;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-issuer {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 24px;
}

.cert-card p {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 12px 24px;
    background-color: var(--bg-light);
    color: var(--primary) !important;
    border: 1px solid var(--border);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cert-link:hover {
    background-color: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* ===== HACKATHON CARDS ===== */
.hackathon-list {
    margin-top: 30px;
}

.hackathon-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.hackathon-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.hackathon-card.winner {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.hackathon-card.finalist {
    border-color: rgba(56, 187, 248, 0.5);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(56, 187, 248, 0.03) 100%);
}

.hackathon-card.participant {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(139, 92, 246, 0.03) 100%);
}

.hackathon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.hackathon-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    background-color: var(--bg-light);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.hackathon-card h3 {
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 1.5rem;
    color: var(--dark);
}

.hackathon-event {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.hackathon-description {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text);
}

.hackathon-features {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.hackathon-features li {
    padding: 8px 0 8px 30px;
    position: relative;
    line-height: 1.6;
    color: var(--text);
}

.hackathon-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.2rem;
}

.hackathon-impact {
    margin-top: 25px;
    padding: 20px;
    background-color: rgba(79, 70, 229, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 8px 12px 12px 8px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 500;
}

.hackathon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 12px 24px;
    background-color: var(--primary);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hackathon-link:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* ===== VOLUNTEERING GRID ===== */
.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.volunteer-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 25px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.volunteer-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.volunteer-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    display: inline-block;
    transform-origin: center left;
}

.volunteer-card:hover .volunteer-icon {
    transform: scale(1.1);
}

.volunteer-card h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--dark);
}

.volunteer-org {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.volunteer-period {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 15px;
    display: inline-block;
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.volunteer-card p:last-child {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

.volunteer-card.featured {
    border: 1px solid var(--secondary);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(16, 185, 129, 0.03) 100%);
    box-shadow: var(--shadow-md);
}

.volunteer-description {
    text-align: left;
    margin-top: 20px;
}

.volunteer-description p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text);
}

.volunteer-description ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.volunteer-description ul li {
    padding: 6px 0 6px 30px;
    position: relative;
    line-height: 1.6;
    color: var(--text);
    font-size: 0.95rem;
}

.volunteer-description ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===== PROJECT CARDS ===== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.3);
}

.project-card h3 {
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1.4rem;
    color: var(--dark);
}

.project-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.project-card > p:not(.project-subtitle) {
    flex-grow: 1;
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.6;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-tag.personal { background-color: var(--bg-light); color: var(--text); border: 1px solid var(--border); }

/* ===== SKILL TAGS ===== */
.skill-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.skill-tag, .project-card .skill-tags span {
    background-color: var(--bg-light); 
    color: var(--text); 
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.skill-tag:hover, .project-card .skill-tags span:hover {
    background-color: var(--surface);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.project-card .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 25px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 12px 24px;
    background-color: var(--primary);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.project-link:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}


/* ===== EXPERIENCE & EDUCATION LISTS ===== */
.experience-list, .education-list {
    list-style-type: none;
    padding-left: 0;
}

.experience-list li, .education-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text);
}

.experience-list li::before, .education-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 40px;
    font-size: 0.95rem;
    color: var(--text);
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .nav-container {
        padding: 12px 20px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-link {
        padding: 15px 25px;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-toggle {
        display: flex;
    }

    .container {
        padding: 10px;
    }
    
    .main-section header h1 {
        font-size: 2.2rem;
    }

    .job-title {
        font-size: 1.1rem;
    }

    section {
        padding: 25px 20px;
        scroll-margin-top: 70px;
        border-radius: 16px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .education-grid,
    .cert-grid,
    .volunteer-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 15px;
    }

    .timeline-item {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -24px;
        width: 12px;
        height: 12px;
    }

    .hackathon-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hackathon-date {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .profile-image-wrapper {
        width: 120px;
        height: 120px;
    }
}