/* Overlap stacked card borders to eliminate visible pixel gaps (traditional version) */
.stack-card {
    margin: -2px 0 0 0 !important;
    backface-visibility: hidden;
    will-change: transform;
}
/* ===================================
   Custom Scrollbar
   =================================== */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-100);
}

/* ===================================
   Responsive Grid System
   =================================== */

.experience-card--featured,
.experience-card--primary {
    /* default: let the grid auto-place cards; override at breakpoints below */
    grid-column: auto;
}
.experience-card--featured {
    font-size: 1.15rem;
    padding: calc(var(--space-lg) * 1.5) var(--space-2xl);
}
.experience-card--primary {
    font-size: 1.12rem;
    padding: calc(var(--space-lg) * 1.2) var(--space-xl);
}
.experience-grid {
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* keep cards single-column placement here; wider layout handled at 1100px */
    .experience-card--featured,
    .experience-card--primary {
        grid-column: auto;
    }
}


/* Wider layout: 3-column grid and finer placement for featured/primary */
@media (min-width: 1100px) {
    .experience-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
    /* Ensure featured card occupies one column so it can sit beside the UN card */
    .experience-card--featured {
        grid-column: auto;
        padding: calc(var(--space-lg) * 1.5) var(--space-lg);
    }
    .experience-card--primary {
        grid-column: auto;

    .experience-extra::before {
        display: none; /* hide offset divider on narrow screens */
    }
    }
    /* Make images a bit larger in the grid for visual balance */
    .experience-card--featured .experience-image {
        max-width: 520px;
        width: 100%;
        aspect-ratio: 1 / 1; /* force square */
        object-fit: cover;
        border-radius: 8px; /* slight rounding while remaining essentially square */
        border: 6px solid var(--primary); /* blue border */
        box-shadow: 0 8px 32px rgba(38,25,209,0.18);
        margin-bottom: 2.5rem; /* push title and org down */
    }
    .experience-card--primary .experience-image {
        max-width: 320px;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 8px;
        border: 4px solid var(--primary);
        box-shadow: 0 4px 24px rgba(38,25,209,0.12);
        margin-bottom: 1.5rem;
    }
    /* Small cards row: let three small cards sit in a single row automatically */
    .experience-grid .small-card {
        min-height: 180px;
    }
    /* Make NYU card span full row so it pushes small cards below */
    .experience-card--nyu {
        grid-column: 1 / -1;
    }
}
/* Primary Experience Card Emphasis */
.extra-experience {
    margin-top: var(--space-lg);
}
.extra-experience .section-header .eyebrow {
    color: var(--gray-600);
}
.extra-experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
}
.extra-experience .experience-card {
    border: none !important;
    background: var(--gray-100);
    box-shadow: none !important;
    opacity: 0.96;
    padding: calc(var(--space-md));
}
.extra-experience .experience-card .experience-header .experience-image {
    border: none !important;
    box-shadow: none !important;
    max-width: 220px;
    margin-bottom: 1rem;
}
@media (min-width: 1100px) {
    .extra-experience .experience-card {
        min-height: 140px;
    }
}
.extra-experience {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}
.extra-experience .section-header .eyebrow {
    font-size: 0.675rem;
    letter-spacing: 0.18em;
    color: var(--gray-500);
}
.extra-experience .section-title {
    font-size: 1.25rem;
    text-transform: none;
    color: var(--gray-700);
    margin-top: 0.25rem;
}
.extra-experience-grid {
    gap: var(--space-sm);
}
.extra-experience .experience-card {
    background: transparent;
    padding: calc(var(--space-sm));
    opacity: 0.88;
    color: var(--gray-700);
}
.extra-experience .experience-card .experience-title {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.35rem;
}
.extra-experience .experience-card .experience-org {
    font-size: 0.8rem;
    color: var(--gray-500);
}
.extra-experience .experience-list li {
    font-size: 0.9rem;
    color: var(--gray-600);
}
.extra-experience .experience-list li::before {
    content: '';
}
/* Specific lighter styling for the aerospace award card */
.extra-experience .experience-card.aerospace-award {
    opacity: 0.8;
    background: transparent;
    border-left: 3px solid rgba(38,25,209,0.06);
    padding-left: calc(var(--space-sm));
}
/* reduce vertical prominence on wide screens */
@media (min-width: 1100px) {
    .extra-experience {
        padding-top: calc(var(--space-sm));
        padding-bottom: calc(var(--space-sm));
    }
    .extra-experience .section-title {
        font-size: 1rem;
    }
}
/* Prevent the global .experience-card hover effect from applying to Extra Experience */
.extra-experience .experience-card:hover {
    background: transparent !important;
    color: inherit !important;
    transform: none !important;
    box-shadow: none !important;
}
.extra-experience .experience-card:hover .experience-title,
.extra-experience .experience-card:hover .experience-org,
.extra-experience .experience-card:hover .experience-list li {
    color: var(--primary) !important;
}


