:root {
    --bg-dark: #050a05;
    --bg-darker: #020502;
    --primary-green: #00FF41;
    --emerald: #2ecc71;
    --lime: #a2ff00;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    /* Lenis handles smooth scrolling */
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- LOADING SCREEN --- */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

}
.loading-content {
    padding: 4rem;
    z-index: 2;
}
.boot-lines {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--text-muted);
}
.boot-line {
    opacity: 0;
}
.boot-prefix {
    color: var(--primary-green);
}
.boot-status {
    color: var(--text-muted);
}
.boot-dots {
    color: var(--text-muted);
}
.boot-line.done .boot-status {
    color: var(--primary-green);
}
.loading-screen .progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 255, 65, 0.1);
    z-index: 3;
}
.glitch-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 65, 0.15);
    z-index: 3;
    opacity: 0;
    pointer-events: none;
}
.white-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}
.shockwave-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 4px solid var(--primary-green);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.6), inset 0 0 40px rgba(0, 255, 65, 0.3);
}
.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary-green);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}
.loading-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 65, 0.02) 2px, rgba(0, 255, 65, 0.02) 4px);
    pointer-events: none;
    z-index: 1;
}
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
}
.glitch-text {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--primary-green);
    text-shadow: 5px 0 #ff0000, -5px 0 #00ffff, 8px 0 #ff0000, -8px 0 #00ffff;
}
.glitch-sub {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
.burst-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
}
.burst-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--primary-green), transparent);
    transform-origin: center center;
    opacity: 0;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}
.burst-line:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) scale(0); }
.burst-line:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg) scale(0); }
.burst-line:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg) scale(0); }
.burst-line:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg) scale(0); }
.burst-line:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg) scale(0); }
.burst-line:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg) scale(0); }
.burst-line:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg) scale(0); }
.burst-line:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg) scale(0); }

.loading-screen.glitching {
    animation: glitchShake 0.08s infinite;
}

@keyframes glitchPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.4; }
}
@keyframes glitchShake {
    0% { transform: translate(0, 0) skewX(0deg); }
    20% { transform: translate(-8px, 5px) skewX(-5deg); }
    40% { transform: translate(8px, -5px) skewX(5deg); }
    60% { transform: translate(-5px, 8px) skewX(-3deg); }
    80% { transform: translate(5px, -8px) skewX(3deg); }
    100% { transform: translate(0, 0) skewX(0deg); }
}
@keyframes burstExpand {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    30% { opacity: 0.7; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* --- GLOBAL ELEMENTS --- */
.hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    will-change: transform;
}
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-green);
    z-index: 1001;
    box-shadow: 0 0 10px var(--primary-green);
}
.ambient-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.2;
    border-radius: 50%;
    background: var(--primary-green);
    will-change: transform;
}
.shape-1 { width: 400px; height: 400px; top: -10%; left: -10%; background: var(--primary-green); }
.shape-2 { width: 300px; height: 300px; bottom: 10%; right: 10%; background: var(--emerald); }
.shape-3 { width: 500px; height: 500px; top: 40%; left: 50%; background: var(--lime); opacity: 0.1; }

/* --- NAVIGATION --- */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(5, 10, 5, 0.7);
    border-bottom: 1px solid var(--glass-border);
}
.logo {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -1px;
    color: var(--primary-green);
}
.cursor-blink { animation: blink 1s step-end infinite; }
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
    opacity: 0.7;
}
.nav-links a:hover { color: var(--primary-green); opacity: 1; }

/* --- SLIDE SYSTEM --- */
.main-container { width: 100%; }
.slide {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 4rem;
    overflow: hidden;
}
.slide-content { width: 100%; max-width: 1200px; z-index: 2; }

/* --- HERO --- */
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-align: center;
}
.text-gradient {
    background: linear-gradient(to right, var(--primary-green), var(--lime));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
    text-align: center;
}
.hero-cta { display: flex; gap: 20px; justify-content: center; }

/* --- HERO TERMINAL SPLIT --- */
.hero-split .slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
}
.hero-split-left {
    text-align: left;
}
.hero-split-left .hero-title {
    text-align: left;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}
