/* ==========================================================================
   RODDNEIL B. GEMINA — DEEP COSMIC BLACK & LUMINOUS CYAN PORTFOLIO
   Design Language:
   - Palette: Deep cosmic black (#05070c), Luminous cyan (#00F0FF), subtle violet (#8b5cf6)
   - Glassmorphism: Multi-layered backdrop-blur (20-28px) with subtle inset borders rgba(255,255,255,0.08)
   - Typography: 'Syne' (Display), 'Plus Jakarta Sans' (Body), 'JetBrains Mono' (Metrics/Badges)
   - Motion: Smooth ease-in section reveals with staggered child elements & cyber glitch-decipher typing
   ========================================================================== */

@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}


/* --------------------------------------------------------------------------
   SECTION SIGNATURE THEMES (MIKE WILCOCK DESIGN SYSTEM UNIFORMITY)
   -------------------------------------------------------------------------- */
#hero, [data-active-section="hero"],
#projects, [data-active-section="projects"],
#expertise, [data-active-section="expertise"],
#philosophy, [data-active-section="philosophy"],
#experience, [data-active-section="experience"],
#research, [data-active-section="research"],
#volunteering, [data-active-section="volunteering"],
#contact, [data-active-section="contact"] {
    --section-accent: #7fa8ff;
    --section-accent-glow: rgba(127, 168, 255, 0.25);
    --section-accent-subtle: rgba(127, 168, 255, 0.08);
    --section-tag-color: #7fa8ff;
}

:root {
    --section-accent: #7fa8ff;
    --section-accent-glow: rgba(127, 168, 255, 0.25);
    --section-accent-subtle: rgba(127, 168, 255, 0.08);
    --section-tag-color: #7fa8ff;

    --border-angle: 0deg;

    /* Mike Wilcock Neutral & Surface Palette */
    --color-bg: #111010;
    --color-bg-alt: #1a1919;
    --color-bg-card: #141313;
    --color-bg-card-hover: #1a1919;
    --color-surface: #1a1919;
    --color-glass-subtle: rgba(26, 25, 25, 0.85);

    /* Electric Blue Accent */
    --color-primary: #7fa8ff;
    --color-accent: #7fa8ff;
    --color-cyan: #7fa8ff;
    --color-cyan-dim: #628be6;
    --color-cyan-glow: rgba(127, 168, 255, 0.25);
    --color-cyan-subtle: rgba(127, 168, 255, 0.08);

    --color-violet: #7fa8ff;
    --color-violet-dim: #628be6;
    --color-violet-glow: rgba(127, 168, 255, 0.25);
    --color-violet-ambient: transparent;

    --color-pink: #7fa8ff;
    --color-emerald: #34d399;
    --color-error: #ff6b6b;

    /* Typography & Contrast Colors */
    --text-primary: #edeae4;
    --text-secondary: #edeae4;
    --text-muted: #9a968f;
    --text-faint: #8b8b8b;
    --text-tertiary: #8b8b8b;

    /* Flat Shadowless Elevation (Zero AI Slop Blur) */
    --glass-blur-sm: none;
    --glass-blur-md: none;
    --glass-blur-lg: none;
    
    --border-color: #374151;
    --glass-border-inset: inset 0 0 0 1px #374151;
    --glass-border-color: #374151;
    --glass-border-subtle: 1px solid #374151;

    --glass-shadow: none;
    --glass-shadow-hover: none;

    --google-ai-blue: #7fa8ff;
    --google-ai-indigo: #7fa8ff;
    --google-ai-cyan: #7fa8ff;
    --google-ai-violet: #7fa8ff;
    --google-ai-magenta: #7fa8ff;

    --google-ai-gradient: #7fa8ff;
    --google-ai-gradient-glow: rgba(127, 168, 255, 0.25);
    --rgb-gradient: #7fa8ff;
    --cyan-violet-gradient: #7fa8ff;

    /* Typography Families (Archivo & Geist Mono) */
    --font-heading: 'Archivo', sans-serif;
    --font-body: 'Archivo', sans-serif;
    --font-mono: 'Geist Mono', monospace;

    /* Spacing & Radii (8px, 16px, 28px, 9999px) */
    --radius-none: 0px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 28px;
    --radius-pill: 9999px;

    /* Transitions */
    --transition-fast: 0.18s ease;
    --transition-norm: 0.28s ease;
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
    --color-bg: #f8fafc;
    --color-bg-alt: #f1f5f9;
    --color-bg-card: rgba(255, 255, 255, 0.82);
    --color-bg-card-hover: rgba(255, 255, 255, 0.94);
    --color-glass-subtle: rgba(241, 245, 249, 0.7);

    --text-primary: #090d16;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-faint: #94a3b8;

    --color-cyan: #0284c7;
    --color-cyan-glow: rgba(2, 132, 199, 0.25);
    --color-cyan-subtle: rgba(2, 132, 199, 0.08);

    --color-violet: #7c3aed;
    --color-violet-glow: rgba(124, 58, 237, 0.2);

    --glass-border-inset: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    --glass-border-color: rgba(15, 23, 42, 0.08);
    --glass-shadow: 0 14px 35px -8px rgba(31, 38, 135, 0.09), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    --glass-shadow-hover: 0 20px 45px -8px rgba(2, 132, 199, 0.15), inset 0 0 0 1px rgba(2, 132, 199, 0.35);
}

/* --------------------------------------------------------------------------
   GLOBAL RESET & DEEP COSMIC BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color var(--transition-norm), color var(--transition-norm);
}

/* Cosmic Violet & Cyan Ambient Backdrops */
body::before, body::after {
    display: none !important;
    content: none !important;
}

/* 3D CANVAS BACKGROUND (LEGACY FALLBACK) */
.canvas-3d-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: none;
}

/* REACT BITS SCANNER COMPONENT (HERO BACKGROUND) */
.scanner-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-scanner-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 78%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 78%, rgba(0, 0, 0, 0) 100%);
}

.hero-scanner-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* REACT BITS DOTFIELD COMPONENT (TEXTURE BACKGROUND OVERLAY) */
.dot-field-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.global-dotfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.global-dotfield canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* THEME RIPPLE OVERLAY */
.theme-ripple-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 998;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* --------------------------------------------------------------------------
   CINEMATIC INTRO SEQUENCE (BLACK CURTAIN OVERLAY)
   -------------------------------------------------------------------------- */
body.intro-active {
    overflow: hidden !important;
}

.intro-curtain-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 9990;
    pointer-events: all;
    transition: opacity 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.intro-active #main-content,
body.intro-active #hero,
body.intro-active .hero-split-grid {
    z-index: 9995 !important;
}

body.intro-active .hero-name-container,
body.intro-active .hero-main-role {
    z-index: 9998 !important;
    position: relative;
    will-change: transform, opacity;
}

/* Hide navbar, section tracker, and surrounding hero items during center intro */
body.intro-active nav,
body.intro-active .hero-clean-summary,
body.intro-active .hero-cta-left,
body.intro-active .hero-pills-left,
body.intro-active .hero-right-col {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Make sure elements become visible when hero-entered is triggered */
body.hero-entered .hero-clean-summary, .hero-entered .hero-clean-summary,
body.hero-entered .hero-cta-left, .hero-entered .hero-cta-left,
.hero-entered .hero-pills-left,
body.hero-entered .hero-right-col, .hero-entered .hero-right-col {
    visibility: visible !important;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover {
    color: var(--color-violet);
    text-shadow: 0 0 10px var(--color-cyan-glow);
}

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   CLEAR LIQUID GLASS & STRICT OUTLINE-ONLY SLOWLY MOVING RGB BORDER
   -------------------------------------------------------------------------- */
/* FUTURISTIC MINIMALIST PRECISION CARDS */
.glass-card {
    background-color: var(--color-surface);
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border-color);
    box-shadow: none;
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
    position: relative;
}

.glass-card:hover {
    transform: none;
    border-color: var(--color-primary);
    box-shadow: none;
}

[data-theme="light"] .glass-card {
    background-color: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.09);
    box-shadow: 
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.95),
        0 10px 24px -6px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .glass-card:hover {
    border-color: var(--section-accent);
    box-shadow: 
        0 16px 36px -8px rgba(0, 0, 0, 0.12),
        0 0 20px -2px var(--section-accent-glow);
}

/* Neutralized .rgb-border: Clean micro-HUD framing instead of chaotic rainbow gradient */
.rgb-border {
    position: relative;
    border-radius: var(--radius-md);
}

.rgb-border::before,
.rgb-border::after {
    display: none !important;
    content: none !important;
}

.glass-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border-color);
    box-shadow: var(--glass-shadow);
}

/* Sleek Badges (JetBrains Mono) */
.sleek-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--color-cyan);
    background: rgba(0, 240, 255, 0.06);
    backdrop-filter: var(--glass-blur-sm);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: var(--radius-pill);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.08);
    letter-spacing: 0.02em;
}

.badge-pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-cyan);
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   SLEEK MINIMAL NAVBAR (MATCHING REFERENCE IMAGE)
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(17, 16, 16, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
    transition: background var(--transition-norm);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: none;
    transition: background var(--transition-fast);
}

.brand-text {
    letter-spacing: 0.06em;
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    text-shadow: none;
}

/* Right Nav Button: Sleek Cyan Outline Pill [Resume (CV)] */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: var(--color-cyan) !important;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.12);
    transition: all var(--transition-fast);
}

.nav-resume-btn:hover {
    background: var(--color-cyan);
    color: #05070c !important;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.5);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* --------------------------------------------------------------------------
   HERO SECTION (TWO-COLUMN ASYMMETRIC IMPACT LAYOUT)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   HERO SECTION (SPLIT 2-COLUMN VIEWPORT SHOWCASE)
   -------------------------------------------------------------------------- */
.hero-section {
    padding-top: 85px;
    padding-bottom: 25px;
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#hero.reveal-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
}

.hero-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1.16fr 0.84fr;
    gap: 3.5rem;
    align-items: center;
    width: 100%;
}

.hero-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-right-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Disable moving holographic scanning beam sweep on hero after intro */
#hero::after,
#hero.reveal-on-scroll::after,
#hero.reveal-on-scroll.revealed::after {
    display: none !important;
    content: none !important;
    animation: none !important;
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    background: rgba(8, 14, 28, 0.78);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.12), inset 0 0 8px rgba(0, 240, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--color-cyan);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

body.hero-entered .hero-status-pill, .hero-entered .hero-status-pill,
body:not(.intro-active) .hero-status-pill {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.22s;
}

.status-dot-emerald {
    width: 8px;
    height: 8px;
    background: var(--color-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-emerald);
    animation: badgePulse 2s infinite ease-in-out;
}

.hero-name-container {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 16px 0;
    text-align: left;
    will-change: transform;
}

/* Floating Name levitation animation */
.hero-name-container.floating-name {
    animation: heroNameLevitate 5s ease-in-out infinite;
}

body.intro-active .hero-name-container.floating-name {
    animation: none !important;
}

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

/* Reduced, clean, subtle backlight aura */
.hero-name-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 110%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.12) 0%, rgba(139, 92, 246, 0.06) 45%, transparent 70%);
    filter: blur(35px);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-name-aura.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hero-main-name {
    position: relative;
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: -0.03em;
    margin: 0;
    text-align: left;
    z-index: 2;
}

.hero-name-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

/* Gradient text with reduced, refined crisp glow */
.gradient-fade-text {
    color: #edeae4;
    background: none;
    -webkit-text-fill-color: #edeae4;
    display: inline-block;
    filter: none;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 14px rgba(167, 139, 250, 0.3));
        opacity: 1;
    }
    100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.25));
        opacity: 0.94;
    }
}

/* --------------------------------------------------------------------------
   METALLIC REFLECTION GLINT (SLIDING ACROSS THE LETTERS)
   Pure, sleek chrome specular shine sliding smoothly across typography
   -------------------------------------------------------------------------- */
.hero-metallic-glint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: left;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-repeat: no-repeat;
    background-size: 280px 100%;
    background-position: -280px 0;
    background-image: linear-gradient(
        110deg,
        transparent 0%,
        transparent 20%,
        rgba(255, 255, 255, 0.15) 32%,
        rgba(255, 255, 255, 0.8) 44%,
        #ffffff 50%,
        rgba(255, 255, 255, 0.8) 56%,
        rgba(255, 255, 255, 0.15) 68%,
        transparent 80%,
        transparent 100%
    );
}