/* Reduce the vertical spacing for the Extra Experience section to remove large gap */
.section.extra-experience {
    padding-top: calc(var(--space-md) / 2);
    padding-bottom: calc(var(--space-md) / 2);
    margin-top: 0; /* remove extra top margin */
}
@media (min-width: 1100px) {
    .section.extra-experience {
        padding-top: var(--space-md);
        padding-bottom: var(--space-sm);
    }
}
.experience-card--primary {
    border: 3px solid var(--red);
    box-shadow: 0 0 32px 0 rgba(232,25,0,0.10), 0 2px 16px 0 rgba(38,25,209,0.08);
    background: var(--off-white);
    position: relative;
    z-index: 2;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.experience-card--primary:hover {
    border-color: var(--primary);
    box-shadow: 0 0 48px 0 rgba(38,25,209,0.18), 0 4px 32px 0 rgba(232,25,0,0.12);
}


.experience-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(38,25,209,0.12);
    max-width: 220px;
    width: 100%;
    height: auto;
    object-fit: cover;
}
/* ===================================
   Ambrose Sukraj Portfolio
   Inspired by Mamdani Campaign Design
   =================================== */


/* CSS Variables */
:root {
    /* Marble-project inspired palette: off-white, black, and blue */
    --black: #000000;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-600: #757575;
    --gray-800: #424242;


    --marble-light: linear-gradient(135deg, #F5F5F5 0%, #FFFFFF 25%, #EEEEEE 50%, #FFFFFF 75%, #F0F0F0 100%);
    --marble-dark: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 25%, #1E1E1E 50%, #2A2A2A 75%, #242424 100%);


    --primary: #2619D1; /* keep blue as accent */
    --primary-light: #4038e0;
    /* subtle light accent used for buttons/icons on dark backgrounds */
    --accent: #F3F5FF;
    --off-white: #FBFBFD;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.18);


    --transition: 300ms ease;


    /* Paper texture retained */
    --paper-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");


    --font-display: 'unionGothic', 'Arial Black', sans-serif;  /* Bold headlines only */
    --font-serif: 'IBM Plex Serif', Georgia, serif;  /* Body text & secondary elements */
    --font-body: 'IBM Plex Serif', Georgia, serif;  /* Alias for clarity */


    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
}


/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-sm) var(--space-md);
    background: var(--primary);
    color: var(--white);
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
    transition: top var(--transition);
}


.skip-link:focus {
    top: var(--space-sm);
}


/* ===================================
   Header & Navigation
   =================================== */


.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 3px solid var(--black);
    height: 72px;
    transition: background var(--transition), box-shadow var(--transition);
}


.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    text-decoration: none;
    color: var(--black);
    transition: color var(--transition);
}


.logo-text {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}


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


.nav-link {
    font-family: var(--font-display);
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}


.nav-link:hover {
    color: var(--white);
    background: var(--primary);
}


.nav-link.active {
    background: var(--primary);
    color: var(--white);
}


.nav-link--primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
}


.nav-link--primary:hover {
    background: var(--primary-light);
}


/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

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

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

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

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 72px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-2xl) var(--space-lg);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--space-sm) var(--space-md);
        font-size: 1rem;
    }
    
    .nav-link--primary {
        margin-top: var(--space-md);
    }
}


/* ===================================
   Hero Section
   =================================== */


.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--marble-light);
    padding: calc(72px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
    position: relative;
    overflow: hidden;
}


.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--paper-texture);
    pointer-events: none;
    z-index: 0;
}


.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}


.hero-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: var(--space-md);
    position: relative;
}


.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--primary);
    vertical-align: middle;
    margin: 0 var(--space-sm);
    opacity: 0.5;
}


.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 400;
    color: var(--primary);
    line-height: 1.05;
    margin-bottom: var(--space-md);
    letter-spacing: -0.025em;
    text-transform: uppercase;
    position: relative;
    font-kerning: auto;
}


/* Removed duplicate layered text to keep a single hero heading with glow */
.hero-title::before { display: none; }


@keyframes textShift {
    0% {
        left: -6px;
        opacity: 0.85;
    }
    50% {
        left: -8px;
        opacity: 0.7;
    }
    100% {
        left: -4px;
        opacity: 0.9;
    }
}


.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.0625rem, 2.5vw, 1.3125rem);
    color: var(--primary);
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    line-height: 1.75;
    opacity: 0.9;
    font-weight: 400;
}


.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}


.hero-decoration {
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 100%;
    height: 120%;
    background: radial-gradient(ellipse at 70% 50%, rgba(38, 25, 209, 0.12) 0%, rgba(38, 25, 209, 0.06) 40%, transparent 70%);
    pointer-events: none;
    opacity: 0.8;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero-bg-nyc-skyline.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    opacity: 0.12;
    z-index: 0;
}


/* ===================================
   Buttons
   =================================== */


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    height: 52px;
    min-width: 140px;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-radius: 8px; /* square-ish corners */
    border: 2px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all var(--transition);
    background-image: var(--paper-texture);
    background-repeat: repeat;
}


