/* ==========================================================================
   ROBOTICS CHAMPIONSHIP 2026 - CYBER NEON ARENA DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-arena: #050816;
    --neon-cyan: hsl(180, 100%, 50%);
    --neon-cyan-glow: hsla(180, 100%, 50%, 0.45);
    --electric-blue: hsl(210, 100%, 50%);
    --electric-blue-glow: hsla(210, 100%, 50%, 0.45);
    --text-white: #ffffff;
    --text-muted: #6e84ab;
    --border-cyber: rgba(0, 255, 255, 0.15);
    --border-blue: rgba(0, 128, 255, 0.15);
    --glass-cyber-bg: rgba(5, 8, 22, 0.7);
    --glass-blur: blur(14px);
    --ff-cyber: 'Orbitron', system-ui, sans-serif;
    --ff-sans: 'Inter', system-ui, sans-serif;
    --transition-fast: 0.3s;
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Scrollbar customizations */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-arena);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
    box-shadow: 0 0 12px var(--neon-cyan-glow);
}

/* ==========================================================================
   CYBER HUD BACKGROUND EFFECTS
   ========================================================================== */
.grid-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 40%, var(--bg-arena-radial, rgba(5, 8, 22, 0.95)) 100%),
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    opacity: 0.85;
}

.cyber-scan {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(180deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 20px var(--neon-cyan-glow);
    opacity: 0.3;
    z-index: 1000;
    pointer-events: none;
    animation: scannerMovement 12s linear infinite;
}

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

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

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

/* ==========================================================================
   CINEMATIC PRELOADER
   ========================================================================== */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #03040c;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* --- SPINNING 3D WIREFRAME CUBE PRELOADER (unique to index1) --- */
.hex-cube-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 40px;
    perspective: 500px;
}

.hex-cube {
    width: 70px;
    height: 70px;
    position: absolute;
    top: 45px;
    left: 45px;
    transform-style: preserve-3d;
    animation: cubeRotate 5s linear infinite;
}

.hex-face {
    position: absolute;
    width: 70px;
    height: 70px;
    border: 1.5px solid var(--neon-cyan);
    background: rgba(0, 255, 255, 0.04);
    box-shadow: 0 0 12px var(--neon-cyan-glow), inset 0 0 12px rgba(0,255,255,0.05);
}
.hex-front  { transform: translateZ(35px); }
.hex-back   { transform: rotateY(180deg) translateZ(35px); }
.hex-left   { transform: rotateY(-90deg) translateZ(35px); }
.hex-right  { transform: rotateY(90deg) translateZ(35px); }
.hex-top    { transform: rotateX(90deg) translateZ(35px); }
.hex-bottom { transform: rotateX(-90deg) translateZ(35px); }

.hex-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed var(--electric-blue);
    top: 50%; left: 50%;
    transform-origin: 0 0;
}
.hex-orbit-1 {
    width: 130px;
    height: 130px;
    margin: -65px 0 0 -65px;
    animation: rotateCW 4s linear infinite;
    box-shadow: 0 0 8px var(--electric-blue-glow);
}
.hex-orbit-2 {
    width: 158px;
    height: 158px;
    margin: -79px 0 0 -79px;
    animation: rotateCCW 7s linear infinite;
    border-color: rgba(0,255,255,0.3);
}

.hex-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: nodeFlash 1.8s ease-in-out infinite alternate;
}
.hex-node-1 { top: 0px; left: 50%; margin-left: -4px; animation-delay: 0s; }
.hex-node-2 { top: 50%; right: 0px; margin-top: -4px; animation-delay: 0.45s; background: var(--electric-blue); box-shadow: 0 0 10px var(--electric-blue); }
.hex-node-3 { bottom: 0px; left: 50%; margin-left: -4px; animation-delay: 0.9s; }
.hex-node-4 { top: 50%; left: 0px; margin-top: -4px; animation-delay: 1.35s; background: var(--electric-blue); box-shadow: 0 0 10px var(--electric-blue); }

@keyframes cubeRotate {
    0% { transform: rotateX(15deg) rotateY(0deg); }
    100% { transform: rotateX(15deg) rotateY(360deg); }
}
@keyframes rotateCW  { 100% { transform: rotate(360deg); } }
@keyframes rotateCCW { 100% { transform: rotate(-360deg); } }
@keyframes nodeFlash {
    0% { transform: scale(0.7); opacity: 0.4; }
    100% { transform: scale(1.4); opacity: 1; }
}
@keyframes corePulse {
    0% { transform: scale(0.92); opacity: 0.6; }
    100% { transform: scale(1.08); opacity: 1; }
}

.preloader-steps {
    width: 100%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-cyber);
    padding: 20px;
    margin-bottom: 25px;
    font-family: monospace;
    font-size: 11px;
}

