/* ==========================================================================
   SAUD PORTFOLIO - GLOSSY AURORA DESIGN
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---- Dynamic Theme Variables ---- */
:root {
    --bg-primary: #06070e;
    --bg-secondary: #0b0d1a;

    --grad-c1: #22d3ee;
    --grad-c2: #a855f7;
    --grad-c3: #ec4899;
    --accent-gradient: linear-gradient(135deg, var(--grad-c1) 0%, var(--grad-c2) 50%, var(--grad-c3) 100%);
    --accent-glow: rgba(168, 85, 247, 0.4);

    --text-primary: #f1f3ff;
    --text-secondary: #a3a9c9;

    --surface-high: rgba(255, 255, 255, 0.10);
    --surface: rgba(255, 255, 255, 0.055);
    --surface-low: rgba(255, 255, 255, 0.02);

    --card-border: rgba(255, 255, 255, 0.11);
    --card-hover-border: rgba(168, 85, 247, 0.55);

    --nav-bg: rgba(11, 13, 26, 0.55);
    --nav-bg-strong: rgba(11, 13, 26, 0.78);
    --nav-border: rgba(255, 255, 255, 0.12);

    --skill-item-bg: rgba(168, 85, 247, 0.10);
    --chip-bg: rgba(34, 211, 238, 0.10);

    --shadow: 0 24px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    --gloss: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.05);

    --orb-1: rgba(34, 211, 238, 0.18);
    --orb-2: rgba(168, 85, 247, 0.20);
    --orb-3: rgba(236, 72, 153, 0.13);

    --aurora: conic-gradient(from 90deg at 50% 50%,
        rgba(34, 211, 238, 0.10), rgba(168, 85, 247, 0.10),
        rgba(236, 72, 153, 0.08), rgba(34, 211, 238, 0.10));

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body.light-theme {
    --bg-primary: #eef1f9;
    --bg-secondary: #ffffff;

    --grad-c1: #6366f1;
    --grad-c2: #a855f7;
    --grad-c3: #ec4899;
    --accent-glow: rgba(168, 85, 247, 0.30);

    --text-primary: #1b1e3d;
    --text-secondary: #5d6389;

    --surface-high: rgba(255, 255, 255, 0.92);
    --surface: rgba(255, 255, 255, 0.66);
    --surface-low: rgba(255, 255, 255, 0.4);

    --card-border: rgba(27, 30, 61, 0.10);
    --card-hover-border: rgba(168, 85, 247, 0.45);

    --nav-bg: rgba(255, 255, 255, 0.6);
    --nav-bg-strong: rgba(255, 255, 255, 0.85);
    --nav-border: rgba(27, 30, 61, 0.10);

    --skill-item-bg: rgba(168, 85, 247, 0.08);
    --chip-bg: rgba(99, 102, 241, 0.08);

    --shadow: 0 24px 60px rgba(50, 60, 130, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(27, 30, 61, 0.04);

    --orb-1: rgba(99, 102, 241, 0.14);
    --orb-2: rgba(168, 85, 247, 0.13);
    --orb-3: rgba(236, 72, 153, 0.09);

    --aurora: conic-gradient(from 90deg at 50% 50%,
        rgba(99, 102, 241, 0.10), rgba(168, 85, 247, 0.09),
        rgba(236, 72, 153, 0.07), rgba(99, 102, 241, 0.10));
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

::selection {
    background: var(--accent-gradient);
    color: #fff;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--grad-c2) transparent;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 10px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(circle at 12% 12%, var(--orb-2) 0%, transparent 45%),
        radial-gradient(circle at 88% 28%, var(--orb-1) 0%, transparent 45%),
        radial-gradient(circle at 50% 95%, var(--orb-3) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Slow-rotating aurora light field */
body::before {
    content: '';
    position: fixed;
    inset: -60%;
    z-index: -1;
    background: var(--aurora);
    filter: blur(90px);
    animation: auroraSpin 40s linear infinite;
    pointer-events: none;
}

@keyframes auroraSpin {
    to { transform: rotate(360deg); }
}

/* Film grain for glossy texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.light-theme body::after { opacity: 0.025; }

h1, h2, h3, h4, h5, .logo-text, .btn, .stat-value, .marquee-item {
    font-family: var(--font-heading);
}

a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 110px 0;
    position: relative;
    scroll-margin-top: 120px;
}

/* ---- Text Gradient Utility ---- */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Custom Cursor ---- */
.cursor-dot,
.cursor-ring {
    display: none;
}

@media (pointer: fine) {
    .cursor-dot,
    .cursor-ring {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 10000;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

    .cursor-dot {
        width: 6px;
        height: 6px;
        background: var(--accent-gradient);
        box-shadow: 0 0 14px var(--accent-glow);
    }

    .cursor-ring {
        width: 40px;
        height: 40px;
        border: 1.5px solid var(--grad-c2);
        box-shadow: 0 0 18px var(--accent-glow), inset 0 0 8px var(--accent-glow);
        opacity: 0.6;
        transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    }

    .cursor-ring.hovering {
        width: 68px;
        height: 68px;
        opacity: 1;
        background: var(--accent-glow);
        border-color: transparent;
    }

    body.cursor-none,
    body.cursor-none a,
    body.cursor-none button,
    body.cursor-none .tilt-card {
        cursor: none;
    }
}

/* ---- Scroll Progress ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--accent-gradient);
    z-index: 3000;
    box-shadow: 0 0 14px var(--accent-glow);
    transition: width 0.08s linear;
}

/* ---- Loading Screen ---- */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.loading-logo {
    font-family: 'Courier New', Courier, monospace;
    font-size: 3.2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 26px var(--accent-glow));
    animation: pulseLogo 1.5s ease-in-out infinite;
}

.loading-logo .logo-bracket {
    background: none;
    -webkit-text-fill-color: var(--text-secondary);
}

.loading-bar {
    width: 220px;
    height: 5px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    box-shadow: var(--gloss);
    overflow: hidden;
}

.loading-bar span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 10px;
    background: var(--accent-gradient);
    box-shadow: 0 0 12px var(--accent-glow);
    animation: loadingSlide 1.1s ease-in-out infinite;
}

.loading-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

@keyframes loadingSlide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.07); opacity: 0.85; }
}

