/* ========================================
   CSS CUSTOM PROPERTIES & DESIGN TOKENS
   ======================================== */

:root {
    /* Pure Liquid Refractive Palette */
    --color-bg: #010206;
    --color-surface: rgba(255, 255, 255, 0.08);
    /* Increased from 0.04 */
    --color-liquid-tint: rgba(255, 255, 255, 0.12);
    /* Increased from 0.08 */
    --color-glass-border: rgba(255, 255, 255, 0.2);
    /* Increased from 0.12 */
    --color-liquid-rim: rgba(255, 255, 255, 0.5);
    /* Increased from 0.4 */
    --color-liquid-shine: rgba(0, 245, 255, 0.2);

    /* visionOS Accents */
    --color-primary: #1d93f4;
    --color-secondary: #fe359a;
    --color-accent: #ec4899;

    /* Text */
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.85);
    --color-text-muted: rgba(255, 255, 255, 0.6);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    --gradient-liquid: radial-gradient(at 0% 0%, rgba(0, 245, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 245, 255, 0.1) 0px, transparent 50%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Orbitron', monospace;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 245, 255, 0.3);
    --shadow-glow-strong: 0 0 40px rgba(0, 245, 255, 0.5);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-Index */
    --z-canvas: -1;
    --z-base: 1;
    --z-elevated: 10;
    --z-nav: 100;
    --z-modal: 1000;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    overflow-x: clip;
    overflow-x: hidden;
    position: relative;
    cursor: none;
    width: 100%;
    max-width: 100%;
}

#reveal-content {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    overflow-x: hidden;
}

/* ========================================
   IRON MAN 3 — ARC REACTOR CURSOR
   ======================================== */

/* Core: tiny hot-white dot that snaps exactly to mouse */
.arc-cursor-core {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 4px 2px #00f5ff,
        0 0 14px 4px rgba(0, 245, 255, 0.55);
    transition: opacity 0.15s ease, box-shadow 0.2s ease;
}

/* Arc Reactor halo: drifts ~0.08 lerp behind mouse */
.arc-cursor-reactor {
    width: 52px;
    height: 52px;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition:
        width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.2s ease;
    animation: arc-reactor-breathe 2.5s ease-in-out infinite;
}

/* Outer ring + studs: slow continuous spin — view-box pins to SVG centre (30,30) */
.arc-spin-group {
    transform-box: view-box;
    /* rotate around SVG viewport centre, not bounding box */
    transform-origin: 50% 50%;
    /* = exactly (30,30) in our 60×60 viewBox */
    animation: arc-ring-spin 8s linear infinite;
}

/* Core cyan bloom: opacity pulse */
.arc-core-pulse {
    transform-box: view-box;
    transform-origin: 50% 50%;
    animation: arc-core-pulse-anim 1.8s ease-in-out infinite;
}

/* Subtle whole-reactor glow breathe */
@keyframes arc-reactor-breathe {

    0%,
    100% {
        filter: drop-shadow(0 0 6px rgba(0, 245, 255, 0.65));
    }

    50% {
        filter: drop-shadow(0 0 18px rgba(0, 245, 255, 1.00));
    }
}

/* Outer ring spin */
@keyframes arc-ring-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Core brightness pulse */
@keyframes arc-core-pulse-anim {

    0%,
    100% {
        opacity: 0.75;
    }

    50% {
        opacity: 1.00;
    }
}

/* ——— POWER-UP on interactive element hover ——— */
.cursor-active .arc-cursor-reactor {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 0 22px rgba(0, 245, 255, 0.95));
}

.cursor-active .arc-spin-group {
    animation-duration: 1.8s;
    /* Ring spins faster */
}

.cursor-active .arc-cursor-core {
    box-shadow:
        0 0 8px 4px #00f5ff,
        0 0 26px 8px rgba(0, 245, 255, 0.75);
}