.step-line {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.step-line.active {
    color: var(--neon-cyan);
}

.step-line.done {
    color: var(--electric-blue);
}

.step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.step-line.active .step-dot {
    background-color: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.step-line.done .step-dot {
    background-color: var(--electric-blue);
}

.step-status {
    margin-left: auto;
    font-weight: bold;
}

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

.preloader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--electric-blue), var(--neon-cyan));
    box-shadow: 0 0 8px var(--neon-cyan-glow);
}

.percentage-hud {
    font-family: var(--ff-cyber);
    font-size: 24px;
    font-weight: 900;
    color: var(--neon-cyan);
}

/* ==========================================================================
   GLASSMORPHISM & CYBERNETIC UI COMPONENTS
   ========================================================================== */
.glass-cyber {
    background: var(--glass-cyber-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-cyber);
    border-radius: 4px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-cyber:hover {
    border-color: var(--electric-blue);
    box-shadow: 0 8px 32px 0 var(--electric-blue-glow);
}

/* Audio control HUD */
.audio-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    background: rgba(3, 4, 12, 0.9);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    padding: 12px 20px;
    border-radius: 30px;
    z-index: 999;
    cursor: pointer;
    transition: transform 0.2s;
}

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

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

.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: 16px; animation-delay: 0.3s; }
.audio-waves span:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.audio-waves span:nth-child(4) { height: 12px; 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.15);
    box-shadow: none;
}
.audio-control.muted .audio-text {
    color: var(--text-muted);
}

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

/* ==========================================================================
   BUTTONS (MAGNETIC NEON GLOwS)
   ========================================================================== */
.btn-cyan {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    padding: 15px 30px;
    color: var(--text-white);
    font-family: var(--ff-cyber);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    z-index: 5;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
    clip-path: polygon(0 0, 90% 0, 100% 30%, 100% 100%, 10% 100%, 0 70%);
}

.btn-cyan:hover {
    background-color: var(--neon-cyan);
    color: #03040c;
    box-shadow: 0 0 25px var(--neon-cyan-glow);
}

.btn-blue {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--electric-blue);
    padding: 15px 30px;
    color: var(--text-white);
    font-family: var(--ff-cyber);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    z-index: 5;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
    clip-path: polygon(0 0, 90% 0, 100% 30%, 100% 100%, 10% 100%, 0 70%);
}

.btn-blue:hover {
    background-color: var(--electric-blue);
    color: var(--text-white);
    box-shadow: 0 0 25px var(--electric-blue-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    color: var(--text-muted);
    font-family: var(--ff-cyber);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    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-secondary:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.6);
}

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

/* ==========================================================================
   NAVIGATION COMMAND 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: 12px;
}

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

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

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

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

.nav-link {
    font-family: var(--ff-cyber);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.nav-link .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

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

.nav-link.active .dot {
    background-color: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

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

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

.telemetry-box {
    border-left: 2px solid var(--neon-cyan);
    padding-left: 15px;
}

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

.tel-val {
    font-size: 12px;
    font-weight: bold;
    font-family: var(--ff-cyber);
}

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

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

.hud-radar {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-cyber);
    border-radius: 50%;
    overflow: hidden;
}

.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, var(--neon-cyan-glow), transparent 60%);
    border-radius: 50%;
    animation: spinRadar 4s linear infinite;
}

@keyframes spinRadar {
    100% { transform: rotate(360deg); }
}

.radar-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    top: 30%;
    left: 60%;
}

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

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

.tag-cyber {
    font-family: var(--ff-cyber);
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 4px 12px;
    box-shadow: 0 0 12px var(--neon-cyan-glow);
}

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

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

.cyan-glow-text {
    background: linear-gradient(135deg, #fff 40%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px var(--neon-cyan-glow));
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

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

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

.scroll-mouse {
    width: 22px;
    height: 38px;
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

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

@keyframes rollerMovement {
    0% { transform: translate(-50%, 0); opacity: 0; }
    45% { opacity: 1; }
    100% { transform: translate(-50%, 14px); opacity: 0; }
}

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

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

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

.about-card {
    max-width: 750px;
    padding: 60px;
    position: relative;
    border-left: 3px solid var(--neon-cyan);
}

.cyber-badge-glow {
    font-family: var(--ff-cyber);
    font-size: 10px;
    color: var(--electric-blue);
    letter-spacing: 3px;
    margin-bottom: 25px;
}

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

.section-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.perk-box {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--ff-cyber);
    font-size: 11px;
    letter-spacing: 1px;
}

.perk-box i {
    font-size: 20px;
}

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

.hud-idx {
    font-family: var(--ff-cyber);
    font-size: 20px;
    font-weight: 900;
    color: var(--neon-cyan);
}

.hud-title {
    font-family: var(--ff-cyber);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 1px;
}

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

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

.category-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform var(--transition-fast) var(--ease-elastic);
}

.category-card:hover {
    transform: scale(1.03) translateY(-5px);
}

.glow-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

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

.cyan-glow-bg { background: radial-gradient(circle at 10% 10%, rgba(0, 255, 255, 0.08) 0%, transparent 50%); }
.blue-glow-bg { background: radial-gradient(circle at 10% 10%, rgba(0, 128, 255, 0.08) 0%, transparent 50%); }

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

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

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

/* ==========================================================================
   3D ARENA FLIGHT & TELEMETRY
   ========================================================================== */
.arena-logs-layout {
    max-width: 900px;
    margin: 0 auto;
}

.logs-card {
    padding: 35px;
    border-left: 2px solid var(--electric-blue);
}

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

.active-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: cyanPulse 1.2s infinite alternate;
}

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

.logs-body {
    height: 200px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 18px;
    font-family: monospace;
    font-size: 11px;
    color: var(--neon-cyan);
    overflow-y: auto;
    line-height: 1.8;
    margin-bottom: 25px;
}

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

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

.log-lbl {
    display: block;
    font-family: var(--ff-cyber);
    font-size: 9px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.log-val {
    font-family: var(--ff-cyber);
    font-size: 12px;
    font-weight: bold;
}

.text-blue { color: var(--electric-blue); text-shadow: 0 0 8px var(--electric-blue-glow); }

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

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

.timeline-cards {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.timeline-card {
    width: 44%;
    padding: 30px;
    position: relative;
}

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

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

/* Bullet indicator */
.timeline-card::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan);
    top: 50%;
    transform: translateY(-50%);
}

.timeline-card:nth-child(odd)::before {
    right: -15.5%;
}

.timeline-card:nth-child(even)::before {
    left: -15.5%;
}

.card-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--electric-blue);
    font-family: var(--ff-cyber);
    font-size: 9px;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 2px;
    letter-spacing: 1px;
}

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

.card-heading {
    font-family: var(--ff-cyber);
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 10px;
}

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

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

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

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

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

.champ-banner {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--neon-cyan), var(--electric-blue));
    color: #03040c;
    font-family: var(--ff-cyber);
    font-size: 10px;
    font-weight: bold;
    padding: 4px 18px;
    letter-spacing: 2px;
}

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

.prize-amt {
    font-family: var(--ff-cyber);
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.prize-badge {
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 15px;
}

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

/* ==========================================================================
   EVENT GALLERY (3D PARALLAX FLY)
   ========================================================================== */
.gallery-wrapper {
    height: 400px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.gallery-track {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 50px;
}

.gallery-item {
    width: 250px;
    height: 320px;
    position: relative;
    overflow: hidden;
    padding: 10px;
    transform: translateY(calc(var(--layer) * 20px));
    transition: transform 0.5s var(--ease-elastic);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(calc(var(--layer) * 20px - 15px)) scale(1.05);
    border-color: var(--neon-cyan);
}

.gallery-item img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    filter: grayscale(80%) contrast(120%);
    transition: filter 0.3s;
    border-radius: 2px;
}

.gallery-item:hover img {
    filter: grayscale(0%) contrast(100%);
}

.img-lbl {
    display: block;
    text-align: center;
    font-family: var(--ff-cyber);
    font-size: 9px;
    letter-spacing: 1px;
    margin-top: 15px;
    color: var(--neon-cyan);
}

/* ==========================================================================
   SPONSORS CONTINUOUS MARQUEE
   ========================================================================== */
.sponsors-cyber-box {
    background: rgba(0, 255, 255, 0.01);
    border-top: 1px solid var(--border-cyber);
    border-bottom: 1px solid var(--border-cyber);
    padding: 30px 0;
    overflow: hidden;
}

.sp-tag {
    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;
}

.marquee-inner {
    display: flex;
    gap: 80px;
    white-space: nowrap;
    animation: continuousScroll 25s linear infinite;
}

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

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

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

/* ==========================================================================
   COUNTDOWN TIMER DISPLAY
   ========================================================================== */
.countdown-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
    position: relative;
    border-left: 2px solid var(--neon-cyan);
    border-right: 2px solid var(--electric-blue);
}

.countdown-title {
    font-family: var(--ff-cyber);
    font-size: 11px;
    color: var(--neon-cyan);
    letter-spacing: 4px;
    margin-bottom: 40px;
}

.countdown-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 25px;
}

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

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

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

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

.ring-fg {
    fill: none;
    stroke: var(--neon-cyan);
    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-cyan); }
#ringHours { stroke: var(--electric-blue); }
#ringMins { stroke: var(--neon-cyan); }
#ringSecs { stroke: var(--electric-blue); }

.time-val {
    font-family: var(--ff-cyber);
    font-size: 1.85rem;
    font-weight: bold;
}

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

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

.reg-card {
    padding: 50px;
}

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

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

.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.02);
    border: 1px solid var(--border-cyber);
    padding: 15px;
    color: var(--text-white);
    font-size: 0.95rem;
    outline: none;
    border-radius: 2px;
    transition: border-color 0.3s, background 0.3s;
}

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

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

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

/* Drag drop area */
.file-drag-wrap {
    position: relative;
    width: 100%;
}

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

.file-visible-hud {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.01);
    border: 2px dashed rgba(0, 255, 255, 0.15);
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
}

.file-drag-wrap:hover .file-visible-hud {
    border-color: var(--electric-blue);
    background: rgba(0, 128, 255, 0.03);
}

.file-hud-text {
    font-family: var(--ff-cyber);
    font-size: 10px;
    color: var(--text-muted);
}

/* Payment integrations */
.fake-payment {
    padding: 30px;
    background: rgba(0, 255, 255, 0.01);
}

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

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

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

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

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

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

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

.team-name {
    font-family: var(--ff-cyber);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.team-desc-role {
    font-family: var(--ff-cyber);
    font-size: 10px;
    color: var(--electric-blue);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

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

.team-card:hover .team-hover-logs {
    max-height: 80px;
    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%;
    background-image: radial-gradient(circle at 10% 10%, rgba(0, 255, 255, 0.02) 0%, transparent 60%);
}

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

.brand-lbl {
    font-family: var(--ff-cyber);
    font-size: 9px;
    color: var(--electric-blue);
    margin-top: 10px;
}

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

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

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

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

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

.footer-contact-col 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-cyber);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.socials {
    display: flex;
    gap: 20px;
}

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

.sp-icon:hover {
    color: var(--neon-cyan);
}

/* ==========================================================================
   ALERT MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 4, 12, 0.9);
    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;
}

.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-cyber);
    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: hsl(355, 100%, 50%);
}

.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%;
    }
    .nav-links { display: none; }
    .hero-title { font-size: 3.6rem; }
    .prizes-grid { grid-template-columns: 1fr; gap: 40px; }
    .champion { transform: scale(1); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-decor-left, .hero-decor-right { display: none; }
    .hero-section { text-align: center; justify-content: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-title { font-size: 2.8rem; }
    .timeline-bar { left: 20px; }
    .timeline-card { width: 100%; align-self: flex-start !important; padding-left: 45px; }
    .timeline-card::before { left: 13px !important; right: auto !important; }
    .form-row { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* 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-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-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-cyan);
}

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

/* ========================================================================
   LIGHT MODE OVERRIDES (index1 — Cyan/Blue arena)
   ======================================================================== */
body.light-mode {
    --bg-arena: #e8f4fd;
    --bg-arena-radial: rgba(232, 244, 253, 0.95);
    --neon-cyan: #0891b2;
    --neon-cyan-glow: rgba(8, 145, 178, 0.3);
    --electric-blue: #0369a1;
    --electric-blue-glow: rgba(3, 105, 161, 0.3);
    --text-white: #0c1a2e;
    --text-muted: #374f6b;
    --border-cyber: rgba(8, 145, 178, 0.25);
    --border-blue: rgba(3, 105, 161, 0.25);
    --glass-cyber-bg: rgba(255, 255, 255, 0.92);
    background-color: #e8f4fd !important;
    color: #0c1a2e !important;
}

body.light-mode html {
    background-color: #e8f4fd;
}

body.light-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(8, 145, 178, 0.35);
    color: #0891b2;
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.2);
}

body.light-mode .audio-control {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(8, 145, 178, 0.35);
    color: #0891b2;
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.2);
}

body.light-mode .glass-cyber {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(8, 145, 178, 0.25);
    color: #0c1a2e;
    box-shadow: 0 4px 24px rgba(8, 145, 178, 0.08), 0 1px 4px rgba(0,0,0,0.04);
}

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

body.light-mode .nav-link {
    color: #374f6b !important;
}

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

body.light-mode .brand-name,
body.light-mode .hero-title,
body.light-mode .section-heading,
body.light-mode .stat-label {
    color: #0c1a2e;
    text-shadow: none;
}

body.light-mode .hex-face {
    border-color: var(--neon-cyan);
    background: rgba(8, 145, 178, 0.06);
}

body.light-mode .hex-orbit-1 {
    border-color: var(--electric-blue);
}

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

body.light-mode .scanline {
    background: rgba(8, 145, 178, 0.06);
    opacity: 0.3;
}