.hero-metallic-glint.sliding {
    opacity: 1;
    animation: metallicGlintSlide 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes metallicGlintSlide {
    0% {
        background-position: -280px 0;
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
    }
    100% {
        background-position: calc(100% + 280px) 0;
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
        opacity: 0;
    }
}

/* ==========================================================================
   HERO PORTRAIT CONTAINER (CYBER-GLASS AVATAR SHOWCASE)
   ========================================================================== */
.hero-portrait-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    z-index: 4;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-entered .hero-portrait-stage,
body:not(.intro-active) .hero-portrait-stage {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.28s;
}

.hero-portrait-container {
    position: relative;
    width: 275px;
    height: 362px;
    border-radius: 24px;
    padding: 6px;
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(0, 240, 255, 0.45);
    box-shadow: 
        0 0 32px rgba(0, 240, 255, 0.2),
        0 0 65px rgba(139, 92, 246, 0.12),
        0 20px 45px rgba(0, 0, 0, 0.75);
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.hero-portrait-container:hover {
    border-color: rgba(0, 240, 255, 0.95);
    box-shadow: 
        0 0 52px rgba(0, 240, 255, 0.45),
        0 0 85px rgba(139, 92, 246, 0.3),
        0 30px 60px rgba(0, 0, 0, 0.85);
}

.hero-portrait-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #0d121f;
    transform-style: preserve-3d;
}

.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 18px;
    transform: translateZ(8px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-portrait-container:hover .hero-portrait-img {
    transform: translateZ(12px) scale(1.02);
}

.portrait-ambient-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 12%, rgba(0, 240, 255, 0.14) 0%, transparent 60%),
                linear-gradient(to top, rgba(5, 7, 12, 0.4) 0%, transparent 30%);
    transform: translateZ(16px);
}

/* High-tech HUD Corner Brackets with 3D Depth */
.portrait-hud-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--color-cyan);
    border-style: solid;
    pointer-events: none;
    z-index: 5;
    opacity: 0.85;
    transform: translateZ(24px);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.portrait-hud-corner.hud-top-left {
    top: -3px;
    left: -3px;
    border-width: 2.5px 0 0 2.5px;
    border-top-left-radius: 8px;
}

.portrait-hud-corner.hud-top-right {
    top: -3px;
    right: -3px;
    border-width: 2.5px 2.5px 0 0;
    border-top-right-radius: 8px;
}

.portrait-hud-corner.hud-bottom-left {
    bottom: -3px;
    left: -3px;
    border-width: 0 0 2.5px 2.5px;
    border-bottom-left-radius: 8px;
}

.portrait-hud-corner.hud-bottom-right {
    bottom: -3px;
    right: -3px;
    border-width: 0 2.5px 2.5px 0;
    border-bottom-right-radius: 8px;
}

.hero-portrait-container:hover .portrait-hud-corner {
    width: 20px;
    height: 20px;
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--color-cyan));
    transform: translateZ(30px);
}

/* --------------------------------------------------------------------------
   HERO LEFT COLUMN: MAIN ROLE POSITION (UNDER USER NAME)
   -------------------------------------------------------------------------- */
.hero-main-role {
    min-height: 34px;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.1vw, 1.62rem);
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.01em;
    margin: 0 0 18px 0;
    padding: 0;
    text-align: left;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    white-space: nowrap;
    position: relative;
    will-change: transform, opacity;
}

body.intro-active .hero-main-role {
    text-align: center;
    justify-content: center;
}

/* ==========================================================================
   REACT BITS: GRADIENT TEXT COMPONENT
   ========================================================================== */
.gradient-text {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    isolation: isolate;
    cursor: default;
    user-select: none;
}

.gradient-text--border {
    padding: 0.35em 0.75em;
    border-radius: 999px;
}

.gradient-text--border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: var(--gt-border);
    border-radius: inherit;
    background-image: var(--gt-gradient);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box exclude,
        linear-gradient(#000 0 0);
    pointer-events: none;
}

.gradient-text__inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
}

.gradient-text__content {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    background-image: var(--gt-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gradient-text__glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    background-image: var(--gt-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: blur(0.32em) saturate(1.45);
    opacity: var(--gt-glow);
    pointer-events: none;
    user-select: none;
}

/* Hero role spans transparent inheritance for seamless gradient sweep */
.gradient-text .role-part1,
.gradient-text .role-separator,
.gradient-text .role-accent,
.gradient-text .role-part1-glow,
.gradient-text .role-separator-glow,
.gradient-text .role-accent-glow {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
    font-weight: 700;
}

.gradient-text .role-separator,
.gradient-text .role-separator-glow {
    margin: 0 6px;
    font-weight: 600;
}

.hero-main-role .role-cursor {
    color: var(--color-cyan);
    font-family: var(--font-mono);
    font-weight: 700;
    display: inline-block;
    animation: cursorBlink 0.6s infinite alternate;
    transition: opacity 0.3s ease;
    margin-left: 2px;
}

/* --------------------------------------------------------------------------
   PORTRAIT JOB ROLE OVERLAY (OPENS UP FROM A LINE - PICTURE'S OWN INTRO)
   -------------------------------------------------------------------------- */
.portrait-role-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 6;
    transform: translateZ(24px);
    pointer-events: none;
    overflow: hidden;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

/* High-tech cyan laser line expanding horizontally from center */
.portrait-line-emitter {
    position: relative;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 240, 255, 0.7) 12%,
        #ffffff 50%,
        rgba(0, 240, 255, 0.7) 88%,
        transparent 100%
    );
    transform: scaleX(0);
    opacity: 0;
    transform-origin: center center;
    box-shadow: 0 0 16px rgba(0, 240, 255, 1), 0 0 32px rgba(0, 240, 255, 0.7);
}

.portrait-line-emitter.line-ignited {
    animation: laserLineDraw 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes laserLineDraw {
    0% {
        transform: scaleX(0);
        opacity: 0;
        box-shadow: 0 0 4px #00f0ff;
    }
    30% {
        opacity: 1;
        box-shadow: 0 0 22px #00f0ff, 0 0 40px rgba(0, 240, 255, 0.9), 0 0 55px #ffffff;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
        box-shadow: 0 0 12px rgba(0, 240, 255, 0.75), 0 0 22px rgba(0, 240, 255, 0.4);
    }
}

body:not(.intro-active) .portrait-line-emitter {
    transform: scaleX(1);
    opacity: 1;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* Drawer / Box that opens up vertically downwards from the laser line */
.portrait-role-drawer {
    width: 100%;
    padding: 13px 14px 14px 14px;
    background: linear-gradient(
        to top,
        rgba(5, 9, 20, 0.97) 0%,
        rgba(7, 13, 26, 0.90) 70%,
        rgba(7, 13, 26, 0.75) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transform: translateY(-4px);
    transition: clip-path 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-role-drawer.drawer-open {
    clip-path: inset(0 0 0% 0);
    opacity: 1;
    transform: translateY(0);
}

body:not(.intro-active) .portrait-role-drawer {
    clip-path: inset(0 0 0% 0);
    opacity: 1;
    transform: translateY(0);
}

.portrait-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
}

.portrait-role-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.portrait-role-sep {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-cyan);
    opacity: 0.85;
}

.portrait-role-accent {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* --------------------------------------------------------------------------
   AWS & PHILNITS CERTIFICATIONS ROW (UNDER PORTRAIT)
   -------------------------------------------------------------------------- */
.hero-cert-badges-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: nowrap;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-entered .hero-cert-badges-row,
body:not(.intro-active) .hero-cert-badges-row {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.38s;
}

.hero-cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    background: rgba(9, 14, 28, 0.75);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: #e2e8f0;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cert-badge:hover {
    border-color: var(--color-cyan);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.hero-cert-badge.aws-badge:hover {
    border-color: #ff9900;
    box-shadow: 0 0 18px rgba(255, 153, 0, 0.4);
    color: #ffb84d;
}

.hero-cert-badge.philnits-badge:hover {
    border-color: #10b981;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.hero-cert-badge .cert-icon {
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   LEFT COLUMN: SUMMARY, CTAS & ACHIEVEMENT PILLS
   -------------------------------------------------------------------------- */
.hero-clean-summary {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 580px;
    margin: 0 0 24px 0;
    text-align: left;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

body.hero-entered .hero-clean-summary, .hero-entered .hero-clean-summary,
body:not(.intro-active) .hero-clean-summary {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.32s;
}

.hero-cta-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

body.hero-entered .hero-cta-left, .hero-entered .hero-cta-left,
body:not(.intro-active) .hero-cta-left {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.42s;
}

/* Button Variants */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px;
    padding: 0 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--color-primary);
    color: #111010;
    border: none;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-hero-primary:hover {
    opacity: 0.92;
    transform: none;
    box-shadow: none;
    color: #111010;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px;
    padding: 0 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.btn-hero-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: none;
    transform: none;
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px;
    padding: 0 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.btn-hero-ghost:hover {
    border-color: var(--color-primary);
    color: var(--text-primary);
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   REACT BITS SPECULAR BUTTON (PHYSICS-BASED WEBGL LIGHTING)
   -------------------------------------------------------------------------- */
.specular-button {
  --sb-radius: 8px;
  --sb-tint: #ffffff;
  --sb-tint-opacity: 0.05;
  --sb-blur: 0px;
  --sb-text-color: #edeae4;

  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin: 0;
  border-radius: var(--sb-radius);
  font: inherit;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--sb-text-color);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(var(--sb-blur));
  backdrop-filter: blur(var(--sb-blur));
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  overflow: visible !important;
}

.specular-button:active {
  transform: scale(0.97);
}

.specular-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sb-text-color) 55%, transparent);
  outline-offset: 3px;
}

.specular-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.specular-button:disabled:active {
  transform: none;
}

.specular-button--sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.specular-button--md {
  padding: 12px 24px;
  font-size: 0.92rem;
}

.specular-button--lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.specular-button__light {
  position: absolute;
  inset: -24px;
  z-index: 1;
  display: block;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  pointer-events: none;
}

.specular-button__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
}

/* --------------------------------------------------------------------------
   REACT BITS BORDER GLOW (DIRECTIONAL RAY-TRACED MESH EDGE GLOW)
   -------------------------------------------------------------------------- */
.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 28px;
  --glow-padding: 40px;
  --cone-spread: 25;

  position: relative;
  border-radius: var(--border-radius);
  isolation: isolate;
  transform: translate3d(0, 0, 0.01px);
  border: 1px solid rgb(255 255 255 / 15%);
  overflow: visible !important;
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
  z-index: -1;
}

.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

/* colored mesh-gradient border */
.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg, #080e1c) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one, radial-gradient(at 80% 55%, hsla(268, 100%, 76%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-two, radial-gradient(at 69% 34%, hsla(349, 100%, 74%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-three, radial-gradient(at 8% 6%, hsla(136, 100%, 78%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-four, radial-gradient(at 41% 38%, hsla(192, 100%, 64%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-five, radial-gradient(at 86% 85%, hsla(186, 100%, 74%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-six, radial-gradient(at 82% 18%, hsla(52, 100%, 65%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, hsla(12, 100%, 72%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-base, linear-gradient(#c299ff 0 100%)) border-box;

  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
  -webkit-mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