/* Google word multicolor treatment */
.google-logo {
    display: inline-flex;
    gap: 0;
    align-items: baseline;
    vertical-align: baseline;
    font-weight: 700;
}
.google-logo span {
    display: inline-block;
    line-height: 1;
    font-size: 1.1em;
    transition: none;
    font-family: 'Roboto', 'Helvetica Neue', Arial, 'Segoe UI', Roboto, sans-serif;
    font-weight: 800;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.google-logo .g1 { color: #4285F4; } /* G - blue */
.google-logo .g2 { color: #DB4437; } /* o - red */
.google-logo .g3 { color: #F4B400; } /* o - yellow */
.google-logo .g4 { color: #4285F4; } /* g - blue */
.google-logo .g5 { color: #0F9D58; } /* l - green */
.google-logo .g6 { color: #DB4437; } /* e - red */


/* Preserve Google colors even if parent .experience-org changes on hover */
.experience-org .google-logo .g1,
.experience-org:hover .google-logo .g1 { color: #4285F4 !important; }
.experience-org .google-logo .g2,
.experience-org:hover .google-logo .g2 { color: #DB4437 !important; }
.experience-org .google-logo .g3,
.experience-org:hover .google-logo .g3 { color: #F4B400 !important; }
.experience-org .google-logo .g4,
.experience-org:hover .google-logo .g4 { color: #4285F4 !important; }
.experience-org .google-logo .g5,
.experience-org:hover .google-logo .g5 { color: #0F9D58 !important; }
.experience-org .google-logo .g6,
.experience-org:hover .google-logo .g6 { color: #DB4437 !important; }




.btn--primary {
    background: var(--primary);
    color: var(--white);
    border-color: rgba(0,0,0,0.06);
    background-image: linear-gradient(rgba(255,255,255,0.02), rgba(0,0,0,0.02)), var(--paper-texture);
    background-blend-mode: overlay, normal;
}


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


.btn--secondary {
    background: var(--off-white);
    color: var(--primary);
    border-color: rgba(38,25,209,0.12);
    background-image: var(--paper-texture);
    background-blend-mode: multiply;
}


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


.btn--secondary-light {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--primary);
}


.btn--secondary-light:hover {
    background: var(--white);
}


/* ===================================
   Sections
   =================================== */


.section {
    padding: var(--space-3xl) var(--space-lg);
}


.section--white {
    background: var(--white);
    position: relative;
}


.section--white::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--paper-texture);
    pointer-events: none;
    z-index: 0;
}


.section--white > * {
    position: relative;
    z-index: 1;
}


.section--yellow {
    background: var(--accent);
    position: relative;
}


.section--yellow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--paper-texture);
    pointer-events: none;
    z-index: 0;
}


.section--yellow > * {
    position: relative;
    z-index: 1;
}


.section--blue {
    background: var(--primary);
}


.section--blue-accent {
    background: linear-gradient(135deg, var(--primary) 0%, #1a0fa0 100%);
    position: relative;
    overflow: hidden;
}


.section--blue-accent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--paper-texture);
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}


.section--blue-accent > * {
    position: relative;
    z-index: 1;
}


.section--dark {
    background: var(--black);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
}


.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.extra-experience .section-header {
    margin-bottom: calc(var(--space-md) / 2);
    padding-bottom: calc(var(--space-md) / 2);
    border-bottom: 1px solid var(--gray-300);
}


.eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}


.eyebrow--light {
    color: var(--white);
}


.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-kerning: auto;
}


.section-title--light {
    color: var(--white);
}


.section-header--light .eyebrow {
    color: var(--white);
}


.section-header--light .section-title {
    color: var(--white);
}


.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-top: var(--space-sm);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}


.section-subtitle--light {
    color: rgba(255, 255, 255, 0.85);
}


/* ===================================
   Transition Readiness Section
   =================================== */


.transition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}


.transition-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}


.transition-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}


.transition-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0;
}


.transition-card__text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 400;
}


@media (min-width: 768px) {
    .transition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}


@media (min-width: 1200px) {
    .transition-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
    }
    
    .transition-card {
        padding: var(--space-lg);
    }
    
    .transition-card__title {
        font-size: 1.1rem;
    }
    
    .transition-card__text {
        font-size: 0.9rem;
    }
}


/* ===================================
   About Section
   =================================== */


.about-content {
    max-width: 1100px;
    margin: 0 auto;
}


.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}


@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}


.about-card {
    padding: var(--space-xl);
    border-radius: 12px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}


.about-card--highlight {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border: 2px solid #e8ebff;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}


.about-card--highlight:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 16px 48px rgba(38, 25, 209, 0.12);
}


.about-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 10px;
    color: var(--white);
    flex-shrink: 0;
}


.about-card__icon svg {
    width: 28px;
    height: 28px;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.about-card__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.2;
}


.about-card__text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--gray-700);
    margin: 0;
    font-weight: 400;
}


.about-statement {
    background: linear-gradient(135deg, var(--primary) 0%, #1a0fa0 100%);
    border-radius: 16px;
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}


.about-statement::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--paper-texture);
    opacity: 0.2;
    pointer-events: none;
}


.about-statement__highlight {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0;
    position: relative;
    z-index: 1;
}


@media (min-width: 1024px) {
    .about-statement__highlight {
        font-size: 1.85rem;
    }
}


.about-text p {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--gray-800);
    margin-bottom: var(--space-lg);
    font-weight: 400;
}


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