/* ---- Floating Pill Navigation ---- */
nav {
    position: fixed;
    top: 18px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 24px;
    pointer-events: none;
}

.nav-container {
    pointer-events: auto;
    max-width: 1200px;
    margin: 0 auto;
    height: 68px;
    padding: 0 18px 0 24px;
    border-radius: 999px;
    background: var(--nav-bg);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border: 1px solid var(--nav-border);
    box-shadow: var(--gloss), 0 14px 44px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled .nav-container {
    background: var(--nav-bg-strong);
    box-shadow: var(--gloss), 0 18px 54px rgba(0, 0, 0, 0.45);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-image {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: var(--accent-gradient);
    padding: 2px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image { transform: scale(1.08) rotate(8deg); }

.logo-text {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 9px 18px;
    border-radius: 999px;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.75;
}

.nav-links a:hover {
    color: var(--text-primary);
    opacity: 1;
    background: var(--surface);
}

.nav-links a.active {
    color: var(--grad-c1);
    opacity: 1;
    background: linear-gradient(160deg, var(--surface-high), var(--surface));
    box-shadow: var(--gloss), 0 6px 18px rgba(0, 0, 0, 0.25);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-gradient);
    box-shadow: 0 0 8px var(--accent-glow);
}

.nav-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.control-btn {
    background: var(--surface);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--gloss);
}

.control-btn:hover {
    border-color: var(--card-hover-border);
    background: linear-gradient(160deg, var(--surface-high), var(--surface));
    transform: translateY(-2px);
    box-shadow: var(--gloss), 0 8px 22px var(--accent-glow);
}

.language-bar { position: relative; }
.lang-btn { min-width: 108px; }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--nav-bg-strong);
    backdrop-filter: blur(26px);
    border-radius: 18px;
    border: 1px solid var(--card-border);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow);
    min-width: 100%;
    z-index: 100;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    padding: 9px 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: var(--skill-item-bg);
    color: var(--grad-c1);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Glossy Buttons ---- */