.hero-split-left .hero-subtitle {
    text-align: left;
    margin-bottom: 2.5rem;
}
.hero-split-left .hero-cta {
    justify-content: flex-start;
}
.hero-split-right {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-terminal {
    width: 100%;
    max-width: 420px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.term-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 1rem;
    display: flex;
    gap: 7px;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}
.term-header span {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.7rem;
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ff5f56; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #27c93f; }
.term-body {
    padding: 1.25rem;
    color: var(--text-muted);
    min-height: 220px;
}
.term-line {
    margin-bottom: 0.3rem;
    opacity: 0;
}
.term-prompt { color: var(--primary-green); margin-right: 0.5rem; }
.term-cursor {
    display: inline-block;
    width: 7px; height: 14px;
    background: var(--primary-green);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}
.term-output { color: var(--text-main); }
.term-highlight { color: var(--primary-green); }

@media (max-width: 1024px) {
    .hero-split .slide-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-split-left {
        text-align: center;
    }
    .hero-split-left .hero-title,
    .hero-split-left .hero-subtitle {
        text-align: center;
    }
    .hero-split-left .hero-cta {
        justify-content: center;
    }
    .hero-split-right {
        order: -1;
    }
    .hero-terminal {
        max-width: 100%;
    }
}
.btn-primary {
    background: var(--primary-green);
    color: var(--bg-darker);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}
.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.btn-secondary:hover { background: var(--glass-bg); }
.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}
.floating-card {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 24px;
}
.card-1 { width: 200px; height: 200px; top: 20%; left: 15%; }
.card-2 { width: 150px; height: 150px; bottom: 20%; right: 15%; }
.card-3 { width: 100px; height: 100px; top: 50%; right: 25%; }

/* --- MARQUEE --- */
.marquee-section {
    width: 100%;
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}
.marquee-hint {
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary-green);
    opacity: 0.6;
    pointer-events: none;
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}
.marquee-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.marquee-container::-webkit-scrollbar {
    display: none;
}

/* Skills marquee - scrollable + auto-scroll */
.skills-marquee {
    overflow: visible;
}
.skills-marquee .marquee-container {
    overflow-x: scroll;
    touch-action: none;
    cursor: grab;
}
.skills-marquee .marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
}
.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 10px 20px;
}
.marquee-item {
    width: 300px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    will-change: transform;
    user-select: none;
    pointer-events: auto;
}
.marquee-item.clicked {
    transform: scale(0.95);
}
.skill-item {
    width: 180px;
    height: 80px;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.skill-item:hover {
    color: var(--text-main);
}
.marquee-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary-green);
    margin-bottom: 10px;
    opacity: 0.7;
}
.marquee-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}
.marquee-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    max-width: 260px;
    opacity: 0.8;
    line-height: 1.4;
}
.marquee-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--primary-green);
    transform: scale(1.05);
}

/* --- GLASS ELEMENTS --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.glass-card:hover {
    border-color: var(--primary-green);
    background: rgba(0, 255, 65, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.12);
}
.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

/* --- APPLE-STYLE ABOUT SCROLL SECTION --- */
.about-scroll-section {
    height: 400vh; /* 4x viewport height for scroll duration */
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.about-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-content-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-width: 1400px;
    width: 100%;
    padding: 4rem;
    gap: 4rem;
    align-items: center;
}

/* About Text Stage */
.about-text-side {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    height: 100%;
}
.about-text-stage {
    position: relative;
    width: 100%;
    height: 480px;
    z-index: 3;
}
.about-text-block {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    max-width: 600px;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    padding: 0;
    text-align: left;
}
.about-text-block.active {
    opacity: 1;
    pointer-events: auto;
}
.text-step-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary-green);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.text-block-headline {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}
.text-block-body {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 540px;
}

/* About Cards Side — Step Visual Stage */
.about-cards-side {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-visual-stage {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 340px;
}
.about-visual {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity, filter;
}
.about-visual.active {
    opacity: 1;
    pointer-events: auto;
}

/* China Map Visual */
.china-map-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.china-map-svg .china-outline {
    fill: url(#map-fill-about);
    stroke: var(--primary-green);
    stroke-width: 1.5;
    stroke-linejoin: round;
    opacity: 0.85;
}
.china-map-svg .map-bay {
    fill: var(--bg-darker);
    stroke: rgba(0, 255, 65, 0.25);
    stroke-width: 1;
}
.china-map-svg .route-line {
    animation: dashMove 1.5s linear infinite;
}
@keyframes dashMove {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -20; }
}
.map-pin circle:first-child {
    animation: pinPulse 2s ease-in-out infinite;
}
@keyframes pinPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

/* Philosopher Visual */
.philosopher-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.philosopher-svg .phil-figure {
    filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.3));
}
.philosopher-svg .thought-particles circle {
    animation: particleFloat 3s ease-in-out infinite;
}
.philosopher-svg .thought-particles circle:nth-child(2) { animation-delay: 0.4s; }
.philosopher-svg .thought-particles circle:nth-child(3) { animation-delay: 0.8s; }
.philosopher-svg .thought-particles circle:nth-child(4) { animation-delay: 1.2s; }
.philosopher-svg .thought-particles circle:nth-child(5) { animation-delay: 1.6s; }
@keyframes particleFloat {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-12px); opacity: 1; }
}
.philosopher-svg .stone-base {
    filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.15));
}

/* Method Terminal Visual */
.method-terminal {
    width: 100%;
    max-width: 360px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.08);
    position: relative;
    z-index: 2;
}
.method-terminal .term-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--glass-border);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}
.method-terminal .term-header .term-dot { width: 10px; height: 10px; border-radius: 50%; }
.method-terminal .term-header .term-dot.r { background: #ff5f56; }
.method-terminal .term-header .term-dot.y { background: #ffbd2e; }
.method-terminal .term-header .term-dot.g { background: #27c93f; }
.method-terminal .term-body {
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--text-muted);
}
.method-terminal .term-body .type-line {
    opacity: 0;
    transform: translateY(4px);
}
.method-terminal .term-body .type-line.typed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.method-terminal .term-body .term-prompt {
    color: var(--primary-green);
    margin-right: 6px;
}
.method-terminal .term-body .cursor-line {
    opacity: 1;
}
.method-matrix-bg {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 14px, rgba(0,255,65,0.03) 14px, rgba(0,255,65,0.03) 15px);
    pointer-events: none;
    z-index: 1;
    animation: matrixShift 8s linear infinite;
}
@keyframes matrixShift {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* Matrix Beyond Visual */
.about-visual[data-step="4"] {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}
.matrix-rain-full {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(0,255,65,0.04) 18px, rgba(0,255,65,0.04) 19px);
    animation: matrixShift 6s linear infinite;
    pointer-events: none;
}
.about-visual[data-step="4"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0,255,65,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.floating-icon {
    position: absolute;
    filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.4));
    z-index: 2;
}
.floating-icon.shuttlecock {
    top: 15%;
    left: 15%;
    animation: floatOrbit 5s ease-in-out infinite;
}
.floating-icon.gear {
    bottom: 20%;
    right: 15%;
    animation: spinGear 6s linear infinite;
}
@keyframes floatOrbit {
    0%, 100% { transform: translate(0, 0) rotate(-10deg); }
    50% { transform: translate(8px, -12px) rotate(10deg); }
}
@keyframes spinGear {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.floating-equation {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
    opacity: 0.7;
    z-index: 2;
    animation: eqFloat 4s ease-in-out infinite;
}
.floating-equation.eq1 { top: 20%; right: 20%; animation-delay: 0s; }
.floating-equation.eq2 { bottom: 25%; left: 18%; animation-delay: 1s; }
.floating-equation.eq3 { top: 45%; left: 10%; animation-delay: 2s; font-size: 0.75rem; opacity: 0.5; }
.floating-equation.eq4 { top: 50%; right: 12%; animation-delay: 0.5s; font-size: 0.75rem; opacity: 0.5; }
@keyframes eqFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Text block blur for dramatic transitions */
.about-text-block {
    filter: blur(0px);
    will-change: transform, opacity, filter;
}

/* BENTO GRID (keep for other sections) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 20px;
}
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-small { grid-column: span 1; grid-row: span 1; }

/* --- INFO GRID SECTIONS --- */
.info-grid-section {
    width: 100%;
    padding: 3rem 4rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
}
.info-container {
    max-width: 1200px;
    margin: 0 auto;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
}
.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.15);
}
.info-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.info-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-green);
}
.highlights-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* --- JOURNEY / TIMELINE --- */
.journey-section {
    width: 100%;
    padding: 6rem 4rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
}
.journey-container {
    max-width: 800px;
    margin: 0 auto;
}
.journey-header {
    text-align: center;
    margin-bottom: 4rem;
}
.journey-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary-green);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.journey-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline-line {
    position: absolute;
    left: 6px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-green), transparent);
    opacity: 0.3;
}
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-darker);
    border: 2px solid var(--primary-green);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.3);
}
.timeline-dot.active {
    background: var(--primary-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
}
.timeline-card {
    padding: 1.5rem 2rem;
    border-radius: 16px;
}
.timeline-year {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary-green);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.timeline-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.timeline-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* --- AWARDS --- */
#awards {
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: 4rem;
}
.award-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding-bottom: 2rem;
}
.award-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transform-style: preserve-3d;
}
.award-image {
    aspect-ratio: 16/9;
    height: auto;
    max-height: 260px;
    background: linear-gradient(45deg, var(--bg-darker), #0a1a0a);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
}
.award-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.award-info h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.award-info p { color: var(--text-muted); margin-bottom: 1.5rem; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 12px;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--primary-green);
}