/* colored mesh-gradient background fill near edges */
.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one, radial-gradient(at 80% 55%, hsla(268, 100%, 76%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-two, radial-gradient(at 69% 34%, hsla(349, 100%, 74%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-three, radial-gradient(at 8% 6%, hsla(136, 100%, 78%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-four, radial-gradient(at 41% 38%, hsla(192, 100%, 64%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-five, radial-gradient(at 86% 85%, hsla(186, 100%, 74%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-six, radial-gradient(at 82% 18%, hsla(52, 100%, 65%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, hsla(12, 100%, 72%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-base, linear-gradient(#c299ff 0 100%)) padding-box;

  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  -webkit-mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);

  mask-composite: subtract, add, add, add, add, add;
  -webkit-mask-composite: source-out, source-over, source-over, source-over, source-over, source-over;
  opacity: calc(var(--fill-opacity, 0.45) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}

/* outer glow layer */
.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  pointer-events: none;
  z-index: 1;

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );
  -webkit-mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );

  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}

.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color, hsl(185deg 100% 65% / 100%)),
    inset 0 0 1px 0 var(--glow-color-60, hsl(185deg 100% 65% / 60%)),
    inset 0 0 3px 0 var(--glow-color-50, hsl(185deg 100% 65% / 50%)),
    inset 0 0 6px 0 var(--glow-color-40, hsl(185deg 100% 65% / 40%)),
    inset 0 0 15px 0 var(--glow-color-30, hsl(185deg 100% 65% / 30%)),
    inset 0 0 25px 2px var(--glow-color-20, hsl(185deg 100% 65% / 20%)),
    inset 0 0 50px 2px var(--glow-color-10, hsl(185deg 100% 65% / 10%)),
    0 0 1px 0 var(--glow-color-60, hsl(185deg 100% 65% / 60%)),
    0 0 3px 0 var(--glow-color-50, hsl(185deg 100% 65% / 50%)),
    0 0 6px 0 var(--glow-color-40, hsl(185deg 100% 65% / 40%)),
    0 0 15px 0 var(--glow-color-30, hsl(185deg 100% 65% / 30%)),
    0 0 25px 2px var(--glow-color-20, hsl(185deg 100% 65% / 20%)),
    0 0 50px 2px var(--glow-color-10, hsl(185deg 100% 65% / 10%));
}

.border-glow-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  z-index: 2;
  width: 100%;
  height: 100%;
  justify-content: space-between;
}

/* Metric Pills Ticker (Left Aligned) */
.hero-pills-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-entered .hero-pills-left,
body:not(.intro-active) .hero-pills-left {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* --------------------------------------------------------------------------
   RESPONSIVE HERO (TABLET & MOBILE BREAKPOINTS)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 50px;
        min-height: auto;
    }

    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-left-col {
        align-items: center;
        text-align: center;
    }

    .hero-name-container {
        text-align: center;
    }

    .hero-main-name {
        text-align: center;
    }

    .hero-metallic-glint {
        text-align: center;
    }

    .hero-clean-summary {
        text-align: center;
        margin: 0 auto 24px auto;
    }

    .hero-cta-left,
    .hero-pills-left {
        justify-content: center;
    }

    .hero-portrait-container {
        width: 230px;
        height: 304px;
    }
}

.pill-card {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
    background-image: none;
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transition: border-color var(--transition-fast), color var(--transition-fast);
    position: relative;
    cursor: default;
}

.pill-card:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-image: none;
    box-shadow: none;
    transform: none;
}

/* --------------------------------------------------------------------------
   SECTION FIRST-TIME SCROLL TRANSITIONS: EASE UP FADE IN
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(48px) scale(0.985);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow-x: clip;
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-on-scroll .section-header {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.reveal-on-scroll.revealed .section-header {
    opacity: 1;
    transform: translateY(0);
}

/* Luminous Cybernetic Scanning Beam Sweep on First Reveal */
.reveal-on-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 240, 255, 0.04) 20%,
        rgba(0, 240, 255, 0.22) 50%,
        rgba(167, 139, 250, 0.18) 75%,
        transparent 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 20;
    opacity: 0;
}

.reveal-on-scroll.revealed::after {
    animation: sectionHoloScan 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sectionHoloScan {
    0% {
        left: -80%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    75% {
        opacity: 0.9;
    }
    100% {
        left: 160%;
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   SECTION HEADINGS & CYBER GLITCH-DECIPHER EFFECT
   -------------------------------------------------------------------------- */
.section {
    padding: 96px 0;
    position: relative;
    z-index: 2;
    scroll-margin-top: 96px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 38px;
}

.section-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section-tech-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.section-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-cyan);
    padding: 4px 10px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: var(--radius-sm);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    position: relative;
    cursor: default;
}

.cyber-glitch-text {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
    white-space: pre-wrap;
    word-break: keep-all;
}

.cyber-glitch-text .decipher-char {
    display: inline-block;
    white-space: pre;
    transition: color 0.1s ease;
}

.cyber-glitch-text .decipher-char.decipher-space {
    display: inline-block;
    width: 0.35em;
    min-width: 0.35em;
}

.cyber-glitch-text .decipher-scrambled {
    color: var(--color-cyan);
    text-shadow: 0 0 10px var(--color-cyan);
}

.section-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--section-accent), rgba(255, 255, 255, 0.06) 65%, transparent);
    margin-left: 12px;
}

/* --------------------------------------------------------------------------
   SECTION STAGGER MOTION
   -------------------------------------------------------------------------- */

.stagger-parent .stagger-child {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--child-idx, 0) * 75ms);
}

.reveal-on-scroll.revealed .stagger-parent .stagger-child,
.reveal-on-scroll.revealed.stagger-parent .stagger-child {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   ABOUT ME SECTION (SUMMARIZED, LESS READING)
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: stretch;
}

.about-text-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lead-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.65;
}

.about-text-card p {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.highlights-box {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--color-glass-subtle);
    border: 1px solid var(--glass-border-color);
}

.box-title {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: var(--color-cyan);
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.bullet-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-cyan);
    box-shadow: 0 0 6px var(--color-cyan);
    margin-top: 7px;
    flex-shrink: 0;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.pillar-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
}

.pillar-icon-wrapper {
    font-size: 1.4rem;
    margin-bottom: 6px;
    display: inline-block;
}

.pillar-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pillar-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   SKILLS & STACKS: SCATTERED SPREADING CARDS FIELD (HEADERS ONLY, NO OUTER BOXES)
   -------------------------------------------------------------------------- */
.skills-categories-wrapper {
    display: flex;
    flex-direction: column;
    gap: 52px;
    margin-top: 40px;
    width: 100%;
}

/* --------------------------------------------------------------------------
   REACT BITS LOGOLOOP COMPONENT (CORE STYLES)
   -------------------------------------------------------------------------- */
.logoloop {
    position: relative;
    overflow: hidden;
    width: 100%;
    --logoloop-gap: 20px;
    --logoloop-logoHeight: 32px;
    --logoloop-fadeColor: #111010;
    --logoloop-fadeColorAuto: #111010;
}

.logoloop--horizontal {
    width: 100%;
}

.logoloop--vertical {
    height: 100%;
    display: inline-block;
}

.logoloop--scale-hover {
    padding-top: 8px;
    padding-bottom: 8px;
}

.logoloop__track {
    display: flex;
    width: max-content;
    will-change: transform;
    user-select: none;
    position: relative;
    z-index: 1;
}

.logoloop__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.logoloop__item {
    flex: 0 0 auto;
    margin-right: var(--logoloop-gap);
    line-height: 1;
}

.logoloop__item:last-child {
    margin-right: var(--logoloop-gap);
}

.logoloop--fade::before,
.logoloop--fade::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(36px, 12%, 180px);
    pointer-events: none;
    z-index: 5;
}

.logoloop--fade::before {
    left: 0;
    background: linear-gradient(
        to right,
        var(--logoloop-fadeColor, var(--color-bg)) 0%,
        rgba(17, 16, 16, 0) 100%
    );
}

.logoloop--fade::after {
    right: 0;
    background: linear-gradient(
        to left,
        var(--logoloop-fadeColor, var(--color-bg)) 0%,
        rgba(17, 16, 16, 0) 100%
    );
}

/* --------------------------------------------------------------------------
   TECH STACK REDESIGN & LOGO CHIP STYLING
   -------------------------------------------------------------------------- */
.stack-showcase-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    margin-top: 32px;
}

.stack-loops-marquee {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    position: relative;
    padding: 6px 0;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 14px;
    background: #141313;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    position: relative;
}

.tech-chip:hover {
    background: #1c1b1b;
    border-color: var(--color-primary);
    box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.7), 0 0 18px rgba(127, 168, 255, 0.22);
    transform: translateY(-2px);
}

.tech-chip-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tech-chip-icon svg,
.tech-chip-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.tech-chip-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tech-chip-name {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.tech-chip-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.tech-chip:hover .tech-chip-badge {
    color: var(--color-primary);
}

/* Domain Bento Breakdown Grid */
.stack-domain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 12px;
    width: 100%;
}

@media (max-width: 1100px) {
    .stack-domain-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.stack-domain-card {
    background: #141313;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.25s ease;
}

.stack-domain-card:hover {
    border-color: rgba(127, 168, 255, 0.35);
    background: #181717;
}

.domain-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.domain-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

[data-theme="light"] .domain-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .domain-title {
    color: #0f172a;
}

.domain-badge-count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.domain-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.domain-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 9px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.stack-domain-card:hover .domain-tag {
    color: var(--text-primary);
    border-color: rgba(127, 168, 255, 0.2);
}

.domain-tag.verified {
    color: #10B981;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .tech-chip {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .tech-chip:hover {
    background: #f8fafc;
    border-color: var(--color-primary);
}

[data-theme="light"] .tech-chip-name {
    color: #0f172a;
}

[data-theme="light"] .stack-domain-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .domain-title {
    color: #0f172a;
}

[data-theme="light"] .logoloop {
    --logoloop-fadeColor: #f8fafc;
    --logoloop-fadeColorAuto: #f8fafc;
}

/* --------------------------------------------------------------------------
   FEATURED PROJECTS SECTION (COMPACT SUMMARY CARDS)
   -------------------------------------------------------------------------- */
.featured-projects-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.featured-project-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: var(--radius-lg);
    justify-content: space-between;
}

.media-placeholder-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020408;
    border: 1px solid var(--glass-border-color);
    margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   DUAL MOVING AUTO-SCROLL CAROUSELS FOR PROJECTS (HIGH PERFORMANCE)
   -------------------------------------------------------------------------- */
/* Projects section compact viewport container */
.projects-section {
    padding-top: 76px !important;
    padding-bottom: 64px !important;
    position: relative;
    overflow: hidden;
}

.projects-section .section-header {
    margin-bottom: 12px !important;
}

/* Header with 'See All Projects' CTA aligned to the right */
.projects-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}

.projects-header-flex .section-divider {
    flex: 1;
    height: 1px;
    margin: 0 16px 0 14px;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.4) 0%, rgba(139, 92, 246, 0.25) 50%, rgba(0, 240, 255, 0.35) 100%);
}

.projects-header-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
    transition: all var(--transition-fast);
}

.projects-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(0, 240, 255, 0.55);
}

@media (max-width: 768px) {
    .projects-header-flex {
        flex-wrap: wrap;
        gap: 12px;
    }
    .projects-header-flex .section-divider {
        display: none;
    }
    .projects-header-cta {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
}

.projects-carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 6px 0 12px;
}

/* Hardware-accelerated edge fades - wider vignette to narrow visible project spotlight */
.projects-carousel-container::before,
.projects-carousel-container::after {
    content: '';
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: clamp(220px, 24vw, 360px);
    z-index: 20;
    pointer-events: none;
}

.projects-carousel-container::before {
    left: 0;
    background: linear-gradient(
        to right,
        var(--color-bg) 0%,
        var(--color-bg) 32%,
        rgba(5, 7, 12, 0.88) 60%,
        rgba(5, 7, 12, 0.45) 80%,
        transparent 100%
    );
}

.projects-carousel-container::after {
    right: 0;
    background: linear-gradient(
        to left,
        var(--color-bg) 0%,
        var(--color-bg) 32%,
        rgba(5, 7, 12, 0.88) 60%,
        rgba(5, 7, 12, 0.45) 80%,
        transparent 100%
    );
}

/* CAROUSEL TILT RUNWAY (STRAIGHT HORIZONTALLY, 3D UPWARD PERSPECTIVE TILT) */
.carousel-tilt-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: perspective(1200px) rotateX(15deg);
    transform-origin: center 50%;
    transform-style: preserve-3d;
    padding: 4px 0 8px;
    will-change: transform;
}

@media (max-width: 1024px) {
    .carousel-tilt-wrapper {
        transform: perspective(1000px) rotateX(12deg);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .carousel-tilt-wrapper {
        transform: perspective(900px) rotateX(9deg);
        gap: 8px;
    }
}

.carousel-track-row {
    display: flex;
    gap: 14px;
    overflow: visible;
    user-select: none;
    padding: 2px 0 4px;
    width: 100%;
}

.carousel-track-row:hover .carousel-group {
    animation-play-state: paused;
}

.carousel-track {
    display: flex;
    overflow: visible;
    width: max-content;
    user-select: none;
    transform: translate3d(0, 0, 0);
}

.carousel-group {
    display: flex;
    gap: 14px;
    padding-right: 14px;
    flex-shrink: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.track-marquee-left .carousel-group {
    animation: marqueeGroupLeft 44s linear infinite;
}

.track-marquee-right .carousel-group {
    animation: marqueeGroupRight 52s linear infinite;
}

@keyframes marqueeGroupLeft {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

@keyframes marqueeGroupRight {
    0% {
        transform: translate3d(-100%, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* CAROUSEL CARDS: Super-Compact & Space Efficient with Smooth 3D Depth */
.carousel-card {
    width: 260px;
    flex-shrink: 0;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background-color: var(--color-surface) !important;
    border: 1px solid var(--border-color);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    transition: border-color var(--transition-fast);
}

.carousel-card:hover {
    border-color: var(--color-primary);
    box-shadow: none !important;
    transform: none !important;
}

.carousel-media-box {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020408;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.6);
    margin-bottom: 7px;
}

.carousel-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-norm);
}

.carousel-card:hover .carousel-media-img {
    transform: scale(1.04);
}

/* ROW 2 CAROUSEL VARIATION: COMPACT HORIZONTAL CYBER CARD */
.carousel-card-wide {
    width: 345px;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    padding: 9px 11px;
    align-items: stretch;
    min-height: 125px;
}

.carousel-card-wide .carousel-media-box {
    margin-bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 98px;
    aspect-ratio: auto;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #020408;
    border: 1px solid var(--glass-border-color);
}

.carousel-card-wide .carousel-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-norm);
}

.carousel-card-wide .carousel-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.project-date {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
}

.project-type {
    font-size: 0.68rem;
    padding: 2px 6px;
}

.project-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-summary {
    font-size: 0.73rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-bottom: 5px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.tech-badge {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--color-cyan);
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sleek-btn-sm {
    font-size: 0.72rem;
}

.scopus-tag {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 600;
    color: var(--color-violet);
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.see-more-projects-wrapper {
    margin-top: 14px !important;
    text-align: center;
}


/* --------------------------------------------------------------------------
   RESEARCH & EDUCATION SECTION (SCANNABLE)
   -------------------------------------------------------------------------- */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 100%;
    margin: 0 auto;
}

.research-card {
    padding: 28px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(8, 14, 28, 0.76);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 240, 255, 0.16);
    box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.research-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 18px 44px -8px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 240, 255, 0.2);
}

.research-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.research-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.research-scopus-pill {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    color: #fbbf24 !important;
    font-weight: 700;
}

.research-pcsc-pill {
    background: rgba(0, 240, 255, 0.12) !important;
    border: 1px solid rgba(0, 240, 255, 0.4) !important;
    color: var(--color-cyan) !important;
    font-weight: 700;
}

.research-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.research-authors-strip {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--color-cyan);
    border-radius: 0 6px 6px 0;
}

.research-authors-strip strong {
    color: #ffffff;
    font-weight: 700;
}

.research-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.research-desc strong {
    color: #ffffff;
    font-weight: 600;
}

.research-tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.research-meta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.research-location-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.research-location {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-cyan);
    font-weight: 600;
}

.research-venue {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.research-inspect-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-cyan);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 6px 12px;
    border-radius: 4px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.research-card:hover .research-inspect-btn {
    background: var(--color-cyan);
    color: #05070c;
    box-shadow: 0 0 12px var(--color-cyan-glow);
}

/* --------------------------------------------------------------------------
   WORK & EDUCATION TIMELINE
   -------------------------------------------------------------------------- */
.timeline-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 10px;
}

.column-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.column-title-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--section-accent);
    box-shadow: 0 0 10px var(--section-accent-glow);
}

.timeline-item {
    padding: 24px 26px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    background: rgba(8, 14, 28, 0.76);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 240, 255, 0.16);
    box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 18px 44px -8px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 240, 255, 0.18);
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.item-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.timeline-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.item-subtitle {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--color-cyan);
    font-weight: 600;
}

.item-role-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.experience-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.experience-bullets li {
    position: relative;
    padding-left: 18px;
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.experience-bullets li::before {
    content: '›';
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--color-cyan);
    font-size: 1.1rem;
    font-weight: 700;
}

.timeline-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.timeline-details p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.timeline-details p strong {
    color: #ffffff;
    font-weight: 600;
}

.timeline-tech-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-tech-pill {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.18);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-tech-pill {
    color: #ffffff;
    border-color: rgba(0, 240, 255, 0.35);
}

/* --------------------------------------------------------------------------
   VOLUNTEERING SECTION
   -------------------------------------------------------------------------- */
.volunteering-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.volunteering-card {
    padding: 24px 26px;
    border-radius: var(--radius-md);
    background: rgba(8, 14, 28, 0.76);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 240, 255, 0.16);
    box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.volunteering-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 18px 44px -8px rgba(0, 0, 0, 0.85), 0 0 22px rgba(0, 240, 255, 0.18);
}

.volunteering-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.volunteering-period {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-cyan);
    font-weight: 600;
}

.volunteering-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.35;
}

.volunteering-desc {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.volunteering-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-horizontal-card {
    padding: 38px 42px;
    border-radius: var(--radius-lg);
    background: rgba(8, 14, 28, 0.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(0, 240, 255, 0.18);
    box-shadow: 0 16px 48px -10px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-telemetry-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: #34d399;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.contact-telemetry-badge .telemetry-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: telemetryPulse 2s infinite ease-in-out;
}

@keyframes telemetryPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

.card-heading {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.contact-lead {
    font-size: 0.96rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 760px;
    line-height: 1.6;
}

.contact-methods-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.contact-method-card {
    padding: 20px 22px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(8, 14, 28, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.14);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-method-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 240, 255, 0.15);
}

.method-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-svg-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-cyan);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.method-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
    text-decoration: none;
}

.email-copy-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-copy {
    padding: 4px 10px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--color-cyan);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-copy:hover {
    background: var(--color-cyan);
    color: #05070c;
    box-shadow: 0 0 10px var(--color-cyan-glow);
}

.social-profiles-bar {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social-bar-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-links-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-card-btn {
    padding: 10px 18px;
    font-size: 0.82rem;
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-sm);
    background: rgba(8, 14, 28, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.18);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-card-btn:hover {
    color: #ffffff;
    border-color: var(--color-cyan);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 16px var(--color-cyan-glow);
    transform: translateY(-2px);
}

.social-card-btn .ui-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.social-card-btn:hover .ui-icon {
    transform: scale(1.12);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    padding: 30px 0;
    border-top: 1px solid var(--glass-border-color);
    background: rgba(5, 7, 12, 0.9);
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
}

.back-to-top {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-cyan);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 240, 255, 0.2);
    transition: all var(--transition-fast);
}

.back-to-top:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 10px var(--color-cyan-glow);
}

/* --------------------------------------------------------------------------
   DIALOGS & MODALS
   -------------------------------------------------------------------------- */
dialog {
    border: none;
    background: transparent;
    padding: 0;
    max-width: 95vw;
    margin: auto;
}

dialog::backdrop {
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sleek-dialog-wrapper .overlay-container {
    background: rgba(9, 14, 26, 0.96);
    backdrop-filter: var(--glass-blur-lg);
    -webkit-backdrop-filter: var(--glass-blur-lg);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 240, 255, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    width: 1240px;
    max-width: 95vw;
    height: 90vh;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sleek-dialog-wrapper .dialog-container {
    background: rgba(9, 14, 26, 0.94);
    backdrop-filter: var(--glass-blur-lg);
    -webkit-backdrop-filter: var(--glass-blur-lg);
    border: 1px solid var(--glass-border-color);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    width: 960px;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.overlay-header, .dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--glass-border-color);
    flex-shrink: 0;
}

.overlay-title, .dialog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.overlay-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-cyan);
}

.dialog-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.dialog-close-btn:hover {
    color: var(--color-cyan);
    background: rgba(0, 240, 255, 0.1);
}

.overlay-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--glass-border-color);
    background: rgba(5, 7, 12, 0.6);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.filter-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.filter-buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-btn.active {
    background: var(--color-cyan);
    color: #05070c;
    border-color: var(--color-cyan);
    box-shadow: 0 0 12px var(--color-cyan-glow);
}

.overlay-body {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.4) rgba(5, 8, 16, 0.6);
}

.overlay-body::-webkit-scrollbar {
    width: 6px;
}
.overlay-body::-webkit-scrollbar-track {
    background: rgba(5, 8, 16, 0.6);
}
.overlay-body::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.4);
    border-radius: 4px;
}

.overlay-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .overlay-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .overlay-projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    padding: 18px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* CRITICAL: prevents grid cell blowout */
    background: rgba(10, 16, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 240, 255, 0.15);
}

.project-card.hidden {
    display: none !important;
}

/* IMAGE BOX SPECIFICATIONS */
.project-card-media {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.05) 0%, #03060c 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.media-placeholder-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* SQUARE OR HORIZONTAL SCREENSHOTS: DO NOT CROP */
.project-media-img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
    display: block;
    transition: transform var(--transition-norm);
}

.project-card:hover .project-media-img:not(.portrait-img) {
    transform: scale(1.04);
}

/* PORTRAIT SCREENSHOTS ONLY FILL THE HEIGHT, NOT THE WIDTH */
.project-media-img.portrait-img,
.project-media-img[data-orientation="portrait"],
.portrait-media .project-media-img {
    width: auto !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.85));
    transition: transform var(--transition-norm);
}

.project-card:hover .project-media-img.portrait-img {
    transform: scale(1.03);
}

.project-card-header .project-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.project-card-body .project-summary {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 12px;
    flex: 1;
}

.overlay-footer, .dialog-footer {
    display: flex;
    justify-content: flex-end;
    padding: 14px 24px;
    border-top: 1px solid var(--glass-border-color);
    background: rgba(5, 7, 12, 0.6);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   PROJECT SCREENSHOT VIEW MODAL (SCREENSHOT ONLY, NO CLIPPING)
   -------------------------------------------------------------------------- */
@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sleek-dialog-wrapper.project-dialog {
    padding: 0;
    border: none;
    background: transparent;
    max-width: 96vw;
    max-height: 94vh;
}

.sleek-dialog-wrapper .dialog-container.modal-screenshot-container,
.modal-screenshot-container {
    width: -moz-fit-content;
    width: fit-content;
    min-width: min(340px, 92vw);
    max-width: min(92vw, 1320px);
    max-height: 90vh;
    background: rgba(9, 14, 26, 0.94);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: none;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.95);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
    position: relative;
    box-sizing: border-box;
}

dialog[open] .modal-screenshot-container {
    animation: modalScaleIn 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-screenshot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--glass-border-color);
    background: rgba(5, 8, 16, 0.65);
    flex-shrink: 0;
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
}

.modal-screenshot-header .dialog-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1;
}

.modal-screenshot-header .dialog-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.35;
    word-break: break-word;
}

.modal-screenshot-body {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px 16px;
    background: transparent;
    overflow: hidden;
    box-sizing: border-box;
}

.modal-screenshot-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    max-height: calc(85vh - 65px);
    overflow: hidden;
}

.modal-screenshot-img {
    display: block;
    max-width: 100%;
    max-height: calc(84vh - 65px);
    object-fit: contain !important;
    border-radius: var(--radius-sm);
    filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 auto;
}

/* Portrait Mobile Showcase (e.g. TakeIt, CropConnect, DishCover, Nexchef) */
.sleek-dialog-wrapper .dialog-container.modal-screenshot-container[data-orientation="portrait"],
.modal-screenshot-container[data-orientation="portrait"] {
    max-width: min(90vw, 460px) !important;
}

.modal-screenshot-container[data-orientation="portrait"] .modal-screenshot-header {
    padding: 10px 16px;
    gap: 10px;
}

.modal-screenshot-container[data-orientation="portrait"] .dialog-title {
    font-size: 0.95rem;
    line-height: 1.35;
}

.modal-screenshot-container[data-orientation="portrait"] .modal-screenshot-body {
    padding: 10px 14px 14px;
}

.modal-screenshot-img.portrait-screenshot,
.modal-screenshot-img[data-orientation="portrait"] {
    height: calc(85vh - 75px) !important;
    width: auto !important;
    max-width: calc(90vw - 28px) !important;
    max-height: calc(85vh - 75px) !important;
    object-fit: contain !important;
}

/* Square / Near-Square Presentation (e.g. Fusion Rush, Visual AI, Bomberman) */
.sleek-dialog-wrapper .dialog-container.modal-screenshot-container[data-orientation="square"],
.modal-screenshot-container[data-orientation="square"] {
    max-width: min(92vw, 840px) !important;
}

.modal-screenshot-img.square-screenshot,
.modal-screenshot-img[data-orientation="square"] {
    width: auto !important;
    height: auto !important;
    max-width: min(calc(84vh - 65px), calc(92vw - 36px)) !important;
    max-height: calc(84vh - 65px) !important;
    object-fit: contain !important;
}

/* Landscape Showcase (e.g. Refertoire) */
.sleek-dialog-wrapper .dialog-container.modal-screenshot-container[data-orientation="landscape"],
.modal-screenshot-container[data-orientation="landscape"] {
    max-width: min(94vw, 1320px) !important;
}