.btn {
    padding: 15px 36px;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: inline-block;
    letter-spacing: 0.3px;
}

.btn.primary {
    background: var(--accent-gradient);
    background-size: 160% 160%;
    color: #fff;
    box-shadow: 0 12px 34px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 6px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn.primary::before {
    content: '';
    position: absolute;
    inset: 0 0 52% 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
    border-radius: inherit;
    pointer-events: none;
}

.btn.primary:hover {
    transform: translateY(-4px) scale(1.03);
    background-position: 100% 100%;
    box-shadow: 0 18px 48px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 6px rgba(0, 0, 0, 0.2);
}

.btn.secondary {
    background: linear-gradient(160deg, var(--surface-high), var(--surface));
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    box-shadow: var(--gloss);
}

.btn.secondary:hover {
    border-color: var(--card-hover-border);
    color: var(--grad-c1);
    transform: translateY(-4px);
    box-shadow: var(--gloss), 0 10px 30px var(--accent-glow);
}

/* Shine sweep */
.btn.shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 45%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
}

.btn.shine:hover::after { left: 135%; }

/* ---- Section Titles ---- */
.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--grad-c1), var(--grad-c2), var(--grad-c3), var(--grad-c1));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 9s linear infinite;
    filter: drop-shadow(0 4px 18px var(--accent-glow));
}

@keyframes shimmerText {
    to { background-position: 300% 0; }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 5px;
    border-radius: 5px;
    background: var(--accent-gradient);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ---- Reveal Animations (uses `translate` so it never conflicts with tilt transforms) ---- */
.reveal {
    opacity: 0;
    translate: 0 44px;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), translate 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    translate: 0 0;
}

.reveal-children > * {
    opacity: 0;
    translate: 0 40px;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), translate 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-children.visible > * {
    opacity: 1;
    translate: 0 0;
}

.reveal-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-children.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-children.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-children.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-children.visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-children.visible > *:nth-child(6) { transition-delay: 0.55s; }

/* ---- Glass Panels & 3D Tilt ---- */
.glass-panel {
    background: linear-gradient(165deg, var(--surface-high) 0%, var(--surface) 45%, var(--surface-low) 100%);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.18s ease-out;
}

.glass-panel:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow), 0 0 0 1px var(--accent-glow), 0 0 44px var(--accent-glow);
}

.tilt-card {
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--scale, 1));
    will-change: transform;
}

.tilt-card.tilting {
    transition: transform 0.06s linear;
}

.tilt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), var(--accent-glow), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.tilt-card:hover::before { opacity: 0.5; }

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
    width: 540px;
    height: 540px;
    background: var(--orb-1);
    top: -10%;
    left: -8%;
}

.orb-2 {
    width: 480px;
    height: 480px;
    background: var(--orb-2);
    bottom: -12%;
    right: -6%;
    animation-delay: -6s;
}

.orb-3 {
    width: 320px;
    height: 320px;
    background: var(--orb-3);
    top: 55%;
    left: 45%;
    animation-delay: -12s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
    100% { transform: translate(-30px, 25px) scale(0.95); }
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 999px;
    background: linear-gradient(160deg, var(--surface-high), var(--surface));
    border: 1px solid var(--card-border);
    backdrop-filter: blur(14px);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 34px;
    letter-spacing: 0.4px;
    box-shadow: var(--gloss);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e;
    animation: dotPulse 2s ease-in-out infinite;
}

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

#hero-title {
    font-size: clamp(2.9rem, 7.5vw, 5.6rem);
    font-weight: 900;
    margin-bottom: 22px;
    line-height: 1.12;
    letter-spacing: -1.5px;
    background: linear-gradient(90deg, var(--grad-c1), var(--grad-c2), var(--grad-c3), var(--grad-c1));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 8s linear infinite;
    display: inline-block;
    min-height: calc(clamp(2.9rem, 7.5vw, 5.6rem) * 1.2);
    filter: drop-shadow(0 6px 28px var(--accent-glow));
}

