/* ==========================================================================
   RIZYOX — PREMIUM DEEP DARK PORTFOLIO DESIGN SYSTEM
   Deep Noir Base · Clean Blue Accent · Glassmorphism Cards
   Lenis Smooth Scroll · GSAP Animations · Minimalist Aesthetics
   ========================================================================== */

/* ── Design Tokens ─────────────────────────────────────── */
:root {
    /* Dark Charcoal Foundation */
    --bg-void:      #13151b;
    --bg-base:      #171a22;
    --bg-surface:   #1b1f28;
    --bg-card:      rgba(18, 22, 32, 0.88);
    --bg-card-hover:rgba(25, 30, 44, 0.95);
    --bg-elevated:  #1e2330;

    /* Borders — Subtle glass edges */
    --border-dim:    rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.10);
    --border-hover:  rgba(59, 130, 246, 0.5);
    --border-accent: rgba(37, 99, 235, 0.7);

    /* Signature Electric Royal Blue */
    --accent:       #2563eb;
    --accent-light: #3b82f6;
    --accent-bright:#60a5fa;
    --accent-glow:  rgba(37, 99, 235, 0.22);
    --accent-cyan:  #0ea5e9;
    --emerald:      #22c55e;

    /* High-Contrast Crisp Typography */
    --text-primary:   #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted:     #94a3b8;
    --text-dim:       #64748b;

    /* Fonts */
    --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

    /* Radius */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 24px;
    --r-full: 9999px;

    /* Shadows — Deep tech glow */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.6);
    --shadow-blue: 0 8px 30px -4px rgba(37, 99, 235, 0.25);

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* ── Custom Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.35);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.6);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, 0.35) transparent;
}

html {
    background: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Lenis smooth scroll configuration */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
.lenis.lenis-smooth iframe {
    pointer-events: none;
}

body {
    min-height: 100vh;
    background: var(--bg-void);
    color: var(--text-primary);
    position: relative;
}

/* Subtle noise overlay for premium texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

::selection {
    background: rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Scroll Progress — Laser line ──────────────────────── */
#scroll-progress-line {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #0ea5e9);
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 9999;
    will-change: transform;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

/* ── Ambient Atmosphere Layers ─────────────────────────── */
.ambient-glow-top {
    position: fixed;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 1000px; height: 600px;
    background: radial-gradient(
        ellipse at center,
        rgba(37, 99, 235, 0.12) 0%,
        rgba(59, 130, 246, 0.04) 45%,
        transparent 70%
    );
    filter: blur(100px);
    z-index: 1; pointer-events: none;
    animation: ambientDrift 20s ease-in-out infinite alternate;
}

.ambient-glow-mid {
    position: fixed;
    top: 55%; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 65%);
    filter: blur(100px);
    z-index: 1; pointer-events: none;
    animation: ambientDrift 25s ease-in-out infinite alternate-reverse;
}

@keyframes ambientDrift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(25px, -20px); }
}

/* ── Three.js Canvas ───────────────────────────────────── */
#webgl-canvas-container {
    position: fixed; inset: 0;
    z-index: 1; pointer-events: none;
    opacity: 1;
}

/* ── Content Layer ─────────────────────────────────────── */
.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    overflow-x: clip;
}

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

/* ── Parallax Watermark Numbers ────────────────────────── */
.parallax-watermark {
    position: absolute;
    right: 1rem; top: -1rem;
    font-family: var(--font-display);
    font-size: clamp(7rem, 18vw, 15rem);
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.02);
    user-select: none; pointer-events: none;
    z-index: -1;
    letter-spacing: -0.06em;
}

/* ── Typography Utilities ──────────────────────────────── */
.text-gradient {
    background: linear-gradient(180deg, #ffffff 0%, #94a3b8 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-bright);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 0.3rem 0.85rem;
    border-radius: var(--r-full);
    margin-bottom: 1.25rem;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.section-subheading {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* =====================================================
   BOOT LOADER — Minimalist Luxury Brand
   ===================================================== */
#site-boot-loader {
    position: fixed; inset: 0;
    z-index: 99999;
    background: #101217;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.35s var(--ease-out-expo),
                transform 0.35s var(--ease-out-expo);
    user-select: none;
}

#site-boot-loader.loaded {
    opacity: 0;
    transform: scale(1.03);
    pointer-events: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 280px;
    width: 85%;
}

.loader-brand-box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.4rem;
}

