/* =============================================================
   PIYUSH PROJECTS 2026 — ULTRA MODERN GLASSMORPHIC 3D
   ============================================================= */

/* ── Google Fonts are loaded via HTML <link> ── */

:root {
    /* Core Palette */
    --black:      #04050a;
    --dark:       #080a12;
    --surface:    #0d1020;
    --white:      #ffffff;
    --off-white:  #e2e8f0;
    --muted:      #64748b;
    --subtle:     #94a3b8;

    /* Brand Colors */
    --coral:   #ff3b60;
    --violet:  #8b5cf6;
    --purple:  #a855f7;
    --blue:    #3b82f6;
    --cyan:    #06b6d4;
    --emerald: #10b981;
    --amber:   #f59e0b;

    /* Gradients */
    --grad-brand:  linear-gradient(135deg, #ff3b60 0%, #a855f7 50%, #3b82f6 100%);
    --grad-glow:   linear-gradient(135deg, rgba(255,59,96,.4) 0%, rgba(139,92,246,.4) 50%, rgba(59,130,246,.4) 100%);
    --grad-glass:  linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 60%, rgba(255,255,255,.06) 100%);
    --grad-glass-h: linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.05) 60%, rgba(255,255,255,.1) 100%);

    /* Glass Tokens */
    --glass-bg:      rgba(10, 12, 20, 0.55);
    --glass-border:  rgba(255, 255, 255, 0.10);
    --glass-border-t: rgba(255, 255, 255, 0.38);
    --glass-blur:    blur(28px) saturate(200%);
    --glass-blur-sm: blur(14px) saturate(180%);
    --glass-shadow:  0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
    --glass-shadow-h: 0 32px 80px rgba(0,0,0,.75);
    --glass-spec:    inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(255,255,255,.05);

    /* Typography */
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Transitions */
    --t-fast:   all 0.2s var(--ease-out-expo);
    --t-smooth: all 0.4s var(--ease-out-expo);
}

/* Dynamic Theme Overrides */
body[data-theme="matrix-emerald"]  { --coral: #10b981; --violet: #06b6d4; --purple: #14b8a6; }
body[data-theme="electric-sapphire"] { --coral: #3b82f6; --violet: #6366f1; --purple: #818cf8; }
body[data-theme="titanium-mono"]   { --coral: #94a3b8; --violet: #64748b; --purple: #cbd5e1; }

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    font-size: 16px;
}

body {
    background-color: var(--black);
    color: var(--off-white);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   PARTICLE CANVAS
═══════════════════════════════════════════════════════════════ */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   AURORA ANIMATED BACKGROUND
═══════════════════════════════════════════════════════════════ */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.aurora-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: auroraFloat 20s ease-in-out infinite alternate;
}

.a1 {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(255,59,96,.3) 0%, transparent 70%);
    top: -20%; left: -15%;
    animation-delay: 0s; animation-duration: 18s;
}
.a2 {
    width: 55vw; height: 55vw;
    background: radial-gradient(circle, rgba(139,92,246,.28) 0%, transparent 70%);
    top: 30%; right: -15%;
    animation-delay: -6s; animation-duration: 22s;
}
.a3 {
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(59,130,246,.22) 0%, transparent 70%);
    bottom: -10%; left: 20%;
    animation-delay: -12s; animation-duration: 26s;
}
.a4 {
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(16,185,129,.18) 0%, transparent 70%);
    top: 60%; left: 60%;
    animation-delay: -8s; animation-duration: 20s;
}

@keyframes auroraFloat {
    0%   { transform: translate(0,0) scale(1); }
    33%  { transform: translate(40px, 60px) scale(1.12); }
    66%  { transform: translate(-30px, 30px) scale(0.9); }
    100% { transform: translate(20px, -40px) scale(1.05); }
}