#hero-title .cursor {
    display: inline-block;
    width: 4px;
    height: 0.85em;
    background: var(--grad-c2);
    margin-left: 6px;
    vertical-align: baseline;
    animation: blink 1s step-end infinite;
    border-radius: 2px;
    box-shadow: 0 0 12px var(--accent-glow);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 46px;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-socials {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(160deg, var(--surface-high), var(--surface));
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    box-shadow: var(--gloss);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-btn:hover {
    transform: translateY(-5px) rotate(-6deg);
    color: #fff;
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 14px 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator:hover { opacity: 1; transform: translateX(-50%) translateY(-4px); }

.mouse {
    display: block;
    width: 27px;
    height: 44px;
    border: 2px solid var(--text-secondary);
    border-radius: 16px;
    position: relative;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

.wheel {
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 9px;
    border-radius: 4px;
    background: var(--accent-gradient);
    animation: wheelScroll 1.8s ease-in-out infinite;
}

@keyframes wheelScroll {
    0% { opacity: 1; transform: translate(-50%, 0); }
    70% { opacity: 0; transform: translate(-50%, 14px); }
    100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---- Tech Marquee ---- */
.marquee {
    padding: 10px 0 60px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.marquee-row {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 34s linear infinite;
}

.marquee-track.reversed {
    animation-direction: reverse;
    animation-duration: 40s;
}

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

@keyframes marqueeScroll {
    to { transform: translateX(-50%); }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 14px;
    padding: 11px 24px;
    border-radius: 999px;
    background: linear-gradient(160deg, var(--surface-high), var(--surface));
    border: 1px solid var(--card-border);
    box-shadow: var(--gloss);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.marquee-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 10px var(--accent-glow);
}

.marquee-item:hover {
    color: var(--text-primary);
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
}

/* ---- About ---- */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    border-radius: 36px;
    padding: 56px;
    position: relative;
    overflow: hidden;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-image-container {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rotating gradient ring around the dev logo */
.profile-image-container::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--grad-c1), var(--grad-c2), var(--grad-c3), var(--grad-c1));
    animation: ringSpin 9s linear infinite;
    box-shadow: 0 0 46px var(--accent-glow), inset 0 0 18px rgba(255, 255, 255, 0.25);
}

.profile-image-container::after {
    content: '';
    position: absolute;
    inset: 13px;
    border-radius: 50%;
    background: var(--bg-primary);
    box-shadow: inset 0 3px 14px rgba(0, 0, 0, 0.35);
}

@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

.profile-image-container .logo-dev-wrapper {
    position: relative;
    z-index: 2;
}

.logo-dev-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--grad-c2);
    text-shadow: 0 0 18px var(--accent-glow);
}

.logo-dev-wrapper .logo-bracket { color: var(--text-secondary); }
.logo-dev-wrapper .logo-slash { color: var(--grad-c1); }

.logo-dev-wrapper.large {
    font-size: 4.6rem;
    gap: 14px;
    animation: floatLogo 5s ease-in-out infinite;
    filter: drop-shadow(0 6px 22px var(--accent-glow));
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-14px) rotate(2deg); }
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-secondary);
    background-color: var(--bg-primary);
}

.about-text {
    flex: 1.6;
}

.about-text p {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 38px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    background: linear-gradient(165deg, var(--surface-high), var(--surface));
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 24px 14px;
    text-align: center;
    box-shadow: var(--gloss);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover {
    transform: translateY(-6px);
    border-color: var(--card-hover-border);
    box-shadow: var(--gloss), 0 14px 34px var(--accent-glow);
}

.stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    filter: drop-shadow(0 2px 10px var(--accent-glow));
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 500;
}