.loader-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: loaderLogoBreath 2.2s ease-in-out infinite alternate;
}

@keyframes loaderLogoBreath {
    0%   { transform: scale(0.96); opacity: 0.85; }
    100% { transform: scale(1.04); opacity: 1; }
}

.loader-brand-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #ffffff;
}

.loader-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--r-full);
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    border-radius: var(--r-full);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.08s linear;
}

.loader-meta-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.loader-status {
    color: #94a3b8;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 0.68rem;
}

.loader-counter {
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.05em;
    min-width: 36px;
    text-align: right;
}

/* =====================================================
   FLOATING PILL NAVBAR — Minimalist High-Tech
   ===================================================== */
.navbar-fixed {
    position: fixed;
    top: 1.25rem;
    left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    pointer-events: none;
}

.navbar-pill {
    background: rgba(18, 21, 28, 0.72);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: var(--r-full);
    padding: 0.45rem 0.55rem 0.45rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    width: 100%;
    pointer-events: auto;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-pill:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    cursor: pointer;
}

.navbar-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.25);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-brand:hover .navbar-logo {
    transform: rotate(18deg) scale(1.1);
}

.navbar-brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.25rem 0.35rem;
    border-radius: var(--r-full);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.38rem 0.95rem;
    border-radius: var(--r-full);
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.navbar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.navbar-link.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.2);
    box-shadow: inset 0 0 8px rgba(37, 99, 235, 0.25);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.42rem 0.95rem;
    border-radius: var(--r-full);
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    color: #bfdbfe;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
    transition: all 0.25s var(--ease-out-expo);
}

.navbar-cta:hover {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(96, 165, 250, 0.55);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.3);
}

.pulse-circle {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
    animation: pulseDot 2s infinite ease-in-out;
}

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

.navbar-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-full);
    color: var(--text-primary);
    width: 34px;
    height: 34px;
    cursor: pointer;
    transition: all 0.2s;
    align-items: center;
    justify-content: center;
}

.navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* =====================================================
   HERO SECTION — Impact Landing
   ===================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* ── Giant glow behind title ── */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(
        circle at center,
        rgba(37, 99, 235, 0.15) 0%,
        rgba(59, 130, 246, 0.06) 40%,
        transparent 65%
    );
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    animation: heroGlowPulse 6s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse {
    0%   { opacity: 0.6; transform: translate(-50%, -55%) scale(0.95); }
    100% { opacity: 1;   transform: translate(-50%, -55%) scale(1.1); }
}

/* ── Animated gradient title ── */
.text-gradient-anim {
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #e2e8f0 15%,
        #3b82f6 35%,
        #60a5fa 50%,
        #ffffff 65%,
        #93c5fd 80%,
        #2563eb 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
}

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

.hero-main-title {
    font-family: var(--font-display);
    font-size: clamp(3.8rem, 12vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 40px rgba(37, 99, 235, 0.4));
    /* Entrance animation */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: heroTitleIn 0.9s var(--ease-out-expo) 0.2s forwards;
}

@keyframes heroTitleIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Tagline Capsule (High Contrast) ── */
.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(13, 16, 24, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.4rem 1.1rem;
    border-radius: var(--r-full);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.35rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.6s var(--ease-out-expo) 0.1s forwards;
}

.hero-tagline strong {
    color: #38bdf8;
    font-weight: 700;
}

.hero-desc strong {
    color: var(--text-secondary);
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.7s var(--ease-out-expo) 0.85s forwards;
}

.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.8rem 1.7rem;
    border-radius: var(--r-full);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
    transition: all 0.25s var(--ease-out-expo);
}
.btn-solid:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.8rem 1.7rem;
    border-radius: var(--r-full);
    backdrop-filter: blur(8px);
    transition: all 0.25s var(--ease-out-expo);
}
.btn-outline:hover {
    border-color: var(--accent-light);
    color: var(--accent-bright);
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

/* Stats Strip */
.stats-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* ── Marquee ───────────────────────────────────────────── */
.marquee-wrap {
    width: 100%;
    overflow: hidden;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 12, 20, 0.5);
    position: relative;
    margin: 2rem 0;
}

