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

:root {
    /* === REFINED PANDA.DEV PALETTE === */
    /* Cooler neutral base with enhanced mint accents */
    --cream: #F6F8F7;
    --dark: #1A1F1E;
    --charcoal: #2A2F2E;
    --mint: #5DCBB8;
    --mint-dark: #4AB8A5;
    --white: #FFFFFF;

    /* === FUNCTIONAL COLORS === */
    /* Backgrounds */
    --bg-primary: #F6F8F7;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: rgba(246, 248, 247, 0.8);
    --bg-dark: #1A1F1E;

    /* Text - Enhanced contrast for accessibility */
    --text-primary: #1A1F1E;
    --text-secondary: #4A5654;
    --text-tertiary: rgba(26, 31, 30, 0.5);
    --text-on-dark: #F6F8F7;

    /* Accents - More saturated for better visibility */
    --accent-primary: #5DCBB8;
    --accent-hover: #4AB8A5;
    --accent-light: rgba(93, 203, 184, 0.12);
    --accent-soft: rgba(93, 203, 184, 0.2);

    /* Semantic colors */
    --ml-highlight: #5DCBB8;
    --code-bg: #EDF1F0;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(93, 203, 184, 0.15);

    /* Overlays & effects */
    --overlay-subtle: rgba(255, 255, 255, 0.8);
    --glow-mint: rgba(93, 203, 184, 0.18);
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.08);

    /* === LEGACY (for gradual migration) === */
    --primary: var(--accent-primary);
    --primary-dark: var(--dark);
    --secondary: var(--mint-dark);
    --light: var(--cream);
    --gray: #6A7876;

    /* === TYPOGRAPHY SCALE === */
    /* Refined scale with proper readability */
    --font-hero: clamp(1.75rem, 3.5vw, 2.5rem);     /* Hero text only */
    --font-heading: clamp(1.25rem, 2vw, 1.5rem); /* All headings - responsive */
    --font-subheading: 1rem;                /* Subheadings */
    --font-body: 1rem;                          /* Body text */
    --font-caption: 0.875rem;                   /* Small text, labels */

    /* === LEGACY VARS (mapped to new system) === */
    --text-xs: var(--font-caption);
    --text-sm: var(--font-body);
    --text-base: var(--font-body);
    --text-lg: var(--font-heading);
    --text-xl: var(--font-heading);
    --text-2xl: var(--font-heading);
    --text-3xl: var(--font-hero);
    --text-4xl: var(--font-hero);
    --text-5xl: var(--font-hero);

    /* === SPACING SYSTEM === */
    /* 4px base scale for consistent spacing */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    --space-32: 8rem;      /* 128px */

    /* === STICKY CARD STACK VARIABLES === */
    --sticky-top-base: 100px;
    --sticky-offset: 20px;
    --stack-scale-factor: 0.05;
    --stack-opacity-factor: 0.15;

    /* === BORDER RADIUS === */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* === ANIMATION TIMING === */
    /* Durations */
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;
    --duration-slowest: 600ms;

    /* Easings - Purpose-specific curves */
    --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);        /* Entrances */
    --ease-in-cubic: cubic-bezier(0.32, 0, 0.67, 0);          /* Exits */
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);      /* State changes */
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);       /* Playful moments */

    /* Composed transition tokens (legacy support) */
    --transition-fast: var(--duration-fast) var(--ease-out-cubic);
    --transition-base: var(--duration-base) var(--ease-in-out-cubic);
    --transition-slow: var(--duration-slow) var(--ease-out-cubic);
    --transition-slowest: var(--duration-slowest) var(--ease-in-out-cubic);
}

html {
    scroll-behavior: smooth;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' /%3E%3C/svg%3E");
}

/* === ACCESSIBILITY: REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    /* Disable smooth scrolling and snap (vestibular triggers) */
    html {
        scroll-behavior: auto;
    }

    body {
        scroll-snap-type: none;
    }

    section {
        scroll-snap-align: none;
    }

    /* Disable decorative animations only */
    .badge-dot,
    .plant-leaf,
    .particle,
    .workspace-character,
    .bamboo-animation-wrapper,
    #bamboo-character,
    #bamboo-character img {
        animation: none !important;
        transform: none !important;
    }

    /* Disable large movements (>8px) */
    .hero-text,
    .hero-profile {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Shorten complex transitions to minimal perceivable duration */
    .project-card,
    .education-card,
    .skills-card,
    nav {
        transition-duration: 150ms !important;
    }

    /* Remove elastic/bounce easings - use linear for reduced motion */
    * {
        animation-timing-function: linear !important;
        transition-timing-function: linear !important;
    }

    /* Disable pulsing animations */
    .btn-primary:hover {
        animation: none !important;
    }
}

/* === SCROLL SNAP SYSTEM === */
/* Page wrapper for scroll-snap container */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: scroll;
    font-size: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    margin: 0;
    padding: 0;

    /* Enable scroll snapping - proximity allows user control while suggesting snap points */
    scroll-snap-type: y proximity;
    scroll-padding-top: 80px; /* Account for fixed navbar */
}

/* === ENTRANCE ANIMATIONS === */
/* All major sections snap to viewport and animate in */
section {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms ease, transform 400ms ease;
}

/* Animation will be handled by IntersectionObserver if needed */
section.section-animating {
    opacity: 0;
    transform: translateY(20px);
}

section.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body {
        scroll-snap-type: none;
    }

    section {
        opacity: 1;
        transform: none;
        transition: none;
        scroll-snap-align: none;
    }
}

/* === WEB FONTS === */
/* Epilogue for headings (geometric sans), DM Sans for body (humanist sans) */
/* Note: Epilogue, DM Sans, and JetBrains Mono are loaded in index.html <head> */

/* === TYPOGRAPHY UTILITY CLASSES === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

/* All headings use heading size (1.75rem) */
h1 {
    font-size: var(--font-hero);  /* Exception: h1 uses hero size */
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2, h3, h4, h5, h6 {
    font-size: var(--font-heading);  /* All other headings: 1.75rem */
    font-weight: 700;
}

p {
    font-size: var(--font-body);
    line-height: 1.7;
    color: var(--text-secondary);
}

code, pre {
    font-family: 'JetBrains Mono', monospace;
    background: var(--code-bg);
    border-radius: 4px;
}

code {
    padding: 0.2em 0.4em;
    font-size: var(--font-caption);
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

/* === TEXT UTILITIES === */
.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-accent {
    color: var(--accent-primary);
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Accessibility: Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Accessibility: Focus visible styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 4px;
}

.form-input:focus-visible,
.chat-input:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 0;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

/* === NAVIGATION === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: var(--space-4) var(--space-8);
    background: var(--overlay-subtle);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    transition: background-color var(--duration-base) var(--ease-in-out-cubic),
                box-shadow var(--duration-base) var(--ease-out-cubic),
                border-bottom-color var(--duration-base) var(--ease-in-out-cubic);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 2px 16px rgba(26, 26, 46, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

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

.logo {
    font-family: 'Epilogue', sans-serif;
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--text-primary);
    transition: color var(--transition-base);
    letter-spacing: -0.02em;
}

.logo:hover {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: var(--space-8);
    list-style: none;
}

.nav-links a {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-in-out-cubic);
    position: relative;
    padding: var(--space-2) 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--duration-base) var(--ease-out-cubic);
}

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

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

.nav-links a.active {
    color: var(--accent-primary);
    font-weight: 600;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light);
    transition: transform 300ms var(--ease-in-out-cubic),
                opacity 300ms var(--ease-in-out-cubic);
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--space-8) var(--space-4);
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-10);
    align-items: center;
}

/* Hero Text Content */
.hero-text {
    animation: fadeInUp 0.8s ease both;
    will-change: transform, opacity;
}

.hero-greeting {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    animation: fadeInUp 0.6s ease both;
}

.hero-name {
    font-family: 'Epilogue', sans-serif;
    font-size: var(--text-5xl);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--space-4);
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: var(--space-4);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-contact {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-base);
    color: var(--text-tertiary);
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.contact-location,
.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: var(--space-2);
}

.contact-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
}

/* Hero Credentials - Subtle Inline Style */
.hero-credentials {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-6) 0 var(--space-8);
    flex-wrap: wrap;
    font-size: var(--font-body);
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease 0.3s both;
}

.credential-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25em;
}

.credential-item strong {
    font-family: 'Epilogue', sans-serif;
    font-size: 1.125em;
    font-weight: 700;
    color: var(--accent-primary);
}

.credential-dot {
    color: var(--text-tertiary);
    font-weight: 300;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Hero Profile */
.hero-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.profile-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 5px solid var(--accent-primary);
    box-shadow: 0 12px 40px rgba(125, 211, 192, 0.25),
                0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.profile-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 48px rgba(125, 211, 192, 0.3),
                0 8px 16px rgba(0, 0, 0, 0.12);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--charcoal), var(--taupe));
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Epilogue', sans-serif;
    font-size: var(--font-hero);
    font-weight: 900;
    color: var(--sand);
    border: 4px solid var(--accent-primary);
    box-shadow: 0 20px 60px var(--shadow-soft);
}

/* Profile Badge */
.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.profile-badge svg {
    color: var(--accent-primary);
}

.profile-badge span {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--font-body);
    font-weight: 500;
    color: var(--text-secondary);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === WORKSPACE ILLUSTRATION === */
.workspace-scene {
    position: relative;
    width: 100%;
    max-width: min(500px, 100%);
    height: auto;
    aspect-ratio: 1 / 1; /* Maintain square ratio */
    background: linear-gradient(145deg, #f8fafa 0%, #ecf0ef 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04);
    padding: var(--space-8);
    border: 1px solid rgba(93, 203, 184, 0.1);
}

@media (max-width: 768px) {
    .workspace-scene {
        padding: var(--space-4);
    }

    .workspace-shelf {
        gap: var(--space-1) !important;
        padding: var(--space-2) !important;
    }

    .workspace-shelf-left,
    .workspace-shelf-right {
        width: 80px !important;
    }
}

/* Bookshelves */
.workspace-shelf {
    position: absolute;
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.workspace-shelf-left {
    top: var(--space-8);
    left: var(--space-6);
    width: 140px;
}

.workspace-shelf-right {
    top: var(--space-8);
    right: var(--space-6);
    width: 100px;
}

.shelf-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shelf-book {
    width: 30px;
    height: 45px;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shelf-plant {
    width: 40px;
    height: 45px;
    position: relative;
}

.plant-pot {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 15px;
    background: #c4a882;
    border-radius: 0 0 4px 4px;
}

.plant-leaves {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #5da87e;
    border-radius: 50% 50% 0 0;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shelf-frame {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Desk Area */
.workspace-desk {
    position: absolute;
    bottom: var(--space-16);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.workspace-character {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.workspace-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Profile photo specific styling */
.workspace-character .profile-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 4px solid var(--accent-primary);
    box-shadow: 0 8px 24px rgba(125, 211, 192, 0.2),
                0 4px 8px rgba(0, 0, 0, 0.1);
    filter: none;
    background: var(--bg-secondary);
}

.character-fallback {
    font-size: 120px;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Laptop */
.workspace-laptop {
    position: relative;
    width: 160px;
    margin-top: -40px;
}

.laptop-screen {
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #2A2A2A 0%, #1F1F1F 100%);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border: 3px solid #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.laptop-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(125, 211, 192, 0.1) 0%, transparent 70%);
}

.laptop-base {
    width: 100%;
    height: 8px;
    background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Workspace Items */
.workspace-items {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-12);
    width: 200px;
    justify-content: center;
}

.workspace-mug,
.workspace-sticker {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.workspace-mug img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.workspace-sticker img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* Decorative Plants */
.decorative-plant {
    position: absolute;
    bottom: var(--space-4);
}

.decorative-plant-left {
    left: var(--space-4);
}

.decorative-plant-right {
    right: var(--space-4);
}

.plant-pot-large {
    width: 40px;
    height: 35px;
    background: linear-gradient(180deg, #c4a882 0%, #a89070 100%);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    position: relative;
}

.plant-pot-large::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 10px;
    background: #c4a882;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.plant-leaf {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(var(--rotation, 0deg));
    width: 35px;
    height: 50px;
    background: #5da87e;
    border-radius: 50% 0 50% 0;
    animation: sway 3s ease-in-out infinite;
}

.plant-leaf:nth-child(2) {
    animation-delay: 0.5s;
}

.plant-leaf:nth-child(3) {
    animation-delay: 1s;
}

@keyframes sway {
    0%, 100% { transform: translateX(-50%) rotate(var(--rotation, 0deg)); }
    50% { transform: translateX(-50%) rotate(calc(var(--rotation, 0deg) + 5deg)); }
}

/* Workspace Badge */
.workspace-badge {
    position: absolute;
    bottom: var(--space-6);
    right: var(--space-6);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--card-bg);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(125, 211, 192, 0.2);
}

.badge-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.badge-text {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--font-caption);
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === EDUCATION SECTION === */
.education {
    padding: var(--space-24) var(--space-8) var(--space-20);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.education-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-16);
}

.education-label {
    font-size: var(--font-caption);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--accent-light);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.education-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.education-subtitle {
    font-size: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-8);
    max-width: 1200px;
    width: 100%;
}

.education-card {
    background: var(--bg-secondary);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    display: flex;
    gap: var(--space-6);
    transition: all var(--duration-base) var(--ease-out-cubic);
    box-shadow: var(--shadow-soft);
}

.education-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-primary);
}

.education-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.education-content {
    flex: 1;
}

.education-university {
    font-family: 'Epilogue', sans-serif;
    font-size: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.education-years {
    font-size: var(--font-caption);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.education-degree {
    font-size: var(--font-body);
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.education-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-highlights li {
    font-size: var(--font-body);
    color: var(--text-secondary);
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
    position: relative;
}

.education-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 600;
}

/* === BUTTONS === */
.btn {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--font-body);
    font-weight: 600;
    padding: var(--space-4) var(--space-8);
    border-radius: 50px;
    text-decoration: none;
    transition: transform var(--duration-fast) var(--ease-out-cubic),
                background-color var(--duration-base) var(--ease-in-out-cubic),
                border-color var(--duration-base) var(--ease-in-out-cubic),
                box-shadow var(--duration-base) var(--ease-out-cubic);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 4px 20px rgba(93, 203, 184, 0.3); }
    50% { box-shadow: 0 4px 28px rgba(93, 203, 184, 0.4); }
    100% { box-shadow: 0 4px 20px rgba(93, 203, 184, 0.3); }
}

.btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(93, 203, 184, 0.25);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    animation: pulseGlow 2s ease-in-out infinite;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--card-border);
}

.btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--accent-hover);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-resume {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--card-border);
}