/* ---- Skills ---- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.skill-category {
    border-radius: 30px;
    padding: 38px;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.18s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-category h3 {
    margin-bottom: 26px;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.skill-category h3::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 14px var(--accent-glow);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    background: linear-gradient(160deg, var(--surface-high), var(--surface));
    border: 1px solid var(--card-border);
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--gloss);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-item:hover {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 26px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ---- Projects ---- */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    background: linear-gradient(160deg, var(--surface-high), var(--surface));
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 11px 26px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--gloss);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
    transform: translateY(-3px);
    color: var(--text-primary);
    border-color: var(--card-hover-border);
    box-shadow: var(--gloss), 0 8px 22px var(--accent-glow);
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.project-card {
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    will-change: transform;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--scale, 1));
    transition: transform 0.18s ease-out, border-color 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover { --scale: 1.02; }

.project-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #10121f 0%, #1a1d33 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.light-theme .project-image-container {
    background: linear-gradient(135deg, #dfe3f2 0%, #ccd2ea 100%);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.project-img[src*="removebg"],
.project-img[src*="Logo"] {
    object-fit: contain;
    padding: 26px;
    width: 88%;
    height: 88%;
}

.project-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 7, 14, 0.72) 0%, transparent 55%);
    pointer-events: none;
}

.light-theme .project-image-container::after {
    background: linear-gradient(to top, rgba(27, 30, 61, 0.28) 0%, transparent 55%);
}

.project-card:hover .project-img {
    transform: scale(1.08);
    filter: brightness(1.12);
}

.project-content {
    padding: 26px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.project-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    flex-grow: 1;
    line-height: 1.75;
}

.project-tag {
    margin-top: 16px;
    align-self: flex-start;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(160deg, var(--chip-bg), transparent);
    border: 1px solid var(--card-border);
    color: var(--grad-c1);
    box-shadow: var(--gloss);
}

/* ---- Store ---- */
.store-content {
    display: flex;
    justify-content: center;
}

.store-card {
    border-radius: 36px;
    padding: 48px;
    max-width: 820px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.store-info {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.store-logo {
    width: 110px;
    height: 110px;
    border-radius: 26px;
    object-fit: cover;
    border: 2px solid transparent;
    background: var(--accent-gradient);
    padding: 3px;
    box-shadow: 0 16px 40px var(--accent-glow);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.store-card:hover .store-logo {
    transform: scale(1.06) rotate(-4deg);
}

.store-text {
    text-align: left;
    position: relative;
    z-index: 2;
}

.dynamic-store-name {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px var(--accent-glow));
}

.dynamic-store-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.store-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* ---- Contact ---- */
.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.discord-section {
    width: 100%;
    max-width: 620px;
}

.discord-info-box {
    border-radius: 36px;
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-avatar {
    width: 78px;
    height: 78px;
    margin: 0 auto 26px;
    border-radius: 26px;
    background: linear-gradient(160deg, var(--surface-high), var(--surface));
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--gloss), 0 12px 34px var(--accent-glow);
    position: relative;
}

.contact-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 28px;
    background: conic-gradient(from 120deg, transparent 0%, var(--grad-c1) 18%, var(--grad-c2) 32%, transparent 50%, transparent 100%);
    z-index: 1;
    opacity: 0.55;
    animation: ringSpin 6s linear infinite;
    pointer-events: none;
}

.contact-avatar .logo-dev-wrapper {
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.discord-info-box h4 {
    font-size: 1.35rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 700;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    background: linear-gradient(165deg, var(--surface-high), var(--surface));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--gloss);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--skill-item-bg);
    border-color: var(--card-hover-border);
    transform: scale(1.015);
    box-shadow: var(--gloss), 0 8px 24px var(--accent-glow);
}

