/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - MEMoPAD aligned */
    --color-primary: #41A08D;
    --color-accent: #E74C3C;
    --color-accent-2: #6C5CE7;
    --color-dark: #2C3E50;
    --color-text: #2C3E50;
    --color-text-muted: #6C757D;
    --color-bg: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --color-success: #00D084;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #41A08D 0%, #6C5CE7 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 1.125rem;
    --line-height-base: 1.7;
    
    /* Spacing */
    --spacing-unit: 8px;
    --section-padding: 100px;
    --section-padding-mobile: 60px;
    --container-width: 1200px;
    
    /* Borders & Shadows */
    --border-radius: 12px;
    --border-radius-small: 8px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: 4rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: top var(--transition-base);
}

/* Replace the old z-index block with this one */
.navbar { z-index: 1010; }
.nav-overlay { z-index: 1000; }
.nav-links { z-index: 1020; }
.nav-toggle { z-index: 1030; }

.navbar.visible {
    top: 0;
}

.navbar .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.availability-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-bg-light);
    border-radius: var(--border-radius-small);
    color: var(--color-success) !important;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.nav-toggle {
    display: none;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--gradient-hero);
    padding: 2rem;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

/* Optimize for 14" laptops (1366px-1440px) */
@media (min-width: 1024px) and (max-width: 1600px) {
    .hero-container {
        max-width: 1000px;
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-tagline {
        font-size: 1.375rem;
    }
}

/* Standard laptop (1600px+) */
@media (min-width: 1601px) {
    .hero-container {
        max-width: 1200px;
    }
}

.hero-content {
    color: white;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-credentials {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
}

.availability-badge {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.badge-text {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.9rem;
}


/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        max-width: 300px;
        order: -1;
    }
    
    .availability-badge {
        position: static; /* Remove absolute positioning */
        margin-top: 1rem;
        right: auto;
        transform: none;
        justify-content: center;
    }
    

    
    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image-wrapper {
        max-width: 200px;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== ABOUT SECTION ===== */
.section {
    padding: var(--section-padding) 0;
}

/* Apply to all sections */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 1024px) and (max-width: 1600px) {
    .container {
        max-width: 1000px;
    }
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* About Layout */
.about {
    background-color: var(--color-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 4rem;
    align-items: start;
}

.about-text {
    padding-right: 2rem;
}

.about-paragraphs p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--color-text);
    font-size: 1.125rem;
}

.about-paragraphs p:last-child {
    margin-bottom: 0;
}

/* Conference Image */
.about-visual {
    position: sticky;
    top: 100px;
}

.conference-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.conference-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.conference-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1.5rem 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.caption-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.caption-text {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

/* About Highlights */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.highlight-item {
    background: var(--color-bg-light);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius-small);
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.highlight-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.highlight-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ===== RESPONSIVE - ABOUT ===== */
@media (max-width: 968px) {
    .section {
        padding: var(--section-padding-mobile) 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-visual {
        position: static;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .about-paragraphs p {
        font-size: 1rem;
    }
    
    .caption-text {
        font-size: 0.8rem;
    }
    
    .highlight-number {
        font-size: 1.5rem;
    }
}

/* ===== MEMOPAD SPOTLIGHT SECTION ===== */
.memopad-spotlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.memopad-spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(65,160,141,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Spotlight Header */
.spotlight-header {
    text-align: center;
    margin-bottom: 3rem;
}

.spotlight-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--color-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.spotlight-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Spotlight Content Grid */
.spotlight-content {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 3rem;
    margin-bottom: 3rem;
}

.spotlight-description h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.spotlight-description p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--color-text);
}

.description-cta-text {
    font-weight: 600;
    color: var(--color-primary);
    padding-top: 1rem;
    border-top: 2px solid rgba(65,160,141,0.2);
    margin-top: 1.5rem;
}

/* Metrics Grid */
.spotlight-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.metric-card {
    background: white;
    padding: 1.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.metric-card:hover::before {
    transform: scaleY(1);
}

.metric-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.metric-detail {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Color variations for metrics */
.metric-funding .metric-value { color: #27ae60; }
.metric-participants .metric-value { color: #3498db; }
.metric-phases .metric-value { color: #e74c3c; }
.metric-community .metric-value { color: #9b59b6; }

/* Video Demo */
.spotlight-demo {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    background: var(--color-dark);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.video-caption strong {
    color: var(--color-dark);
}

/* Spotlight CTA */
.spotlight-cta {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background: #368f7d;
    border-color: #368f7d;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

/* ===== RESPONSIVE - MEMOPAD SPOTLIGHT ===== */
@media (max-width: 968px) {
    .spotlight-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .spotlight-metrics {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .metric-card {
        padding: 1.5rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .spotlight-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-large {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .spotlight-description h3 {
        font-size: 1.25rem;
    }
    
    .spotlight-description p {
        font-size: 1rem;
    }
    
    .metric-icon {
        font-size: 1.5rem;
    }
    
    .metric-value {
        font-size: 1.75rem;
    }
    
    .metric-label {
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ===== EXPERIENCE TIMELINE SECTION ===== */
.experience {
    background-color: var(--color-bg);
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: -1rem auto 4rem;
}

/* Timeline Structure */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent-2));
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -38px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: white;
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    z-index: 2;
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.3);
    border-color: var(--color-accent);
}

/* Timeline Content Card */
.timeline-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
    border: 2px solid transparent;
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

/* Timeline Header */
.timeline-header {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.timeline-header:hover {
    background: var(--color-bg-light);
}

/* Logo */
.timeline-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border-radius: var(--border-radius-small);
    overflow: hidden;
    flex-shrink: 0;
}

.timeline-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.logo-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    padding: 0.5rem;
}

/* Timeline Info */
.timeline-info {
    min-width: 0;
}

.timeline-title {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.timeline-organization {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.timeline-project {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.timeline-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-success);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    margin-left: 0.5rem;
}

/* Toggle Button */
.timeline-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    transition: transform var(--transition-fast);
    padding: 0.5rem;
    flex-shrink: 0;
}

.timeline-toggle svg {
    transition: transform var(--transition-base);
}

.timeline-item[data-expanded="true"] .timeline-toggle svg {
    transform: rotate(180deg);
}

/* Timeline Details */
.timeline-details {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.timeline-item[data-expanded="true"] .timeline-details {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--color-text);
}

.timeline-highlights {
    margin-bottom: 1.5rem;
}

.timeline-highlights h4 {
    font-size: 1rem;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.timeline-highlights ul {
    list-style: none;
    padding-left: 0;
}

.timeline-highlights li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    line-height: 1.6;
    color: var(--color-text);
}

.timeline-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.timeline-impact {
    background: var(--color-bg-light);
    padding: 1rem;
    border-radius: var(--border-radius-small);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--color-primary);
}

.timeline-impact strong {
    color: var(--color-dark);
}

/* Skills Tags */
.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.4rem 0.875rem;
    background: var(--color-bg-light);
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(65,160,141,0.2);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ===== RESPONSIVE - TIMELINE ===== */
@media (max-width: 968px) {
    .timeline {
        padding-left: 40px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-marker {
        left: -33px;
    }
    
    .timeline-header {
        grid-template-columns: 60px 1fr auto;
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .timeline-logo {
        width: 60px;
        height: 60px;
    }
    
    .timeline-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -28px;
        width: 12px;
        height: 12px;
    }
    
    .timeline-header {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .timeline-logo {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .timeline-info {
        text-align: center;
    }
    
    .timeline-toggle {
        position: absolute;
        right: 1rem;
        top: 1rem;
    }
    
    .timeline-details {
        padding: 0 1rem 1rem;
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
}

/* ===== PHOTO GALLERY SECTION ===== */
.gallery {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.gallery .section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: -1rem auto 4rem;
    line-height: 1.7;
}

/* Gallery Category */
.gallery-category {
    margin-bottom: 5rem;
}

.gallery-category:last-child {
    margin-bottom: 0;
}

.gallery-category-title {
    font-size: 1.75rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.gallery-category-intro {
    font-size: 1rem;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Gallery Grid - 20% smaller */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 960px; /* Reduced from 1200px */
    margin: 0 auto;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--color-bg-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    color: white;
    padding: 3rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.gallery-detail {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Lightbox Image */
.lightbox-image {
    max-width: 85%;
    max-height: 75%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

/* Lightbox Info */
.lightbox-info {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 600px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
}

.lightbox-caption {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lightbox-detail {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

/* Lightbox Close Button */
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close:hover {
    opacity: 0.7;
    background: rgba(255,255,255,0.1);
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* ===== RESPONSIVE - GALLERY ===== */
@media (max-width: 968px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-category {
        margin-bottom: 4rem;
    }

    .gallery-category-title {
        font-size: 1.5rem;
    }

    .lightbox-image {
        max-width: 90%;
        max-height: 70%;
    }

    .lightbox-info {
        max-width: 90%;
        padding: 1.25rem 1.5rem;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .gallery-item {
        aspect-ratio: 16 / 9;
    }

    .gallery-overlay {
        opacity: 1; /* Always visible on mobile */
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    }

    .gallery-category-title {
        font-size: 1.25rem;
    }

    .gallery-category-intro {
        font-size: 0.95rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-info {
        bottom: 1.5rem;
        padding: 1rem 1.25rem;
    }

    .lightbox-caption {
        font-size: 1rem;
    }

    .lightbox-detail {
        font-size: 0.875rem;
    }

    .lightbox-nav {
        bottom: 50%;
        top: auto;
        transform: translateY(50%);
    }
}

/* ===== ACHIEVEMENTS GALLERY SECTION ===== */
.achievements {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

/* Filters */
.achievements-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Achievement Card */
.achievement-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.achievement-card.hidden {
    display: none;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.achievement-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.achievement-content {
    flex: 1;
    min-width: 0;
}

.achievement-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.achievement-detail {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.achievement-date {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* Category-specific icon colors */
.achievement-card[data-category="funding"] .achievement-icon {
    filter: hue-rotate(90deg);
}

.achievement-card[data-category="awards"] .achievement-icon {
    filter: saturate(1.5);
}

.achievement-card[data-category="publications"] .achievement-icon {
    filter: hue-rotate(200deg);
}

.achievement-card[data-category="memberships"] .achievement-icon {
    filter: hue-rotate(270deg);
}

.achievement-card[data-category="speaking"] .achievement-icon {
    filter: hue-rotate(30deg);
}

/* Empty State */
.achievements-grid:empty::after {
    content: 'No achievements in this category yet.';
    display: block;
    text-align: center;
    padding: 3rem;
    color: var(--color-text-muted);
    font-style: italic;
    grid-column: 1 / -1;
}

/* ===== RESPONSIVE - ACHIEVEMENTS ===== */
@media (max-width: 968px) {
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    
    .achievement-card {
        padding: 1.5rem;
    }
    
    .achievement-icon {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .achievements-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .achievement-icon {
        margin-bottom: 0.5rem;
    }
}

/* Show More Button */
.show-more-container {
    text-align: center;
    margin-top: 2rem;
}

.show-more-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.show-more-btn.hidden {
    display: none;
}

.show-more-btn svg {
    transition: transform var(--transition-base);
}

.show-more-btn.expanded svg {
    transform: rotate(180deg);
}

/* ===== AVAILABILITY DASHBOARD SECTION ===== */
.availability {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-2) 100%);
    color: white;
}

.availability-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 2px solid rgba(255,255,255,0.2);
}

.availability-header {
    text-align: center;
    margin-bottom: 3rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.95);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.status-pulse {
    width: 12px;
    height: 12px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.availability-header h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.availability-intro {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.availability-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.availability-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

.availability-list {
    list-style: none;
    padding: 0;
}

.availability-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.list-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.availability-list li span:last-child {
    line-height: 1.6;
    opacity: 0.95;
}

.availability-cta {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-description {
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-column .btn {
    padding: 0.75rem 1.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-meta {
    opacity: 0.6;
}

.footer-meta a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer-meta a:hover {
    color: var(--color-primary);
}

/* ===== RESPONSIVE - AVAILABILITY & FOOTER ===== */
@media (max-width: 968px) {
    .availability-card {
        padding: 2rem;
    }
    
    .availability-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .availability-header h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .availability-header h2 {
        font-size: 1.75rem;
    }
    
    .availability-intro {
        font-size: 1rem;
    }
    
    .availability-cta {
        flex-direction: column;
    }
    
    .availability-cta .btn {
        width: 100%;
    }
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Links */
@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: flex; /* <-- ADD THIS LINE */
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.125rem;
    }
}