.btn-resume:hover {
    background: var(--code-bg);
    border-color: var(--accent-hover);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-resume svg {
    width: 18px;
    height: 18px;
}

/* Hero section continues below - particles removed for cleaner, focused design */

/* AI Assistant Section */
.ai-section {
    min-height: 100vh;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Subtle gradient fade for smooth transition */
    background: linear-gradient(
        to bottom,
        var(--bg-primary) 0%,
        var(--bg-secondary) 50%,
        var(--bg-primary) 100%
    );
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: var(--font-body);
    color: var(--text-secondary);
    margin-bottom: var(--space-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.chat-container {
    flex: 0 0 70%; /* 70% width */
    display: flex;
    flex-direction: column;
    background: rgba(248, 246, 242, 0.6);
}

.chat-header {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(199, 149, 109, 0.08), rgba(139, 115, 85, 0.08));
    text-align: center;
    border-bottom: 1px solid var(--card-border);
}

.chat-header h3 {
    font-size: var(--font-body);  /* 0.95rem - reduced for compact design */
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.chat-header p {
    font-size: var(--font-caption);  /* 0.75rem */
    color: var(--text-tertiary);
    margin: 0;
}

.chat-messages {
    max-height: 320px;
    height: 320px;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 85%;
    animation: slideIn 0.3s ease;
    font-size: var(--font-body);  /* 0.95rem */
    line-height: 1.5;
}

.message.user {
    background: var(--accent-primary);
    align-self: flex-end;
    margin-left: auto;
    color: #ffffff;
}

.message.assistant {
    background: rgba(248, 246, 242, 0.9);
    align-self: flex-start;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.message p {
    font-size: var(--font-body);
    margin: 0;
}

.suggestion-list {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
    list-style: none;
}

.suggestion-list li {
    margin: 0.35rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 0.5rem;
    font-size: var(--font-caption);  /* 0.75rem */
}

.suggestion-list li::before {
    content: "→";
    position: absolute;
    left: -1rem;
    color: var(--primary);
}

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

.chat-input-container {
    padding: 1rem 1.25rem;
    background: rgba(248, 246, 242, 0.9);
    display: flex;
    gap: 1rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 46, 0.12);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: var(--font-body);  /* 0.95rem */
    font-family: 'DM Sans', sans-serif;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(199, 149, 109, 0.15);
}

.send-btn {
    padding: 0.75rem 1.5rem;
    background: var(--accent-primary);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out-cubic),
                box-shadow var(--duration-base) var(--ease-out-cubic);
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(199, 149, 109, 0.3);
}

/* === PROJECTS SECTION === */
.projects {
    padding: var(--space-12) var(--space-6) var(--space-10);
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
}

.projects-header {
    max-width: 1200px;
    margin: 0 auto var(--space-12);
    text-align: left;
}

.projects-label {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-4);
    display: block;
}

.projects-title {
    font-family: 'Epilogue', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.projects-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

/* Filter Buttons */
.project-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin: 0 auto var(--space-12);
    max-width: 1400px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-sm);
    font-weight: 600;
    padding: var(--space-3) var(--space-6);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--duration-base) var(--ease-in-out-cubic),
                color var(--duration-base) var(--ease-in-out-cubic),
                background-color var(--duration-base) var(--ease-in-out-cubic);
}

.filter-btn:hover {
    border-color: var(--accent-hover);
    color: var(--text-primary);
}

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

/* Bento Grid Layout */
.projects-bento-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    grid-auto-flow: dense;
}

/* Card Sizing */
.project-card.size-xl {
    grid-column: span 2;
    grid-row: span 2;
}

.project-card.size-lg {
    grid-column: span 2;
    grid-row: span 1;
}

.project-card.size-md {
    grid-column: span 1;
    grid-row: span 1;
}

.project-card.size-sm {
    grid-column: span 1;
    grid-row: span 1;
}

/* Project Card */
.project-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--card-border);
    transition: transform var(--duration-base) var(--ease-out-cubic),
                box-shadow var(--duration-base) var(--ease-out-cubic),
                border-color var(--duration-base) var(--ease-in-out-cubic);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform-origin: bottom center;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-light);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2);
}

.project-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.project-icon-svg {
    color: var(--accent-primary);
    stroke: var(--accent-primary);
}

.project-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--transition-base);
    cursor: pointer;
}

.project-link:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.project-link svg {
    width: 20px;
    height: 20px;
}

.project-name {
    font-family: 'Epilogue', sans-serif;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.project-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: var(--space-3);
}

.project-description {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.project-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-2) var(--space-4);
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.project-tag:hover {
    border-color: var(--accent-primary);
    background: var(--accent-light);
}

/* Cover Image */
.project-cover {
    width: 100%;
    height: 200px;
    background: var(--charcoal);
    border-radius: 12px;
    margin-bottom: var(--space-3);
    overflow: hidden;
    position: relative;
}

.project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-cover.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--charcoal), var(--taupe));
}

.project-cover.placeholder::before {
    content: '📸';
    font-size: var(--font-hero);
    opacity: 0.3;
}

/* Normalize cover heights for consistent alignment */
.project-card.size-xl .project-cover,
.project-card.size-lg .project-cover,
.project-card.size-md .project-cover,
.project-card.size-sm .project-cover {
    height: 200px;
}

/* Category Badge */
.project-category {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    padding: var(--space-2) var(--space-4);
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.project-category.ml-ai {
    background: var(--accent-primary);
    color: var(--midnight);
}

.project-category.fullstack {
    background: var(--accent-hover);
    color: var(--sand);
}

.project-category.research {
    background: var(--charcoal);
    color: var(--sand);
    border: 1px solid var(--accent-hover);
}

/* Featured Star */
.project-card.featured::after {
    content: '⭐';
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: 1.5rem;
    z-index: 2;
}

/* Project Content */
.project-title {
    font-family: 'Epilogue', sans-serif;
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    line-height: 1.3;
    /* Clamp to 2 lines max */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-description {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    /* Clamp to 3 lines max */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-bottom: var(--space-3);
}

.tech-tag {
    padding: 4px 10px;
    background: rgba(148, 137, 121, 0.15);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
}

/* Project Actions */
.project-actions {
    margin-top: auto;
}

.btn-view-details {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-view-details:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

/* Legacy project links support */
.project-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
    flex-wrap: wrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    background: var(--accent-primary);
    color: var(--midnight);
    text-decoration: none;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
    transition: all var(--transition-base);
    border: 1px solid var(--accent-primary);
}

.project-btn:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(199, 149, 109, 0.2);
}

.project-btn-secondary {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
}

.project-btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--accent-hover);
    color: var(--accent-primary);
}

.project-btn svg {
    width: 14px;
    height: 14px;
}

/* Experience Section */
.experience {
    padding: var(--space-12) var(--space-6) var(--space-10);
    display: flex;
    flex-direction: column;
}

.experience-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-10);
}

.experience-label {
    font-size: var(--font-caption);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--accent-light);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.experience-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.experience-subtitle {
    font-size: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline Container */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: var(--space-12) 0;
}

/* Center Line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-primary);
    transform: translateX(-50%);
}

/* Timeline Items */
.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: var(--space-12);
}

/* Left Side Items */
.timeline-left {
    justify-content: flex-end;
    padding-right: calc(50% + var(--space-8));
}

.timeline-left .timeline-content {
    text-align: right;
}

.timeline-left .timeline-dot {
    right: calc(50% - 20px);
}

/* Right Side Items */
.timeline-right {
    justify-content: flex-start;
    padding-left: calc(50% + var(--space-8));
}

.timeline-right .timeline-content {
    text-align: left;
}

.timeline-right .timeline-dot {
    left: calc(50% - 20px);
}

/* Timeline Content Card */
.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-base);
    max-width: 750px;
    width: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-light);
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 4px solid var(--bg-primary);
    z-index: 10;
}

/* Timeline Company */
.timeline-company {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.timeline-company h3 {
    font-family: 'Epilogue', sans-serif;
    font-size: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.timeline-dates {
    font-size: var(--font-caption);
    color: var(--text-secondary);
}

/* Timeline Role */
.timeline-role {
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: var(--space-3);
}

/* Timeline Description */
.timeline-description {
    font-size: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

/* Timeline Tags */
.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.timeline-tags .tag,
.tag {
    font-size: var(--font-caption);
    padding: var(--space-1) var(--space-3);
    background: var(--accent-light);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* Certifications Section */
.certifications {
    min-height: 100vh;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-secondary);
}

.certifications-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.cert-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: left;
    border: 1px solid var(--card-border);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    box-shadow: var(--shadow-soft);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-light);
}

.cert-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: var(--space-2);
}

.cert-card.in-progress {
    opacity: 0.6;
    border-style: dashed;
}

.cert-card.in-progress::after {
    content: 'upcoming';
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.cert-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    top: 1rem;
    left: 0.5rem;
}

.cert-name {
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    font-size: var(--font-body);
    font-weight: 600;
}

.cert-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    font-size: var(--font-body);
    font-weight: 600;
}

.cert-issuer {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--font-caption);
}

.cert-date {
    color: var(--text-tertiary);
    font-size: var(--font-caption);
}