/* --- SKILLS --- */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.skill-pill {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: default;
}
.skill-pill:hover {
    background: var(--primary-green);
    color: var(--bg-darker);
    border-color: var(--primary-green);
    transform: scale(1.1);
}

/* --- SKILLS DETAILED --- */
#skills-detailed,
#skills {
    height: auto;
    min-height: auto;
    padding: 4rem;
}

.skills-detailed-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.skills-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.skills-tab {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skills-tab:hover {
    border-color: rgba(0, 255, 65, 0.4);
    color: var(--text-main);
}

.skills-tab.active {
    background: rgba(0, 255, 65, 0.12);
    border-color: var(--primary-green);
    color: var(--primary-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
}

.skills-panels {
    position: relative;
    min-height: 320px;
}

.skills-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.skills-panel.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.skill-bar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-bar-card:hover {
    border-color: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.06);
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.skill-bar-name {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.skill-bar-level {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-green);
}

.skill-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-green), #00cc33);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.3);
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-bar-card.animate .skill-bar-fill {
    width: var(--target-width);
}

/* --- SECTION DIVIDERS --- */
.section-divider {
    width: 100%;
    position: relative;
    z-index: 5;
}

.divider-pulse {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 65, 0.25) 20%, rgba(0, 255, 65, 0.6) 50%, rgba(0, 255, 65, 0.25) 80%, transparent 100%);
    background-size: 200% 100%;
    animation: pulse-travel 3s linear infinite;
    position: relative;
    margin: 2rem auto;
    max-width: 900px;
}

.divider-pulse::before,
.divider-pulse::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5rem;
    color: rgba(0, 255, 65, 0.5);
    animation: diamond-glow 2s ease-in-out infinite alternate;
}

.divider-pulse::before { left: -12px; }
.divider-pulse::after { right: -12px; }

@keyframes pulse-travel {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes diamond-glow {
    0% { opacity: 0.3; text-shadow: 0 0 4px rgba(0, 255, 65, 0.2); }
    100% { opacity: 1; text-shadow: 0 0 12px rgba(0, 255, 65, 0.6); }
}

/* --- CONTACT & FOOTER --- */
.contact-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 2rem;
}
.contact-email {
    display: block;
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-mono);
    transition: opacity 0.3s ease;
}

.bmc-section {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.bmc-section:hover {
    border-color: var(--primary-green);
    background: rgba(0, 255, 65, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.12);
}

.bmc-section img {
    margin-top: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bmc-section img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(64, 220, 165, 0.3);
}
.main-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 2rem 4rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 10, 5, 0.8);
    backdrop-filter: blur(10px);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logo {
    font-family: var(--font-mono);
    font-weight: 800;
    color: var(--primary-green);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--primary-green); }
.footer-copyright { font-size: 0.75rem; color: var(--text-muted); }

/* --- PROJECT DETAIL SECTION --- */
.project-detail-section {
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    display: none;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 255, 65, 0.08);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-detail-section.active {
    display: block;
    opacity: 1;
    transform: none;
}
.detail-close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    line-height: 1;
    opacity: 0.6;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.detail-close-btn:hover {
    color: var(--primary-green);
    opacity: 1;
    transform: rotate(90deg);
    background: rgba(0, 255, 65, 0.08);
}
.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.detail-image-container {
    width: 100%;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.detail-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1a0a, #1a3a1a, #0d2f0d);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.detail-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(40px);
}
.detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.detail-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.detail-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-green);
    letter-spacing: 2px;
}
.detail-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}
.detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}
.detail-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}
.feature-icon {
    font-size: 1.2rem;
}
.feature-text {
    color: var(--text-main);
    font-size: 0.95rem;
}
.detail-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 1.5rem 0;
}
.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 8px 16px;
    border: 1px solid var(--primary-green);
    border-radius: 100px;
    color: var(--primary-green);
    background: rgba(0, 255, 65, 0.05);
}
.detail-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}
.btn-detail-primary {
    background: var(--primary-green);
    color: var(--bg-darker);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-detail-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.4);
}
.btn-detail-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-detail-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--primary-green);
}