/* ═══════════════════════════════════════════════════════════════
   CURSOR ORB
═══════════════════════════════════════════════════════════════ */
.cursor-orb {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,59,96,.18) 0%, rgba(139,92,246,.12) 40%, transparent 70%);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    opacity: 0;
    mix-blend-mode: screen;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
═══════════════════════════════════════════════════════════════ */
.scroll-progress-rail {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 10000;
    background: rgba(255,255,255,.06);
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--grad-brand);
    border-radius: 0 2px 2px 0;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(255,59,96,.6);
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1100px;
    z-index: 1000;
    border-radius: 24px;
    background: rgba(8, 10, 18, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-top-color: var(--glass-border-t);
    box-shadow: var(--glass-shadow), var(--glass-spec);
    transition: var(--t-smooth);
}

.navbar.scrolled {
    background: rgba(5, 6, 12, 0.82);
    border-color: rgba(255,255,255,.18);
    top: 0.7rem;
}

.nav-inner,
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.6rem;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    transition: var(--t-fast);
}
.nav-logo:hover { filter: drop-shadow(0 0 14px rgba(255,59,96,.55)); transform: translateY(-1px); }
.nav-logo-img { height: 38px; width: auto; display: block; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    align-items: center;
}

.nav-link {
    color: var(--subtle);
    font-size: 0.94rem;
    font-weight: 500;
    padding: 0.45rem 1.1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: var(--t-fast);
    position: relative;
    letter-spacing: 0.01em;
}
.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--subtle);
    cursor: pointer;
    transition: var(--t-fast);
    font-size: 0.95rem;
}
.nav-icon-btn:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.28);
    color: #fff;
    transform: translateY(-2px);
}

.nav-cmd-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--subtle);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--t-fast);
    font-family: var(--font-mono);
}
.nav-cmd-btn:hover {
    background: rgba(255,59,96,.12);
    border-color: rgba(255,59,96,.35);
    color: #fff;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION LAYOUT UTILITIES
═══════════════════════════════════════════════════════════════ */
.section {
    position: relative;
    padding: 8rem 2rem;
    z-index: 1;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--coral);
    text-align: center;
    margin-bottom: 1rem;
}

.section-heading {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-sub {
    text-align: center;
    color: var(--subtle);
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto 5rem;
}

.text-gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.glow-coral {
    width: 500px; height: 400px;
    background: radial-gradient(circle, rgba(255,59,96,.25) 0%, transparent 70%);
    top: 10%; left: -5%;
    animation: auroraFloat 15s ease-in-out infinite alternate;
}
.glow-violet {
    width: 500px; height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,.22) 0%, transparent 70%);
    top: 40%; right: -5%;
    animation: auroraFloat 18s ease-in-out infinite alternate;
    animation-delay: -7s;
}

/* Reveal animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-3d {
    opacity: 0;
    transform: translateY(60px) rotateX(15deg);
    transform-origin: 50% 100%;
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.reveal-3d.in-view {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════ */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 10rem 4rem 6rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Grid overlay effect */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-top-color: rgba(255,255,255,.35);
    backdrop-filter: var(--glass-blur-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--off-white);
    margin-bottom: 2.5rem;
    animation: badgeFly 0.8s var(--ease-out-expo) 0.3s both;
}

.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 12px var(--emerald);
    animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
    50%       { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

@keyframes badgeFly {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-headline-wrap {
    margin-bottom: 2.5rem;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--subtle);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(3.2rem, 5.5vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line.gradient-outline {
    /* Gradient fill text */
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--subtle);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 0;
}

.hero-cta,
.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Primary glowing button */
.btn-primary-glow,
.btn.btn-primary,
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    background: var(--grad-brand);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
    transition: var(--t-smooth);
    cursor: pointer;
}
.btn-primary-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary-glow:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255,59,96,.45), 0 0 0 1px rgba(255,255,255,.2); }
.btn-primary-glow:hover::before { opacity: 1; }