.cert-id {
    color: var(--text-tertiary);
    font-size: var(--font-caption);
    font-family: 'DM Mono', monospace;
    opacity: 0.6;
    margin-top: var(--space-2);
    letter-spacing: 0.3px;
}

/* ========================================
   CERTIFICATIONS SECTION
   ======================================== */

.certifications {
    padding: var(--space-12) var(--space-6) var(--space-10);
}

.certifications-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-10);
}

.certifications-title-main {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.certifications-subtitle {
    font-size: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.certifications-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.certifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-3);
}

.certifications-list li {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    font-size: var(--font-body);
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--space-8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.certifications-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-primary);
}

.certifications-list li::before {
    content: '✓';
    position: absolute;
    left: var(--space-4);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Compact Skills Tag Display */
.skill-category-compact {
    margin-bottom: var(--space-6);
}

.skill-category-name {
    font-family: 'Epilogue', sans-serif;
    font-size: var(--font-subheading);
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.8);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.skill-tag {
    padding: var(--space-2) var(--space-3);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-caption);
    color: var(--text-primary);
    transition: all var(--transition-base);
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.skill-tag:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Certification Cards */
/* Certification Badges - Inline compact design */
.certification-badge {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    display: flex;
    gap: var(--space-3);
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
}

.certification-badge:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-primary);
}

.certification-badge:hover .cert-tooltip {
    opacity: 1;
    visibility: visible;
}

.cert-badge-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-md);
}

.cert-badge-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.cert-badge-name {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--text-primary);
}

.cert-badge-issuer {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--font-caption);
    color: var(--text-secondary);
}

.cert-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: var(--text-on-dark);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--font-caption);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cert-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--dark);
}

.cert-name {
    font-family: 'Epilogue', sans-serif;
    font-size: var(--font-body);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-1) 0;
}

.cert-issuer {
    font-size: var(--font-caption);
    color: var(--cert-color, var(--accent-primary));
    font-weight: 600;
    margin: 0 0 var(--space-2) 0;
}

.cert-score {
    font-size: var(--font-caption);
    color: var(--text-primary);
    font-weight: 600;
    margin: 0 0 var(--space-1) 0;
}

.cert-details {
    font-size: var(--font-caption);
    color: var(--text-secondary);
    margin: 0 0 var(--space-1) 0;
    line-height: 1.4;
}

.cert-validity {
    font-size: var(--font-caption);
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Panda Illustration */
.panda-illustration {
    text-align: center;
    padding: var(--space-6);
}

.panda-illustration img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.panda-caption {
    font-size: var(--font-caption);
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

.progress-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: var(--font-caption);
    font-weight: 600;
}

/* About Section */
.about {
    padding: 3rem 1.5rem;
}

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

.about-text {
    font-size: var(--font-heading);
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 3rem;
}

.subsection-title {
    color: var(--primary);
    font-size: var(--font-heading);
    margin: 1.5rem 0 1rem 0;
    text-align: center;
}

.education-section {
    margin: 1.5rem 0 2rem 0;
}

.education-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    text-align: left;
    transition: all 0.3s ease;
}

.education-card:hover {
    box-shadow: 0 5px 20px rgba(199, 149, 109, 0.12);
    border-color: var(--accent-primary);
}

.education-card h4 {
    color: var(--primary);
    font-size: var(--font-heading);
    margin-bottom: 0.5rem;
}

.education-university {
    color: var(--secondary);
    font-size: var(--font-heading);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-details {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.research-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.research-title {
    color: var(--light);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.research-list {
    list-style: none;
    padding-left: 0;
}

.research-list li {
    color: var(--gray);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.research-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Skills Section */
.skills {
    padding: var(--space-12) var(--space-6) var(--space-10);
}

.skills-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-10);
}

.skills-label {
    font-size: var(--font-caption);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--accent-light);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.skills-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.skills-subtitle {
    font-size: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.skills-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    align-items: start;
}

/* Skill Category Cards */
.skill-category-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.skill-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-primary);
}

/* Large cards for primary categories */
.skill-category-large {
    grid-column: span 2;
}

/* Card header with icon */
.skill-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.skill-category-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.skill-category-name {
    font-family: 'Epilogue', sans-serif;
    font-size: var(--font-subheading);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Skill tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.skill-tag {
    padding: var(--space-2) var(--space-3);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    font-size: var(--font-caption);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.skill-tag:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

/* Legacy support for old structure */
.skills-category {
    color: var(--accent-hover);
    font-size: var(--font-caption);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    font-size: var(--font-caption);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.skill-badge:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

/* Contact Section */
.contact {
    min-height: 100vh;
    padding: var(--space-12) var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Dark theme background */
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.contact .section-title {
    color: var(--text-on-dark);
}

.contact .section-subtitle {
    color: rgba(248, 246, 243, 0.7);
}

.contact-container {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
}

.about-text {
    font-size: var(--font-body);
    color: rgba(248, 246, 243, 0.8);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    text-align: left;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--text-on-dark);
}

.form-input {
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-on-dark);
    font-size: var(--font-body);
    font-family: 'DM Sans', sans-serif;
    transition: all var(--transition-base);
    width: 100%;
}

.form-input::placeholder {
    color: rgba(248, 246, 243, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(125, 211, 192, 0.1);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

/* Form validation styles */
.required-indicator {
    color: #ef4444;
    font-weight: 600;
    margin-left: 2px;
}

.field-error {
    display: block;
    color: #ef4444;
    font-size: var(--font-caption);
    margin-top: 4px;
    min-height: 18px;
}

.form-input[aria-invalid="true"] {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    display: none;
    animation: slideIn 0.3s ease;
}

.form-status.success {
    background: rgba(34, 211, 138, 0.2);
    border: 1px solid rgba(34, 211, 138, 0.5);
    color: #22d38a;
    display: block;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    display: block;
}

.social-links {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    margin-top: var(--space-8);
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-on-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--duration-fast) var(--ease-out-cubic),
                background-color var(--duration-base) var(--ease-in-out-cubic),
                border-color var(--duration-base) var(--ease-in-out-cubic),
                color var(--duration-base) var(--ease-in-out-cubic),
                box-shadow var(--duration-base) var(--ease-out-cubic);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(125, 211, 192, 0.3);
}

/* Footer */
footer {
    padding: var(--space-12) var(--space-8);
    text-align: center;
    background: var(--bg-dark);
    color: rgba(248, 246, 243, 0.6);
    font-size: var(--font-caption);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Project Status Badge */
.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

/* Project Expandable Section */
.project-expandable {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

.project-full-description {
    color: var(--light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.project-full-description p {
    margin-bottom: 0.75rem;
}

.project-full-description strong {
    color: var(--primary);
    font-weight: 600;
}

.project-impact {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(199, 149, 109, 0.08);
    border-radius: 10px;
    border-left: 3px solid var(--accent-primary);
}

.project-impact h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.project-impact ul {
    list-style: none;
    padding-left: 0;
}

.project-impact li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--light);
}

.project-impact li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.project-timeline {
    margin: 1rem 0;
    color: var(--gray);
}

.project-timeline strong {
    color: var(--secondary);
}

.project-screenshots-placeholder {
    margin-top: 1.5rem;
    padding: 2rem;
    background: rgba(248, 246, 242, 0.6);
    border-radius: 10px;
    border: 2px dashed var(--card-border);
    text-align: center;
}

.screenshot-note {
    color: var(--gray);
    font-style: italic;
    font-size: var(--font-body);
}

/* Project Actions */
.project-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(199, 149, 109, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 25px;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-body);
    font-weight: 500;
}

.btn-expand:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(199, 149, 109, 0.25);
}

.btn-expand svg {
    transition: transform 0.3s ease;
}

.project-card.expanded .btn-expand svg {
    transform: rotate(180deg);
}

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

.timeline-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(199, 149, 109, 0.1);
    border-radius: 15px;
    font-size: var(--font-caption);
    color: var(--accent-primary);
    border: 1px solid rgba(199, 149, 109, 0.2);
}

.timeline-company {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-description {
    color: var(--gray);
    line-height: 1.6;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
    will-change: transform;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.typing-indicator .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 1rem;
        transition: right var(--transition-base);
        box-shadow: -5px 0 20px var(--shadow-soft);
        z-index: 1000;
    }

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

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

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }

    /* Section Padding Adjustments */
    .ai-section,
    .experience,
    .certifications,
    .skills,
    .education,
    .contact,
    .projects,
    .hero {
        padding: var(--space-12) var(--space-4) var(--space-8);
        min-height: auto;
    }

    /* Education Section Mobile */
    .education-grid {
        grid-template-columns: 1fr;
    }

    /* Skills Mobile */
    .skills-content {
        grid-template-columns: 1fr;
    }

    .skill-category-large {
        grid-column: span 1;
    }

    /* Certifications Mobile */
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    /* Projects Grid Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Form Mobile */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Experience Timeline Mobile */
    .timeline-container::before {
        display: none;
    }

    .timeline-item {
        padding: 0 !important;
        margin-bottom: var(--space-8);
    }

    .timeline-left,
    .timeline-right {
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-content: center;
    }

    .timeline-content {
        text-align: center;
    }

    .timeline-dot {
        position: static;
        margin: var(--space-4) auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-profile {
        order: 1;
    }

    .hero-name {
        font-size: var(--text-4xl);
    }

    .hero-title {
        font-size: var(--text-xl);
    }

    .hero-stats {
        justify-content: center;
        gap: var(--space-4);
    }

    .stat-divider {
        display: none;
    }

    .stat-number {
        font-size: var(--text-xl);
    }

    .hero-buttons {
        justify-content: center;
    }

    .profile-container {
        max-width: 280px;
    }

    .profile-photo {
        max-width: 250px;
    }

    /* Workspace Illustration Mobile - Legacy (no longer used) */
    .workspace-shelf-left {
        width: 100px;
        left: var(--space-4);
    }

    .workspace-shelf-right {
        width: 80px;
        right: var(--space-4);
    }

    .workspace-character {
        width: 140px;
        height: 140px;
    }

    .workspace-character .profile-photo {
        width: 140px;
        height: 140px;
    }

    .workspace-mug img {
        width: 32px;
        height: 32px;
    }

    .workspace-sticker img {
        width: 28px;
        height: 28px;
    }

    .workspace-laptop {
        width: 120px;
    }

    .laptop-screen {
        height: 70px;
    }

    .decorative-plant {
        transform: scale(0.8);
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 24px;
        left: 0 !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 0px !important;
        right: auto !important;
    }

    /* Bento Grid Responsive */
    .projects-bento-grid {
        grid-template-columns: 1fr;
    }

    .project-card.size-xl,
    .project-card.size-lg,
    .project-card.size-md,
    .project-card.size-sm {
        grid-column: span 1;
        grid-row: span 1;
    }

    .project-card.size-xl .project-cover {
        height: 200px;
    }

    .project-actions {
        flex-direction: column;
    }

    .project-links {
        flex-direction: column;
    }

    .status-badge {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.7rem;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card.size-xl,
    .project-card.size-lg {
        grid-column: span 2;
    }

    .project-card.size-md,
    .project-card.size-sm {
        grid-column: span 1;
    }
}

/* ========================================
   BAMBOO CHARACTER ANIMATIONS
   ======================================== */

/* Side-by-side wrapper for Bamboo and Chat */
.bamboo-chat-wrapper {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: stretch;
    max-width: 1000px;
    width: 100%;
    max-height: calc(100vh - 12rem);
    margin: 0 auto;
    padding: 0;
    background: var(--card-bg);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-soft);
}

/* Bamboo Character Container (Left Side - 30%) */
.bamboo-character-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 30%; /* 30% width */
    padding: 1.5rem 1rem;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(199, 149, 109, 0.06), rgba(139, 115, 85, 0.06));
    border-right: 1px solid var(--card-border);
}