/* ——— CLICK FLASH ——— */
.arc-cursor-core.arc-clicking {
    transform: translate(-50%, -50%) scale(2.5);
    box-shadow:
        0 0 18px 8px #00f5ff,
        0 0 40px 16px rgba(0, 245, 255, 0.8);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}


body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(at 0% 0%, rgba(0, 245, 255, 0.25) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.25) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 245, 255, 0.15) 0px, transparent 50%),
        #020408;
    z-index: var(--z-canvas);
    pointer-events: none;
    animation: liquid-bg 15s ease infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes liquid-bg {
    0% {
        transform: scale(1) translate(0, 0) rotate(0deg);
    }

    100% {
        transform: scale(1.3) translate(-3%, -3%) rotate(2deg);
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary);
}

.nav-btn-resume {
    background: transparent;
    border: 1px solid var(--color-primary);
    padding: 12px 36px;
    /* Increased padding within button */
    border-radius: 40px;
    /* Rounded pill shape */
    color: var(--color-primary) !important;
    transition: all var(--transition-base);
    margin-left: 25px;
    /* More space from other text */
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn-resume:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    transform: translateY(-1px);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   3D BACKGROUND CANVAS
   ======================================== */

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-canvas);
    pointer-events: none;
}

/* ========================================
   GLASSMORPHISM UTILITY
   ======================================== */

/* ========================================
   LIQUID GLASSMORPHISM UTILITY
   ======================================== */

/* ========================================
   REFRACTIVE LIQUID GLASS UTILITY
   ======================================== */

.glass {
    position: relative;
    border-radius: 30px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    z-index: 1;
}

/* Layer 2: Refractive Material (Hidden underneath) */
.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--color-surface);
    backdrop-filter: blur(16px) saturate(160%);
    /* Reduced blur from 30px */
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-radius: inherit;
    transition: background 0.6s ease;
}

/* Layer 3: Sharp Border Frame (Sitting on top) */
.glass::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 1px solid var(--color-glass-border);
    border-radius: inherit;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 1px 1px 0 var(--color-liquid-rim);
    pointer-events: none;
    /* Let clicks pass through to content */
    transition: all 0.6s ease;
}

.glass:hover {
    transform: translateY(-8px) scale(1.01);
}

.glass:hover::before {
    background: var(--color-liquid-tint);
}

.glass:hover::after {
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ========================================
   NAVIGATION
   ======================================== */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: var(--z-nav);
    background: transparent;
    transition: all 0.4s ease;
}

#navbar.scrolled {
    padding: 10px 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 100px;
    transition: all 0.3s ease;
    background: rgba(6, 12, 28, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#navbar.scrolled .nav-container {
    background: rgba(6, 12, 28, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 242, 255, 0.12);
    border-color: rgba(0, 242, 255, 0.25);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.nav-logo .logo-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(to right top, #8b5cf6 0%, #f472b6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-family: var(--font-primary);
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.4);
}

.nav-logo .logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.logo-text .accent {
    color: var(--color-primary);
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.xr-glow {
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary), 0 0 30px var(--color-secondary);
    transition: all 0.5s ease;
}

.nav-menu {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: capitalize;
    padding: 8px 16px;
    border-radius: 100px;
    position: relative;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: white;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.05);
}

.nav-btn-resume {
    background: white !important;
    color: #000 !important;
    padding: 10px 24px !important;
    border-radius: 100px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    margin-left: 16px !important;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn-resume:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
    background: #f8fafc !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    box-sizing: border-box;
}