.btn-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    transform: translateX(-100%);
    animation: shimmerSlide 3s ease-in-out 1.5s infinite;
}
@keyframes shimmerSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Glass outline button */
.btn-glass-outline,
.btn.btn-secondary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    background: rgba(255,255,255,.06);
    color: var(--off-white);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,.15);
    border-top-color: rgba(255,255,255,.35);
    backdrop-filter: var(--glass-blur-sm);
    transition: var(--t-smooth);
    cursor: pointer;
}
.btn-glass-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.32);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
}

/* Floating stats row */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: var(--glass-blur-sm);
    width: fit-content;
}
.stat-pill { text-align: center; }
.stat-val { display: block; font-family: var(--font-mono); font-size: 1.3rem; font-weight: 700; color: #fff; line-height: 1.2; }
.stat-lbl { display: block; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.1); }

/* 3D Hero Card */
.hero-3d-card-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    perspective: 1200px;
}

.hero-3d-card {
    width: 360px;
    height: 220px;
    border-radius: 28px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
    cursor: pointer;
}

.card-glass-inner {
    width: 100%; height: 100%;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 60%, rgba(255,255,255,.07) 100%);
    border: 1px solid rgba(255,255,255,.15);
    border-top-color: rgba(255,255,255,.45);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 60px rgba(139,92,246,.2), inset 0 1px 0 rgba(255,255,255,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-glow-top {
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad-brand);
    border-radius: 28px 28px 0 0;
    opacity: 0.8;
}

.hero-card-logo {
    width: 70%;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(255,59,96,.4));
    position: relative;
    z-index: 2;
}

.card-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 30px 30px;
    border-radius: 28px;
}

.card-reflection {
    position: absolute;
    bottom: -20px;
    left: 10%; right: 10%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(139,92,246,.35) 0%, transparent 70%);
    filter: blur(12px);
    z-index: -1;
}

/* Orbital rings */
.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.06);
    animation: orbitSpin linear infinite;
    pointer-events: none;
}
.orbit::before {
    content: '';
    position: absolute;
    top: -3px; left: 50%;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--coral);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--coral);
}
.orbit-1 { width: 480px; height: 480px; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-duration: 12s; }
.orbit-2 { width: 580px; height: 580px; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-duration: 20s; animation-direction: reverse; }
.orbit-2::before { background: var(--violet); box-shadow: 0 0 10px var(--violet); top: auto; bottom: -3px; }
.orbit-3 { width: 680px; height: 680px; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-duration: 30s; }
.orbit-3::before { background: var(--blue); box-shadow: 0 0 10px var(--blue); left: -3px; top: 50%; }

@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    z-index: 5;
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, var(--coral), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50%       { transform: scaleY(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   MARQUEE STRIP
═══════════════════════════════════════════════════════════════ */
.marquee-strip {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0 2rem;
    mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
    z-index: 1;
}

.marquee-inner {
    display: flex;
    width: max-content;
    animation: marqueeLoop 30s linear infinite;
}
.marquee-strip:hover .marquee-inner { animation-play-state: paused; }

.marquee-row {
    display: flex;
    gap: 1rem;
    padding-right: 1rem;
}

.mpill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-top-color: rgba(255,255,255,.22);
    backdrop-filter: var(--glass-blur-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--off-white);
    white-space: nowrap;
    transition: var(--t-fast);
}
.mpill:hover { background: rgba(255,255,255,.11); transform: translateY(-2px); }

@keyframes marqueeLoop {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS SECTION
═══════════════════════════════════════════════════════════════ */
.projects-section {
    max-width: 1300px;
    margin: 0 auto;
    perspective: 1200px;
}

.projects-3d-stage {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

/* Main project card */
.proj-card {
    position: relative;
    border-radius: 32px;
    transform-style: preserve-3d;
}

.proj-glass-surface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 60%, rgba(255,255,255,.05) 100%);
    border: 1px solid rgba(255,255,255,.1);
    border-top-color: rgba(255,255,255,.32);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow), var(--glass-spec);
    transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.proj-glass-surface::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 600px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.055), transparent);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 32px;
}