.bamboo-character {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bamboo-animation-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Fallback emoji styling */
.bamboo-fallback {
    font-size: var(--font-hero);
    animation: bamboo-float 3s ease-in-out infinite;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Character image styling (for when static images are loaded) */
.bamboo-animation-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Bamboo Info (Name + Tagline) */
.bamboo-info {
    text-align: center;
    margin-top: 0.5rem;
}

.bamboo-name {
    font-size: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.bamboo-tagline {
    font-size: var(--font-caption);
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Bamboo Status Text */
.bamboo-status {
    text-align: center;
}

.bamboo-status .status-text {
    font-size: var(--font-caption);  /* 0.75rem */
    color: var(--accent-hover);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    background: rgba(148, 137, 121, 0.15);
    border-radius: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

/* ========================================
   BAMBOO ANIMATION STATES
   ======================================== */

/* Idle/Default Animation */
@keyframes bamboo-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(0, -10px, 0) rotate(2deg);
    }
}

@keyframes bamboo-breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Thinking Animation */
@keyframes bamboo-think {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

/* Happy/Excited Animation */
@keyframes bamboo-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40% {
        transform: translate3d(0, -20px, 0);
    }
    60% {
        transform: translate3d(0, -10px, 0);
    }
}

/* Waving Animation */
@keyframes bamboo-wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(15deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(-15deg);
    }
}

/* Typing Animation */
@keyframes bamboo-type {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
    }
}

/* Professional/Focused Animation */
@keyframes bamboo-focus {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(2px) scale(0.99);
    }
}

/* Pulse Animation for interactions */
@keyframes bamboo-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ========================================
   BAMBOO STATE CLASSES
   ======================================== */

/* Apply different animations based on state */
.bamboo-character.idle .bamboo-animation-wrapper {
    animation: bamboo-float 3s ease-in-out infinite;
}

.bamboo-character.thinking .bamboo-animation-wrapper {
    animation: bamboo-think 1s ease-in-out infinite;
}

.bamboo-character.happy .bamboo-animation-wrapper {
    animation: bamboo-bounce 0.8s var(--ease-out-back);
}

.bamboo-character.waving .bamboo-animation-wrapper {
    animation: bamboo-wave 1s ease-in-out;
}

.bamboo-character.typing .bamboo-animation-wrapper {
    animation: bamboo-type 0.6s ease-in-out infinite;
}

.bamboo-character.professional .bamboo-animation-wrapper {
    animation: bamboo-focus 2s ease-in-out infinite;
}

.bamboo-character.pulse .bamboo-animation-wrapper {
    animation: bamboo-pulse 0.5s ease;
}

/* ========================================
   BAMBOO RESPONSIVE DESIGN
   ======================================== */

@media screen and (max-width: 768px) {
    /* Stack vertically on mobile/tablet */
    .bamboo-chat-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 0.5rem;
        max-height: none;
        overflow: visible;
    }

    .bamboo-character-container {
        flex: none;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        position: relative;
        top: auto;
    }

    .bamboo-character {
        width: 150px;
        height: 150px;
    }

    .bamboo-fallback {
        font-size: 90px;
    }

    .bamboo-status .status-text {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .chat-container {
        width: 100%;
        flex: none;
    }
}

@media screen and (max-width: 480px) {
    .bamboo-character {
        width: 120px;
        height: 120px;
    }

    .bamboo-fallback {
        font-size: 70px;
    }
}

/* ========================================
   BAMBOO INTERACTION EFFECTS
   ======================================== */

.bamboo-character:hover .bamboo-animation-wrapper {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Sparkle effect for special interactions */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.bamboo-character.sparkle::before {
    content: '✨';
    position: absolute;
    top: 10%;
    right: 10%;
    font-size: var(--font-heading);
    animation: sparkle 1s ease-in-out;
}

.bamboo-character.sparkle::after {
    content: '✨';
    position: absolute;
    bottom: 15%;
    left: 15%;
    font-size: var(--font-heading);
    animation: sparkle 1s ease-in-out 0.2s;
}

/* Status text animations */
.bamboo-status .status-text.updating {
    animation: bamboo-pulse 0.8s ease-in-out;
}

/* === ACCESSIBILITY & FOCUS STATES === */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Navigation links */
.nav-links a:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
    background: rgba(199, 149, 109, 0.08);
    border-radius: 4px;
}