.marquee-wrap::before,
.marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.marquee-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-void), transparent);
}
.marquee-wrap::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-void), transparent);
}

.marquee-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marqueeFlow 30s linear infinite;
    will-change: transform;
}

.marquee-item {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}
.marquee-item i { color: var(--accent-light); font-size: 1.05rem; }

@keyframes marqueeFlow {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =====================================================
   SECTION PADDING
   ===================================================== */
.section-padding {
    padding: 6.5rem 0;
    position: relative;
}

/* =====================================================
   BENTO GRID
   ===================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.35s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.bento-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -10px rgba(37, 99, 235, 0.15);
    background: var(--bg-card-hover);
}

.col-span-8  { grid-column: span 8; }
.col-span-6  { grid-column: span 6; }
.col-span-4  { grid-column: span 4; }
.col-span-12 { grid-column: span 12; }

.bento-card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.bento-card-desc {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.85rem;
}

/* Tags */
.tag-item {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 6px;
    color: var(--accent-bright);
    transition: all 0.2s;
}
.tag-item:hover {
    border-color: var(--accent-light);
    background: rgba(37, 99, 235, 0.2);
}

/* =====================================================
   PROJECTS GRID
   ===================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.35s var(--ease-out-expo);
    position: relative;
    backdrop-filter: blur(12px);
}

.project-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 48px -12px rgba(37, 99, 235, 0.2);
}

.project-thumbnail-box {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-surface);
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s var(--ease-out-expo);
}

.project-card:hover .project-thumbnail {
    transform: scale(1.05);
}

.project-pill-badge {
    position: absolute;
    top: 0.85rem; left: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(7, 8, 12, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.25rem 0.65rem;
    border-radius: var(--r-full);
    z-index: 2;
}

.project-card-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.project-number {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-light);
    font-weight: 700;
}

.project-status-dot {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--emerald);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
    transition: color 0.2s;
}

.project-card:hover .project-title {
    color: var(--accent-bright);
}

.project-summary {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.project-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
}

/* =====================================================
   SKILLS GRID
   ==================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.skill-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    backdrop-filter: blur(12px);
}

.skill-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out-expo);
}
.skill-box:hover::after { transform: scaleX(1); }

.skill-box:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.2);
}

.skill-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skill-icon {
    font-size: 1.75rem;
    color: var(--skill-color, var(--accent-light));
    transition: transform 0.3s var(--ease-out-expo);
}
.skill-box:hover .skill-icon {
    transform: scale(1.12);
}

.skill-level-text {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-bright);
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 0.15rem 0.55rem;
    border-radius: var(--r-full);
}

.skill-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.skill-bar-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--r-full);
    overflow: hidden;
    margin-top: auto;
}

.skill-bar-fill {
    width: 100%;
    height: 100%;
    border-radius: var(--r-full);
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.8s var(--ease-out-expo);
    will-change: transform;
}

.skill-bar-fill.animated {
    transform: scaleX(var(--level, 1));
}

/* ── SVG Icons ─────────────────────────────────────────── */
.svg-icon {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.18em;
    fill: currentColor;
    flex-shrink: 0;
}

.skill-icon.svg-icon {
    width: 1.85rem;
    height: 1.85rem;
    color: var(--skill-color, var(--accent-light));
}

.contact-icon-round .svg-icon {
    width: 1.4rem;
    height: 1.4rem;
}

.contact-arrow-end.svg-icon {
    margin-left: auto;
    color: var(--text-dim);
    width: 1rem;
    height: 1rem;
}

.marquee-item .svg-icon {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--accent-light);
}

.navbar-toggle .svg-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.navbar-toggle .svg-icon:last-child {
    display: none;
}

.navbar-toggle.is-active .svg-icon:first-child {
    display: none;
}

.navbar-toggle.is-active .svg-icon:last-child {
    display: block;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-card-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-xl);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.contact-card-box::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 350px;
    background: radial-gradient(ellipse, rgba(37,99,235,0.1), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.contact-channels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 580px;
    margin: 2.5rem auto 2rem;
    position: relative; z-index: 1;
}