.section {
    padding: var(--spacing-3xl) 0;
    position: relative;
    z-index: var(--z-base);
    opacity: 1;
    visibility: visible;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--font-size-4xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 14px 28px;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    position: relative;
    color: white !important;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-radius: inherit;
    transition: all 0.4s ease;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: inherit;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
    pointer-events: none;
    transition: all 0.4s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:hover::before {
    background: rgba(255, 255, 255, 0.12);
}

.btn:hover::after {
    border-color: var(--color-primary);
}

/* Button Variants - Redirecting to Layered Sandwich */
.btn-primary::before {
    background: rgba(0, 245, 255, 0.1);
}

.btn-primary::after {
    border-color: rgba(0, 245, 255, 0.3);
}

.btn-primary:hover::before {
    background: rgba(0, 245, 255, 0.18);
}

.btn-secondary::after {
    border-color: var(--color-primary);
}

.btn-secondary::before {
    background: rgba(0, 245, 255, 0.05);
}

.btn-secondary:hover::before {
    background: var(--color-primary);
}

.btn-secondary:hover {
    color: var(--color-bg) !important;
}

.btn-secondary:hover::after {
    border-color: var(--color-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    z-index: var(--z-base);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.85;
    letter-spacing: -0.03em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left aligned like reference */
    gap: 0;
    position: relative;
    padding: 20px 0;
}

/* Sharp high-def scan lines */
.hero-name::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.4) 2px,
            rgba(0, 0, 0, 0.4) 4px);
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: overlay;
}

.name-line-1 {
    color: var(--color-primary);
    /* Layered intense glow */
    text-shadow:
        0 0 5px rgba(29, 147, 244, 0.8),
        0 0 15px rgba(29, 147, 244, 0.5),
        0 0 30px rgba(29, 147, 244, 0.3),
        0 0 50px rgba(29, 147, 244, 0.1);
    animation: glitch-reveal 2s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    position: relative;
    z-index: 2;
}

.name-line-2 {
    color: var(--color-secondary);
    /* Layered intense glow */
    text-shadow:
        0 0 5px rgba(254, 53, 154, 0.8),
        0 0 15px rgba(254, 53, 154, 0.5),
        0 0 30px rgba(254, 53, 154, 0.3),
        0 0 50px rgba(254, 53, 154, 0.1);
    animation: glitch-reveal 2s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    position: relative;
    z-index: 2;
}

.hero-designation {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    margin-top: 15px;
    opacity: 0.8;
}

@keyframes glitch-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px) skewX(10deg);
        filter: blur(10px) brightness(2);
    }

    10% {
        opacity: 0.5;
        transform: translateY(0) skewX(-5deg);
    }

    15% {
        opacity: 0.8;
        transform: skewX(2deg);
    }

    20% {
        opacity: 1;
        transform: skewX(0);
        filter: blur(0) brightness(1);
    }
}

@keyframes name-glow {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.3)) drop-shadow(0 0 20px rgba(168, 85, 247, 0.2));
    }

    to {
        filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.5)) drop-shadow(0 0 40px rgba(236, 72, 153, 0.3));
    }
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
    min-height: 2em;
    animation: fadeInUp 1s 0.4s ease backwards;
}

/* ── Hero Split Layout ── */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px;
    width: 100%;
    padding: 0 var(--spacing-lg);
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    animation: fadeInUp 1s 0.6s ease backwards;
}

/* ── VR Device Showcase ── */
.hero-devices {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    position: relative;
}

.device-float-label {
    font-family: var(--font-display);
    font-size: var(--font-size-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
}

.device-card {
    background: rgba(26, 31, 53, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    width: 100%;
    max-width: 320px;
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    position: relative;
}

.device-card svg {
    width: 100%;
    height: auto;
    display: block;
}

.device-quest {
    animation: floatDevice 4s ease-in-out infinite;
    border-color: rgba(0, 245, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.08);
}

.device-vision {
    animation: floatDevice 4s 1.3s ease-in-out infinite;
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.08);
}

.device-vive {
    animation: floatDevice 4s 2.6s ease-in-out infinite;
    border-color: rgba(236, 72, 153, 0.2);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.08);
}

.device-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.2);
}

@keyframes floatDevice {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ── Responsive: stack on small screens ── */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        align-items: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-devices {
        display: none;
    }
}