.proj-card:hover .proj-glass-surface::before { opacity: 1; }

.proj-card:hover .proj-glass-surface {
    border-color: rgba(255,255,255,.22);
    box-shadow: var(--glass-shadow-h), var(--glass-spec);
}

/* Per-card colored glow */
.proj-card-glow {
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, color-mix(in srgb, var(--glow-color) 30%, transparent) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    transition: opacity 0.5s;
}

.proj-number {
    position: absolute;
    top: 2rem; right: 2.5rem;
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255,255,255,.04);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

/* ── Mockup areas ── */
.proj-mockup-area {
    position: relative;
    z-index: 1;
}

/* macOS Window mockup */
.window-mockup {
    border-radius: 16px;
    background: rgba(10, 12, 20, 0.9);
    border: 1px solid rgba(255,255,255,.18);
    border-top-color: rgba(255,255,255,.4);
    box-shadow: 0 16px 50px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.18);
    overflow: hidden;
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #27c93f; }

.window-url {
    font-size: 0.72rem;
    color: var(--muted);
    background: rgba(0,0,0,.4);
    padding: 0.15rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.08);
    margin-left: auto;
    flex: 1;
    max-width: 200px;
    text-align: center;
}

.window-body { padding: 0.8rem; position: relative; min-height: 160px; }
.pdf-preview { min-height: 180px; }

/* Split slider */
.split-container {
    position: relative;
    display: flex;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.1);
    height: 140px;
    cursor: col-resize;
}

.split-before, .split-after {
    flex: 1;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.split-before {
    background: rgba(255,59,96,.08);
    border-right: none;
}
.split-after {
    background: rgba(16,185,129,.08);
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 50%;
    overflow: hidden;
    border-left: none;
    transition: width 0.1s;
}

.raw-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--coral);
    background: rgba(255,59,96,.12);
    border: 1px solid rgba(255,59,96,.3);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.raw-slide { width: 80%; }
.raw-line { height: 4px; background: rgba(255,255,255,.15); border-radius: 2px; margin: 5px 0; }
.raw-line.thick { height: 8px; background: rgba(255,255,255,.22); }
.raw-line.short { width: 60%; }
.waste-txt { font-size: 0.6rem; color: var(--muted); display: block; margin-top: 4px; text-align: center; }

.slide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
}
.stile {
    background: rgba(255,255,255,.1);
    border-radius: 4px;
    height: 45px;
    display: flex;
    align-items: flex-start;
    padding: 4px;
}
.stile span { font-size: 0.6rem; font-weight: 700; color: var(--emerald); font-family: var(--font-mono); }

.split-handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: rgba(255,255,255,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: col-resize;
}
.handle-btn {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.neon-scan-bar {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
    top: 0;
    opacity: 0;
    box-shadow: 0 0 10px var(--emerald);
}

.window-footer, .terminal-footer, .phone-action-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255,255,255,.03);
    border-top: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
}

.action-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    color: var(--off-white);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--t-fast);
}
.action-pill:hover {
    background: rgba(255,255,255,.18);
    transform: translateY(-1px);
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--emerald);
    background: rgba(16,185,129,.12);
    border: 1px solid rgba(16,185,129,.3);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-left: auto;
}
.status-badge.active-red { color: var(--coral); background: rgba(255,59,96,.12); border-color: rgba(255,59,96,.3); }

/* Phone mockup */
.phone-mockup {
    width: 180px;
    margin: 0 auto;
    border-radius: 36px;
    background: rgba(10, 12, 20, 0.95);
    border: 2px solid rgba(255,255,255,.22);
    border-top-color: rgba(255,255,255,.5);
    box-shadow: 0 20px 60px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.2), 0 0 30px rgba(168,85,247,.2);
    overflow: hidden;
    position: relative;
}
.phone-notch {
    width: 70px; height: 22px;
    background: rgba(0,0,0,.9);
    border-radius: 0 0 14px 14px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,.12);
    border-top: none;
}
.phone-screen { padding: 0.6rem 0.7rem; }