/* ===================================
   Experience Section
   =================================== */


.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-md);
}

.experience-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}


.experience-card {
    background: var(--white);
    border: 2px solid var(--primary);
    padding: var(--space-lg);
    transition: all var(--transition);
    transform-origin: center;
    will-change: transform;
}


.experience-card:hover {
    background: var(--primary);
    color: var(--white);
    /* Minimal tilt and static scale */
    transform: scale(1.01) rotate(-0.5deg);
    /* Subtle mouse-following glow */
    box-shadow: var(--shadow-xl), var(--mouse-glow, 0 0 0px 0px rgba(38,25,209,0));
}


.experience-card:hover .experience-title,
.experience-card:hover .experience-org,
.experience-card:hover .experience-list li {
    color: var(--white);
}


.experience-card:hover .experience-link {
    color: var(--accent);
}


.experience-card--featured {
    grid-column: span 2;
    position: relative;
    background: var(--white);
    box-shadow:
        0 0 40px rgba(38,25,209,0.38),
        0 0 80px rgba(38,25,209,0.22),
        0 0 120px rgba(38,25,209,0.12);
    animation: ambientGlow 3s ease-in-out infinite alternate;
}




.experience-card--featured {
    grid-column: span 2;
    position: relative;
    background: var(--white);
    box-shadow:
        0 0 40px 10px rgba(38,25,209,0.42),
        0 0 80px 20px rgba(38,25,209,0.24),
        0 0 120px 40px rgba(38,25,209,0.12);
    animation: ambientGlow 3s ease-in-out infinite alternate;
    z-index: 1;
}


.experience-card--featured::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 16px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 60% 40%, rgba(38,25,209,0.2) 0%, rgba(38,25,209,0.08) 60%, transparent 100%);
    filter: blur(2px);
    opacity: 1;
    transition: opacity 0.4s;
    animation: ambientGlowBg 3s ease-in-out infinite alternate;
}


/* Heavy animations removed for performance */


/* ===================================
   Experience Split Layout
   =================================== */
.experience-split {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-xl);
    align-items: center;
}

/* Move the entire Experience section 50px left */
.experience-split {
    transform: translateX(-150px);
}

.experience-main {
    position: relative;
    display: flex;
    flex-direction: column;
}

.experience-main .section-header {
    width: 100%;
}

/* Nudge Experience header 100px to the right for visual alignment */
.experience-main .section-header {
    transform: translateX(350px);
}

.experience-extra .section-header {
    width: 100%;
}

.experience-extra {
    position: relative;
    padding-left: var(--space-lg);
    border-left: none; /* replaced by pseudo-element to allow offset */
    display: flex;
    flex-direction: column;
}

/* Draw the vertical divider shifted 25px left of the extra column */
.experience-extra::before {
    content: '';
    position: absolute;
    left: -50px; /* shift the divider 50px left (moved 25px further) */
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

.section-header--small {
    margin-bottom: var(--space-md);
}

.section-header--small .section-title--small {
    font-size: 1.5rem;
}

.section-header--small .eyebrow--small {
    font-size: 0.7rem;
}

/* ===================================
   Card Stack Carousel
   =================================== */
.card-stack {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: var(--space-sm);
    min-height: 700px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.stack-card {
    position: absolute;
    top: var(--space-sm);
    left: 50%;
    width: 600px;
    max-width: 95%;
    background: #FDF8F0;
    border: 3px solid var(--primary);
    border-radius: 0;
    overflow: hidden;
    transform: translateX(-50%) rotate(0deg);
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), 
                box-shadow 0.5s ease,
                opacity 0.5s ease,
                top 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
                left 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
                width 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
                z-index 0s 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

/* SVG Icon styles */
.stack-card__svg-icon {
    width: 56px;
    height: 56px;
    fill: var(--white);
}

/* Stacked cards behind - MORE VISIBLE offset with subtle opacity blend */
.stack-card:nth-child(1) {
    z-index: 3;
}

.stack-card:nth-child(2) {
    z-index: 2;
    transform: translateX(calc(-50% + 30px)) rotate(4deg);
    top: calc(var(--space-sm) + 15px);
    opacity: 0.92;
}

.stack-card:nth-child(3) {
    z-index: 1;
    transform: translateX(calc(-50% + 60px)) rotate(8deg);
    top: calc(var(--space-sm) + 30px);
    opacity: 0.85;
}

/* Active card state */
.stack-card--active {
    z-index: 10 !important;
    transform: translateX(-50%) rotate(-1deg) !important;
    top: var(--space-sm) !important;
    box-shadow: 8px 8px 0 rgba(38, 25, 209, 0.3);
    opacity: 1 !important;
}

.stack-card--active:hover {
    background: var(--primary);
    transform: translateX(-50%) rotate(0deg) scale(1.01) !important;
}

.stack-card--active:hover .stack-card__content {
    background: var(--primary);
}

.stack-card--active:hover .stack-card__title,
.stack-card--active:hover .stack-card__subtitle,
.stack-card--active:hover .stack-card__role,
.stack-card--active:hover .stack-card__list li {
    color: var(--white) !important;
}

.stack-card--active:hover .stack-card__list li {
    border-color: rgba(255, 255, 255, 0.2);
}

.stack-card--active:hover .stack-card__link {
    background: var(--white);
    color: var(--primary);
}

/* Card Number Label */
.stack-card__number {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    z-index: 0;
    box-shadow: 0 2px 8px rgba(38, 25, 209, 0.25);
}

.stack-card--active .stack-card__number {
    z-index: 5;
}

.stack-card--active:hover .stack-card__number {
    background: var(--white);
    color: var(--primary);
}

/* Adjust Marble Project card number position */
#mainCardStack .stack-card[data-card="1"] .stack-card__number {
    top: 26px;
    right: 26px;
}

/* Adjust UN Youth Delegate card number position */
#mainCardStack .stack-card[data-card="2"] .stack-card__number {
    top: 26px;
    right: 26px;
}

/* Card Image Area - 16:9 ratio at top */
.stack-card__image-area {
    background: var(--primary);
    padding: var(--space-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.stack-card__image-area--no-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    aspect-ratio: 16 / 9;
}

.stack-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.stack-card__image--logo {
    object-fit: contain;
    width: 120px;
    height: auto;
    max-height: 80%;
}

.stack-card__image-area--logo {
    background: white;
    aspect-ratio: 16 / 9;
}

.stack-card__icon {
    font-size: 3rem;
}

/* Card Content */
.stack-card__content {
    padding: var(--space-md);
    background: #FDF8F0;
    transition: background var(--transition);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stack-card__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.15rem;
    letter-spacing: -0.02em;
    transition: color var(--transition);
}

.stack-card__subtitle {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    transition: color var(--transition);
}

.stack-card__role {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    transition: color var(--transition);
}

/* Card List (No arrows) */
.stack-card__list {
    list-style: none;
    margin: 0 0 var(--space-sm) 0;
    padding: 0;
}

.stack-card__list li {
    position: relative;
    padding-left: 0;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--gray-800);
    transition: color var(--transition);
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(38, 25, 209, 0.08);
}

.stack-card__list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Card Link */
.stack-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--white);
    background: var(--primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stack-card__link:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Card Navigation - Below card-stack */
.card-stack__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    margin-top: var(--space-lg);
    background: transparent;
    border-top: none;
    position: relative;
    z-index: 1;
}

.card-stack__controls--small {
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    margin-top: 0;
}

.card-stack__nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Pause Button */
.card-stack__pause {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.card-stack__pause svg {
    width: 16px;
    height: 16px;
}

.card-stack__pause:hover {
    background: var(--primary);
    color: var(--white);
}

.card-stack__pause:hover svg {
    fill: var(--white);
}

/* Default state: paused (show play icon) */
.card-stack__pause svg.play-icon {
    display: block;
}

.card-stack__pause svg.pause-icon {
    display: none;
}

/* Playing state: show pause icon */
.card-stack__pause--playing svg.pause-icon {
    display: block;
}

.card-stack__pause--playing svg.play-icon {
    display: none;
}

.card-stack__btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.card-stack__btn svg {
    width: 18px;
    height: 18px;
}

.card-stack__btn:hover {
    background: var(--primary);
    color: var(--white);
}

.card-stack__btn:hover svg {
    stroke: var(--white);
}

.card-stack__dots {
    display: flex;
    gap: 6px;
}

.card-stack__dot {
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.card-stack__dot--active {
    background: var(--primary);
}

.card-stack__dot:hover {
    background: var(--primary-light);
}

/* View Toggle Button */
.card-stack__toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}

.card-stack__toggle:hover {
    background: var(--primary);
    color: var(--white);
}

.card-stack__toggle:hover svg {
    stroke: var(--white);
}

.card-stack__toggle svg.toggle-icon {
    width: 16px;
    height: 16px;
}

/* Spread View Mode */
.card-stack--spread {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: var(--space-lg);
    min-height: auto;
    padding: var(--space-md);
    overflow-x: auto;
}

.card-stack--spread .stack-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    transform: none;
    width: 340px;
    max-width: 100%;
    flex-shrink: 0;
    opacity: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

.card-stack--spread .stack-card:nth-child(1),
.card-stack--spread .stack-card:nth-child(2),
.card-stack--spread .stack-card:nth-child(3) {
    z-index: auto;
    transform: none;
    top: auto !important;
}

.card-stack--spread .stack-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 40px rgba(38, 25, 209, 0.25);
}