.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: scroll 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 0;
        top: 10px;
    }

    40%,
    100% {
        opacity: 1;
        top: 25px;
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-content {
    display: grid;
    grid-template-columns: 350px 1.5fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-image {
    position: relative;
    z-index: 2;
}

/* ========================================
   3D INTERACTIVE LANYARD COMPONENT
   ======================================== */

.lanyard-container {
    width: 100%;
    min-height: 380px;
    height: 380px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 35%, rgba(0, 245, 255, 0.08) 0%, rgba(10, 14, 28, 0.75) 75%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45), inset 0 0 25px rgba(0, 245, 255, 0.04);
    overflow: hidden;
}

.lanyard,
.lanyard-container .lanyard {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

.lanyard-canvas {
    display: block;
    width: 100%;
    height: 100%;
}


.timeline-split-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--spacing-xl);
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    transition: grid-template-columns 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        gap 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-split-container.is-docked {
    grid-template-columns: 1fr 340px;
    gap: var(--spacing-xl);
}

.timeline-exp-left-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-lanyard-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(10, 14, 28, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), inset 0 0 25px rgba(0, 245, 255, 0.03);
    overflow: hidden;
    padding: 0;
    width: 340px;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.75s ease,
        border-color var(--transition-normal);
}

.timeline-split-container.is-docked .timeline-lanyard-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.timeline-lanyard-card:hover {
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateY(-3px) scale(1);
}

.timeline-lanyard-card .lanyard-container-inline {
    width: 100% !important;
    height: 480px !important;
    min-height: 480px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
}

@media (max-width: 900px) {
    .timeline-split-container {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        position: relative;
        overflow: visible;
        transition: none;
    }

    .timeline-exp-left-card {
        position: relative;
        z-index: 1;
        background: rgba(18, 22, 40, 0.98) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .timeline-split-container.is-docked {
        gap: var(--spacing-md);
    }

    .timeline-lanyard-card {
        position: relative;
        z-index: 1;
        width: 100% !important;
        height: 380px !important;
        min-height: 380px !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        margin-top: 0 !important;
        transform: none !important;
        transition: none !important;
    }

    .timeline-split-container.is-docked .timeline-lanyard-card {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        margin-top: 0 !important;
        transform: none !important;
    }

    .timeline-lanyard-card .lanyard-container-inline {
        height: 380px !important;
        min-height: 380px !important;
    }
}

.lanyard-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    outline: none;
}

.lanyard-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-family: var(--font-display);
    letter-spacing: 1px;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.lanyard-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(0, 245, 255, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: lanyard-spin 1s linear infinite;
}

@keyframes lanyard-spin {
    to {
        transform: rotate(360deg);
    }
}

.lanyard-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(8, 12, 22, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 245, 255, 0.35);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 8px rgba(0, 245, 255, 0.15);
    animation: pulse-lanyard-hint 3s ease-in-out infinite;
    white-space: nowrap;
    z-index: 5;
}

.lanyard-hint svg {
    color: var(--color-primary);
}

@keyframes pulse-lanyard-hint {

    0%,
    100% {
        opacity: 0.75;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.03);
    }
}

.profile-frame {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 40px;
    overflow: hidden;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    filter: saturate(1.1) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-frame:hover .profile-img {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: 300px 1.5fr;
    }

    .about-info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(0, 245, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--font-size-4xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
}

.info-card {
    padding: var(--spacing-lg);
}

.info-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
}

.info-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.info-item:last-child {
    margin-bottom: 0;
}

/* ========================================
   EXPERIENCE SECTION
   ======================================== */

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: var(--spacing-2xl);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 21px;
    top: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
    z-index: 1;
}

