/* ==========================================================================
   ROBOTICS CHAMPIONSHIP 2026 - MODERN SCI-FI HUD DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-dark: #050505;
    --neon-blue: hsl(190, 100%, 50%);
    --neon-blue-glow: hsla(190, 100%, 50%, 0.4);
    --neon-purple: hsl(280, 100%, 60%);
    --neon-purple-glow: hsla(280, 100%, 60%, 0.4);
    --neon-cyan: hsl(175, 100%, 50%);
    --cyber-red: hsl(355, 100%, 50%);
    --cyber-red-glow: hsla(355, 100%, 50%, 0.4);
    --cyber-green: hsl(120, 100%, 45%);
    --cyber-gold: hsl(45, 100%, 50%);
    --text-white: #ffffff;
    --text-muted: #8a9fc4;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(5, 5, 5, 0.65);
    --glass-blur: blur(12px);
    --ff-cyber: 'Orbitron', system-ui, sans-serif;
    --ff-sans: 'Inter', system-ui, sans-serif;
    --transition-speed: 0.35s;
    --ease-cyber: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Base Resets & Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--ff-sans);
    line-height: 1.6;
    scroll-behavior: auto; /* Handled by Lenis */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--neon-blue-glow);
}

/* ==========================================================================
   AMBIENT HIGH-TECH LAYERS
   ========================================================================== */
.digital-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 50% 50%, transparent 60%, rgba(5, 5, 5, 0.9) 100%),
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 100%, 100% 4px, 6px 100%;
    opacity: 0.7;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(0, 255, 255, 0.08);
    opacity: 0.4;
    z-index: 1000;
    pointer-events: none;
    animation: scanlineAnim 8s linear infinite;
}

@keyframes scanlineAnim {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* WebGL Background */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Main scrollable wrapper */
#app-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ==========================================================================
   PRELOADER OVERLAY
   ========================================================================== */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #030303;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-cyber), visibility 0.8s;
}

.loader-hud {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
}

.cyber-ring-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--neon-blue);
    border-radius: 50%;
    animation: rotateCW 6s linear infinite;
    box-shadow: 0 0 15px var(--neon-blue-glow);
}

.cyber-ring-inner {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px dotted var(--neon-purple);
    border-radius: 50%;
    animation: rotateCCW 4s linear infinite;
}

.loader-eye {
    position: absolute;
    top: 35px;
    left: 35px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(16, 20, 30, 0.9) 0%, rgba(5, 5, 5, 1) 70%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.eye-pupil {
    width: 25px;
    height: 25px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--neon-cyan), 0 0 10px #fff;
    animation: eyePulse 1.5s ease-in-out infinite alternate;
}

.scanner-laser {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    top: 50%;
    left: 0;
    animation: scanAnim 1.8s ease-in-out infinite alternate;
}

.loader-data {
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.system-status {
    font-family: var(--ff-cyber);
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--neon-blue);
    margin-bottom: 15px;
    text-shadow: 0 0 8px var(--neon-blue-glow);
}

.boot-terminal {
    height: 60px;
    overflow: hidden;
    font-family: monospace;
    font-size: 11px;
    color: var(--text-muted);
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    margin-bottom: 20px;
}

.progress-bar-wrapper {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 8px var(--neon-blue-glow);
    transition: width 0.1s ease;
}

.loader-percentage {
    font-family: var(--ff-cyber);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--neon-cyan);
}

/* Animations */
@keyframes rotateCW { 100% { transform: rotate(360deg); } }
@keyframes rotateCCW { 100% { transform: rotate(-360deg); } }
@keyframes eyePulse {
    0% { transform: scale(0.9); box-shadow: 0 0 15px var(--neon-cyan); }
    100% { transform: scale(1.2); box-shadow: 0 0 35px var(--neon-cyan), 0 0 10px #fff; }
}
@keyframes scanAnim {
    0% { top: 10%; }
    100% { top: 90%; }
}

/* ==========================================================================
   GLASSMORPHISM & PREMIUM SCIFI UI
   ========================================================================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 255, 255, 0.05);
}

/* Cybernetic Accent Lines */
.cyber-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
}

/* Buttons System */
.btn-sci-fi {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    color: var(--text-white);
    font-family: var(--ff-cyber);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    z-index: 5;
    transition: background var(--transition-speed), color var(--transition-speed);
    clip-path: polygon(0 0, 90% 0, 100% 30%, 100% 100%, 10% 100%, 0 70%);
}