/* Buttons */
.btn:focus-visible,
.filter-btn:focus-visible,
.send-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(199, 149, 109, 0.15);
}

/* Form inputs */
.form-input:focus-visible,
.chat-input:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Mobile menu toggle */
.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
    background: rgba(199, 149, 109, 0.08);
    border-radius: 4px;
}

/* Highlight entire card when internal links are focused via keyboard */
.project-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--shadow-soft);
    border-color: var(--accent-hover);
}

/* === CHAT UI POLISH === */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}
.chat-messages::-webkit-scrollbar-track {
    background: rgba(248, 246, 242, 0.5);
    border-radius: 4px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(199, 149, 109, 0.2);
    border-radius: 4px;
}
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(199, 149, 109, 0.35);
}
/* ========================================
   BOOKSHELF PROJECT SECTION
   ======================================== */

/* Bookshelf Section Wrapper */
.bookshelf-section {
  min-height: 100vh;
  padding: 2rem 1.5rem;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bookshelf-header {
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
}

.bookshelf-header .section-title {
  font-size: var(--font-heading);  /* 1.75rem */
}

.bookshelf-header .section-subtitle {
  font-size: var(--font-body);  /* 0.95rem */
}

/* Shelf Container */
.shelf-wrap {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 300px;
}

.shelf-back {
  position: absolute;
  inset: 0;
  top: 40px;
  background: linear-gradient(to bottom, #f0e6d6, #e8dcc8);
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.06);
}

#books-row {
  position: relative;
  display: flex !important;
  align-items: flex-end;
  gap: 10px;
  padding: 48px 60px 0;
  z-index: 2;
  min-height: 200px;
  visibility: visible !important;
}

.books-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 48px 60px 0;
  z-index: 2;
}

/* Shelf Plank - Enhanced wooden appearance */
.plank {
  position: relative;
  z-index: 3;
  height: 28px;
  margin: 0 20px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(
    to bottom,
    #d4b896 0%,
    #c9a87c 20%,
    #b8956a 40%,
    #a07d52 60%,
    #8b6c42 100%
  );
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,0.3),
    inset 0 -1px 2px rgba(0,0,0,0.15),
    0 2px 4px rgba(0,0,0,0.1),
    0 6px 20px rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.4);
}

.plank::after {
  content: '';
  position: absolute;
  bottom: -48px;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.12), transparent);
  pointer-events: none;
}

/* Enhanced wood grain texture */
.plank::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 45px,
      rgba(0,0,0,0.06) 45px,
      rgba(0,0,0,0.06) 47px,
      transparent 47px,
      transparent 90px,
      rgba(0,0,0,0.04) 90px,
      rgba(0,0,0,0.04) 91px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(0,0,0,0.02) 1px,
      rgba(0,0,0,0.02) 2px
    );
  border-radius: 3px 3px 0 0;
  pointer-events: none;
  opacity: 0.8;
}

/* Individual Book */
.book {
  position: relative;
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform 0.38s cubic-bezier(0.34, 1.5, 0.64, 1);
  flex-shrink: 0;
  user-select: none;
}

.book:hover, 
.book.lifted {
  transform: translateY(-32px);
}

.book-spine {
  border-radius: 4px 0 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 12px 16px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.08) 0%,
      transparent 8%,
      transparent 92%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    var(--book-color, #6b7fb5);
  box-shadow:
    inset -4px 0 12px rgba(0,0,0,0.25),
    inset 3px 0 6px rgba(255,255,255,0.18),
    inset 0 -2px 4px rgba(0,0,0,0.1),
    inset 0 2px 4px rgba(255,255,255,0.1),
    3px 0 0 rgba(0,0,0,0.15),
    0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  width: 52px;
  height: 220px;
  cursor: pointer;
}

.book-spine:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    inset -4px 0 12px rgba(0,0,0,0.3),
    inset 3px 0 8px rgba(255,255,255,0.22),
    inset 0 -2px 4px rgba(0,0,0,0.15),
    inset 0 2px 4px rgba(255,255,255,0.15),
    3px 0 0 rgba(0,0,0,0.2),
    0 8px 20px rgba(0,0,0,0.2);
}

/* Enhanced cloth/leather texture overlay */
.book-spine::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.06) 2px,
      rgba(0,0,0,0.06) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1px,
      rgba(0,0,0,0.02) 1px,
      rgba(0,0,0,0.02) 2px
    );
  pointer-events: none;
  opacity: 0.7;
}

/* Book title on spine */
.book-title-spine {
  font-family: 'Epilogue', sans-serif;
  font-size: 13px;
  font-weight: 700;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 -1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

/* Book edge (thickness illusion) */
.book-edge {
  position: absolute;
  top: 0;
  right: -8px;
  width: 8px;
  border-radius: 0 1px 1px 0;
  box-shadow: inset -1px 0 3px rgba(0,0,0,0.4);
}

.spine-tag {
  font-family: 'DM Mono', monospace;
  font-size: var(--font-caption);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  z-index: 1;
}

.spine-title {
  font-family: 'Epilogue', sans-serif;
  font-size: var(--font-caption);
  font-weight: 700;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  line-height: 1.2;
  z-index: 1;
  letter-spacing: 0.04em;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
}

.spine-year {
  font-family: 'DM Mono', monospace;
  font-size: var(--font-caption);
  opacity: 0.4;
  letter-spacing: 0.08em;
  z-index: 1;
}

/* Hover Peek Card */
.book-peek {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 260px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 20;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
}

.book:hover .book-peek {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.peek-cat {
  font-family: 'DM Mono', monospace;
  font-size: var(--font-caption);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.peek-name {
  font-family: 'Epilogue', sans-serif;
  font-size: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 6px;
}

.peek-sub {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.peek-desc {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 11px;
}

.peek-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.peek-tag {
  font-family: 'DM Mono', monospace;
  font-size: var(--font-caption);
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(0,0,0,0.04);
  color: var(--text-tertiary);
}

.peek-cta {
  font-size: var(--font-caption);
  color: var(--text-tertiary);
  text-align: center;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
}

/* Decorative Bookends */
.bookend {
  width: 28px;
  height: 220px;
  background: linear-gradient(to right, #b89a72, #c9a87c);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.bookend::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -8px;
  width: calc(100% + 8px);
  height: 12px;
  background: linear-gradient(to right, #b89a72, #c9a87c);
  border-radius: 0 0 4px 0;
}

.bookend-right {
  background: linear-gradient(to left, #b89a72, #c9a87c);
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
}

.bookend-right::before {
  left: 0;
  border-radius: 0 0 0 4px;
}


/* ========================================
   MODAL OVERLAY & OPEN BOOK
   ======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.4);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Open Book (Two-Page Spread) */
.open-book {
  display: flex;
  width: 100%;
  max-width: 980px;
  height: min(82vh, 700px);
  border-radius: 4px 6px 6px 4px;
  box-shadow:
    0 60px 120px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.04);
  transform: scale(0.9) rotateX(4deg) translateY(100px);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  perspective: 1200px;
  overflow: hidden;
}

.modal-overlay.open .open-book {
  transform: scale(1) rotateX(0deg) translateY(50px);
}

/* Left Page (Dark - Media/Meta) */
.page-left {
  width: 42%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

/* Decorative corner fold */
.page-left::before {
  content: '';
  position: absolute;
  top: 0; 
  right: 0;
  width: 0; 
  height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent rgba(255,255,255,0.04) transparent transparent;
}

/* Close Button */
.btn-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: var(--font-heading);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 1000;  /* Ensure it's above everything */
  backdrop-filter: blur(10px);
  z-index: 10;
  line-height: 1;
}

.btn-close:hover {
  background: var(--accent-hover);
  color: var(--midnight);
  transform: rotate(90deg);
}

/* Video Area */
.vid-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
}

.vid-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.vid-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.vid-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.12);
}

.vid-icon svg {
  opacity: 0.4;
}

.vid-label {
  font-family: 'DM Mono', monospace;
  font-size: var(--font-caption);
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2);
}

/* Left Page Meta */
.left-meta {
  flex: 1;
}

.left-cat {
  font-family: 'DM Mono', monospace;
  font-size: var(--font-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.left-name {
  font-family: 'Epilogue', sans-serif;
  font-size: var(--font-heading);
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  margin-bottom: 3px;
  line-height: 1.2;
}

.left-sub {
  font-size: var(--font-caption);
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: var(--font-caption);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

/* Project Links */
.proj-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-bottom: 4px;
}

.proj-link-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: var(--font-caption);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.proj-link-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.14);
}

/* Mini Shelf (Project Switcher) */
.mini-shelf {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mini-shelf-label {
  font-family: 'DM Mono', monospace;
  font-size: var(--font-caption);
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.mini-book {
  width: 18px;
  border-radius: 2px 0 0 2px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.4;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  box-shadow: 1px 0 2px rgba(0,0,0,0.5);
}

.mini-book.cur {
  opacity: 1;
  transform: translateY(-5px);
}

.mini-book:hover:not(.cur) {
  opacity: 0.75;
  transform: translateY(-2px);
}

.mini-book-text {
  font-family: 'DM Mono', monospace;
  font-size: 5.5px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(255,255,255,0.7);
  padding: 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.04em;
  margin: 0 auto;
}

/* Book Binding (Center Spine) */
.book-binding {
  width: 18px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.book-binding::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.15), rgba(255,255,255,0.04));
}

.binding-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}


/* Right Page (Light - Content) */
.page-right {
  flex: 1;
  background: #faf4e8;
  padding: 36px 32px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.12) transparent;
  /* Notebook line texture */
  background-image: repeating-linear-gradient(
    transparent,
    transparent 27px,
    rgba(0,0,0,0.045) 27px,
    rgba(0,0,0,0.045) 28px
  );
  background-color: #faf4e8;
}

