body {
    background-color: #000; /* Ensures black screen while video loads */
    margin: 0;
    overflow-x: hidden;
}
/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    --bg: #030305;
    --glass-surface: rgba(20, 20, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-muted: #9ca3af;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --success: #10b981;
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ease-elastic: cubic-bezier(0.5, 1.5, 0.5, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-main); }
body { background-color: var(--bg); color: var(--text); overflow-x: hidden; }

/* AURORA BACKGROUND */
.background-loop {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2;
    background: #030305;
    background-size: cover; background-position: center;
}
.background-loop::before, .background-loop::after {
    content: ''; position: absolute; width: 70vw; height: 70vw; 
    border-radius: 50%; filter: blur(130px); opacity: 0.15;
    animation: float 15s infinite alternate var(--ease-smooth);
}
.background-loop::before { background: var(--accent); top: -15%; left: -15%; }
.background-loop::after { background: #8b5cf6; bottom: -15%; right: -15%; animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(40px, 60px); } }

/* =========================================
   2. REFINED TRANSITIONS & DECONSTRUCTED NAV
   ========================================= */

/* CINEMATIC BLUR (Replaces Black Curtain) */
/* =========================================
   SPEED-TUNED TRANSITION (Seamless & Quick)
   ========================================= */

.transition-curtain {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    /* Lighter background for less visual weight */
    background: rgba(3, 3, 5, 0.2); 
    
    /* Standard Blur */
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    
    /* FAST Transition: 0.3s is the sweet spot for "snappy but smooth" */
    transition: 
        backdrop-filter 0.3s cubic-bezier(0.2, 0, 0.2, 1), 
        opacity 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.transition-curtain.active { 
    opacity: 1; 
    /* Reduced blur amount for faster rendering performance */
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    pointer-events: all; 
}

/* =========================================
   2. PUBLIC NAVIGATION (Re-Aligned)
   ========================================= */

/* A. TOP LEFT: Logo (Bigger & Lower) */
.corner-logo {
    position: fixed; 
    top: 26px; /* Moved up slightly to accommodate larger size while centering */
    left: 40px; 
    z-index: 1000;
    opacity: 0; 
    animation: cornerDrop 0.8s cubic-bezier(0.5, 1.5, 0.5, 1) forwards 0.2s;
    display: flex; align-items: center; /* Ensures image centers in container */
}
.corner-logo img { 
    height: 54px; /* Increased from 40px -> 54px */
    width: 54px;  /* Force square aspect ratio if needed, or remove if logo is wide */
    object-fit: contain;
    border-radius: 50%; 
    transition: 0.3s; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.3); /* Added subtle depth */
}
.corner-logo:hover img { transform: scale(1.1) rotate(-5deg); }

/* B. TOP CENTER: Links Pill (Stays at Top 30px) */
.center-nav {
    position: fixed; 
    top: 30px; 
    left: 50%; 
    transform: translateX(-50%) translateY(-100px);
    background: rgba(10, 10, 12, 0.75); 
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    padding: 6px 8px; 
    border-radius: 100px;
    display: flex; 
    gap: 5px; 
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: dropIn 0.8s cubic-bezier(0.5, 1.5, 0.5, 1) forwards 0.4s;
    /* This pill is approx 46-50px tall, center is at ~53px-55px */
}
.nav-link {
    color: #9ca3af; 
    text-decoration: none;
    font-size: 0.85rem; 
    font-weight: 500; 
    padding: 10px 24px;
    border-radius: 50px; 
    transition: 0.3s;
}
.nav-link:hover { color: white; background: rgba(255, 255, 255, 0.05); }
.nav-link.active { background: rgba(255, 255, 255, 0.15); color: white; font-weight: 600; }

/* C. TOP RIGHT: Login Button (Pushed Down to Align) */
.corner-login {
    position: fixed; 
    top: 33px; /* Pushed down from 30px to align center with Pill */
    right: 40px; 
    z-index: 1000;
    opacity: 0; 
    animation: cornerDrop 0.8s cubic-bezier(0.5, 1.5, 0.5, 1) forwards 0.6s;
}
.login-btn-circle {
    background: #3b82f6; 
    color: white; 
    border: none; 
    height: 42px; /* Slight bump from 40px */
    padding: 0 26px;
    border-radius: 50px; 
    font-weight: 600; 
    font-size: 0.85rem; 
    cursor: pointer;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); 
    transition: 0.3s;
}
.login-btn-circle:hover { transform: scale(1.05); background: white; color: black; }
/* ANIMATIONS */
@keyframes dropIn { to { transform: translateX(-50%) translateY(0); opacity: 1; } }
@keyframes cornerDrop { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
/* Admin Nav */
.admin-nav {
    position: sticky; top: 0; width: 100%; height: 70px;
    background: rgba(3, 3, 5, 0.95); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: space-between; align-items: center; padding: 0 40px; z-index: 2000;
}

/* =========================================
   3. LAYOUT & UI COMPONENTS
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
body:not(.admin-mode) .container { padding-top: 150px; }

.btn { padding: 12px 30px; border-radius: 50px; font-weight: 600; cursor: pointer; border: none; transition: 0.3s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 0 20px var(--accent-glow); }
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: white; }
.btn:hover { transform: scale(1.05); }

/* Inputs */
input, textarea, select { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); color: white; padding: 15px; border-radius: 10px; outline: none; transition: 0.3s; margin-bottom: 15px; }
input:focus { border-color: var(--accent); background: rgba(0,0,0,0.5); }
.setting-label { display: block; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1px; }