.timeline-content {
    background: var(--color-surface);
    backdrop-filter: saturate(180%) contrast(105%);
    -webkit-backdrop-filter: saturate(180%) contrast(105%);
    border: 1px solid var(--color-glass-border);
    border-radius: 30px;
    padding: var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-content:hover {
    background: rgba(26, 31, 53, 0.6);
    border-color: var(--color-primary);
    transform: translateX(10px);
}

.exp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    width: 100%;
}

.exp-logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Subtle, vibrant ambient neon glow behind company logo */
.exp-logo-wrapper::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.5) 0%, rgba(254, 53, 154, 0.28) 55%, transparent 75%);
    border-radius: 20px;
    filter: blur(12px);
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

.timeline-content:hover .exp-logo-wrapper::before {
    opacity: 1;
    filter: blur(16px);
    transform: scale(1.12);
}

.exp-logo-img {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: contain;
    background: #ffffff;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 18px rgba(0, 245, 255, 0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease;
}

.timeline-content:hover .exp-logo-img {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5),
        0 0 26px rgba(0, 245, 255, 0.5);
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.25);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 0;
    letter-spacing: 0.5px;
    box-shadow: inset 0 0 10px rgba(0, 245, 255, 0.08);
}

.timeline-content h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xs);
}

.timeline-content h4 {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    position: relative;
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-secondary);
}

.timeline-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    row-gap: 4rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-surface);
    backdrop-filter: saturate(180%) contrast(105%);
    -webkit-backdrop-filter: saturate(180%) contrast(105%);
    border: 1px solid var(--color-glass-border);
    border-radius: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Safety fix: ensure ALL glass elements are fully visible when page reveals */
.reveal-content.active .glass,
.reveal-content.active .project-card,
.reveal-content.active .training-card,
.reveal-content.active .skill-item,
.reveal-content.active .timeline-item {
    opacity: 1 !important;
    visibility: visible !important;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 245, 255, 0.1);
}

.project-card:hover .project-image {
    height: 350px;
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    /* GPU-friendly: use max-height + opacity instead of height on mobile */
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-placeholder {
    width: 60px;
    height: 60px;
    color: var(--color-primary);
    opacity: 0.5;
}

.project-content {
    padding: var(--spacing-lg);
}

.project-content h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.project-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 800;
    background: rgba(29, 147, 244, 0.3);
    color: #ffffff;
    border: 1px solid rgba(29, 147, 244, 0.8);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(29, 147, 244, 0.8);
}

.tag:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: var(--color-primary);
}

/* ========================================
   TRAINING SECTION
   ======================================== */

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.training-card {
    background: var(--color-surface);
    backdrop-filter: saturate(180%) contrast(105%);
    -webkit-backdrop-filter: saturate(180%) contrast(105%);
    border: 1px solid var(--color-glass-border);
    border-radius: 30px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.training-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px) scale(1.02);
}

.training-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-sm);
    gap: var(--spacing-sm);
}

.training-header h3 {
    font-size: var(--font-size-lg);
    flex: 1;
}

.training-date {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(0, 245, 255, 0.1);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.training-org {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.training-location {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ========================================
   SKILLS SECTION
   ======================================== */

.skills-content {
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    margin-bottom: var(--spacing-2xl);
}

.skill-category:last-child {
    margin-bottom: 0;
}

.skill-category h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--color-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.skill-item {
    background: var(--color-surface);
    backdrop-filter: saturate(150%) contrast(105%);
    -webkit-backdrop-filter: saturate(150%) contrast(105%);
    border: 1px solid var(--color-glass-border);
    border-radius: 30px;
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px) scale(1.03);
    border-color: var(--color-secondary);
}

.skill-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4.5rem;
    margin-bottom: var(--spacing-sm);
}

.skill-icon svg {
    width: 3.2rem;
    height: 3.2rem;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.4));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.skill-item:hover .skill-icon svg {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(254, 53, 154, 0.6));
}

.skill-item h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.skill-item p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    margin-bottom: var(--spacing-xl);
}