.alarm-widget {
    text-align: center;
    padding: 0.6rem 0.4rem;
    border-radius: 12px;
    background: rgba(168,85,247,.1);
    border: 1px solid rgba(168,85,247,.2);
    margin-bottom: 0.5rem;
}
.alarm-time {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.alarm-time small { font-size: 0.7rem; font-weight: 400; color: var(--muted); }
.alarm-mode {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--coral);
    background: rgba(255,59,96,.15);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    margin-top: 0.3rem;
}

.qr-scanner-box {
    position: relative;
    border-radius: 10px;
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.12);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.qr-corner {
    position: absolute;
    width: 14px; height: 14px;
    border-color: var(--violet);
    border-style: solid;
    border-width: 0;
}
.qr-corner.tl { top: 5px; left: 5px; border-top-width: 2px; border-left-width: 2px; border-radius: 3px 0 0 0; }
.qr-corner.tr { top: 5px; right: 5px; border-top-width: 2px; border-right-width: 2px; border-radius: 0 3px 0 0; }
.qr-corner.bl { bottom: 5px; left: 5px; border-bottom-width: 2px; border-left-width: 2px; border-radius: 0 0 0 3px; }
.qr-corner.br { bottom: 5px; right: 5px; border-bottom-width: 2px; border-right-width: 2px; border-radius: 0 0 3px 0; }

.qr-laser {
    position: absolute;
    left: 8px; right: 8px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--violet), transparent);
    box-shadow: 0 0 8px var(--violet);
    top: 10%;
    animation: qrScan 2s ease-in-out infinite;
}
@keyframes qrScan {
    0%, 100% { top: 10%; }
    50%       { top: 85%; }
}
.qr-hint { font-size: 0.55rem; color: var(--muted); text-align: center; padding: 0 0.5rem; position: absolute; bottom: 5px; left: 0; right: 0; }

.streak-bar {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--amber);
    text-align: center;
    padding: 0.3rem;
    border-radius: 6px;
    background: rgba(245,158,11,.08);
    border: 1px solid rgba(245,158,11,.2);
}

/* Terminal mockup */
.terminal-mockup {
    border-radius: 16px;
    background: rgba(5, 8, 16, 0.95);
    border: 1px solid rgba(255,255,255,.15);
    border-top-color: rgba(255,255,255,.38);
    box-shadow: 0 16px 50px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12);
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.terminal-title-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    margin-left: auto;
    margin-right: auto;
}

.terminal-body {
    padding: 1rem;
    min-height: 120px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
}
.tline { display: flex; align-items: flex-start; gap: 0.5rem; }
.prompt { color: var(--emerald); flex-shrink: 0; }
.kw { color: #c792ea; }
.va { color: #82aaff; }
.fn { color: #ffcb6b; }
.cm { color: #546e7a; }
.pr { color: #f07178; }
.st { color: #c3e88d; }
.status-line { margin-top: 0.3rem; color: var(--subtle); }
.tcursor { color: var(--emerald); animation: cursorBlink 1s step-end infinite; }
.building-text { color: var(--subtle); }
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Project info block */
.proj-info { position: relative; z-index: 1; }

.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--subtle);
    letter-spacing: 0.04em;
}
.tag-glow {
    color: var(--coral);
    background: rgba(255,59,96,.1);
    border-color: rgba(255,59,96,.3);
    box-shadow: 0 0 12px rgba(255,59,96,.2);
    animation: tagGlowPulse 2s ease-in-out infinite;
}
@keyframes tagGlowPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(255,59,96,.2); }
    50%       { box-shadow: 0 0 20px rgba(255,59,96,.5); }
}

.proj-title {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.9rem;
    color: #fff;
}

.proj-desc {
    font-size: 1rem;
    color: var(--subtle);
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.proj-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.proj-link-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    background: var(--grad-brand);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--t-fast);
    border: 1px solid rgba(255,255,255,.2);
}
.proj-link-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,59,96,.4); }