.btn-sci-fi .btn-text {
    position: relative;
    z-index: 2;
}

.btn-sci-fi::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.btn-sci-fi:hover::before {
    left: 100%;
}

.glow-btn {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue-glow);
}
.glow-btn-purple {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple-glow);
}

.btn-sci-fi-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
    color: var(--text-muted);
    font-family: var(--ff-cyber);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
    clip-path: polygon(0 0, 90% 0, 100% 30%, 100% 100%, 10% 100%, 0 70%);
}

.btn-sci-fi-secondary:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.small-btn {
    padding: 10px 18px;
    font-size: 10px;
}

/* Audio Controller */
.audio-control {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    background: rgba(5, 5, 5, 0.85);
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 12px var(--neon-blue-glow);
    padding: 10px 18px;
    border-radius: 30px;
    z-index: 999;
    cursor: pointer;
    transition: transform 0.3s;
}

.audio-control:hover {
    transform: scale(1.05);
}

.audio-waves {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    margin-right: 10px;
}

.audio-waves span {
    width: 2px;
    background-color: var(--neon-cyan);
    animation: waveAnim 1s ease-in-out infinite alternate;
}

.audio-waves span:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.audio-waves span:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.audio-waves span:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.audio-waves span:nth-child(4) { height: 16px; animation-delay: 0.4s; }

.audio-text {
    font-family: var(--ff-cyber);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--neon-cyan);
}

.audio-control.muted .audio-waves span {
    animation: none;
    height: 2px;
    background-color: var(--text-muted);
}
.audio-control.muted {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}
.audio-control.muted .audio-text {
    color: var(--text-muted);
    text-shadow: none;
}

@keyframes waveAnim {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}

/* ==========================================================================
   NAVIGATION HUD
   ========================================================================== */
.header-hud {
    position: fixed;
    top: 25px;
    left: 5%;
    width: 90%;
    height: 70px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-radius: 35px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--neon-blue-glow));
    border-radius: 4px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--neon-blue);
}