.contact-text p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.contact-methods {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 10px 20px;
    font-size: var(--font-size-base);
    font-weight: 600;
    background: var(--color-surface);
    backdrop-filter: saturate(180%) contrast(105%);
    -webkit-backdrop-filter: saturate(180%) contrast(105%);
    border: 1px solid var(--color-glass-border);
    border-radius: 30px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    /* Hardware acceleration */
}

.contact-btn:hover {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--color-accent);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.15);
}

.contact-btn svg {
    color: var(--color-primary);
}

/* ========================================
   DISCLAIMER
   ======================================== */

.disclaimer {
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-xl);
}

.disclaimer-card {
    position: relative;
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(6, 11, 25, 0.75);
    border: 1px solid rgba(0, 245, 255, 0.28);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(0, 245, 255, 0.04);
    min-height: 220px;
}

.disclaimer-gridscan-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
    overflow: hidden;
}

.grid-scan,
.disclaimer-gridscan-backdrop .grid-scan {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.grid-scan-canvas,
.disclaimer-gridscan-backdrop canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.disclaimer-overlay-blur {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse at center, rgba(6, 11, 25, 0.22) 0%, rgba(6, 11, 25, 0.62) 100%);
    pointer-events: none;
}

.disclaimer-content {
    position: relative;
    z-index: 3;
    pointer-events: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.disclaimer-content a,
.disclaimer-content button {
    pointer-events: auto;
}

.disclaimer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    width: 100%;
    text-align: center;
}

.disclaimer-heading {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin: 0;
}

.disclaimer-icon {
    flex-shrink: 0;
    color: var(--color-primary);
    background: rgba(29, 147, 244, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(29, 147, 244, 0.2);
}

.disclaimer-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

@media (max-width: 768px) {
    .disclaimer-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--spacing-lg);
    }

    .disclaimer-header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        gap: 10px;
    }

    .disclaimer-heading {
        text-align: center;
        font-size: 1.05rem;
    }

    .disclaimer-text {
        text-align: left;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-top: 1px solid var(--color-glass-border);
    background: rgba(6, 11, 24, 0.6);
    backdrop-filter: blur(20px);
}

.footer p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
}

.footer-tagline {
    font-size: var(--font-size-sm);
    font-style: italic;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 900px) {
    .timeline-lanyard-card .lanyard-container-inline {
        height: 380px !important;
        min-height: 380px !important;
    }
}