.proj-link-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    color: var(--off-white);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--t-fast);
}
.proj-link-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }

.proj-link-disabled {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--muted);
    font-size: 0.88rem;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   LAB SECTION — HORIZONTAL SCROLL
═══════════════════════════════════════════════════════════════ */
.lab-section {
    overflow: hidden;
}

.lab-scene-glow {
    position: absolute;
    width: 700px; height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,.2) 0%, rgba(168,85,247,.15) 50%, transparent 70%);
    filter: blur(80px);
    top: 20%; right: -10%;
    pointer-events: none;
    z-index: 0;
}

.h-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding-bottom: 3rem;
}

.h-scroll-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding: 2rem 4rem 2rem 4rem;
    will-change: transform;
}

/* Horizontal capability card */
.h-card {
    width: 380px;
    min-height: 440px;
    flex-shrink: 0;
    border-radius: 28px;
    padding: 2.5rem 2.2rem;
    background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 60%, rgba(255,255,255,.05) 100%);
    border: 1px solid rgba(255,255,255,.1);
    border-top-color: rgba(255,255,255,.32);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow), var(--glass-spec);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, border-color 0.4s ease;
}

.h-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--glass-shadow-h), var(--glass-spec);
    border-color: rgba(255,255,255,.22);
}

.h-card-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent, #3b82f6);
    border-radius: 28px 28px 0 0;
    opacity: 0.9;
    box-shadow: 0 0 15px var(--accent, #3b82f6);
}

.h-card-num {
    position: absolute;
    top: 2rem; right: 2rem;
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255,255,255,.04);
    line-height: 1;
    user-select: none;
}

.h-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    display: inline-block;
}

.h-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 0.8rem;
}

.h-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.h-card p {
    font-size: 0.95rem;
    color: var(--subtle);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 2rem;
}

.h-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.h-stats div { display: flex; flex-direction: column; gap: 0.2rem; }
.h-stats strong {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: block;
}
.h-stats span { font-size: 0.75rem; color: var(--muted); }

/* H-scroll progress track */
.h-scroll-progress-wrap {
    width: calc(100% - 8rem);
    max-width: 1200px;
    margin: 0 auto;
    height: 2px;
    background: rgba(255,255,255,.07);
    border-radius: 2px;
    position: relative;
    z-index: 2;
}
.h-scroll-progress-bar {
    height: 100%;
    width: 20%;
    background: var(--grad-brand);
    border-radius: 2px;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(139,92,246,.5);
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION — BENTO GRID
═══════════════════════════════════════════════════════════════ */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
}

.about-glow {
    position: absolute;
    width: 600px; height: 500px;
    background: radial-gradient(circle, rgba(168,85,247,.2) 0%, transparent 70%);
    filter: blur(90px);
    top: 10%; left: -5%;
    z-index: 0;
    pointer-events: none;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Glass card base */
.glass-card {
    border-radius: 26px;
    background: var(--grad-glass);
    border: 1px solid var(--glass-border);
    border-top-color: rgba(255,255,255,.28);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow), var(--glass-spec);
    transition: var(--t-smooth);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 350px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.07), transparent);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    border-radius: 26px;
}
.glass-card:hover::before { opacity: 1; }
.glass-card:hover { border-color: rgba(255,255,255,.2); }

/* Bento layout */
.bento-bio     { grid-column: span 7; padding: 2.5rem; }
.bento-time    { grid-column: span 5; padding: 2.5rem; }
.bento-contact { grid-column: span 5; padding: 2.5rem; }
.bento-skills  { grid-column: span 7; padding: 2.5rem; }
.bento-metrics { grid-column: span 4; padding: 2.5rem; }
.bento-github  { grid-column: span 8; padding: 2.5rem; }