/* When main cards are spread, change layout to stack vertically */
.experience-split:has(.card-stack--spread:not(.card-stack--extra)) {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

.experience-split:has(.card-stack--spread:not(.card-stack--extra)) .experience-extra {
    border-left: none;
    border-top: 3px solid var(--primary);
    padding-left: 0;
    padding-top: var(--space-lg);
}

/* Fallback for browsers without :has() support */
.experience-split--main-spread {
    grid-template-columns: 1fr !important;
    gap: var(--space-2xl);
}

.experience-split--main-spread .experience-extra {
    border-left: none;
    border-top: 3px solid var(--primary);
    padding-left: 0;
    padding-top: var(--space-lg);
}

/* Extra cards spread VERTICALLY when next to big cards (default) */
.card-stack--extra.card-stack--spread {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    min-height: auto;
}

.card-stack--extra.card-stack--spread .stack-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

/* Extra cards spread HORIZONTALLY when below big cards (main spread) */
.experience-split--main-spread .card-stack--extra.card-stack--spread {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: var(--space-lg);
}

/* Also use :has() for browsers that support it */
.experience-split:has(.card-stack--spread:not(.card-stack--extra)) .card-stack--extra.card-stack--spread {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: var(--space-lg);
}

/* Extra Cards - Smaller variant for sidebar */
.card-stack--extra {
    min-height: 340px;
    margin-bottom: 0;
    padding: var(--space-sm);
}

.card-stack--extra .stack-card--small {
    width: 320px;
    max-width: 100%;
}

.card-stack--extra .stack-card--small:nth-child(2) {
    transform: translateX(calc(-50% + 20px)) rotate(4deg);
    top: calc(var(--space-sm) + 12px);
}

.card-stack--extra .stack-card--small:nth-child(3) {
    transform: translateX(calc(-50% + 40px)) rotate(8deg);
    top: calc(var(--space-sm) + 24px);
}

.card-stack--extra .stack-card__image-area {
    min-width: 100px;
    max-width: 120px;
    padding: var(--space-sm);
    aspect-ratio: 1 / 1;
}

.card-stack--extra .stack-card__svg-icon {
    width: 36px;
    height: 36px;
}

.card-stack--extra .stack-card__content {
    padding: var(--space-sm);
}

.card-stack--extra .stack-card__title {
    font-size: 0.95rem;
}

.card-stack--extra .stack-card__subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.card-stack--extra .stack-card__role {
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
}

.card-stack--extra .stack-card__list {
    margin-bottom: 0;
}

.card-stack--extra .stack-card__list li {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
    padding-bottom: 0.2rem;
}

/* Spread mode for extra cards */
.card-stack--extra.card-stack--spread .stack-card--small {
    width: 300px;
}

/* Responsive - Split Layout */
@media (max-width: 1024px) {
    .experience-split {
        grid-template-columns: 1fr 320px;
        gap: var(--space-lg);
    }
    
    .card-stack--extra .stack-card--small {
        width: 280px;
    }
}

@media (max-width: 900px) {
    .experience-split {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    /* disable horizontal translation on narrow screens */
    .experience-split {
        transform: none;
    }
    
    .experience-extra {
        border-left: none;
        border-top: 3px solid var(--primary);
        padding-left: 0;
        padding-top: var(--space-lg);
    }
    
    .card-stack--extra .stack-card--small {
        width: 400px;
    }
}

/* Responsive Card Stack */
@media (max-width: 768px) {
    /* Hide desktop carousel controls */
    .card-stack__controls {
        display: none;
    }
    
    /* Convert card stack to vertical list - ALL CARDS VISIBLE */
    .card-stack {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: var(--space-lg);
        padding: 0;
        padding-right: 50px; /* Make room for sticky nav */
        min-height: auto;
        overflow: visible;
    }
    
    /* Make all cards static, full width, and VISIBLE */
    .stack-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    
    /* Remove active-only visibility - all cards shown */
    .stack-card--active {
        opacity: 1;
        height: auto;
        overflow: visible;
        pointer-events: auto;
        box-shadow: 8px 8px 0 rgba(38, 25, 209, 0.3);
    }
    
    .stack-card:nth-child(2),
    .stack-card:nth-child(3) {
        transform: none !important;
        top: auto !important;
    }
    
    .stack-card__image-area {
        min-width: auto;
        max-width: none;
        aspect-ratio: 16 / 9;
    }
    
    /* Mobile vertical navigation - STICKY on right side, follows user */
    .card-stack__mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-xs);
        position: fixed;
        right: var(--space-sm);
        top: 50%;
        transform: translateY(-50%);
        z-index: 50;
        background: rgba(255, 255, 255, 0.95);
        padding: var(--space-sm) var(--space-xs);
        border-radius: 24px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    /* Show mobile nav only when in experience section */
    .card-stack__mobile-nav.mobile-nav--visible {
        opacity: 1;
        pointer-events: auto;
    }
    
    .card-stack__mobile-btn {
        width: 36px;
        height: 36px;
        border: 2px solid var(--primary);
        background: var(--white);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .card-stack__mobile-btn:hover,
    .card-stack__mobile-btn:active {
        background: var(--primary);
        color: var(--white);
    }
    
    .card-stack__mobile-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .card-stack__mobile-dots {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: var(--space-sm) 0;
    }
    
    .card-stack__mobile-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--gray-300);
        cursor: pointer;
        transition: all 0.2s ease;
        border: 2px solid transparent;
    }
    
    .card-stack__mobile-dot--active {
        background: var(--primary);
        transform: scale(1.2);
        border-color: var(--primary);
    }
    
    /* Extra cards on mobile */
    .card-stack--extra {
        min-height: auto;
        gap: var(--space-md);
    }
    
    .card-stack--extra .stack-card--small {
        width: 100%;
        max-width: 100%;
    }
    
    /* Hide spread toggle on mobile */
    .card-stack__toggle {
        display: none;
    }
    
    /* Experience split adjustments */
    .experience-split {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .experience-extra {
        border-left: none;
        border-top: 3px solid var(--primary);
        padding-left: 0;
        padding-top: var(--space-lg);
    }
}

/* Hide mobile nav on desktop */
.card-stack__mobile-nav {
    display: none;
}

@media (max-width: 600px) {
    .stack-card__title {
        font-size: 1rem;
    }
    
    .stack-card__subtitle {
        font-size: 0.85rem;
    }
    
    .stack-card__list li {
        font-size: 0.8rem;
    }
    
    .card-stack {
        padding-right: 45px; /* Slightly less room for nav on smaller screens */
    }
    
    .card-stack__mobile-nav {
        right: 6px;
        padding: var(--space-xs);
        border-radius: 20px;
    }
    
    .card-stack__mobile-btn {
        width: 32px;
        height: 32px;
    }
    
    .card-stack__mobile-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .card-stack__mobile-dot {
        width: 10px;
        height: 10px;
    }
}


/* Ensure proper spacing at bottom of Experience section */
#experience.section,
.section--yellow {
    padding-bottom: var(--space-2xl);
    overflow: visible;
}


/* Ensure Explore button has a visible background even if --accent was missing */
.btn--secondary-light {
    background: var(--accent, #F3F5FF) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn--secondary-light:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}


/* Make project details icons and SVGs visible on the blue project section */
.project-showcase .project-details,
.project-showcase .project-details {
    color: var(--white) !important;
}
/* Keep icons/text white in project details but allow buttons to use their own colors */
.project-showcase .project-details .btn--secondary-light {
    color: var(--primary);
}
.project-showcase .project-details .feature-icon {
    color: var(--white) !important;
}


/* For safety, in case any icon rules force var(--accent), prefer white inside project-details */
.project-showcase .project-details .icon--chart,
.project-showcase .project-details .icon--search,
.project-showcase .project-details .icon--megaphone,
.project-showcase .project-details .icon--presentation {
    color: var(--white) !important;
}


/* Make specific boxes' inner text turn white when the box is hovered */
/* Featured experience card */
.experience-card--featured:hover .experience-title,
.experience-card--featured:hover .experience-org,
.experience-card--featured:hover .experience-list li {
    color: var(--white) !important;
}


/* Primary experience card */
.experience-card--primary:hover .experience-title,
.experience-card--primary:hover .experience-org,
.experience-card--primary:hover .experience-list li {
    color: var(--white) !important;
}


/* Project details box: make inner text white when the details panel is hovered */
.project-showcase .project-details:hover,
.project-showcase .project-details:hover .project-title,
.project-showcase .project-details:hover .project-description,
.project-showcase .project-details:hover .project-features li,
.project-showcase .project-details:hover .feature-icon {
    color: var(--white) !important;
}




@keyframes glowBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.experience-header {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gray-200);
}


.experience-card:hover .experience-header {
    border-color: rgba(255, 255, 255, 0.3);
}


.experience-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: var(--space-xs);
    transition: color var(--transition);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.2;
}


.experience-org {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    transition: color var(--transition);
}


.experience-list {
    list-style: none;
    margin-bottom: var(--space-md);
}


.experience-list li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-800);
    transition: color var(--transition);
}


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