@media (max-width: 768px) {
    #navbar {
        padding: 8px 0 !important;
    }

    #navbar.scrolled {
        padding: 6px 0 !important;
    }

    .nav-container {
        padding: 8px 16px !important;
        border-radius: 40px !important;
        margin: 0 12px !important;
        background: rgba(6, 11, 24, 0.75) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .nav-logo .logo-text {
        font-size: 16px;
    }

    .nav-menu {
        position: fixed;
        top: 66px !important;
        left: 12px;
        right: 12px;
        flex-direction: column !important;
        display: flex !important;
        background: rgba(6, 11, 24, 0.96);
        backdrop-filter: blur(16px) saturate(160%);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
        padding: var(--spacing-lg) var(--spacing-md);
        gap: 8px;
        transform: translateY(-15px) scale(0.96);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 20px;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 245, 255, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        font-size: 1rem;
        padding: 10px 16px;
        color: white;
        border-radius: 12px;
    }

    .nav-btn-resume {
        margin-left: 0 !important;
        margin-top: 8px;
        width: 100%;
        padding: 10px 20px !important;
    }

    .nav-toggle {
        display: flex !important;
        margin-right: 4px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }

    /* Hero Section */
    .hero {
        min-height: 100svh;
        padding-top: 85px;
        padding-bottom: 30px;
    }

    .hero-name {
        align-items: center;
        text-align: center;
        font-size: clamp(2rem, 8.5vw, 3.8rem);
        line-height: 1.02;
        padding: 10px 0;
    }

    .hero-name::after {
        display: none;
    }

    .name-line-1,
    .name-line-2 {
        text-shadow: 0 0 12px currentColor;
    }

    .hero-designation {
        text-align: center;
        font-size: clamp(0.95rem, 3.8vw, 1.2rem);
        letter-spacing: 0.1em;
        margin-top: 10px;
    }

    .hero-subtitle {
        text-align: center;
        font-size: clamp(0.9rem, 3.4vw, 1.05rem);
        margin-bottom: 24px;
        min-height: 48px;
    }

    .hero-cta {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        width: 100%;
    }

    /* Layout & Sections */
    .section {
        padding: var(--spacing-2xl) 0 !important;
    }

    .section-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-xl);
    }

    .container {
        padding: 0 16px;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
        gap: 24px !important;
        text-align: left;
    }

    .about-image {
        max-width: 320px;
        width: 100%;
        margin: 0 auto;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        margin-top: 20px;
    }

    .stat-item {
        padding: 12px 6px;
        border-radius: 16px;
    }

    .stat-number {
        font-size: clamp(1.3rem, 4.5vw, 1.8rem);
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .info-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .info-item {
        font-size: 0.9rem;
        gap: 10px;
        word-break: break-word;
    }

    /* Timeline & Work Experience */
    .timeline {
        padding: 0;
    }

    .timeline::before {
        left: 14px;
    }

    .timeline-item {
        padding-left: 40px;
        margin-bottom: 28px;
    }

    .timeline-marker {
        left: 5px;
        top: 10px;
        width: 18px;
        height: 18px;
    }

    .timeline-content {
        padding: 20px 16px !important;
        border-radius: 20px;
    }

    .timeline-content h3 {
        font-size: 1.15rem;
        padding-right: 50px;
        line-height: 1.3;
        word-break: break-word;
    }

    .timeline-content h4 {
        font-size: 0.92rem;
        margin-bottom: 12px;
    }

    .timeline-content>img[style*="position: absolute"] {
        width: 46px !important;
        height: 46px !important;
        top: 18px !important;
        right: 16px !important;
        border-radius: 10px !important;
    }

    .timeline-lanyard-card {
        border-radius: 20px;
    }

    .timeline-lanyard-card .lanyard-container-inline {
        height: 380px !important;
        min-height: 380px !important;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        border-radius: 20px;
    }

    .project-image {
        height: 200px !important;
    }

    .project-content {
        padding: 16px;
    }

    .project-content h3 {
        font-size: 1.15rem;
    }

    .project-content p {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .tag {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .view-more-container {
        margin-top: 36px !important;
    }

    /* Training & Workshops */
    .training-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .training-card {
        padding: 16px;
        border-radius: 20px;
    }

    .training-header h3 {
        font-size: 0.98rem;
    }

    .training-date {
        font-size: 0.72rem;
        padding: 3px 6px;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .skill-item {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .skill-icon {
        height: 3.5rem;
    }

    .skill-icon svg {
        width: 2.5rem;
        height: 2.5rem;
    }

    /* Contact Section */
    .contact-methods {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
    }

    .contact-btn {
        padding: 12px 14px;
        font-size: 0.88rem;
        justify-content: center;
        width: 100%;
        border-radius: 16px;
    }

    /* Disclaimer & Footer */
    .disclaimer-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 18px 16px;
        border-radius: 20px;
    }

    .disclaimer-header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        gap: 10px;
    }

    .disclaimer-heading {
        text-align: center;
        font-size: 1.05rem;
    }

    .disclaimer-text {
        text-align: left;
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .footer {
        padding: var(--spacing-xl) 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-3xl: 3.5rem;
        --spacing-2xl: 2.5rem;
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .hero-cta {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .hero-cta .btn,
    .hero-cta .hero-resume-btn {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .stat-item {
        padding: 10px 4px !important;
    }

    .stat-number {
        font-size: clamp(1.1rem, 4.2vw, 1.4rem) !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
    }

    .contact-methods {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

@media (max-width: 360px) {
    .about-stats {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .contact-methods {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   XR SHOWCASE PROMOTION
   ======================================== */

.xr-btn {
    border: 1px solid var(--color-primary);
    position: relative;
    overflow: hidden;
    background: rgba(0, 245, 255, 0.1);
}

.xr-btn:hover {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
    background: rgba(0, 245, 255, 0.2);
    transform: translateY(-2px);
}

.project-card.highlight {
    border: 1px solid rgba(0, 245, 255, 0.4);
    background: var(--color-surface);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.15);
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.badge-new {
    display: inline-block;
    padding: 2px 10px;
    background: var(--color-primary);
    color: var(--color-bg);
    font-size: 10px;
    font-weight: 800;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.xr-special svg {
    filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.6));
    animation: pulse-xr 3s ease-in-out infinite;
}

@keyframes pulse-xr {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.project-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.project-link:hover {
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.6);
}

/* Hide Projects Class */
.hidden-project {
    display: none !important;
}

/* Smooth appearance transition for revealed cards */
.projects-grid .project-card {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-in, transform 0.5s ease-in;
}

/* ========================================
   MOBILE PERFORMANCE — TOUCH DEVICES
   Kills heavy GPU effects that cause lag
   ======================================== */
@media (pointer: coarse),
(hover: none) {

    /* --- Restore default cursor (hidden on desktop) --- */
    body {
        cursor: auto;
    }

    .arc-cursor-core,
    .arc-cursor-reactor {
        display: none !important;
    }

    /* --- Disable ALL backdrop-filters (huge GPU cost on mobile) --- */
    .glass,
    .skill-item,
    .project-card,
    .training-card,
    .contact-btn,
    .stat-card,
    #navbar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        /* Replace glass blur with a solid tinted background */
        background: rgba(10, 12, 20, 0.92) !important;
    }

    /* Work cards: keep their own background — don't override with black */
    .timeline-content,
    .timeline-content.glass {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(18, 22, 40, 0.95) !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
    }

    /* --- Clean header layout for experience cards on touch/mobile --- */
    .timeline-content {
        padding: 1.5rem !important;
    }

    .exp-card-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: var(--spacing-sm) !important;
        margin-bottom: var(--spacing-md) !important;
        width: 100% !important;
    }

    .timeline-date {
        display: inline-flex !important;
        width: auto !important;
        padding: 5px 10px !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
        margin-bottom: 0 !important;
    }

    .exp-logo-img {
        width: 48px !important;
        height: 48px !important;
        padding: 4px !important;
        border-radius: 10px !important;
    }

    .exp-logo-wrapper::before {
        inset: -4px !important;
        filter: blur(8px) !important;
    }

    /* --- Project card: disable sluggish height reflow expansion --- */
    /* On mobile, show the image at full height always — no hover needed */
    .project-card:hover .project-image,
    .project-image {
        height: 220px !important;
        transition: none !important;
    }

    /* Disable card lift on touch (causes jank) */
    .project-card:hover {
        transform: none !important;
    }

    /* Disable skill card tilt (cosmetic only, wastes paint) */
    .skill-item:hover {
        transform: none !important;
    }

    .skill-item:hover .skill-icon svg {
        transform: none !important;
    }

    /* --- Particle blast: lock to final state immediately on mobile --- */
    /* (handled in main.js isMobile check, this is CSS safety net) */

    /* --- Reduce reticle animation cost --- */
    .cursor-follower::before,
    .cursor-follower::after {
        animation: none !important;
    }

    /* --- Disable heavy box-shadow animations --- */
    .project-card,
    .skill-item,
    .glass {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
        transition: none !important;
    }

    .dual-lanyard-showcase-wrapper iframe {
        height: 520px !important;
    }
}