.bento-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.bento-bio h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.bio-text { font-size: 1rem; color: var(--subtle); line-height: 1.8; margin-bottom: 1rem; }
.bento-sub { font-size: 0.9rem; color: var(--muted); }

/* Scroll-scrub words */
.scroll-word {
    display: inline-block;
    opacity: 0.3;
    transition: opacity 0.3s ease, color 0.3s ease;
    margin-right: 0.3em;
}
.scroll-word.lit {
    opacity: 1;
    color: #fff;
}

/* Time bento */
.loc-badge {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.clock-display {
    margin-bottom: 1.5rem;
}
.live-time {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}
.tz { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }
.avail-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--emerald);
}

.pulse-green {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 12px var(--emerald);
    animation: pulseDot 2s infinite;
    flex-shrink: 0;
}

/* Contact bento */
.bento-contact h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.7rem; }
.email-display { font-family: var(--font-mono); font-size: 0.85rem; color: var(--subtle); margin-bottom: 1.5rem; }
.contact-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.contact-btn-primary {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.65rem 1.3rem; border-radius: 50px;
    background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,.2); cursor: pointer; transition: var(--t-fast);
}
.contact-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(255,59,96,.35); }

.contact-btn-ghost {
    display: inline-flex; align-items: center;
    padding: 0.65rem 1.3rem; border-radius: 50px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    color: var(--off-white); font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: var(--t-fast);
}
.contact-btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* Skills */
.skill-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.skill-chip {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--off-white);
    transition: var(--t-fast);
}
.skill-chip:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); border-color: rgba(255,255,255,.25); }

/* Metrics */
.metrics-row { display: flex; gap: 1.5rem; align-items: center; justify-content: space-around; height: 100%; }
.metric { text-align: center; }
.mval { display: block; font-family: var(--font-mono); font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.mlbl { display: block; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.4rem; }

/* GitHub */
.gh-header {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.9rem; color: var(--emerald); margin-bottom: 1.5rem;
}
.gh-stats { display: flex; gap: 3rem; margin-bottom: 1.5rem; }
.gh-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.gh-val { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 800; color: #fff; }
.gh-lbl { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.gh-link {
    display: inline-flex; align-items: center;
    font-family: var(--font-mono); font-size: 0.85rem;
    color: var(--violet); transition: var(--t-fast);
}
.gh-link:hover { color: var(--purple); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255,255,255,.06);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-text { font-size: 0.9rem; color: var(--muted); }

.footer-socials {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.footer-socials a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--subtle);
    font-size: 0.9rem;
    transition: var(--t-fast);
}
.footer-socials a:hover { background: rgba(255,255,255,.14); color: #fff; transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATION
═══════════════════════════════════════════════════════════════ */
.glass-toast {
    position: fixed;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(120%);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: rgba(10, 14, 22, 0.85);
    border: 1px solid rgba(255,255,255,.16);
    border-top-color: rgba(255,255,255,.35);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 20px 50px rgba(0,0,0,.6), var(--glass-spec);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9998;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.4s ease;
    pointer-events: none;
    opacity: 0;
}
.glass-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast-icon { font-size: 1.1rem; }

/* ═══════════════════════════════════════════════════════════════
   COMMAND PALETTE
═══════════════════════════════════════════════════════════════ */
.cmd-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.cmd-backdrop[aria-hidden="false"] { opacity: 1; pointer-events: all; }

.cmd-box {
    width: 100%;
    max-width: 620px;
    border-radius: 20px;
    background: rgba(8, 10, 20, 0.92);
    border: 1px solid rgba(255,255,255,.15);
    border-top-color: rgba(255,255,255,.35);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 40px 100px rgba(0,0,0,.9), var(--glass-spec);
    overflow: hidden;
    transform: translateY(-20px) scale(0.97);
    transition: transform 0.3s var(--ease-out-expo);
}
.cmd-backdrop[aria-hidden="false"] .cmd-box { transform: translateY(0) scale(1); }

.cmd-search-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: var(--muted);
}

.cmd-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
}
.cmd-input::placeholder { color: var(--muted); }

.cmd-results {
    max-height: 420px;
    overflow-y: auto;
    padding: 0.5rem;
}
.cmd-results::-webkit-scrollbar { width: 4px; }
.cmd-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

.cmd-group {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    padding: 0.7rem 0.8rem 0.4rem;
}

.cmd-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--t-fast);
}
.cmd-item:hover { background: rgba(255,255,255,.07); }
.cmd-item.selected { background: rgba(255,255,255,.1); }