.experience-card--featured .experience-list li::before {
    content: '';
}


.experience-card:hover .experience-list li::before {
    color: var(--accent);
}


.experience-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
    background: var(--primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: var(--space-md);
}



.experience-link:hover {
    background: var(--primary-light);
    /* Extremely subtle tilt and scale */
    transform: scale(1.005) rotate(-0.5deg) translate(-0.5px, -0.5px);
    box-shadow: 0 4px 10px rgba(38, 25, 209, 0.18);
    text-decoration: none;
    transition: transform 180ms var(--transition), box-shadow 180ms var(--transition), background 180ms var(--transition);
}


/* ===================================
   Project Showcase (Marble Project)
   =================================== */


.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}


.video-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--black);
    box-shadow: var(--shadow-xl);
}


.showcase-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}


.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}


.video-play-btn:hover {
    background: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}


.video-play-btn.playing {
    opacity: 0;
    pointer-events: none;
}


.video-caption {
    text-align: center;
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    color: var(--gray-300);
    font-style: italic;
}


.project-details {
    color: var(--white);
}


.project-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}


.project-description {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    opacity: 0.95;
    font-weight: 400;
}


.project-features {
    list-style: none;
    margin-bottom: var(--space-lg);
}


.project-features li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}


.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}


.feature-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}


.icon--chart { color: var(--accent); }
.icon--search { color: var(--primary-light); }
.icon--megaphone { color: var(--red); }
.icon--presentation { color: var(--primary); }


/* ===================================
   Skills Section
   =================================== */


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}


.skill-card {
    background: var(--gray-100);
    padding: var(--space-lg);
    border-radius: 4px;
    text-align: center;
    transition: all var(--transition);
    will-change: transform;
    transform-origin: center;
}