/* Bento & Grid */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 40px; }
.bento-card {
    background: var(--glass-surface); border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 30px; position: relative; overflow: hidden;
    transition: 0.4s; display: flex; flex-direction: column; justify-content: space-between;
}
.stat { font-size: 2.5rem; font-weight: 700; color: white; margin-top: 10px; }
.masonry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }

/* PASTE IN STYLE.CSS - DELETE OLD MARQUEE STYLES */

/* PASTE IN STYLE.CSS - DELETE OLD MARQUEE STYLES */



/* TIMELINE (Portal) */
.timeline-container { display: flex; justify-content: space-between; position: relative; margin: 40px 0; }
.timeline-line { position: absolute; top: 15px; left: 0; width: 100%; height: 2px; background: #333; z-index: 0; }
.timeline-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 25%; }
.node-circle { width: 30px; height: 30px; border-radius: 50%; background: #222; border: 2px solid #333; transition: 0.5s; }
.node-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.timeline-node.active .node-circle { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }
.timeline-node.active .node-label { color: white; font-weight: bold; }
.timeline-node.completed .node-circle { background: var(--success); border-color: var(--success); }

/* ASSET GRID (Portal) */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; margin-top: 20px; }
.asset-item { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 15px; text-align: center; transition: 0.3s; border: 1px solid transparent; }
.asset-item:hover { border-color: var(--accent); background: rgba(255,255,255,0.1); }
.asset-icon { font-size: 2rem; margin-bottom: 10px; color: var(--text-muted); }

/* SLIDE PANELS & MODALS */
.slide-panel {
    position: fixed; top: 0; right: -100%; width: 500px; height: 100%;
    background: #0a0a0c; border-left: 1px solid var(--glass-border);
    z-index: 6000; padding: 40px; transition: 0.5s var(--ease-smooth);
    box-shadow: -50px 0 100px rgba(0,0,0,0.8); overflow-y: auto;
}
.slide-panel.active { right: 0; }
.panel-overlay, .modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(10px);
    z-index: 5900; opacity: 0; pointer-events: none; transition: 0.5s; display: flex;
    align-items: center; justify-content: center;
}
.panel-overlay.active, .modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box { background: #111; padding: 40px; border-radius: 20px; border: 1px solid var(--glass-border); width: 400px; text-align: center; }

/* UTILS */
.reveal { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.toast {
    position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
    background: rgba(20, 20, 25, 0.9); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); padding: 12px 30px; border-radius: 50px;
    color: white; z-index: 7000; transition: 0.5s var(--ease-smooth);
    display: flex; align-items: center; gap: 10px;
}
.toast.active { top: 30px; }

/* Admin Tabs & Layout */
.admin-tabs { display: flex; gap: 15px; margin-bottom: 30px; border-bottom: 1px solid var(--glass-border); padding-bottom: 15px; overflow-x: auto; }
.tab-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1rem; font-weight: 500; padding: 10px 20px; cursor: pointer; transition: 0.3s; border-radius: 8px; white-space: nowrap; }
.tab-btn.active { color: white; background: rgba(255,255,255,0.08); }
.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }/* FIXED HERO TITLE */
#home_hero_title {
    font-size: 3.5rem !important; /* Smaller than before */
    white-space: nowrap;          /* Forces text to be one line */
    width: 100%;
    overflow: hidden;             /* Prevents scrollbar if text is too long */
    text-overflow: ellipsis;      /* Adds "..." if it really doesn't fit */
    padding: 0 20px;
}

/* ADJUST MARQUEE VISIBILITY */
.marquee-text {
    font-size: 1.5rem;            /* Make it readable */
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}/* AUTH TOGGLE LINK */
.auth-switch {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    text-decoration: underline;
}
.auth-switch:hover {
    color: var(--accent);
}/* VIDEO BACKGROUND STYLES (Paste in style.css) */
/* UPDATE: Video starts blurred */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    
    /* START STATE: Blurred and slightly invisible */
    opacity: 0; 
    filter: blur(20px); 
    transform: scale(1.1); /* Zoom in slightly to hide blurry edges */
    
    /* Smooth Transition for the "Un-blur" */
    transition: filter 1.5s ease-out, opacity 1.0s ease-out, transform 1.5s ease-out;
}

/* PLAYING STATE: Sharp and Clear */
.background-video.playing {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
}/* --- SUBTLE HERO ANIMATION --- */

/* The Keyframes (The movement logic) */
@keyframes cinematicBlurUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98); /* Start lower & slightly smaller */
        filter: blur(12px); /* Start blurry */
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Apply to the Main Title */
.hero-title-animate {
    opacity: 0; /* Hidden before animation starts */
    animation: cinematicBlurUp 2.0s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    animation-delay: 0.5s; /* Wait for video curtain to lift */
}

/* Apply to the Subtitle (with a slight delay for "flow") */
.hero-subtitle-animate {
    opacity: 0;
    animation: cinematicBlurUp 2.0s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    animation-delay: 0.8s; /* Starts 0.3s after the title */
}/* --- MOBILE ONLY STYLES --- */
@media screen and (max-width: 768px) {
    
    /* Example: Make background red on phone only (Test to see if it works) */
    body {
        background-color: black; 
    }

    /* 1. Make Text Smaller */
    h1 {
        font-size: 2rem !important; /* PC is usually 4rem+ */
    }

    /* 2. Stack things vertically */
    .container {
        flex-direction: column; /* PC is 'row', Phone is 'column' */
        padding: 10px;
    }
    
    /* 3. Hide the heavy video background on phone */
    video {
        display: none; /* Hides video */
    }
}