.cmd-ico { font-size: 1.1rem; flex-shrink: 0; }
.cmd-title { font-size: 0.9rem; font-weight: 600; color: var(--off-white); }
.cmd-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; }
.cmd-badge {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--violet);
    background: rgba(139,92,246,.12);
    border: 1px solid rgba(139,92,246,.25);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   ARCH & CONTACT MODAL
═══════════════════════════════════════════════════════════════ */
.arch-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(10px);
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.arch-backdrop[aria-hidden="false"] { opacity: 1; pointer-events: all; }

.arch-box {
    width: 100%; max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 24px;
    background: rgba(8, 10, 20, 0.94);
    border: 1px solid rgba(255,255,255,.15);
    border-top-color: rgba(255,255,255,.35);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 40px 100px rgba(0,0,0,.9), var(--glass-spec);
    padding: 2.5rem;
    position: relative;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s var(--ease-out-expo);
}
.arch-backdrop[aria-hidden="false"] .arch-box { transform: translateY(0) scale(1); }

.arch-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: var(--subtle);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--t-fast);
}
.arch-close:hover { background: rgba(255,59,96,.2); color: var(--coral); }

.contact-box { max-width: 480px; }
.contact-box h3 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.contact-box p { color: var(--subtle); margin-bottom: 2rem; }
.email-link { color: var(--coral); transition: var(--t-fast); }
.email-link:hover { color: var(--purple); }
.contact-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 9rem 2.5rem 5rem;
    }
    .hero-3d-card-wrap {
        order: -1;
        margin-bottom: 3rem;
    }
    .hero-stats { margin: 0 auto; }
    .hero-badge { margin: 0 auto 2.5rem; }
    .hero-desc { max-width: 100%; }
    .hero-cta { justify-content: center; }
    .orbit { display: none; }
    .hero-3d-card { width: 280px; height: 170px; }

    .proj-glass-surface { grid-template-columns: 1fr; gap: 2rem; }
    .proj-number { display: none; }

    .bento-bio     { grid-column: span 12; }
    .bento-time    { grid-column: span 6; }
    .bento-contact { grid-column: span 6; }
    .bento-skills  { grid-column: span 12; }
    .bento-metrics { grid-column: span 6; }
    .bento-github  { grid-column: span 6; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .section { padding: 5rem 1.5rem; }
    .section-heading { font-size: 2rem; }
    .hero-title { font-size: 2.8rem; letter-spacing: -1px; }

    .bento-time    { grid-column: span 12; }
    .bento-contact { grid-column: span 12; }
    .bento-metrics { grid-column: span 12; }
    .bento-github  { grid-column: span 12; }

    .h-scroll-track { padding: 1.5rem; }
    .h-card { width: 300px; min-height: 380px; }

    .footer-inner { flex-direction: column; align-items: flex-start; }

    .proj-glass-surface { padding: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .aurora-layer, .orbit, .scroll-line, .badge-dot,
    .btn-shimmer, .qr-laser, .tcursor, .marquee-inner { animation: none !important; }
    .reveal-up, .reveal-3d { opacity: 1 !important; transform: none !important; }
}