.contact-label {
    font-weight: 600;
    color: var(--grad-c1);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.contact-value {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    word-break: break-all;
    text-align: right;
}

.contact-value::after {
    content: '⧉';
    margin-left: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover .contact-value::after { opacity: 1; }

.contact-item.copied .contact-value { color: #22c55e; }

.copy-hint {
    margin-top: 18px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.6;
    letter-spacing: 0.3px;
}

/* ---- Footer ---- */
.footer {
    padding: 52px 0 40px;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 80%);
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0.4;
    box-shadow: 0 0 20px var(--accent-glow);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-socials .social-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(160deg, var(--surface-high), var(--surface));
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    backdrop-filter: blur(14px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--gloss);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
}

/* ---- Language Overlay ---- */
.language-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 7, 14, 0.88);
    backdrop-filter: blur(22px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: visible;
    opacity: 1;
    transition: all 0.5s ease;
}

.light-theme .language-overlay {
    background: rgba(238, 241, 249, 0.88);
}

.language-overlay.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.lang-picker-card {
    background: linear-gradient(165deg, var(--surface-high) 0%, var(--surface) 45%, var(--surface-low) 100%);
    border: 1px solid var(--card-border);
    padding: 56px;
    border-radius: 40px;
    text-align: center;
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow), 0 0 60px var(--accent-glow);
    max-width: 480px;
    width: 90%;
    animation: cardPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardPop {
    from { opacity: 0; transform: scale(0.85) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.lang-picker-card h2 {
    margin: 28px 0;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lang-picker-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.lang-picker-btn {
    flex: 1;
    padding: 22px 16px;
    background: linear-gradient(165deg, var(--surface-high), var(--surface));
    border: 1px solid var(--card-border);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--gloss);
}

.lang-picker-btn:hover {
    border-color: var(--card-hover-border);
    background: var(--skill-item-bg);
    transform: translateY(-6px);
    box-shadow: var(--gloss), 0 16px 40px var(--accent-glow);
}

.lang-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.lang-flag { font-size: 2.2rem; }

/* ---- Lightbox ---- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    background: linear-gradient(160deg, var(--surface-high), var(--surface));
    border: 1px solid var(--card-border);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5100;
    box-shadow: var(--gloss);
}

.close-lightbox:hover {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    transform: rotate(90deg);
    box-shadow: 0 10px 26px var(--accent-glow);
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: relative;
    perspective: 1000px;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6), 0 0 80px var(--accent-glow);
    transition: transform 0.1s linear;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    section { padding: 84px 0; }

    .nav-links {
        position: fixed;
        top: 100px;
        left: 24px;
        right: 24px;
        width: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px;
        background: var(--nav-bg-strong);
        backdrop-filter: blur(26px);
        -webkit-backdrop-filter: blur(26px);
        border: 1px solid var(--card-border);
        border-radius: 28px;
        box-shadow: var(--shadow);
        transform: translateY(-140%);
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: -1;
    }

    .nav-links.open { transform: translateY(0); }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 1.05rem;
    }

    .menu-toggle { display: flex; }

    .about-content {
        flex-direction: column;
        gap: 40px;
        padding: 44px 28px;
    }

    .about-image { order: -1; }

    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .stat-value { font-size: 1.6rem; }

    .store-info { flex-direction: column; text-align: center; }
    .store-text { text-align: center; }
    .store-buttons { justify-content: center; }
}

@media (max-width: 600px) {
    section { padding: 68px 0; }

    .nav-container { padding: 0 10px 0 18px; }
    nav { padding: 0 12px; top: 12px; }

    .nav-links { top: 90px; left: 12px; right: 12px; }

    .logo-text { font-size: 1.25rem; }

    .hero-content { padding-top: 40px; }

    .about-stats { grid-template-columns: repeat(3, 1fr); }
    .stat-item { padding: 16px 8px; }
    .stat-value { font-size: 1.3rem; }

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

    .contact-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .contact-value { text-align: left; }

    .lang-picker-buttons { flex-direction: column; }
    .lang-picker-card { padding: 40px 24px; }

    .store-card { padding: 32px 24px; }

    .back-to-top { bottom: 20px; right: 20px; }

    .marquee-item { padding: 9px 18px; font-size: 0.82rem; }
}

/* ---- RTL ---- */
html[dir="rtl"] .contact-value { text-align: left; }
html[dir="rtl"] .marquee-track { animation-name: marqueeScrollRtl; }
html[dir="rtl"] .marquee-track.reversed { animation-direction: reverse; }

@keyframes marqueeScrollRtl {
    to { transform: translateX(50%); }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-children > * {
        opacity: 1;
        translate: none;
        transform: none;
    }

    .hero-canvas { display: none; }
}