.skill-card:hover {
    background: var(--accent);
    transform: translateY(-4px) rotate(-2deg) scale(1.05);
    box-shadow: var(--shadow-lg);
}


.skill-icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--primary);
}


.skill-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.2;
}


.skill-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}


.skill-card:hover .skill-description {
    color: var(--primary);
}


/* ===================================
   Contact Section
   =================================== */


.contact-content {
    max-width: 600px;
    margin: 0 auto;
}


.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}


.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background var(--transition);
}


.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
}


.contact-item svg {
    flex-shrink: 0;
    color: var(--accent);
}


.contact-item a,
.contact-item span {
    color: var(--white);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    transition: color var(--transition);
}


.contact-item a:hover {
    color: var(--accent);
}


/* ===================================
   Footer
   =================================== */


.footer {
    background: var(--black);
    color: var(--gray-300);
    padding: var(--space-lg);
    text-align: center;
    border-top: 2px solid var(--accent);
}


.footer-content p {
    font-size: 0.875rem;
}


/* ===================================
   Responsive Design
   =================================== */


@media (max-width: 1024px) {
    .project-showcase {
        grid-template-columns: 1fr;
    }


    .experience-card--featured {
        grid-column: span 1;
    }
}


@media (max-width: 768px) {
    .hero {
        padding-top: calc(72px + var(--space-xl));
    }


    .hero-eyebrow::before,
    .hero-eyebrow::after {
        display: none;
    }


    .hero-actions {
        flex-direction: column;
        align-items: center;
    }


    .section {
        padding: var(--space-2xl) var(--space-md);
    }


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


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


/* ===================================
   Animations
   =================================== */


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


@keyframes shake {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(-5px) rotate(-1deg);
    }
    75% {
        transform: translateX(5px) rotate(1deg);
    }
}


@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}


@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes slideInFromCenter {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.experience-card--featured {
    grid-column: span 2;
    position: relative;
    background: var(--white);
    box-shadow:        0 0 40px 10px rgba(38,25,209,0.42),        0 0 80px 20px rgba(38,25,209,0.24),        0 0 120px 40px rgba(38,25,209,0.12);
    animation: ambientGlow 3s ease-in-out infinite alternate;
    z-index: 1;
    -webkit-animation: ambientGlow 3s ease-in-out infinite alternate;
}


@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


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


.hero-content {
    animation: fadeInUp 0.8s ease-out;
}


.section-header {
    animation: fadeInUp 0.7s ease-out;
}

.about-text {
    animation: fadeInUp 0.7s ease-out;
    animation-fill-mode: both;
}


.about-text p {
    animation: fadeInUp 0.7s ease-out;
    animation-fill-mode: both;
}


.about-text p:nth-child(1) { animation-delay: 0.1s; }
.about-text p:nth-child(2) { animation-delay: 0.2s; }
.about-text p:nth-child(3) { animation-delay: 0.3s; }


.experience-card,
.skill-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}


.experience-card:nth-child(1) { animation-delay: 0.1s; }
.experience-card:nth-child(2) { animation-delay: 0.2s; }
.experience-card:nth-child(3) { animation-delay: 0.3s; }
.experience-card:nth-child(4) { animation-delay: 0.4s; }
.experience-card:nth-child(5) { animation-delay: 0.5s; }
.experience-card:nth-child(6) { animation-delay: 0.6s; }
.experience-card:nth-child(7) { animation-delay: 0.7s; }


.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.15s; }
.skill-card:nth-child(3) { animation-delay: 0.2s; }
.skill-card:nth-child(4) { animation-delay: 0.25s; }
.skill-card:nth-child(5) { animation-delay: 0.3s; }
.skill-card:nth-child(6) { animation-delay: 0.35s; }

/* ===================================
   Responsive Design - Mobile First
   =================================== */

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .hero {
        padding: calc(72px + var(--space-lg)) var(--space-sm) var(--space-lg);
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section {
        padding: var(--space-2xl) var(--space-sm);
    }
    
    .experience-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-md);
    }
    
    .experience-card {
        padding: var(--space-md);
    }
    
    .experience-card--featured {
        grid-column: 1 !important;
        padding: var(--space-md);
    }
    
    .experience-image {
        max-width: 100% !important;
        margin-bottom: 1rem !important;
    }
}

/* Tablet (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 7vw, 4rem);
    }
    
    .experience-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg);
    }
    
    .experience-card--featured {
        grid-column: 1 !important;
        padding: var(--space-lg);
    }
    
    .experience-card {
        padding: var(--space-md);
    }
    
    .experience-image {
        max-width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .project-showcase {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .video-container {
        order: -1;
    }
}

/* Tablet Landscape / Small Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .experience-card--featured {
        grid-column: span 2;
    }
}

/* Large Desktop (1025px+) */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
    
    .experience-card:hover {
        transform: scale(1.01) rotate(-0.5deg);
    }
}

/* Ultra-wide (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: clamp(4rem, 6vw, 6rem);
    }
}

/* Ensure smooth transitions on all screen sizes */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Hide native scrollbars while preserving scroll behavior */
html, body {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Chrome, Safari, Opera */
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Keep focus outlines accessible for keyboard users */
:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}