@keyframes blink { 50% { opacity: 0; } }

/* --- RESPONSIVE DESIGN --- */

/* Medium devices (tablets, less than 1024px) */
@media (max-width: 1024px) {
    .about-content-container {
        grid-template-columns: 1fr 1fr;
        padding: 2rem;
        gap: 2rem;
    }
    .about-text-stage {
        height: 380px;
    }
    .holo-stack {
        width: 200px;
        height: 260px;
    }
    .holo-card {
        padding: 1.75rem;
    }
    .holo-card-value {
        font-size: 2rem;
    }
    .holo-card-label {
        font-size: 0.75rem;
    }
    .detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .detail-image-container {
        height: 350px;
    }
    .detail-title {
        font-size: 2.2rem;
    }
    .info-grid-section {
        padding: 2rem;
    }
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .nav-bar {
        padding: 1.5rem 2rem;
    }
    .slide {
        padding: 0 2rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-large, .bento-small {
        grid-column: span 1;
        grid-row: span 1;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 768px) {
    .about-scroll-section {
        height: 300vh;
    }
    .about-content-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .about-text-stage {
        height: 420px;
    }
    .about-cards-side {
        min-height: 280px;
    }
    .holo-stack {
        width: 180px;
        height: 240px;
    }
    .holo-card {
        padding: 1.25rem 1.5rem;
    }
    .holo-card-value {
        font-size: 1.8rem;
    }
    .holo-card-label {
        font-size: 0.7rem;
    }
    .text-block-headline {
        font-size: 1.6rem;
    }
    .text-block-body {
        font-size: 0.95rem;
    }
    .journey-section {
        padding: 4rem 1.5rem;
    }
    .timeline {
        padding-left: 1.5rem;
    }
    .timeline-card {
        padding: 1rem 1.25rem;
    }
    .project-detail-section {
        width: 95%;
        padding: 2rem 1.5rem;
        max-height: 85vh;
    }
    .detail-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .detail-image-container {
        height: 220px;
    }
    .detail-title {
        font-size: 1.8rem;
    }
    .detail-actions {
        flex-direction: column;
    }
    .btn-detail-primary, .btn-detail-secondary {
        text-align: center;
    }
    .detail-close-btn {
        top: 12px;
        right: 12px;
        font-size: 1.8rem;
    }
    .nav-bar {
        padding: 1rem 1.5rem;
    }
    .info-grid-section {
        padding: 1.5rem;
    }
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none; /* Hide links for a potential hamburger menu */
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-large, .bento-small {
        grid-column: span 1;
        grid-row: span 1;
    }
    .skills-tabs {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    .skills-tab {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    .skill-bar-card {
        padding: 1rem;
    }
    .skill-bar-name {
        font-size: 0.8rem;
    }
    #skills {
        padding: 2rem 1.5rem;
    }
}

/* Extra small devices (portrait phones, less than 480px) */
@media (max-width: 480px) {
    .about-text-stage {
        height: 400px;
    }
    .text-block-headline {
        font-size: 1.3rem;
    }
    .text-block-body {
        font-size: 0.85rem;
    }
    .journey-section {
        padding: 3rem 1rem;
    }
    .timeline {
        padding-left: 1rem;
    }
    .timeline-card {
        padding: 0.875rem 1rem;
    }
    .timeline-heading {
        font-size: 1.1rem;
    }
    .slide {
        padding: 0 1rem;
    }

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

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-card {
        padding: 3rem 1rem;
    }

    .bmc-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 1rem 0;
    }

    .contact-email {
        font-size: 1.2rem;
    }

    .marquee-item {
        width: 250px;
    }
    .info-grid-section {
        padding: 1rem;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    position: relative;
    margin-left: 30px;
}
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.lang-toggle:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}
.lang-arrow {
    transition: transform 0.3s ease;
}
.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(5, 10, 5, 0.95);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1001;
}
.lang-switcher.open .lang-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.lang-option {
    color: var(--text-main);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.lang-option:hover,
.lang-option.active {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-green);
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 16px;
    }
    .lang-toggle {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    .lang-icon { display: none; }
}