.contact-btn-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-md);
    color: var(--text-primary);
    text-align: left;
    transition: all 0.25s var(--ease-out-expo);
}
.contact-btn-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(37, 99, 235, 0.06);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-icon-round {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.contact-icon-round.discord {
    background: rgba(88,101,242,0.15);
    color: #5865f2;
}
.contact-icon-round.github {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

.footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}
.footer-nav-link:hover { color: var(--accent-light); }

/* =====================================================
   MODALS
   ===================================================== */
.modal-overlay {
    position: fixed; inset: 0;
    z-index: 1000;
    background: rgba(7, 8, 12, 0.7);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s var(--ease-out-expo);
}

.modal-overlay.active .modal-window {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    width: 34px; height: 34px;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    /* ── Mobile Nav ── */
    .navbar-menu {
        display: none;
        position: absolute;
        top: calc(100% + 0.6rem);
        left: 0; right: 0;
        flex-direction: column;
        gap: 0.35rem;
        background: rgba(18, 21, 28, 0.94);
        backdrop-filter: blur(24px) saturate(1.5);
        -webkit-backdrop-filter: blur(24px) saturate(1.5);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--r-lg);
        padding: 0.75rem;
        box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
        transform: translateY(-8px);
        opacity: 0;
        transition: opacity 0.25s var(--ease-out-expo),
                    transform 0.25s var(--ease-out-expo);
        pointer-events: none;
    }

    .navbar-menu.is-open {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        animation: menuSlideIn 0.3s var(--ease-out-expo) forwards;
    }

    @keyframes menuSlideIn {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .navbar-menu .navbar-link {
        padding: 0.7rem 1rem;
        font-size: 0.92rem;
        border-radius: var(--r-sm);
        width: 100%;
        text-align: left;
    }
    .navbar-menu .navbar-link:hover {
        background: rgba(37, 99, 235, 0.12);
    }

    .navbar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px; height: 34px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--r-full);
        color: var(--text-primary);
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.2s;
    }
    .navbar-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    .navbar-toggle .fa-xmark { display: none; }
    .navbar-toggle.is-active .fa-bars { display: none; }
    .navbar-toggle.is-active .fa-xmark { display: block; }

    .navbar-pill {
        border-radius: var(--r-lg);
        position: relative;
    }

    .navbar-cta {
        font-size: 0.72rem;
        padding: 0.4rem 0.75rem;
    }

    /* ── Mobile Spacing ── */
    .col-span-8, .col-span-6, .col-span-4 { grid-column: span 12; }
    .contact-channels { grid-template-columns: 1fr; }
    .section-padding { padding: 4rem 0; }
    .section-heading { font-size: clamp(1.8rem, 7vw, 2.6rem); }

    .hero-section { min-height: 80vh; padding: 6.5rem 1.25rem 3rem; overflow: hidden; }
    .hero-glow { width: 320px; height: 320px; }
    .hero-main-title { font-size: clamp(2.8rem, 12vw, 4.5rem); margin-bottom: 1.25rem; }
    .hero-tagline { font-size: 0.72rem; padding: 0.35rem 0.85rem; letter-spacing: 0.05em; }
    .hero-desc { font-size: 1rem; }
    .hero-btn-group { gap: 0.75rem; margin-bottom: 2rem; }
    .hero-btn-group .btn-solid,
    .hero-btn-group .btn-outline {
        font-size: 0.88rem;
        padding: 0.75rem 1.5rem;
    }

    .projects-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .skills-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }

    .contact-card-box { padding: 2.5rem 1.25rem; }

    .footer-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        font-size: 0.8rem;
    }
    .footer-nav { justify-content: center; }

    .parallax-watermark { display: none; }

    .modal-window { padding: 1.75rem; }
}

/* ── Small phones ── */
@media (max-width: 420px) {
    .hero-main-title { font-size: clamp(2.4rem, 14vw, 3.2rem); }
    .hero-btn-group { flex-direction: column; align-items: stretch; }
    .hero-btn-group .btn-solid,
    .hero-btn-group .btn-outline {
        justify-content: center;
        width: 100%;
    }
    .navbar-pill { padding: 0.5rem 1rem; }
    .contact-channels { gap: 0.75rem; }
}