.page-right::-webkit-scrollbar {
  width: 4px;
}

.page-right::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 4px;
}

/* Right Page Content */
.r-cat {
  font-family: 'DM Mono', monospace;
  font-size: var(--font-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.r-title {
  font-family: 'Epilogue', sans-serif;
  font-size: var(--font-heading);
  font-weight: 700;
  color: #1a1208;
  line-height: 1.2;
  margin-bottom: 16px;
}

.r-desc {
  font-size: var(--font-caption);
  line-height: 1.75;
  color: #4a3c28;
  margin-bottom: 26px;
}

.r-section-label {
  font-family: 'DM Mono', monospace;
  font-size: var(--font-caption);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a8870;
  margin-bottom: 10px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 26px;
}

.tech-tag-book {
  font-family: 'DM Mono', monospace;
  font-size: var(--font-caption);
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,0.06);
  color: #3a2e1c;
  border: 1px solid rgba(0,0,0,0.07);
}

.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 26px;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--font-caption);
  line-height: 1.55;
  color: #3a2e1c;
}

.features li::before {
  content: '';
  width: 16px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
  margin-top: 9px;
  opacity: 0.4;
}

.impact-box {
  border-left: 3px solid;
  padding: 13px 15px;
  border-radius: 0 8px 8px 0;
  background: rgba(0,0,0,0.03);
  font-size: 12.5px;
  line-height: 1.65;
  color: #4a3c28;
  font-style: italic;
  margin-bottom: 8px;
}

/* ========================================
   RESPONSIVE: BOOKSHELF
   ======================================== */

