/* === IMMERSIVE COSMIC CORE STYLING === */

:root {
    --bg-color: #030305;
    --text-color: #ffffff;
    --accent-cyan: #22d3ee;
    --accent-purple: #7c3aed;
    --accent-emerald: #10b981;
    --font-family: 'Space Grotesk', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    overflow: hidden; /* Lock viewport for pure slide-based panning */
}

/* 3D WebGL Canvas Positioner */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: auto; /* Allow dragging interaction */
}

/* Premium High-Tech Glassmorphic Cards */
.glass-panel {
    background: rgba(10, 15, 30, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.glass-panel:hover {
    border-color: rgba(34, 211, 238, 0.25);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 
                0 0 30px rgba(34, 211, 238, 0.08);
}

/* Glowing Typography */
.text-glow {
    text-shadow: 0 0 25px rgba(34, 211, 238, 0.55), 
                 0 0 50px rgba(124, 58, 237, 0.35);
}

.text-glow-purple {
    text-shadow: 0 0 25px rgba(124, 58, 237, 0.6), 
                 0 0 50px rgba(34, 211, 238, 0.3);
}

/* Technical HUD Console Grid Background */
.grid-bg {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(34, 211, 238, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
}

/* Glowing Buttons & Hover Radial Flare */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.25) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-glow:hover::before {
    transform: scale(1);
}

.btn-glow:hover {
    box-shadow: 0 0 35px rgba(34, 211, 238, 0.5);
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.6);
}

/* Custom Interactive Constellation Connector */
.timeline-line {
    stroke: rgba(34, 211, 238, 0.15);
    stroke-width: 2.5;
    stroke-dasharray: 6 4;
    animation: dashOffset 30s linear infinite;
}

@keyframes dashOffset {
    to {
        stroke-dashoffset: -1000;
    }
}

.timeline-dot {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.4));
}

.timeline-dot:hover {
    r: 10 !important;
    fill: #ffffff !important;
    filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.9));
}

.timeline-dot.active {
    r: 12 !important;
    fill: #22d3ee !important;
    stroke: #ffffff !important;
    stroke-width: 3 !important;
    filter: drop-shadow(0 0 25px rgba(34, 211, 238, 0.95));
}

/* Beautiful Interactive Glass Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, 0.45);
}

/* Pulsing Sound waves visualizer bar */
.sound-bar {
    width: 2px;
    height: 3px;
    background-color: var(--accent-cyan);
    animation: bounceSound 0.8s ease-in-out infinite alternate;
}

@keyframes bounceSound {
    0% { height: 3px; }
    100% { height: 16px; }
}

/* Page Loader overlay */
#loader {
    position: fixed;
    inset: 0;
    background: #030305;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.spinner {
    width: 55px;
    height: 55px;
    border: 3.5px solid rgba(34, 211, 238, 0.08);
    border-radius: 50%;
    border-top-color: var(--accent-cyan);
    border-bottom-color: var(--accent-purple);
    animation: loader-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

/* Active Nav state */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.text-white::after {
    width: 100%;
}

.indicator-dot {
    outline: none;
}

.indicator-dot.active {
    width: 24px !important;
    background-color: var(--accent-cyan) !important;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
}

/* Responsive slider transitions */
#slider {
    transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Hide Audio Mute Line */
.mute-cross {
    transition: opacity 0.3s ease;
}
.audio-active .mute-cross {
    opacity: 0;
}
