:root { 
    --brand: #FF4AB2;
    --brand-dark: #E63FA0;
    --surface-light: rgba(255, 255, 255, 0.05);
    --surface-lighter: rgba(255, 255, 255, 0.08);
    --accent: #00D9FF;
}

body { 
    background: #0a0a0c;
    color: #f1f1f1; 
    overflow-x: hidden;
    overflow-y: auto;
    cursor: none;
    background-attachment: fixed;
}

.bg-mesh {
    position: fixed;
    inset: -10%;
    z-index: -1;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 74, 178, 0.08) 0%, rgba(0, 217, 255, 0.03) 30%, #09090e 70%);
    transition: background 0.8s ease;
    will-change: transform;
}

.dot-grid-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 1; 
    opacity: 0.28;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 0);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
    will-change: transform;
}

#custom-cursor {
    position: fixed;
    top: 0; left: 0;
    display: flex; 
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', monospace;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.3em;
    pointer-events: none;
    z-index: 2000;
    color: white;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

#custom-cursor.hovering {
    width: 100px;
    height: 100px;
    background: rgba(255, 74, 178, 0.1);
    border-color: var(--brand);
    backdrop-filter: blur(4px);
}

#custom-cursor span {
    color: white;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

#custom-cursor.hovering span {
    opacity: 1;
}

#custom-cursor.active { opacity: 1; transform: translate(-50%, -50%) scale(1); }

#cursor-glow {
    position: fixed; top: 0; left: 0; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 74, 178, 0.15) 0%, rgba(255, 74, 178, 0.05) 40%, rgba(255, 74, 178, 0) 70%);
    border-radius: 50%; 
    transform: translate(-50%, -50%);
    pointer-events: none; 
    z-index: 0;
    filter: blur(40px);
    opacity: 0.8;
}


.flux {
    opacity: 0;
    filter: blur(30px);
    transform: translateY(60px) scale(0.95) skewY(2deg);
    transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.flux.in-view { 
    opacity: 1; 
    filter: blur(0px); 
    transform: translateY(0) scale(1) skewY(0deg);
}

.flux.delay-300 { transition-delay: 300ms; }
.flux.delay-700 { transition-delay: 700ms; }

.reveal-text { display: inline-block; clip-path: polygon(0 0, 100% 0, 100% 150%, 0 150%); }
.reveal-text span { display: inline-block; transform: translateY(110%) rotate(5deg); transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.in-view .reveal-text span { transform: translateY(0%) rotate(0deg); }

.shimmer-text {
    background: linear-gradient(90deg, #fff 0%, #FF4AB2 50%, #fff 100%);
    background-size: 200% auto; 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    animation: shimmer-reverse 5s ease-in-out infinite;
}

@keyframes shimmer-reverse { 
    0% { background-position: 200% center; } 
    50% { background-position: 0% center; }
    100% { background-position: 200% center; } 
}

.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 74, 178, 0.3);
    box-shadow: 0 12px 48px rgba(255, 74, 178, 0.15);
}

.hero-container { width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; }

.hero-frame { position: relative; width: 100%; height: 100%; overflow: hidden; will-change: transform; transition: transform 0.35s ease; }
@media (min-width: 768px) {
    .hero-frame { 
        height: auto; aspect-ratio: 16/9; max-width: 1280px; 
        border-radius: 2rem; border: 1px solid rgba(255,255,255,0.05);
    }
}

/* Hero Video Zoom: reduced for sharper display */
#home #hero-video-player {
    position: absolute; top: 50%; left: 50%;
    width: 110vw; height: 110vh;
    transform: translate(-50%, -50%) scale(1.1);
}
@media (min-width: 768px) {
    #home #hero-video-player { width: 105vw; height: 105vh; transform: translate(-50%, -50%) scale(1.05); }
}

#hero-audio-toggle {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
#hero-audio-toggle:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 50px rgba(255, 74, 178, 0.25);
}

@keyframes bg-shift {
    0% { background-position: 50% 50%; }
    50% { background-position: 60% 40%; }
    100% { background-position: 50% 50%; }
}

.cta-wave {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.wave-text {
    display: inline-block;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(255, 92, 181, 0.24);
}

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

@keyframes overlay-float {
    0% { transform: translate(0px, 0px); }
    50% { transform: translate(10px, 6px); }
    100% { transform: translate(0px, 0px); }
}

.nav-fixed {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%) translateY(-20px);
    width: auto; max-width: 95%; z-index: 500; opacity: 0; transition: all 1s ease;
}
.nav-fixed.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.nav-scroll-container { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 0 8px; }
.nav-scroll-container::-webkit-scrollbar { display: none; }

.nav-item { white-space: nowrap; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); flex-shrink: 0; }

.audio-bar { width: 3px; height: 100%; background-color: currentColor; transform-origin: bottom; }
.is-playing .audio-bar:nth-child(1) { animation: bar-dance 0.8s infinite ease-in-out; }
.is-playing .audio-bar:nth-child(2) { animation: bar-dance 1.1s infinite ease-in-out; }
.is-playing .audio-bar:nth-child(3) { animation: bar-dance 0.9s infinite ease-in-out; }
@keyframes bar-dance { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

/* Enhanced dark mode animations */
@keyframes subtle-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 74, 178, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 74, 178, 0.6)); }
}

@keyframes float-in {
    0% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

@keyframes soft-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes slide-up {
    0% { 
        opacity: 0; 
        transform: translateY(20px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* Smooth hover effects */
.nav-item:hover {
    animation: soft-pulse 1.5s ease-in-out;
}

/* Enhanced button animations */
button:not(.disabled) {
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

button:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 74, 178, 0.3);
}

/* Reveal text enhanced */
.reveal-text {
    display: inline-block;
    clip-path: polygon(0 0, 100% 0, 100% 150%, 0 150%);
    overflow: hidden;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(110%) rotate(5deg);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.in-view .reveal-text span {
    transform: translateY(0%) rotate(0deg);
}

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