.modal-screenshot-img.landscape-screenshot,
.modal-screenshot-img[data-orientation="landscape"] {
    width: auto !important;
    height: auto !important;
    max-width: min(94vw - 36px, 1260px) !important;
    max-height: calc(84vh - 65px) !important;
    object-fit: contain !important;
}

.cat-svg-icon {
    width: 20px;
    height: 20px;
    fill: var(--color-cyan);
    display: inline-block;
    vertical-align: middle;
}

.method-svg-icon {
    width: 22px;
    height: 22px;
    fill: var(--color-cyan);
    display: inline-block;
    vertical-align: middle;
}

.sleek-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sleek-btn-sm:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    background: rgba(0, 240, 255, 0.12);
}

.ui-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .hero-main-name {
        font-size: 4.2rem;
    }
    .hero-main-role {
        font-size: 1.8rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .featured-projects-list {
        grid-template-columns: 1fr;
    }
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .main-nav {
        position: fixed;
        top: 68px;
        left: 0;
        width: 100%;
        background: rgba(5, 7, 12, 0.96);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        padding: 20px;
        border-bottom: 1px solid var(--glass-border-color);
        display: none;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .hero-main-name {
        font-size: 3.2rem;
    }
    .hero-main-role {
        font-size: 1.5rem;
    }
    .skills-categories-grid {
        grid-template-columns: 1fr;
    }
    .timeline-layout {
        grid-template-columns: 1fr;
    }
    .volunteering-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-methods-horizontal-grid {
        grid-template-columns: 1fr;
    }
    .overlay-projects-grid {
        grid-template-columns: 1fr;
    }
    .dialog-grid-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hero-main-name {
        font-size: 2.4rem;
    }
    .hero-main-role {
        font-size: 1.25rem;
    }
    .hero-clean-summary {
        font-size: 0.98rem;
    }
    .research-grid {
        grid-template-columns: 1fr;
    }
    .volunteering-grid {
        grid-template-columns: 1fr;
    }
    .philosophy-grid {
        grid-template-columns: 1fr !important;
    }
    .honors-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --------------------------------------------------------------------------
   ENGINEERING PHILOSOPHY & PRINCIPLES ASYMMETRIC BENTO GRID
   -------------------------------------------------------------------------- */
.philosophy-grid,
.philosophy-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-top: 36px;
    width: 100%;
}

.bento-span-7 {
    grid-column: span 7;
}

.bento-span-5 {
    grid-column: span 5;
}

.bento-span-6 {
    grid-column: span 6;
}

.bento-span-12 {
    grid-column: span 12;
}

@media (max-width: 992px) {
    .bento-span-7,
    .bento-span-5,
    .bento-span-6 {
        grid-column: span 12;
    }
}

.philosophy-bento-card {
    background-color: var(--color-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: none;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
    padding: 32px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.philosophy-bento-card:hover {
    border-color: rgba(127, 168, 255, 0.4);
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6);
}

.bento-inner-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bento-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.bento-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bento-watermark-num {
    font-family: var(--font-mono);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(237, 234, 228, 0.08);
    letter-spacing: -0.04em;
    user-select: none;
    transition: color var(--transition-fast);
}

.philosophy-bento-card:hover .bento-watermark-num {
    color: rgba(127, 168, 255, 0.22);
}

.bento-pill-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bento-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.bento-status-dot.pulse-emerald {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: badgePulse 2s infinite ease-in-out;
}

.bento-status-dot.pulse-cyan {
    background: var(--color-cyan);
    box-shadow: 0 0 8px var(--color-cyan);
    animation: badgePulse 2s infinite ease-in-out;
}

.bento-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(127, 168, 255, 0.08);
    border: 1px solid rgba(127, 168, 255, 0.25);
    color: var(--color-primary);
    box-shadow: 0 0 16px rgba(127, 168, 255, 0.12);
    flex-shrink: 0;
}

.bento-icon-box.violet {
    background: rgba(127, 168, 255, 0.08);
    border-color: rgba(127, 168, 255, 0.3);
    color: var(--color-primary);
}

.bento-icon-box.emerald {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.bento-icon-box.amber {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

.bento-icon-box svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.bento-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.bento-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.68;
    margin-bottom: 22px;
}

/* Telemetry Terminal Box Inside Bento */
.bento-telemetry-hud {
    background: #0d0f14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.telemetry-hud-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
}

.hud-term-prompt {
    color: var(--color-primary);
    font-weight: 700;
}

.hud-term-title {
    color: var(--text-faint);
    flex: 1;
}

.hud-live-tag {
    font-size: 0.62rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    letter-spacing: 0.04em;
}

.hud-live-tag-cyan {
    color: var(--color-primary);
    background: rgba(127, 168, 255, 0.12);
    border-color: rgba(127, 168, 255, 0.3);
}

.telemetry-hud-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hud-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    gap: 14px;
    flex-wrap: wrap;
}

.hud-label {
    color: var(--text-muted);
}

.hud-value {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hud-cyan { color: var(--color-primary); }
.hud-emerald { color: #34d399; }
.hud-purple { color: #a78bfa; }

/* Micro-Perf Metrics Grid Inside Bento */
.bento-perf-meter-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: #0d0f14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 22px;
    gap: 12px;
}

.perf-metric-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    gap: 4px;
}

.perf-num {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.perf-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.perf-meter-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.perf-meter-fill {
    height: 100%;
    border-radius: 2px;
}

.perf-meter-fill.cyan { background: var(--color-primary); }
.perf-meter-fill.emerald { background: #34d399; }
.perf-meter-fill.purple { background: #a78bfa; }

.perf-sep {
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    align-self: stretch;
    flex-shrink: 0;
}

.bento-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-tag-chip {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.philosophy-bento-card:hover .bento-tag-chip {
    background: rgba(127, 168, 255, 0.08);
    border-color: rgba(127, 168, 255, 0.35);
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   HONORS & NATIONAL/INTERNATIONAL COMPETITIONS
   -------------------------------------------------------------------------- */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
    width: 100%;
}

@media (max-width: 1024px) {
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.honor-award-card {
    padding: 22px;
    border-radius: var(--radius-md);
    background: rgba(8, 14, 28, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 240, 255, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.honor-award-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.55);
    box-shadow: 0 14px 34px -6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.2);
}

.honor-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.honor-badge-pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.honor-badge-champion {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #FBBF24;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.honor-badge-first {
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: var(--color-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.18);
}

.honor-badge-scopus {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: var(--color-violet);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

.honor-year {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
}

.honor-award-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 8px;
}

.honor-award-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 14px;
    flex: 1;
}

.honor-award-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   CASE STUDY MODAL TAB INTERFACE & ARCHITECTURE BREAKDOWN
   -------------------------------------------------------------------------- */
.modal-tabs-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(4, 7, 14, 0.85);
    border-bottom: 1px solid var(--glass-border-color);
}

.modal-tab-btn {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.modal-tab-btn.active {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.35);
    color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.modal-case-study-body {
    padding: 24px 28px;
    max-height: 72vh;
    overflow-y: auto;
    color: var(--text-secondary);
    display: none;
}

.modal-case-study-body.active {
    display: block;
}

.case-study-block {
    margin-bottom: 22px;
}

.case-study-label {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--color-cyan);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-study-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-primary);
}

.case-study-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.case-study-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border-color);
}



.main-nav .nav-link.active {
    color: var(--section-accent) !important;
    text-shadow: 0 0 12px var(--section-accent-glow);
}


/* ==========================================================================
   MULTI-PAGE EXTENSIONS: NAVIGATION, PAGE HEROS, IN-DEPTH CONTACT, CATALOG
   ========================================================================== */

/* Active Navbar Indicator */
.main-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
    position: relative;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-cyan, #38bdf8);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

/* Page Level Hero Banner */
.page-hero {
    padding: 130px 0 45px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 45px;
}

.page-hero-inner {
    max-width: 960px;
}

.page-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-cyan, #38bdf8);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 14px;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin-bottom: 18px;
}

.page-hero-lead {
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    color: var(--text-secondary, #94a3b8);
    line-height: 1.65;
    max-width: 820px;
}

.page-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.page-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm, 8px);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #e2e8f0;
}

