/* =========================================
   1. HERO & VIDEO BACKGROUND
   ========================================= */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; 
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    position: absolute;
    top: 0;
    left: 0;
}

/* =========================================
   2. THE "CINEMATIC" GRAIN FILTER (MIDDLE LAYER)
   ========================================= */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 40; /* Sits OVER background, but UNDER Content */
    opacity: 0.05; 
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hero-gradient {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; 
    background: radial-gradient(circle at center, rgba(20, 184, 166, 0.4) 0%, transparent 70%);
}

/* =========================================
   3. STRUCTURE & LAYERING (CRITICAL)
   ========================================= */
/* Ensure Header sits ABOVE the noise */
#global-header, header {
    position: relative;
    z-index: 100; /* High Z-Index to ensure visibility */
}

/* FIX: Footer needs solid black background and high Z-index to "cap" the page */
footer, #global-footer {
    position: relative;
    z-index: 100;
    background-color: #000000; 
}

/* Note: We do NOT set background-color on generic sections here. 
   We let the HTML classes (like bg-transparent) handle that 
   so the grain shows through. */

/* =========================================
   4. UI ELEMENTS
   ========================================= */
.nav-dot {
    display: block;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-dot:hover {
    background-color: rgba(20, 184, 166, 0.5);
    transform: scale(1.2);
}

.nav-dot.active {
    background-color: #14b8a6;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
    transform: scale(1.2);
}

/* Hero override */
#hero { padding-top: 0 !important; }

/* --- GLOBAL ANIMATIONS (SCROLL REVEAL) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050507; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* =========================================
   5. UTILITIES & HELPER CLASSES
   ========================================= */

/* Animation Stagger Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Glass Card Utility (Used on Live & Invest) */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* Form Dropdown Arrow Fix */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

/* =========================================
   6. GLOBAL ANIMATION SUITE
   ========================================= */

/* 1. Standard Scroll Reveal (Used on Index/Gamisode) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Staggered Reveal (The "Invest" style) 
   Allows items to pop up one-by-one when the parent section is active */
.reveal-stagger {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Trigger stagger when the parent section has .active-section (Invest logic) 
   OR when the element itself has .active (Standard logic) */
.active-section .reveal-stagger,
.reveal-stagger.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Stagger Delays (Controls the sequence) */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }