:root {
    --primary: #282828;
    --accent: #C814C8;
    --light: #DCDCDC;
    --dark: #050505;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: default;
}

body::before {
    content:'';
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:9999;
    opacity:0.06;
    mix-blend-mode:overlay;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img { width: 100%; height: auto; object-fit: cover; display: block; }

#ambient-glow {
    position: fixed;
    top: 0; left: 0;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(200,20,200,0.12) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.float-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.15; }
.b1 { width: 500px; height: 500px; background: var(--accent); top: -10%; left: -10%; animation: float 20s ease-in-out infinite; }
.b2 { width: 400px; height: 400px; background: var(--primary); top: 50%; right: -5%; animation: float 25s ease-in-out infinite reverse; }

.scroll-path-container { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; height: 100%; }
.scroll-path {
    width: 100%; height: 100%;
    opacity: 0.3;
    color: var(--accent);
    filter: drop-shadow(0 0 12px rgba(200,20,200,0.6));
}

.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-text .word { display: inline-block; opacity: 0; transform: translateY(30px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-text .word.in { opacity: 1; transform: translateY(0); }

.reveal-img { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-img.in { clip-path: inset(0 0 0 0); }

.stack-sec {
    position: sticky;
    top: 0;
    min-height: 100vh;
    box-shadow: 0 -30px 60px rgba(0,0,0,0.8);
    background: var(--darker);
    z-index: 10;
}
.stack-sec.alt-bg {
    background: var(--dark);
    border-top: 1px solid rgba(200,20,200,0.05);
}

.glass-panel {
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.5s ease;
    position: relative;
}
.glass-panel::before {
    content: '';
    position: absolute;
    top: 50%; left: -1px;
    width: 2px; height: 0%;
    background: var(--accent);
    transform: translateY(-50%);
    transition: height 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 0 15px var(--accent);
}
.glass-panel:hover::before { height: 80%; }
.glass-panel:hover {
    box-shadow: 0 10px 40px -10px rgba(200, 20, 200, 0.15);
    border-color: rgba(200, 20, 200, 0.2);
    transform: translateY(-5px);
}

.hero-gradient {
    background: linear-gradient(120deg, #050505, #140214, #0a0a0a, #080008);
    background-size: 300% 300%;
    animation: gradient-shift 15s ease infinite;
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.big-typo { position: relative; overflow: hidden; }
.bg-number {
    position: absolute;
    font-size: clamp(8rem, 25vw, 20rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
    pointer-events: none;
    z-index: 0;
    font-family: 'Pirata One', serif;
}

.btn-neon {
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.btn-neon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    filter: blur(15px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}
.btn-neon:hover::after { opacity: 0.4; }

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.icon-transition { transition: transform 0.3s ease, text-shadow 0.3s ease; }
details[open] .icon-transition { transform: rotate(45deg); color: var(--accent); text-shadow: 0 0 10px var(--accent); border-color: var(--accent); }

.text-balance { text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
