/* ============================================================
   INTRO FLASH PAGE — CHAOTICALLY ORGANIZED AI
   ============================================================ */

#intro-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.intro-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#intro-logo {
    width: 320px;
    height: auto;
    opacity: 0;
    transform: scale(0.9);
    filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.4));
    animation: introFadeIn 1s forwards ease-out;
}

@keyframes introFadeIn {
    to { opacity: 1; transform: scale(1); }
}

#intro-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 5;
    opacity: 0;
    transition: opacity 1s;
}

#intro-overlay.coding #intro-canvas {
    opacity: 1;
}

#intro-overlay.coding #intro-logo {
    opacity: 0;
    transition: opacity 0.8s;
}

#intro-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Moving Background for site */
.animated-space-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        linear-gradient(120deg, rgba(2, 8, 8, 0.82), rgba(3, 16, 14, 0.55) 45%, rgba(2, 8, 8, 0.86)),
        radial-gradient(circle at 14% 22%, rgba(36, 233, 173, 0.24) 0%, rgba(36, 233, 173, 0) 28%),
        radial-gradient(circle at 78% 70%, rgba(67, 194, 176, 0.22) 0%, rgba(67, 194, 176, 0) 32%),
        radial-gradient(circle at 50% 50%, rgba(10, 42, 36, 0.45) 0%, rgba(4, 10, 8, 0.9) 65%),
        url('assets/images/control_center_ui_screenshot.png'),
        url('assets/images/terminal_backend_screenshot.png'),
        linear-gradient(180deg, #050b09 0%, #020404 100%) !important;
    background-size: auto, auto, auto, auto, cover, cover, auto !important;
    background-position: center, center, center, center, center, center, center !important;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat !important;
    background-blend-mode: normal, screen, screen, normal, soft-light, overlay, normal;
    z-index: -2;
    overflow: hidden;
    animation: cinematicDrift 70s ease-in-out infinite alternate;
}

.animated-space-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(24, 208, 154, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(24, 208, 154, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 65% 35%, rgba(98, 245, 210, 0.16), transparent 40%),
        radial-gradient(circle, rgba(226, 255, 247, 0.86) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(156, 236, 217, 0.65) 0 1px, transparent 1.5px);
    background-size: 72px 72px, 72px 72px, auto, 160px 160px, 220px 220px;
    background-position: 0 0, 0 0, center, 0 0, 40px 70px;
    mix-blend-mode: screen;
    opacity: 0.46;
    animation: circuitPulse 8s ease-in-out infinite, starDrift 90s linear infinite;
}

.animated-space-bg::after {
    content: "🛸";
    position: absolute;
    top: 12%;
    left: -8%;
    font-size: 22px;
    opacity: 0.22;
    filter: drop-shadow(0 0 10px rgba(129, 255, 224, 0.48));
    pointer-events: none;
    animation: shipDrift 44s linear infinite;
}

@keyframes cinematicDrift {
    0% { transform: scale(1.02) translate3d(0, 0, 0); }
    100% { transform: scale(1.08) translate3d(-1.5%, -1.2%, 0); }
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.68; }
}

@keyframes starDrift {
    0% { background-position: 0 0, 0 0, center, 0 0, 40px 70px; }
    100% { background-position: 64px 32px, 24px 56px, center, 260px 180px, 120px 320px; }
}

@keyframes shipDrift {
    0% { transform: translateX(0) translateY(0) rotate(8deg); opacity: 0.14; }
    35% { opacity: 0.26; }
    100% { transform: translateX(118vw) translateY(36px) rotate(8deg); opacity: 0.1; }
}