.page-stat-chip strong {
    color: var(--color-cyan, #38bdf8);
    font-weight: 700;
}

/* Bite-Sized Quick Connect Card (Home Page) */
.bite-connect-card {
    padding: 44px;
    border-radius: var(--radius-lg, 16px);
    background: rgba(8, 14, 28, 0.84);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bite-connect-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 40px;
    align-items: start;
}

.bite-connect-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.bite-connect-desc {
    font-size: 0.98rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.6;
    margin-bottom: 22px;
}

.bite-quick-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bite-input-row {
    display: flex;
    gap: 12px;
}

.bite-input {
    width: 100%;
    padding: 13px 18px;
    border-radius: var(--radius-sm, 8px);
    background: rgba(5, 8, 16, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: all 0.2s ease;
    outline: none;
}

.bite-input:focus {
    border-color: var(--color-cyan, #38bdf8);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
    background: rgba(10, 16, 30, 0.9);
}

.bite-textarea {
    width: 100%;
    min-height: 95px;
    resize: vertical;
    padding: 13px 18px;
    border-radius: var(--radius-sm, 8px);
    background: rgba(5, 8, 16, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.5;
    outline: none;
    transition: all 0.2s ease;
}

.bite-textarea:focus {
    border-color: var(--color-cyan, #38bdf8);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
    background: rgba(10, 16, 30, 0.9);
}

.bite-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.bite-feedback {
    display: none;
    margin: 16px auto 0 auto;
    max-width: 480px;
    text-align: center;
    padding: 12px 20px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 0.88rem;
    font-family: var(--font-mono);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.bite-direct-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bite-channels-card {
    padding: 24px 26px;
    border-radius: var(--radius-md, 12px);
    background: rgba(5, 8, 16, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bite-channels-header {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--color-cyan, #38bdf8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.bite-channel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bite-channel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.bite-channel-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.bite-channel-item a:hover {
    color: var(--color-cyan, #38bdf8);
}

/* In-Depth Contact Layout (contact.html) */
.contact-in-depth-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    margin-bottom: 60px;
}

.inquiry-form-card {
    padding: 38px 42px;
    border-radius: var(--radius-lg, 16px);
    background: rgba(8, 14, 28, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 240, 255, 0.18);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85);
}

.inquiry-form-header {
    margin-bottom: 24px;
}

.inquiry-form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.inquiry-form-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
}

.inquiry-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-field-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-secondary, #94a3b8);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-control-input,
.form-control-select,
.form-control-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm, 8px);
    background: rgba(5, 8, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-control-input:focus,
.form-control-select:focus,
.form-control-textarea:focus {
    border-color: var(--color-cyan, #38bdf8);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
    background: rgba(8, 14, 28, 0.95);
}

.form-control-select {
    cursor: pointer;
}

.form-control-select option {
    background: #080e1c;
    color: #ffffff;
}

.form-control-textarea {
    min-height: 140px;
    resize: vertical;
}

.terminal-hud-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.terminal-hud-card {
    padding: 28px 30px;
    border-radius: var(--radius-md, 12px);
    background: rgba(8, 14, 28, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.16);
}

.hud-clock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.hud-clock-time {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-cyan, #38bdf8);
    letter-spacing: 0.06em;
}

.copy-pill-btn {
    cursor: pointer;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--color-cyan, #38bdf8);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.copy-pill-btn:hover {
    background: var(--color-cyan, #38bdf8);
    color: #05070c;
}

/* Dedicated Projects Layout (projects.html) */
.projects-page-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    padding: 12px 18px;
    border-radius: var(--radius-md, 12px);
    background: rgba(8, 14, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-filter-chip {
    padding: 8px 16px;
    border-radius: var(--radius-sm, 8px);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary, #94a3b8);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-filter-chip:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.project-filter-chip.active {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    color: var(--color-cyan, #38bdf8);
}

.projects-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 70px;
}

.project-catalog-card {
    padding: 26px;
    border-radius: var(--radius-md, 14px);
    background: rgba(8, 14, 28, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-catalog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.15);
}

.project-catalog-media {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 16 / 9;
    background: #020408;
}

.project-catalog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.project-catalog-card:hover .project-catalog-img {
    transform: scale(1.03);
}

.project-catalog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.project-catalog-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-catalog-desc {
    font-size: 0.88rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.project-catalog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.project-catalog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
    .projects-catalog-grid {
        grid-template-columns: 1fr;
    }
    .contact-in-depth-grid {
        grid-template-columns: 1fr;
    }
    .bite-connect-grid {
        grid-template-columns: 1fr;
    }
    .inquiry-fields-grid {
        grid-template-columns: 1fr;
    }
}



/* ==========================================================================
   AUTHENTIC RODDNEIL DESIGN SYSTEM - HERO LAYOUT
   Cosmic Dark / Electric Cyan & Violet Palette
   ========================================================================== */

/* 1. Header & Brand Navbar Alignment - Fluid Scroll State & Seamless Hero Mix */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* At top of scroll: completely transparent to blend into hero */
    background: transparent !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
    border-bottom: 1px solid transparent !important;
    padding: 22px 0 !important;
    box-shadow: none !important;
    transition: background 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                backdrop-filter 0.45s ease,
                -webkit-backdrop-filter 0.45s ease;
}

/* Scrolled state: solid frosted background smoothly engages */
.site-header.scrolled {
    background: rgba(3, 7, 18, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 240, 255, 0.12) !important;
    padding: 12px 0 !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="light"] .site-header.scrolled {
    background: rgba(248, 250, 252, 0.88) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06) !important;
}

.site-header .container.header-inner,
.site-header .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
    position: relative !important;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.brand-badge-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    flex-shrink: 0;
}

.brand-badge-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(56, 189, 248, 0.6)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.35) !important;
    border: 1px solid rgba(0, 240, 255, 0.5) !important;
    flex-shrink: 0;
}

.brand-monogram {
    font-family: var(--font-heading, 'Outfit', sans-serif) !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
}

.brand-badge-info {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

.brand-badge-name {
    font-family: var(--font-heading, 'Outfit', sans-serif) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
}

.brand-badge-sub {
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    color: var(--color-cyan, #00f0ff) !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

/* Center Floating Pill Nav: Blends at top, circular capsule appears upon scrolling */
.main-nav-pill {
    display: flex !important;
    align-items: center !important;
    /* At top: seamless blending without heavy container */
    background: transparent !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
    border: 1px solid transparent !important;
    border-radius: 9999px !important;
    padding: 4px 6px !important;
    box-shadow: none !important;
    flex-shrink: 0;
    margin: 0 auto;
    transition: background 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                backdrop-filter 0.45s ease,
                -webkit-backdrop-filter 0.45s ease;
}

/* Scrolled state: circular pill container appears in place */
.site-header.scrolled .main-nav-pill {
    background: rgba(13, 18, 31, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="light"] .site-header.scrolled .main-nav-pill {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.06) !important;
}

.nav-pill-list {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-pill-item {
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.72) !important;
    padding: 7px 18px !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-block !important;
}

.nav-pill-item:hover {
    color: #ffffff !important;
}

/* At top: Active item is clean text with cyan text glow (no circles) */
.nav-pill-item.active {
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.6) !important;
}

/* When scrolled: Circles of the nav bar appear accordingly! */
.site-header.scrolled .nav-pill-item.active {
    background: rgba(0, 240, 255, 0.16) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: 1px solid rgba(0, 240, 255, 0.45) !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.3) !important;
    text-shadow: none !important;
}

[data-theme="light"] .nav-pill-item {
    color: rgba(15, 23, 42, 0.7) !important;
}

[data-theme="light"] .nav-pill-item:hover {
    color: #0f172a !important;
}

[data-theme="light"] .nav-pill-item.active {
    color: #0284c7 !important;
    text-shadow: 0 0 10px rgba(2, 132, 199, 0.4) !important;
}

[data-theme="light"] .site-header.scrolled .nav-pill-item.active {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.35) !important;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.15) !important;
    text-shadow: none !important;
}

/* Right Header Actions */
.header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0;
}

.theme-segmented-capsule {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    background: rgba(13, 18, 31, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 9999px !important;
    padding: 3px !important;
}

.theme-seg-btn {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
}

.theme-seg-btn:hover {
    color: #ffffff !important;
}

.theme-seg-btn.active {
    background: rgba(0, 240, 255, 0.2) !important;
    color: #00f0ff !important;
    border: 1px solid rgba(0, 240, 255, 0.4) !important;
}

.theme-seg-svg {
    width: 15px !important;
    height: 15px !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.nav-cta-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 22px !important;
    border-radius: 9999px !important;
    background: rgba(0, 240, 255, 0.08) !important;
    color: #ffffff !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25) !important;
    border: 1px solid rgba(0, 240, 255, 0.4) !important;
    transition: all 0.25s ease !important;
}

.nav-cta-pill:hover {
    background: rgba(0, 240, 255, 0.18) !important;
    border-color: #00f0ff !important;
    box-shadow: 0 6px 26px rgba(0, 240, 255, 0.45) !important;
    transform: translateY(-1px) scale(1.02) !important;
}

/* 2. Hero Split Grid & Layout */
.hero-section {
    position: relative !important;
    min-height: 100vh !important;
    padding-top: 120px !important;
    padding-bottom: 60px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.hero-container {
    position: relative !important;
    z-index: 10 !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    width: 100% !important;
}

.hero-split-grid {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: 3.5rem !important;
    align-items: center !important;
    margin-bottom: 3.5rem !important;
}

/* Authentic Cosmic Horizon Glow Beam (Cyan & Blue & Violet) */
.hero-nebula-beam {
    position: absolute !important;
    top: 28% !important;
    left: -10% !important;
    width: 120% !important;
    height: 380px !important;
    background: radial-gradient(ellipse 75% 35% at 50% 50%, rgba(0, 240, 255, 0.12) 0%, rgba(56, 189, 248, 0.07) 35%, rgba(167, 139, 250, 0.04) 65%, transparent 80%) !important;
    transform: rotate(-7deg) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    filter: blur(55px) !important;
}

/* 3. Left Hero Column Typography & Spacing */
.hero-left-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    position: relative !important;
    z-index: 5 !important;
}

/* Available for roles Status Pill */
.hero-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 16px !important;
    border-radius: 9999px !important;
    background: rgba(13, 18, 31, 0.85) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 1.5rem !important;
    opacity: 1 !important;
    transform: none !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.status-dot-emerald {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    box-shadow: 0 0 10px #10b981 !important;
    display: inline-block !important;
    animation: pulse-emerald 2s infinite ease-in-out !important;
}

@keyframes pulse-emerald {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Massive Headline Name */
.hero-name-container {
    margin-bottom: 0.8rem !important;
    position: relative !important;
}

.hero-main-name {
    font-family: var(--font-heading, 'Outfit', sans-serif) !important;
    font-size: clamp(3.2rem, 5.5vw, 5.2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.05 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

/* Dynamic Clean Role (No gibberish!) */
.hero-clean-role-wrap {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 1.5rem !important;
}

.hero-main-role {
    font-size: clamp(1.2rem, 2.2vw, 1.85rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

/* Authentic Clean Bio Summary */
.hero-clean-summary {
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    color: #cbd5e1 !important;
    max-width: 580px !important;
    margin-bottom: 2rem !important;
    font-weight: 400 !important;
}

/* Hero CTA Row */
.hero-cta-left {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 2.2rem !important;
    flex-wrap: wrap !important;
}

.btn-hero-primary {
    background: rgba(0, 240, 255, 0.08) !important;
    border: 1px solid rgba(0, 240, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.22) !important;
    border-radius: 9999px !important;
    padding: 12px 28px !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-hero-primary:hover {
    background: rgba(0, 240, 255, 0.16) !important;
    border-color: #00f0ff !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.45) !important;
    transform: translateY(-2px) !important;
}

.btn-hero-ghost {
    background: rgba(13, 18, 31, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e2e8f0 !important;
    border-radius: 9999px !important;
    padding: 12px 26px !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.btn-hero-outline {
    background: transparent !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    border-radius: 9999px !important;
    padding: 12px 26px !important;
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.25s ease !important;
}

.btn-hero-outline:hover {
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25) !important;
    transform: translateY(-2px) !important;
}

/* Accolade Chips Row */
.hero-accolades-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.hero-accolade-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    color: #93c5fd !important;
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* 4. Right Column: Tall Rounded Showcase Portrait Card */
.hero-right-col {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    z-index: 5 !important;
}

.hero-portrait-card-stage {
    width: 100% !important;
    max-width: 480px !important;
    display: flex !important;
    justify-content: center !important;
}

.hero-ref-portrait-card {
    width: 100% !important;
    border-radius: 38px !important;
    background: rgba(8, 12, 22, 0.92) !important;
    border: 1px solid rgba(0, 240, 255, 0.18) !important;
    box-shadow: 0 28px 70px -15px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 240, 255, 0.1) !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 24px 20px 20px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

/* Card Header Watermark (Clean: only Name and Role, NO GIBBERISH!) */
.portrait-card-header {
    text-align: center !important;
    margin-bottom: 16px !important;
    width: 100% !important;
}

.card-watermark-name {
    font-family: var(--font-heading, 'Outfit', sans-serif) !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 4px !important;
}

.card-role-sub {
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--color-cyan, #00f0ff) !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

/* Photo Box with Transparent Cutout Portrait */
.portrait-card-photo-box {
    position: relative !important;
    width: 100% !important;
    height: 390px !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    background: radial-gradient(circle at 50% 40%, rgba(0, 240, 255, 0.14) 0%, rgba(56, 189, 248, 0.05) 50%, rgba(6, 9, 18, 0.6) 80%) !important;
    margin-bottom: 14px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
}

.hero-ref-portrait-img {
    width: auto !important;
    max-width: 92% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: bottom center !important;
    display: block !important;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.85)) !important;
}

.portrait-card-vignette {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, transparent 72%, rgba(8, 12, 22, 0.95) 100%) !important;
    pointer-events: none !important;
}

/* Floating Bottom Profile HUD */
.portrait-bottom-hud {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    background: rgba(7, 10, 19, 0.88) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
    border-radius: 20px !important;
    padding: 10px 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.hud-avatar-box {
    position: relative !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
}

.hud-avatar-img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    background: #080c16;
}

.hud-status-dot {
    position: absolute !important;
    bottom: -1px !important;
    right: -1px !important;
    width: 10px !important;
    height: 10px !important;
    background: #10b981 !important;
    border: 2px solid #070a13 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 6px #10b981 !important;
}

.hud-info-box {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    flex-grow: 1 !important;
}

.hud-handle {
    font-family: var(--font-heading, 'Outfit', sans-serif) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
}

.hud-status-text {
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.66rem !important;
    font-weight: 600 !important;
    color: #10b981 !important;
    letter-spacing: 0.02em !important;
}

.btn-hud-contact {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 240, 255, 0.08) !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
    border-radius: 9999px !important;
    padding: 7px 16px !important;
    color: #ffffff !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.btn-hud-contact:hover {
    background: #00f0ff !important;
    color: #05070c !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.5) !important;
}

/* 5. Four-Card Stats Bento Row */
.hero-stats-bento {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    margin-top: 1rem !important;
}

.stat-bento-card {
    background: rgba(13, 18, 31, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 22px !important;
    padding: 26px 20px !important;
    text-align: center !important;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.stat-bento-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(0, 240, 255, 0.3) !important;
    box-shadow: 0 18px 40px -6px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.15) !important;
}

.stat-number-wrap {
    margin-bottom: 8px !important;
}

.stat-bento-num {
    font-family: var(--font-heading, 'Outfit', sans-serif) !important;
    font-size: clamp(2.4rem, 3.5vw, 3.2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.stat-num-cyan {
    color: #00f0ff !important;
    text-shadow: 0 0 24px rgba(0, 240, 255, 0.4) !important;
}

.stat-num-violet {
    color: #a78bfa !important;
    text-shadow: 0 0 24px rgba(167, 139, 250, 0.4) !important;
}

.stat-num-emerald {
    color: #34d399 !important;
    text-shadow: 0 0 24px rgba(52, 211, 153, 0.4) !important;
}

.stat-num-blue {
    color: #38bdf8 !important;
    text-shadow: 0 0 24px rgba(56, 189, 248, 0.4) !important;
}

.stat-bento-label {
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-split-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center !important;
    }
    .hero-left-col {
        align-items: center !important;
        text-align: center !important;
    }
    .hero-clean-summary {
        margin: 0 auto 2rem auto !important;
    }
    .hero-stats-bento {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .site-header .container.header-inner,
    .site-header .header-inner {
        padding: 0 1rem !important;
    }
    .main-nav-pill {
        display: none !important;
    }
    .hero-stats-bento {
        grid-template-columns: 1fr !important;
    }
    .hero-accolades-row {
        justify-content: center !important;
    }
}


/* ==========================================================================
   REACT BITS - SHINYTEXT COMPONENT STYLES
   ========================================================================== */
.shiny-text {
  position: relative;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s ease;
}

.shiny-text__glow {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: blur(0.14em);
  pointer-events: none;
  user-select: none;
}

.hero-ref-name.shiny-text {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
}

.hero-metallic-glint {
  display: none !important;
}


/* ==========================================================================
   REACT BITS - VARIABLE PROXIMITY TYPOGRAPHY
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

.variable-proximity {
    font-family: 'Roboto Flex', var(--font-heading), sans-serif !important;
    display: inline !important;
    cursor: default;
    transition: color 0.2s ease;
}

.variable-proximity:hover {
    color: #ffffff;
}

.vp-letter {
    display: inline-block;
    will-change: font-variation-settings;
    transition: color 0.15s ease;
}

.vp-letter:hover {
    color: var(--color-cyan, #00f0ff);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   SECTION ARCHITECTURAL BACKGROUND DIVIDERS
   ========================================================================== */
.section-divider-bar {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 240, 255, 0.03) 15%, 
        rgba(0, 240, 255, 0.32) 50%, 
        rgba(0, 240, 255, 0.03) 85%, 
        transparent 100%
    ) !important;
    position: relative;
    margin: 0 !important;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.section-divider-bar::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 3px;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.8) 0%, rgba(56, 189, 248, 0.2) 60%, transparent 80%);
    filter: blur(1.5px);
}

/* ==========================================================================
   ACCOLADE SVG ICONS
   ========================================================================== */
.accolade-svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ==========================================================================
   CONSISTENT GLASSMORPHIC TEXT BOX & CARD DESIGN SYSTEM
   Unifying all cards across Hero, Projects, Conferences & Connect
   ========================================================================== */
.stat-bento-card,
.carousel-card,
.research-card,
.bite-connect-card,
.hero-ref-portrait-card,
.portrait-bottom-hud {
    background: rgba(8, 14, 28, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 240, 255, 0.16) !important;
    box-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.stat-bento-card:hover,
.carousel-card:hover,
.research-card:hover,
.bite-connect-card:hover {
    border-color: rgba(0, 240, 255, 0.38) !important;
    box-shadow: 0 24px 55px -8px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 240, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Accolade Chips Consistency */
.hero-accolade-chip {
    background: rgba(8, 14, 28, 0.75) !important;
    border: 1px solid rgba(0, 240, 255, 0.22) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    color: #93c5fd !important;
    transition: all 0.2s ease !important;
}

.hero-accolade-chip:hover {
    border-color: rgba(0, 240, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   COORDINATED CINEMATIC INTRO FADE-IN ANIMATION
   Staggered appearance of surrounding elements once name reaches resting position
   ========================================================================== */
/* Coordinated Navbar Cinematic Intro Entrance: Descends gracefully from top */
body.intro-active .site-header {
    opacity: 0 !important;
    transform: translateY(-28px) !important;
    filter: blur(6px) !important;
    pointer-events: none !important;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s ease !important;
}

body.hero-entered .site-header, .hero-entered .site-header,
body:not(.intro-active) .site-header {
    opacity: 1 !important;
    transform: translateY(0) !important;
    filter: blur(0px) !important;
    pointer-events: auto !important;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, filter 0.9s ease 0.15s !important;
}

body.intro-active .hero-status-pill,
body.intro-active .hero-clean-summary,
body.intro-active .hero-cta-left,
body.intro-active .hero-accolades-row,
body.intro-active .hero-right-col,
body.intro-active .hero-stats-bento {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    pointer-events: none !important;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.hero-entered .hero-status-pill, .hero-entered .hero-status-pill,
body:not(.intro-active) .hero-status-pill {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.2s !important;
}

body.hero-entered .hero-right-col, .hero-entered .hero-right-col,
body:not(.intro-active) .hero-right-col {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s !important;
}

body.hero-entered .hero-clean-summary, .hero-entered .hero-clean-summary,
body:not(.intro-active) .hero-clean-summary {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.4s !important;
}

body.hero-entered .hero-cta-left, .hero-entered .hero-cta-left,
body:not(.intro-active) .hero-cta-left {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.5s !important;
}

body.hero-entered .hero-accolades-row, .hero-entered .hero-accolades-row,
body:not(.intro-active) .hero-accolades-row {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.6s, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.6s !important;
}

body.hero-entered .hero-stats-bento, .hero-entered .hero-stats-bento,
body:not(.intro-active) .hero-stats-bento {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.72s, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.72s !important;
}



.projects-header-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 18px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border-radius: 9999px !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.25) !important;
    border: 1px solid rgba(0, 240, 255, 0.4) !important;
    background: rgba(0, 240, 255, 0.08) !important;
    color: #ffffff !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.projects-header-cta:hover {
    background: rgba(0, 240, 255, 0.18) !important;
    border-color: #00f0ff !important;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.5) !important;
    transform: translateY(-1px) scale(1.02) !important;
}

/* ==========================================================================
   TECH STACK BOX COLOR CUSTOMIZATIONS (Anti-Slop Color System)
   Tuned distinct identities for Languages, Frameworks, Cloud, Databases
   ========================================================================== */

/* BOX 1: PROGRAMMING LANGUAGES (ELECTRIC CYAN) */
.stack-domain-card.box-cyan {
    background: radial-gradient(ellipse at top left, rgba(0, 240, 255, 0.08) 0%, rgba(8, 14, 28, 0.92) 75%) !important;
    border: 1px solid rgba(0, 240, 255, 0.22) !important;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 240, 255, 0.06), inset 0 1px 0 rgba(0, 240, 255, 0.3) !important;
}
.stack-domain-card.box-cyan:hover {
    border-color: rgba(0, 240, 255, 0.55) !important;
    box-shadow: 0 22px 50px -8px rgba(0, 0, 0, 0.85), 0 0 32px rgba(0, 240, 255, 0.22), inset 0 1px 0 rgba(0, 240, 255, 0.5) !important;
    transform: translateY(-3px) !important;
}
.box-cyan .domain-num {
    color: #00f0ff !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}
.box-cyan .domain-badge-count {
    color: #00f0ff !important;
    background: rgba(0, 240, 255, 0.1) !important;
    border-color: rgba(0, 240, 255, 0.3) !important;
}
.box-cyan .domain-tag:hover {
    color: #ffffff !important;
    border-color: #00f0ff !important;
    background: rgba(0, 240, 255, 0.12) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35) !important;
}

/* BOX 2: FRAMEWORKS & PLATFORMS (COSMIC VIOLET) */
.stack-domain-card.box-violet {
    background: radial-gradient(ellipse at top left, rgba(167, 139, 250, 0.08) 0%, rgba(8, 14, 28, 0.92) 75%) !important;
    border: 1px solid rgba(167, 139, 250, 0.22) !important;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 24px rgba(167, 139, 250, 0.06), inset 0 1px 0 rgba(167, 139, 250, 0.3) !important;
}
.stack-domain-card.box-violet:hover {
    border-color: rgba(167, 139, 250, 0.55) !important;
    box-shadow: 0 22px 50px -8px rgba(0, 0, 0, 0.85), 0 0 32px rgba(167, 139, 250, 0.22), inset 0 1px 0 rgba(167, 139, 250, 0.5) !important;
    transform: translateY(-3px) !important;
}
.box-violet .domain-num {
    color: #a78bfa !important;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
}
.box-violet .domain-badge-count {
    color: #a78bfa !important;
    background: rgba(167, 139, 250, 0.1) !important;
    border-color: rgba(167, 139, 250, 0.3) !important;
}
.box-violet .domain-tag:hover {
    color: #ffffff !important;
    border-color: #a78bfa !important;
    background: rgba(167, 139, 250, 0.12) !important;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.35) !important;
}

/* BOX 3: CLOUD, SRE & SYSTEMS (ELECTRIC SKY BLUE) */
.stack-domain-card.box-blue {
    background: radial-gradient(ellipse at top left, rgba(56, 189, 248, 0.08) 0%, rgba(8, 14, 28, 0.92) 75%) !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.06), inset 0 1px 0 rgba(56, 189, 248, 0.3) !important;
}
.stack-domain-card.box-blue:hover {
    border-color: rgba(56, 189, 248, 0.55) !important;
    box-shadow: 0 22px 50px -8px rgba(0, 0, 0, 0.85), 0 0 32px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(56, 189, 248, 0.5) !important;
    transform: translateY(-3px) !important;
}
.box-blue .domain-num {
    color: #38bdf8 !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}
.box-blue .domain-badge-count {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}
.box-blue .domain-tag:hover {
    color: #ffffff !important;
    border-color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35) !important;
}

/* BOX 4: DATABASES & ARCHITECTURE (RADIANT EMERALD) */
.stack-domain-card.box-emerald {
    background: radial-gradient(ellipse at top left, rgba(52, 211, 153, 0.08) 0%, rgba(8, 14, 28, 0.92) 75%) !important;
    border: 1px solid rgba(52, 211, 153, 0.22) !important;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 24px rgba(52, 211, 153, 0.06), inset 0 1px 0 rgba(52, 211, 153, 0.3) !important;
}
.stack-domain-card.box-emerald:hover {
    border-color: rgba(52, 211, 153, 0.55) !important;
    box-shadow: 0 22px 50px -8px rgba(0, 0, 0, 0.85), 0 0 32px rgba(52, 211, 153, 0.22), inset 0 1px 0 rgba(52, 211, 153, 0.5) !important;
    transform: translateY(-3px) !important;
}
.box-emerald .domain-num {
    color: #34d399 !important;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}
.box-emerald .domain-badge-count {
    color: #34d399 !important;
    background: rgba(52, 211, 153, 0.1) !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
}
.box-emerald .domain-tag:hover {
    color: #ffffff !important;
    border-color: #34d399 !important;
    background: rgba(52, 211, 153, 0.12) !important;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.35) !important;
}

/* Light Mode Overrides for Tech Stack Boxes */
[data-theme="light"] .stack-domain-card.box-cyan {
    background: #ffffff !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.08) !important;
}
[data-theme="light"] .stack-domain-card.box-violet {
    background: #ffffff !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.08) !important;
}
[data-theme="light"] .stack-domain-card.box-blue {
    background: #ffffff !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08) !important;
}
[data-theme="light"] .stack-domain-card.box-emerald {
    background: #ffffff !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.08) !important;
}

/* ==========================================================================
   MINIMAL UNCLUTTERED CONTACT BOX STYLES
   Clean single-card layout with direct message/email box and social strip below
   ========================================================================== */
.bite-connect-card--minimal {
    max-width: 680px !important;
    margin: 0 auto !important;
    padding: 38px 36px 32px !important;
    border-radius: var(--radius-lg, 16px) !important;
    background: radial-gradient(ellipse at top center, rgba(0, 240, 255, 0.05) 0%, rgba(8, 14, 28, 0.88) 75%) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(0, 240, 255, 0.22) !important;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    text-align: center;
}

.bite-connect-card--minimal .bite-connect-header {
    margin-bottom: 22px;
}

.bite-connect-card--minimal .page-badge {
    display: inline-block;
    margin-bottom: 8px;
}

.bite-connect-card--minimal .bite-connect-title {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    margin-bottom: 8px;
}

.bite-connect-card--minimal .bite-connect-desc {
    max-width: 480px;
    margin: 0 auto 18px;
    font-size: 0.95rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.55;
}

.bite-quick-form--minimal {
    width: 100%;
    margin-bottom: 24px;
}

.bite-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bite-textarea--minimal {
    width: 100%;
    min-height: 105px;
    resize: vertical;
    padding: 16px 18px;
    border-radius: var(--radius-md, 12px);
    background: rgba(4, 7, 16, 0.75);
    border: 1px solid rgba(0, 240, 255, 0.18);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    outline: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.bite-textarea--minimal:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25), inset 0 2px 6px rgba(0, 0, 0, 0.6);
    background: rgba(6, 10, 22, 0.95);
}

.bite-textarea--minimal::placeholder {
    color: rgba(148, 163, 184, 0.65);
    font-size: 0.92rem;
}

.bite-submit-row {
    display: flex;
    justify-content: flex-end;
}

.bite-submit-row .btn-hero-primary {
    border-radius: 9999px !important;
    padding: 10px 26px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   MINIMALIST DIRECT CONTACT LINKS (TEXT WITH DOT SEPARATORS)
   ========================================================================== */
.contact-details-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
    letter-spacing: 0.025em;
}

.contact-details-link {
    color: #94a3b8;
    text-decoration: none !important;
    position: relative;
    padding: 3px 6px;
    border-radius: 4px;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                text-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.contact-details-link:hover {
    color: #00f0ff;
    text-decoration: none !important;
    transform: translateY(-1px);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
    background-color: rgba(0, 240, 255, 0.04);
}

.contact-details-link::selection,
.contact-details-row::selection {
    background: rgba(0, 240, 255, 0.25);
    color: #ffffff;
}

.contact-details-dot {
    color: #00f0ff;
    opacity: 0.35;
    font-size: 0.72rem;
    user-select: none;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .contact-details-row {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .contact-details-link {
    color: #64748b;
    text-decoration: none !important;
}

[data-theme="light"] .contact-details-link:hover {
    color: #0284c7;
    text-decoration: none !important;
    transform: translateY(-1px);
    text-shadow: 0 0 8px rgba(2, 132, 199, 0.25);
    background-color: rgba(2, 132, 199, 0.06);
}

[data-theme="light"] .contact-details-dot {
    color: #0284c7;
    opacity: 0.45;
}

/* ==========================================================================
   SOLID GET IN TOUCH BUTTON (NO SPECULAR / SHINY EFFECTS)
   Only 'Explore Projects' retains the shiny specular WebGL illumination
   ========================================================================== */
.btn-hero-ghost,
.btn-hero-solid {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #f8fafc !important;
    border-radius: 9999px !important;
    padding: 12px 28px !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-hero-ghost:hover,
.btn-hero-solid:hover {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6) !important;
    transform: translateY(-2px) !important;
}

.nav-cta-pill {
    background: rgba(0, 240, 255, 0.1) !important;
    border: 1px solid rgba(0, 240, 255, 0.45) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 240, 255, 0.2) !important;
}

.nav-cta-pill:hover {
    background: rgba(0, 240, 255, 0.2) !important;
    border-color: #00f0ff !important;
    box-shadow: 0 6px 24px rgba(0, 240, 255, 0.4) !important;
    transform: translateY(-1px) scale(1.02) !important;
}

[data-theme="light"] .btn-hero-ghost,
[data-theme="light"] .btn-hero-solid {
    background: #e2e8f0 !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .btn-hero-ghost:hover,
[data-theme="light"] .btn-hero-solid:hover {
    background: #cbd5e1 !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
    color: #000000 !important;
}

/* ==========================================================================
   REACT BITS: SPOTLIGHT CARD COMPONENT & MINIMALISTIC CARD DESIGN
   ========================================================================== */
.spotlight-card {
  --spotlight-card-surface: rgba(8, 14, 28, 0.82);
  --spotlight-card-border: rgba(0, 240, 255, 0.16);
  --spotlight-card-shadow: 0 20px 48px -18px rgba(0, 0, 0, 0.85);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.25rem;
  background-color: var(--spotlight-card-surface);
  box-shadow: var(--spotlight-card-shadow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

[data-theme="light"] .spotlight-card {
  --spotlight-card-surface: #ffffff;
  --spotlight-card-border: rgba(2, 132, 199, 0.16);
  --spotlight-card-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 18px 40px -20px rgba(2, 132, 199, 0.14);
}

.spotlight-card__light,
.spotlight-card__grain,
.spotlight-card__border,
.spotlight-card__edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.spotlight-card__light,
.spotlight-card__grain {
  z-index: 0;
  opacity: 0;
}

.spotlight-card__grain {
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

.spotlight-card__border,
.spotlight-card__edge {
  z-index: 2;
  padding: 1px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}

.spotlight-card__border {
  background: var(--spotlight-card-border);
}

.spotlight-card__edge {
  opacity: 0;
}

/* Minimalist Card Layout for Carousel Projects */
.carousel-card.spotlight-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  cursor: pointer;
  border: none !important; /* Managed by spotlight border and edge */
  border-radius: 1.25rem !important;
  overflow: hidden !important;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.75) !important;
}

.carousel-card.spotlight-card .carousel-media-box {
  width: 100%;
  height: 155px;
  overflow: hidden;
  position: relative;
  background: #080c16;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
}

.carousel-card.spotlight-card .carousel-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-card.spotlight-card:hover .carousel-media-img {
  transform: scale(1.05);
}

.carousel-card-minimal-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.35rem 1.25rem;
  flex: 1;
  gap: 0.35rem;
}

.carousel-badge-minimal {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-cyan, #00f0ff);
  font-weight: 600;
  margin-bottom: 0.15rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.carousel-card.spotlight-card h3.project-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
}

[data-theme="light"] .carousel-card.spotlight-card h3.project-title {
  color: #0f172a;
}

.carousel-card.spotlight-card p.project-role-sub {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 0.5rem 0;
  font-weight: 400;
}

[data-theme="light"] .carousel-card.spotlight-card p.project-role-sub {
  color: #64748b;
}

.carousel-card.spotlight-card .project-card-footer {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
}

.carousel-card.spotlight-card .sleek-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-card.spotlight-card:hover .sleek-btn-sm {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #00f0ff !important;
  transform: translateX(4px);
}

[data-theme="light"] .carousel-card.spotlight-card .sleek-btn-sm {
  color: #0284c7;
}

[data-theme="light"] .carousel-card.spotlight-card:hover .sleek-btn-sm {
  color: #0369a1 !important;
}

/* Minimalist Card Layout for Research & Conferences */
.research-card.spotlight-card {
  padding: 2.2rem 2.2rem 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 1.25rem !important;
  border-radius: 1.25rem !important;
  border: none !important;
  position: relative !important;
  cursor: pointer;
}

.research-card.spotlight-card .research-badge-minimal {
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.research-card.spotlight-card h3.research-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.32;
  margin: 0;
}

[data-theme="light"] .research-card.spotlight-card h3.research-title {
  color: #0f172a;
}

.research-card.spotlight-card p.research-role-sub {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

[data-theme="light"] .research-card.spotlight-card p.research-role-sub {
  color: #64748b;
}

.research-card.spotlight-card .research-authors-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}

.research-card.spotlight-card .research-action-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  padding-top: 0.5rem;
}

.research-card.spotlight-card .sleek-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-card.spotlight-card:hover .sleek-btn-sm {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #00f0ff !important;
  transform: translateX(4px);
}

[data-theme="light"] .research-card.spotlight-card .sleek-btn-sm {
  color: #0284c7;
}

[data-theme="light"] .research-card.spotlight-card:hover .sleek-btn-sm {
  color: #0369a1 !important;
}

.project-catalog-card.spotlight-card {
  border: none !important;
  position: relative !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.75) !important;
  cursor: pointer;
}

/* ==========================================================================
   REACT BITS: CURVED INPUT COMPONENT
   ========================================================================== */
.curved-input {
  position: relative;
  display: block;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.curved-input__svg {
  display: block;
  overflow: visible;
  width: 100%;
  height: auto;
  cursor: text;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.curved-input__svg text {
  font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
}

.curved-input__ring {
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.curved-input--focused .curved-input__ring {
  opacity: 0.32;
}

.curved-input__button {
  cursor: pointer;
  outline: none;
}

.curved-input__button-bg {
  transition:
    filter 0.2s ease,
    opacity 0.2s ease;
}

.curved-input__button:hover .curved-input__button-bg {
  filter: brightness(1.15) drop-shadow(0 0 14px rgba(0, 240, 255, 0.5));
}

.curved-input__button:active .curved-input__button-bg {
  filter: brightness(0.92);
}

.curved-input__button:focus-visible .curved-input__button-bg {
  filter: brightness(1.2);
}

.curved-input__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  pointer-events: none;
  outline: none;
}

.bite-quick-form-curved {
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}





/* ==========================================================================
   DISTINCT SECTION BACKGROUND COLORS (HERO ANIMATED, REST SOLID)
   ========================================================================== */
.hero-section {
    position: relative !important;
    overflow: hidden !important;
    background-color: #030712 !important;
}

.hero-dotfield {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.hero-dotfield canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    pointer-events: none !important;
}

.hero-section .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Distinct Solid Section Backgrounds */
.projects-section {
    background-color: #080d1a !important;
    position: relative !important;
    z-index: 2 !important;
}

.expertise-section {
    background-color: #050811 !important;
    position: relative !important;
    z-index: 2 !important;
}

.conferences-section {
    background-color: #090e1f !important;
    position: relative !important;
    z-index: 2 !important;
}

.contact-section {
    background-color: #040710 !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Light Theme Solid Section Overrides */
[data-theme="light"] .hero-section {
    background-color: #f8fafc !important;
}
[data-theme="light"] .projects-section {
    background-color: #f1f5f9 !important;
}
[data-theme="light"] .expertise-section {
    background-color: #ffffff !important;
}
[data-theme="light"] .conferences-section {
    background-color: #f8fafc !important;
}
[data-theme="light"] .contact-section {
    background-color: #f1f5f9 !important;
}

/* ==========================================================================
   COMPACT EDITORIAL FOOTER (UNDERSTATED, TIGHT LINE-HEIGHTS, INTERACTABLE SVGS)
   ========================================================================== */
.site-footer {
    padding: 38px 0 22px 0 !important;
    background-color: #020408 !important;
    border-top: 1px solid rgba(0, 240, 255, 0.12) !important;
    position: relative !important;
    z-index: 10 !important;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2.3fr 1fr 1.3fr;
    gap: 36px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
}

.footer-brand-name {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.footer-brand-tag {
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    color: var(--color-cyan, #00f0ff);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.footer-desc {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.footer-heading {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-nav-link {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.82rem;
    line-height: 1.35;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-nav-link:hover {
    color: #00f0ff;
    transform: translateX(3px);
}

.footer-connect-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-email-link {
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
    line-height: 1.35;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email-link:hover {
    color: #00f0ff;
}

/* Interactable SVG Logos for GitHub & LinkedIn */
.footer-social-svgs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-svg-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-svg-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.footer-svg-link:hover {
    color: #00f0ff;
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 240, 255, 0.2);
}

.footer-svg-link:hover .footer-svg-icon {
    transform: scale(1.08);
}

.footer-bottom-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    line-height: 1.25;
}

.footer-copyright {
    font-family: var(--font-mono, monospace);
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.3;
}

.footer-name-bold {
    font-weight: 700;
    color: #cbd5e1;
}

[data-theme="light"] .footer-name-bold {
    color: #0f172a;
}

.footer-right-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Squished, less obvious built with */
.footer-tech-stack {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.stack-made-label {
    font-family: var(--font-mono, monospace);
    font-size: 0.67rem;
    color: #475569;
    letter-spacing: 0.02em;
    margin-right: 2px;
    line-height: 1;
}

.stack-tag {
    font-family: var(--font-mono, monospace);
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #64748b;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

/* Lowkey, unboxed Back to Top link at the right-most side of the stack */
.footer-back-to-top {
    font-family: var(--font-mono, monospace);
    font-size: 0.7rem;
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0 0 0 6px;
    margin-left: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s ease;
    border-radius: 0 !important;
    background: transparent !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    line-height: 1;
}

.footer-back-to-top:hover {
    color: #94a3b8;
    text-decoration: underline;
    text-underline-offset: 3px;
    background: transparent !important;
    box-shadow: none !important;
}

[data-theme="light"] .site-footer {
    background-color: #e2e8f0 !important;
    border-top-color: rgba(0, 0, 0, 0.08) !important;
    padding: 38px 0 22px 0 !important;
}

[data-theme="light"] .footer-brand-name {
    color: #0f172a;
}

[data-theme="light"] .footer-heading {
    color: #334155;
}

[data-theme="light"] .footer-desc {
    color: #64748b;
}

[data-theme="light"] .footer-nav-link {
    color: #64748b;
}

[data-theme="light"] .footer-nav-link:hover {
    color: #0284c7;
}

[data-theme="light"] .footer-email-link {
    color: #64748b;
}

[data-theme="light"] .footer-email-link:hover {
    color: #0284c7;
}

[data-theme="light"] .footer-svg-link {
    color: #64748b;
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-svg-link:hover {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.08);
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .stack-made-label {
    color: #94a3b8;
}

[data-theme="light"] .stack-tag {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
    color: #64748b;
}

[data-theme="light"] .footer-back-to-top {
    color: #64748b;
    border-left-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-back-to-top:hover {
    color: #0f172a;
}

[data-theme="light"] .footer-bottom-divider {
    background: rgba(0, 0, 0, 0.08);
}

/* Hide Numbered Section Tracker on Right Screen */
.section-tracker {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