.glow-icon {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.brand-name {
    font-family: var(--ff-cyber);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 2px;
}

.accent-text {
    color: var(--neon-blue);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--ff-cyber);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-num {
    color: var(--neon-purple);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

/* ==========================================================================
   HERO / INTRO
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 8%;
    overflow: hidden;
}

.hero-hud-left {
    position: absolute;
    left: 4%;
    top: 150px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.hud-stat-box {
    border-left: 2px solid var(--neon-blue);
    padding-left: 15px;
}

.hud-label {
    font-family: var(--ff-cyber);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.hud-value {
    font-size: 12px;
    font-weight: 600;
}

.numeric-glowing {
    font-family: var(--ff-cyber);
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue-glow);
}

.hero-hud-right {
    position: absolute;
    right: 4%;
    top: 150px;
    z-index: 10;
}

.hud-circle-stat {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hud-circle-stat svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 4;
}

.circle-fg {
    fill: none;
    stroke: var(--neon-purple);
    stroke-width: 4;
    stroke-dasharray: 250;
    stroke-dashoffset: 80;
    transform-origin: center;
    transform: rotate(-90deg);
}

.anim-dash {
    animation: dashOffset 4s ease-in-out infinite alternate;
}

@keyframes dashOffset {
    0% { stroke-dashoffset: 220; }
    100% { stroke-dashoffset: 50; }
}

.hud-circle-label {
    font-family: var(--ff-cyber);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--neon-purple);
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 10;
}

.subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.cyber-tag {
    font-family: var(--ff-cyber);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    padding: 3px 10px;
}

.cyber-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-blue), transparent);
}

.hero-title {
    font-family: var(--ff-cyber);
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.accent-glow {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.3));
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.mouse-icon {
    width: 20px;
    height: 35px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--neon-blue);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 1.6s ease-in-out infinite;
}

@keyframes wheelScroll {
    0% { transform: translate(-50%, 0); opacity: 0; }
    40% { opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0; }
}

.scroll-text {
    font-family: var(--ff-cyber);
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* ==========================================================================
   GENERAL SECTIONS STRUCTURE
   ========================================================================== */
.section-container {
    padding: 120px 8%;
    position: relative;
    z-index: 10;
}

.section-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.section-info {
    max-width: 600px;
    padding: 50px;
    position: relative;
}

.section-subtitle {
    font-family: var(--ff-cyber);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--neon-purple);
    display: block;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--ff-cyber);
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 25px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.feature-bullets {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bullet-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.bullet-ico {
    color: var(--neon-cyan);
    font-size: 20px;
    margin-top: 3px;
}

.bullet-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.bullet-text strong {
    color: var(--text-white);
}

/* Header HUD for Sections */
.section-header-hud {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.hud-num {
    font-family: var(--ff-cyber);
    font-size: 18px;
    font-weight: 800;
    color: var(--neon-blue);
}

.hud-section-title {
    font-family: var(--ff-cyber);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.hud-hr {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color) 0%, transparent 100%);
}

/* ==========================================================================
   COMPETITION CATEGORIES GRID
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.category-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-glow-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, transparent 70%, rgba(255, 255, 255, 0.01) 100%);
    pointer-events: none;
    transition: opacity 0.5s;
    opacity: 0;
}

.category-card:hover .card-glow-bg {
    opacity: 1;
}

.cyan-glow { background: radial-gradient(circle at 10% 10%, rgba(0, 255, 255, 0.08) 0%, transparent 50%); }
.purple-glow { background: radial-gradient(circle at 10% 10%, rgba(255, 0, 255, 0.08) 0%, transparent 50%); }
.red-glow { background: radial-gradient(circle at 10% 10%, rgba(255, 0, 0, 0.08) 0%, transparent 50%); }
.blue-glow { background: radial-gradient(circle at 10% 10%, rgba(0, 100, 255, 0.08) 0%, transparent 50%); }
.green-glow { background: radial-gradient(circle at 10% 10%, rgba(0, 255, 0, 0.08) 0%, transparent 50%); }
.gold-glow { background: radial-gradient(circle at 10% 10%, rgba(255, 200, 0, 0.08) 0%, transparent 50%); }

.card-icon {
    font-size: 32px;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 10px var(--neon-blue-glow));
}

.card-title {
    font-family: var(--ff-cyber);
    font-size: 1.4rem;
    font-weight: 800;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-specs {
    display: flex;
    justify-content: space-between;
    font-family: var(--ff-cyber);
    font-size: 10px;
    color: var(--neon-purple);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto;
}

/* ==========================================================================
   ARENA DETAILS
   ========================================================================== */
.arena-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.arena-controls {
    padding: 30px;
    position: relative;
}

.control-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ff-cyber);
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--cyber-red);
    box-shadow: 0 0 10px var(--cyber-red);
    animation: redPulse 1.2s infinite alternate;
}

@keyframes redPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 1; }
}

.simulation-view {
    height: 250px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    margin-bottom: 25px;
    overflow-y: auto;
}

.sim-terminal {
    font-family: monospace;
    font-size: 11px;
    color: var(--neon-cyan);
    line-height: 1.8;
}

.hud-stats-group {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.stat-unit {
    text-align: center;
}

.stat-unit-label {
    font-family: var(--ff-cyber);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-unit-value {
    font-family: var(--ff-cyber);
    font-size: 12px;
    font-weight: bold;
}

.text-cyber-blue { color: var(--neon-blue); text-shadow: 0 0 8px var(--neon-blue-glow); }
.text-cyber-purple { color: var(--neon-purple); text-shadow: 0 0 8px var(--neon-purple-glow); }
.text-cyan { color: var(--neon-cyan); }

/* ==========================================================================
   EVENT TIMELINE
   ========================================================================== */
.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple), transparent);
    transform: translateX(-50%);
}

.timeline-nodes {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-node {
    width: 45%;
    padding: 30px;
    position: relative;
}

.timeline-node:nth-child(odd) {
    align-self: flex-start;
}

.timeline-node:nth-child(even) {
    align-self: flex-end;
}

/* Timeline center badges */
.timeline-node::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    top: 50%;
    transform: translateY(-50%);
}

.timeline-node:nth-child(odd)::before {
    right: -13%;
}

.timeline-node:nth-child(even)::before {
    left: -13%;
}

.node-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--neon-purple);
    color: var(--text-white);
    font-family: var(--ff-cyber);
    font-size: 9px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.node-date {
    font-family: var(--ff-cyber);
    font-size: 11px;
    color: var(--neon-cyan);
    margin-bottom: 10px;
}

.node-title {
    font-family: var(--ff-cyber);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.node-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   PRIZES HOLOGRAPHIC TIERS
   ========================================================================== */
.prizes-layout {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.prizes-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--neon-blue-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.prizes-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: center;
    gap: 30px;
}

.prize-tier {
    padding: 40px;
    text-align: center;
    position: relative;
}

.champion {
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 35px var(--neon-purple-glow);
    transform: scale(1.05);
}

.champion-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
    color: var(--text-white);
    font-family: var(--ff-cyber);
    font-size: 10px;
    font-weight: bold;
    padding: 4px 15px;
    border-radius: 4px;
    letter-spacing: 2px;
}

.tier-rank {
    font-family: var(--ff-cyber);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.tier-payout {
    font-family: var(--ff-cyber);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.tier-detail {
    font-size: 1.05rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.tier-perks {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.text-glow-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-blue-glow);
}

.text-glow-purple {
    color: var(--text-white);
    text-shadow: 0 0 15px var(--neon-purple-glow);
}

/* ==========================================================================
   COMMITTEE TEAM CARDS
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-avatar {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 20px auto;
}

.avatar-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--neon-blue);
    border-radius: 50%;
    animation: rotateCW 12s linear infinite;
}

.avatar-icon {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--neon-blue);
}

.team-name {
    font-family: var(--ff-cyber);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.team-role {
    font-size: 0.9rem;
    color: var(--neon-purple);
    font-family: var(--ff-cyber);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.team-hover-profile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-cyber), margin-top 0.4s;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.team-card:hover .team-hover-profile {
    max-height: 80px;
    margin-top: 15px;
}

/* ==========================================================================
   SPONSORS
   ========================================================================== */
.sponsors-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    overflow: hidden;
}

.sponsors-title {
    display: block;
    text-align: center;
    font-family: var(--ff-cyber);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.sponsors-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 40px;
}

.marquee-track {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: scrollMarquee 30s linear infinite;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sponsor-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ff-cyber);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    transition: color 0.3s;
}

.sponsor-logo:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-blue-glow);
}

/* ==========================================================================
   COUNTDOWN TIMER DISPLAY
   ========================================================================== */
.countdown-hud {
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.countdown-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-left: 2px solid var(--neon-blue);
    border-right: 2px solid var(--neon-purple);
    pointer-events: none;
}

.countdown-label {
    display: block;
    font-family: var(--ff-cyber);
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--neon-cyan);
    margin-bottom: 40px;
    text-shadow: 0 0 8px var(--neon-blue-glow);
}

.timer-display {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.timer-circle-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-ring-svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 5;
}

.ring-fg {
    fill: none;
    stroke: var(--neon-blue);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transform-origin: center;
    transform: rotate(-90deg);
    transition: stroke-dashoffset 0.8s ease;
}

#ringDays { stroke: var(--neon-purple); }
#ringHours { stroke: var(--neon-blue); }
#ringMins { stroke: var(--neon-cyan); }
#ringSecs { stroke: var(--cyber-red); }

.timer-val {
    font-family: var(--ff-cyber);
    font-size: 1.8rem;
    font-weight: 800;
}

.unit-name {
    font-family: var(--ff-cyber);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* ==========================================================================
   ADVANCED FORM CONTROLS
   ========================================================================== */
.register-layout {
    max-width: 850px;
    margin: 0 auto;
}

.register-card {
    padding: 50px;
}

.reg-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 4px;
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--ff-cyber);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.mode-btn.active {
    background: var(--neon-blue);
    color: var(--text-white);
    box-shadow: 0 0 12px var(--neon-blue-glow);
}

.sci-fi-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.form-group label {
    font-family: var(--ff-cyber);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 14px;
    color: var(--text-white);
    font-size: 0.95rem;
    font-family: var(--ff-sans);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.06);
}

.input-glow-bar {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
    transition: width 0.3s ease, left 0.3s ease;
}

.form-group input:focus ~ .input-glow-bar, .form-group select:focus ~ .input-glow-bar {
    width: 100%;
    left: 0;
}

/* File Upload HUD styling */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
}

.file-upload-wrapper:hover .file-upload-trigger {
    border-color: var(--neon-purple);
    background: rgba(255, 255, 255, 0.04);
}

.file-icon {
    font-size: 28px;
    color: var(--neon-purple);
}

.file-text {
    font-family: var(--ff-cyber);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Gateway integration styling */
.payment-block {
    padding: 30px;
    background: rgba(255, 255, 255, 0.01);
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ff-cyber);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    margin-bottom: 20px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    margin-top: 15px;
}

/* ==========================================================================
   COMMAND CENTER FOOTER
   ========================================================================== */
