html {
    scroll-behavior: smooth;
}

html, body {
    background-color: #0e0a10; 
    color: #a1a1aa; 
    font-family: 'Satoshi', sans-serif; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: none; 
}

*::-webkit-scrollbar { display: none !important; }

.no-scroll { overflow: hidden; height: 100vh; }

.heading-font { font-family: 'Newsreader', serif; }
.time-font { font-family: 'DM Sans', sans-serif; } 

.film-grain {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9998; opacity: 0.03; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

main, footer { position: relative; z-index: 10; }

.text-gradient-silver {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #ec4899, #3b82f6); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.neon-border-gradient {
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.4), rgba(59, 130, 246, 0.4), rgba(236, 72, 153, 0.4));
    background-size: 200% auto;
    animation: gradientLoop 6s linear infinite;
}

@keyframes gradientLoop {
    0% { background-position: 0% center; }
    100% { background-position: -200% center; }
}

.glass-nav-inner { 
    background: rgba(14, 10, 16, 0.85); 
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}

/* Neon Highlights */
.glow-synaptive { color: #ffffff; text-shadow: 0 0 10px rgba(59, 130, 246, 0.6); transition: all 0.3s ease; }
.glow-synaptive:hover { text-shadow: 0 0 18px rgba(59, 130, 246, 0.9); }
.glow-zeroday { color: #ffffff; text-shadow: 0 0 10px rgba(236, 72, 153, 0.6); transition: all 0.3s ease; }
.glow-zeroday:hover { text-shadow: 0 0 18px rgba(236, 72, 153, 0.9); }

/* Email Button Themes */
.email-btn {
    transition: all 0.15s ease-in-out; backface-visibility: hidden; display: inline-flex;
    align-items: center; justify-content: center; width: 100%; height: 100%;
    font-size: 1.1rem; text-decoration: none; box-sizing: border-box; white-space: nowrap;
    will-change: transform, box-shadow, background-color, border-radius; 
}
.theme-site-1 { background-color: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.1); font-family: 'Space Grotesk', sans-serif; box-shadow: 0 0 15px rgba(59, 130, 246, 0.15); border-radius: 9999px; backdrop-filter: blur(4px); }
.theme-site-2 { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; border: 1px solid #3b82f6; font-family: 'Space Grotesk', sans-serif; font-weight: 700; box-shadow: 4px 4px 0px 0px rgba(59, 130, 246, 0.3); border-radius: 0px; transform: skewX(-5deg); text-transform: uppercase; }
.theme-site-3 { background-color: #0e0a10; color: #ec4899; border: 1px solid #ec4899; font-family: 'VT323', monospace; box-shadow: 0 0 10px rgba(236, 72, 153, 0.2); border-radius: 4px; font-size: 1.2rem; }
.theme-site-4 { background-color: #e4e4e7; color: #0e0a10; border: 1px solid #a1a1aa; font-family: 'DM Sans', sans-serif; box-shadow: inset 2px 2px #fff, inset -2px -2px #a1a1aa; border-radius: 9999px; font-weight: bold; }
.theme-site-5 { background-color: rgba(236, 72, 153, 0.1); color: #ec4899; border: 1px dashed #ec4899; font-family: 'Space Grotesk', sans-serif; border-radius: 12px; }

/* --- Reusable Multi-Trigger Scroll Reveal --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(5px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s ease-out;
    will-change: opacity, transform, filter;
}
.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.delay-100 { transition-delay: 0.1s; } 
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; } 
.delay-400 { transition-delay: 0.4s; }

/* Mobile Menu Transitions */
#mobile-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- HIGH-PERFORMANCE CHUNKY PRELOADER STYLES --- */
.pixel-text-canvas {
    display: grid; 
    perspective: 600px;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.6));
    will-change: filter;
}
.pixel {
    width: 100%; height: 100%; 
    border-radius: 1px; 
    opacity: 0; 
    transform: scale(0.8) translateY(15px); 
    transition: opacity 0.8s ease-out, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
    background-color: transparent;
}
.pixel[data-active="true"] {
    background-color: #ec4899;
}

#loader-canvas.play .pixel[data-active="true"] {
    opacity: 1;
    transform: scale(1) translateY(0);
}