@media (max-width: 768px) {
  .bookshelf-section {
    padding: 60px 15px 80px;
  }

  .bookshelf-header {
    margin-bottom: 60px;
  }

  .books-row {
    padding: 32px 30px 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .plank {
    margin: 0 10px;
  }

  .book-spine {
    padding: 12px 7px 10px;
  }

  .spine-title {
    font-size: var(--font-caption);
  }

  .bookend {
    display: none;
  }

  /* Modal adjustments */
  .open-book {
    flex-direction: column;
    height: 90vh;
    max-height: none;
  }

  .page-left {
    width: 100%;
    max-height: 40vh;
    overflow-y: auto;
  }

  .page-right {
    width: 100%;
    flex: 1;
  }

  .book-binding {
    width: 100%;
    height: 12px;
    flex-direction: row;
    gap: 10px;
  }

  .binding-dot {
    width: 4px;
    height: 4px;
  }
}


/* ========================================
   INTERACTIVE TIMELINE VISUALIZATION
   ======================================== */

.timeline-viz-section {
  min-height: 100vh;
  max-height: 100vh;
  padding: 2rem 1.5rem;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.timeline-viz-section .section-title {
  margin-bottom: 0.25rem;
}

.timeline-viz-section .section-subtitle {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: var(--font-body);  /* 0.95rem */
}

/* Timeline Visualization Container (Top ~60%) */
.timeline-viz-container {
  flex: 0 0 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  padding: 1.25rem 1rem;
  margin-bottom: 0.75rem;
  overflow: visible;
  position: relative;
}

/* Bottom Panel: Legend + Details */
.timeline-bottom-panel {
  flex: 1;
  display: flex;
  gap: 1rem;
  align-items: stretch;
  min-height: 0;
}

/* Category Legend (Left Side - 35%) - Compact horizontal */
.timeline-legend {
  flex: 0 0 35%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-start;
  gap: 0.5rem;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  padding: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-label {
  font-size: var(--font-caption);
  color: var(--text-primary);
  font-weight: 500;
}

/* Timeline SVG */
.timeline-svg {
  width: 100%;
  height: 100%;
  max-height: 300px;
  display: block;
}

/* Ensure SVG is visible */
#timeline-svg {
  width: 100%;
  height: 100%;
  max-height: 300px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Timeline Axis */
.timeline-axis {
  stroke: rgba(26, 26, 46, 0.15);
  stroke-width: 2;
}

.timeline-tick {
  stroke: rgba(26, 26, 46, 0.08);
  stroke-width: 1;
}

.timeline-label {
  fill: var(--text-secondary);
  font-size: var(--font-caption);
  font-weight: 500;
  font-family: var(--font-mono);
}

/* Git-Style Branch Groups */
.git-branch-group {
  cursor: pointer;
  transition: all 0.3s ease;
}

.git-branch-group:hover {
  filter: drop-shadow(0 0 16px currentColor);
}

/* Mobile-friendly touch targets */
@media (max-width: 768px) {
  .git-commit {
    r: 8 !important; /* Larger touch target */
  }

  .git-branch-group {
    padding: 12px; /* Additional touch area */
  }
}

/* Git Main Trunk */
.git-trunk {
  stroke: rgba(26, 26, 46, 0.12);
  stroke-width: 3;
}

/* Git Commit Dots */
.git-commit {
  transition: all 0.3s ease;
}

.git-branch-group:hover .git-commit {
  r: 7;
  filter: drop-shadow(0 0 12px currentColor);
}

/* Git Branch Lines (diagonal up) */
.git-branch {
  transition: all 0.3s ease;
}

.git-branch-group:hover .git-branch {
  stroke-width: 4;
  opacity: 1 !important;
}

/* Git Lane Lines (horizontal) */
.git-lane {
  transition: all 0.3s ease;
}

.git-branch-group:hover .git-lane {
  stroke-width: 6;
  filter: drop-shadow(0 0 12px currentColor);
}

/* Git Merge Lines (diagonal down) */
.git-merge {
  transition: all 0.3s ease;
}

.git-branch-group:hover .git-merge {
  stroke-width: 4;
  opacity: 1 !important;
}

/* Git Role Labels */
.git-label {
  fill: var(--text-primary);
  font-size: var(--font-caption);
  font-weight: 600;
  pointer-events: none;
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.git-branch-group:hover .git-label {
  font-size: var(--font-caption);
  filter: drop-shadow(0 0 8px currentColor);
}

/* Timeline Container Layout */
.timeline-viz-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 60px;
  background: rgba(248, 246, 242, 0.6);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  padding: 60px 40px 40px;
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
}

.timeline-svg {
  width: 100%;
  height: 320px;
  display: block;
}

/* Quick Nav - Fixed Left Sidebar */
/* Quick Nav - REMOVED (no longer needed) */
.timeline-quick-nav {
  display: none !important;
}

.legend-nav-title {
  font-size: var(--font-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.legend-nav-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Legend Nav Item */
.legend-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid transparent;
}

.legend-nav-item:hover {
  background: rgba(26, 26, 46, 0.04);
}

.legend-nav-item.selected {
  background: rgba(26, 26, 46, 0.06);
  border: 1px solid rgba(26, 26, 46, 0.1);
}

.legend-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
  transition: all 0.3s ease;
}

.legend-nav-item.selected .legend-nav-dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 16px currentColor;
}

.legend-nav-text {
  font-size: var(--font-caption);
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.legend-nav-item.selected .legend-nav-text {
  color: var(--text-primary);
  font-weight: 600;
}

/* Selected State on Main Timeline */
.git-branch-group.selected {
  opacity: 1 !important;
}

.git-branch-group.selected .git-commit {
  r: 8;
  filter: drop-shadow(0 0 20px currentColor);
}

.git-branch-group.selected .git-branch,
.git-branch-group.selected .git-merge {
  stroke-width: 4;
  opacity: 1 !important;
  filter: drop-shadow(0 0 12px currentColor);
}

.git-branch-group.selected .git-lane {
  stroke-width: 7;
  filter: drop-shadow(0 0 20px currentColor);
}

.git-branch-group.selected .git-label {
  font-size: var(--font-heading);
  font-weight: 700;
  filter: drop-shadow(0 0 12px currentColor);
}

/* Details Panel */
/* Timeline Details Panel (Right Side - 70%) */
.timeline-details {
  flex: 1;
  padding: 1.25rem;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.timeline-details-placeholder {
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--font-caption);  /* 0.75rem */
  font-style: italic;
  margin: 0;
  font-family: 'DM Mono', monospace;
}

.timeline-details-content {
  animation: fadeIn 0.3s ease;
  width: 100%;
}

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

.details-title {
  font-size: var(--font-heading);  /* 1.75rem */
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  font-family: 'Epilogue', sans-serif;
}

.details-company {
  color: var(--accent-hover);
  font-size: var(--font-body);  /* 0.95rem */
  font-weight: 500;
  margin: 0 0 20px 0;
  font-family: var(--font-mono);
}

.details-description {
  color: var(--text-secondary);
  font-size: var(--font-body);  /* 0.95rem */
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.details-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.details-tags span {
  font-size: var(--font-caption);  /* 0.75rem */
  padding: 0.25rem 0.75rem;
  background: rgba(148, 137, 121, 0.15);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-secondary);
}

.details-tag {
  padding: 6px 12px;
  background: rgba(248, 246, 242, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  font-size: var(--font-caption);
  color: var(--text-primary);
  font-weight: 500;
  font-family: var(--font-mono);
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline-viz-section {
    padding: 60px 16px 80px;
  }

  .timeline-legend {
    gap: 16px;
    margin-bottom: 40px;
  }

  .legend-item {
    padding: 6px 12px;
    font-size: var(--font-caption);
  }

  .legend-dot {
    width: 10px;
    height: 10px;
  }

  .timeline-viz-container {
    padding: 40px 20px 30px;
    border-radius: 8px;
  }

  .timeline-svg {
    height: 280px;
  }

  /* Hide Quick Nav on mobile */
  .timeline-quick-nav {
    display: none;
  }

  .timeline-details {
    padding: 24px 20px;
    min-height: 140px;
  }

  .details-title {
    font-size: var(--font-heading);
  }

  .details-company {
    font-size: var(--font-body);
  }

  .details-description {
    font-size: var(--font-body);
  }

  .timeline-details-placeholder {
    font-size: var(--font-caption);
    padding: 30px 16px;
  }
}

@media (max-width: 480px) {
  .timeline-legend {
    gap: 12px;
  }

  .legend-item {
    padding: 4px 10px;
    font-size: var(--font-caption);
  }

  .timeline-viz-container {
    padding: 30px 16px 20px;
  }

  .timeline-svg {
    height: 240px;
  }
}

/* ========================================
   STICKY SECTION STACK EFFECT - SCROLL SNAP
   ======================================== */

/* Scroll container with snap points */
.sticky-scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Each section is a snap point */
.sticky-section {
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: var(--space-16) var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

/* Alternating backgrounds - white and light gray */
.sticky-section[data-stack-index="0"],
.sticky-section[data-stack-index="2"] {
    background: #ffffff;
}

.sticky-section[data-stack-index="1"],
.sticky-section[data-stack-index="3"] {
    background: #f5f5f5;
}

/* Center content within sections */
.sticky-section > * {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   FLOATING BAMBOO CHAT
   ======================================== */

/* Container for floating chat */
.bamboo-float-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 1000;
}

/* Floating chat button */
.bamboo-float-btn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-medium), 0 0 20px rgba(93, 203, 184, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.bamboo-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 30px rgba(93, 203, 184, 0.4);
}

.bamboo-float-btn:active {
    transform: scale(0.95);
}

.bamboo-float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bamboo-emoji {
    font-size: 2rem;
}

/* Chat window */
.bamboo-chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - var(--space-8));
    height: 500px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium), 0 0 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
    border: 1px solid var(--card-border);
}

.bamboo-chat-window[aria-hidden="false"] {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Chat header */
.bamboo-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.bamboo-chat-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.bamboo-emoji-small {
    font-size: 1.25rem;
}

.bamboo-chat-title h3 {
    margin: 0;
    font-size: var(--font-heading);
    font-weight: 600;
}

.bamboo-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background var(--transition-fast);
}

.bamboo-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat messages area */
.bamboo-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    background: var(--bg-primary);
}

.message {
    max-width: 85%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--font-body);
    line-height: 1.5;
}

.message.assistant {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    align-self: flex-start;
    color: var(--text-primary);
}

.message.user {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: var(--white);
    align-self: flex-end;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #DC2626;
    align-self: center;
    max-width: 100%;
}

/* Chat input area */
.bamboo-chat-input-container {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.bamboo-chat-input {
    flex: 1;
    padding: var(--space-3);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-body);
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.bamboo-chat-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.bamboo-send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.bamboo-send-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.bamboo-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .bamboo-float-container {
        bottom: var(--space-4);
        right: var(--space-4);
    }

    .bamboo-float-btn {
        width: 56px;
        height: 56px;
    }

    .bamboo-chat-window {
        width: calc(100vw - var(--space-8));
        height: 450px;
        bottom: 70px;
    }
}

/* ========================================
   PROJECT SLIDE-OUT PANEL
   ======================================== */

/* Overlay */
.project-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 31, 30, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.project-panel-overlay[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

/* Slide-out panel */
.project-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 600px;
    max-width: 90vw;
    height: 100%;
    background: var(--bg-secondary);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    z-index: 1000;
}

.project-panel-overlay[aria-hidden="false"] .project-panel {
    transform: translateX(0);
}

/* Panel header */
.project-panel-header {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    padding: var(--space-6);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.project-panel-title {
    margin: 0;
    font-size: var(--font-heading);
    color: var(--text-primary);
    flex: 1;
    padding-right: var(--space-4);
}

.project-panel-close {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.project-panel-close:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Panel content */
.project-panel-content {
    padding: var(--space-6);
}

/* Panel sections */
.project-panel-section {
    margin-top: var(--space-6);
}

.project-panel-section:first-child {
    margin-top: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .project-panel {
        width: 100vw;
        max-width: 100vw;
    }

    .project-panel-header,
    .project-panel-content {
        padding: var(--space-4);
    }
}

/* ========================================
   EXPERIENCE TIMELINE EXPAND/COLLAPSE
   ======================================== */

/* Expand button */
/* Timeline items are now clickable cards that open the experience panel */
.timeline-item {
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-content {
    background: var(--accent-light);
    border-color: var(--accent-primary);
}