.footer-hud {
    margin-top: 120px;
    border-radius: 0px;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 80px 8% 40px 8%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.brand-sub {
    font-family: var(--ff-cyber);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--neon-purple);
    margin-top: 10px;
}

.system-time {
    font-family: var(--ff-cyber);
    font-size: 10px;
    color: var(--neon-cyan);
    margin-top: 15px;
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--ff-cyber);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-white);
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: capitalize;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bar {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    font-size: 18px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--neon-blue);
}

/* ==========================================================================
   POPUP MODAL / TELEMETRY DIALOG
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    width: 100%;
    max-width: 500px;
    padding: 35px;
    position: relative;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    font-family: var(--ff-cyber);
    font-size: 12px;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--cyber-red);
}

.modal-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.modal-body strong {
    color: var(--text-white);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .header-hud {
        width: 95%;
        left: 2.5%;
        padding: 0 20px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .prizes-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .champion {
        transform: scale(1);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide default nav for mobile - optimized UX */
    }
    
    .hero-hud-left, .hero-hud-right {
        display: none; /* Clear HUD elements on micro screens */
    }
    
    .hero-section {
        padding: 120px 5%;
        justify-content: center;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .section-container {
        padding: 80px 5%;
    }
    
    .section-info {
        padding: 25px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-node {
        width: 100%;
        align-self: flex-start !important;
        padding-left: 45px;
    }
    
    .timeline-node::before {
        left: 14px !important;
        right: auto !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bar {
        flex-direction: column;
        text-align: center;
    }
}

/* Theme Toggle Button HUD */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    background: rgba(3, 4, 12, 0.9);
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue-glow);
    padding: 12px 20px;
    border-radius: 30px;
    z-index: 999;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s, color 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.theme-icon {
    font-size: 14px;
    margin-right: 10px;
    color: var(--neon-blue);
}

.theme-text {
    font-family: var(--ff-cyber);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--neon-blue);
}

/* ========================================================================
   LIGHT MODE OVERRIDES (index3 — Purple/Cyan Sci-Fi)
   ======================================================================== */
body.light-mode {
    --bg-dark: #ede8f8;
    --neon-blue: #0891b2;
    --neon-blue-glow: rgba(8, 145, 178, 0.3);
    --neon-purple: #7c3aed;
    --neon-purple-glow: rgba(124, 58, 237, 0.3);
    --neon-cyan: #06b6d4;
    --text-white: #120e1f;
    --text-muted: #3d3259;
    --border-color: rgba(124, 58, 237, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.92);
    background-color: #ede8f8 !important;
    color: #120e1f !important;
}

body.light-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(124, 58, 237, 0.3);
    color: #7c3aed;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.18);
}

body.light-mode .audio-control {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(124, 58, 237, 0.3);
    color: #7c3aed;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.18);
}

body.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(124, 58, 237, 0.2);
    color: #120e1f;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08), 0 1px 4px rgba(0,0,0,0.04);
}

body.light-mode .preloader-overlay {
    background-color: #ede8f8;
}

body.light-mode .nav-link {
    color: #3d3259 !important;
}

body.light-mode .nav-link.active,
body.light-mode .nav-link:hover {
    color: #7c3aed !important;
}

body.light-mode .brand-name,
body.light-mode .hero-title,
body.light-mode .section-title,
body.light-mode .card-title {
    color: #120e1f;
    text-shadow: none;
}

body.light-mode .cyber-ring-outer {
    border-color: #7c3aed;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
}

body.light-mode .cyber-ring-inner {
    border-color: #06b6d4;
}

body.light-mode .eye-pupil {
    background-color: #7c3aed;
    box-shadow: 0 0 20px #7c3aed, 0 0 8px #fff;
}

body.light-mode .scanner-laser {
    background-color: #0891b2;
    box-shadow: 0 0 8px #0891b2;
}

body.light-mode .loader-eye {
    background: radial-gradient(circle, rgba(240, 235, 255, 0.95) 0%, rgba(237, 232, 248, 1) 70%);
    border-color: rgba(124, 58, 237, 0.3);
}

body.light-mode .digital-overlay {
    opacity: 0.06;
}

body.light-mode .scanline {
    background: rgba(124, 58, 237, 0.05);
    opacity: 0.25;
}

body.light-mode .footer-hud {
    background: #e0d8f4;
    border-color: rgba(124, 58, 237, 0.2);
    color: #120e1f;
}

