/* ==========================================================================
   TN-BOTIFY 2026 - STYLE2.CSS (BRIGHT / FUTURISTIC / STEM / APPLE DESIGN SYSTEM)
   ========================================================================== */

:root {
    --primary: #0D6EFD;
    --secondary: #00B4D8;
    --accent: #FFB703;
    --success: #06D6A0;
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #475569;
    --border-color: #E2E8F0;
    
    --font-inter: 'Inter', -apple-system, sans-serif;
    --font-orbitron: 'Orbitron', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px -2px rgba(13, 110, 253, 0.08), 0 2px 8px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 30px -4px rgba(13, 110, 253, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: auto;
}

body {
    font-family: var(--font-inter);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Sound engine toggle */
.audio-control {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.audio-control:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.audio-waves {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 16px;
}
.audio-waves span {
    width: 3px;
    height: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transform-origin: bottom;
    animation: wave-dance 1.2s ease-in-out infinite alternate;
}
.audio-waves span:nth-child(2) { animation-delay: 0.15s; }
.audio-waves span:nth-child(3) { animation-delay: 0.3s; }
.audio-waves span:nth-child(4) { animation-delay: 0.45s; }
.audio-text {
    font-family: var(--font-orbitron);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
}

@keyframes wave-dance {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

/* Preloader styles */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.preloader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-content {
    text-align: center;
    max-width: 480px;
    padding: 20px;
}
.robot-preloader-eye {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary) 20%, var(--primary) 70%);
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.5);
    margin: 0 auto 30px;
    position: relative;
    animation: eye-pulse 2s infinite ease-in-out;
}
.robot-preloader-eye::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 25px;
    height: 25px;
    background: #FFF;
    border-radius: 50%;
    opacity: 0.8;
}
.loader-logo-title {
    font-family: var(--font-orbitron);
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.loader-organizer {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 24px;
}
.loader-bubble {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
    min-height: 48px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    display: inline-block;
}
.progress-bar-wrap {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.1s linear;
}
.percentage-text {
    font-family: var(--font-orbitron);
    font-weight: 700;
    color: var(--primary);
}

@keyframes eye-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(0, 180, 216, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 0 45px rgba(0, 180, 216, 0.8); }
}

/* Header & Nav */
.header-hud {
    position: fixed;
    top: 24px;
    left: 24px;
    width: calc(100% - 320px);
    height: 70px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: var(--shadow-md);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-img {
    height: 42px;
    width: 42px;
    object-fit: contain;
}
.brand-title {
    font-family: var(--font-orbitron);
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--text-main);
}
.brand-title span {
    font-weight: 500;
    color: var(--primary);
}
.brand-subline {
    display: block;
    font-size: 8px;
    letter-spacing: 1px;
    font-family: var(--font-inter);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    font-family: var(--font-orbitron);
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.cta-btn-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #FFF;
    border: none;
    padding: 10px 20px;
    font-family: var(--font-orbitron);
    font-size: 12px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.25);
    transition: var(--transition);
}
.cta-btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Background Canvas */
#webgl-canvas-map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: auto;
}

/* Sections Structure */
#app-wrapper {
    position: relative;
    z-index: 2;
    pointer-events: none;
}
section {
    pointer-events: auto;
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 10%;
}

/* Glass & Card panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

/* Hero Section Specifics */
.hero-content-panel {
    max-width: 600px;
}
.stem-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 12px;
    font-family: var(--font-orbitron);
    letter-spacing: 1px;
    margin-bottom: 24px;
}
.hero-title {
    font-family: var(--font-orbitron);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--text-main), #1E293B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 35px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #FFF;
    font-family: var(--font-orbitron);
    font-weight: 700;
    font-size: 13px;
    padding: 16px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.25);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.35);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-orbitron);
    font-weight: 700;
    font-size: 13px;
    padding: 14px 28px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.btn-outline:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--primary);
    color: var(--primary);
}

/* Scroll Journey section */
.journey-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}
.journey-card {
    width: 450px;
    transform: translateY(50px);
    opacity: 0;
    transition: var(--transition);
}
.journey-card.active {
    transform: translateY(0);
    opacity: 1;
}
.city-tag {
    background: var(--accent);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 800;
    font-family: var(--font-orbitron);
    font-size: 12px;
    display: inline-block;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(255, 183, 3, 0.25);
}
.city-title {
    font-family: var(--font-orbitron);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
}
.city-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}
.city-stat-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
}
.stat-lbl {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.stat-val {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-orbitron);
}
.stat-val.active {
    color: var(--success);
}

/* Challenge Sections */
.challenge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    width: 100%;
}
.sim-container {
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
}
.sim-header {
    background: var(--bg-main);
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}
.sim-title {
    font-family: var(--font-orbitron);
    font-size: 12px;
    font-weight: 900;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sim-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.5s infinite;
}
.sim-body {
    flex: 1;
    position: relative;
    background: #0F172A;
    overflow: hidden;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Boxing simulation specific */
.boxing-ring {
    width: 100%;
    height: 100%;
    position: relative;
    background: radial-gradient(circle, #1E293B 20%, #0F172A 90%);
}
.boxer-bot {
    position: absolute;
    bottom: 50px;
    width: 100px;
    height: 150px;
    transition: transform 0.15s ease-out;
}
.boxer-bot.left {
    left: 80px;
}
.boxer-bot.right {
    right: 80px;
    transform: scaleX(-1);
}
.robot-body-svg {
    width: 100%;
    height: 100%;
}
.scoreboard {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 24px;
    border-radius: 20px;
    color: #FFF;
    font-family: var(--font-orbitron);
}
.score-unit {
    text-align: center;
}
.score-unit .val {
    font-size: 24px;
    font-weight: 900;
    color: var(--accent);
}
.score-unit .lbl {
    font-size: 9px;
    opacity: 0.7;
    letter-spacing: 0.5px;
}
.sim-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}
.btn-sim {
    background: var(--primary);
    border: none;
    color: #FFF;
    padding: 10px 18px;
    font-family: var(--font-orbitron);
    font-weight: 700;
    font-size: 11px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-sim:hover {
    background: var(--secondary);
}

/* Micro-mouse Maze specific */
.maze-arena {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 20px;
}
.maze-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 2px;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
}
.maze-cell {
    background: #1E293B;
    border-radius: 2px;
    position: relative;
}
.maze-cell.wall {
    background: #475569;
}
.maze-cell.path-active {
    background: rgba(6, 214, 160, 0.2);
    box-shadow: inset 0 0 10px rgba(6, 214, 160, 0.4);
}
.maze-cell.start {
    background: var(--primary);
}
.maze-cell.end {
    background: var(--accent);
}
.maze-mouse {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background-color: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--secondary);
    transition: all 0.2s linear;
}

/* Why Participate achievements */
.why-container {
    width: 100%;
}
.achieve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.achieve-card {
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    transform: translateY(30px);
    opacity: 0;
}
.achieve-card.animate-in {
    transform: translateY(0);
    opacity: 1;
}
.achieve-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.achieve-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}
.achieve-title {
    font-family: var(--font-orbitron);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}
.achieve-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Event Timeline Station Map */
.timeline-track {
    position: relative;
    width: 100%;
    height: 120px;
    margin-top: 60px;
    background: var(--border-color);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
}
.timeline-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    z-index: 1;
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-station {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.station-node {
    width: 24px;
    height: 24px;
    background-color: #FFF;
    border: 4px solid var(--border-color);
    border-radius: 50%;
    transition: var(--transition);
    cursor: pointer;
}
.timeline-station.active .station-node {
    border-color: var(--primary);
    background-color: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.8);
}
.station-tooltip {
    position: absolute;
    bottom: 35px;
    width: 160px;
    text-align: center;
    background: #FFF;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    pointer-events: none;
}
.timeline-station:hover .station-tooltip, .timeline-station.active .station-tooltip {
    opacity: 1;
    transform: translateY(0);
}
.station-tooltip h5 {
    font-family: var(--font-orbitron);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}
.station-tooltip span {
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
}
.timeline-robot-tracker {
    position: absolute;
    top: -45px;
    left: 0;
    width: 50px;
    height: 50px;
    z-index: 3;
    pointer-events: none;
    transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Prizes energy cubes */
.prizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}
.prize-card {
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.prize-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}
.cube-canvas-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}
.prize-rank {
    font-family: var(--font-orbitron);
    font-weight: 900;
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 8px;
}
.prize-val {
    font-family: var(--font-orbitron);
    font-weight: 800;
    font-size: 32px;
    color: var(--primary);
}

/* Participant counter */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    width: 100%;
}
.stat-card {
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-num {
    font-family: var(--font-orbitron);
    font-size: 42px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}
.stat-title {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Organizers blueprint */
.blueprint-panel {
    border: 2px dashed var(--primary);
    background: rgba(13, 110, 253, 0.02);
    border-radius: var(--radius-lg);
    padding: 50px;
    margin-top: 40px;
}
.blueprint-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}
.blueprint-meta h3 {
    font-family: var(--font-orbitron);
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--primary);
}
.blueprint-meta p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}
.blueprint-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.blueprint-card {
    background: #FFF;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.blueprint-card h5 {
    font-family: var(--font-orbitron);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}
.blueprint-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Registration Assistant Form */
.register-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}
.assistant-robot-box {
    text-align: center;
    background: rgba(0, 180, 216, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    border: 1px solid rgba(0, 180, 216, 0.1);
}
.assistant-robot-visual {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    position: relative;
}
.assistant-bubble {
    background: #FFF;
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: var(--shadow-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    display: inline-block;
    max-width: 250px;
}
.assistant-bubble::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px;
    border-style: solid;
    border-color: #FFF transparent;
    display: block;
    width: 0;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    font-family: var(--font-orbitron);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
}
.form-control {
    background: #FFF;
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-inter);
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Footer futuristic Tamil Nadu Map representation */
.footer-hud {
    background: #FFF;
    border-top: 1px solid var(--border-color);
    padding: 60px 10% 40px;
}
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
    margin-bottom: 30px;
}
.footer-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 10px;
    max-width: 350px;
}
.footer-finish-message {
    text-align: right;
    font-family: var(--font-orbitron);
}
.footer-finish-message h3 {
    font-weight: 900;
    color: var(--primary);
    font-size: 24px;
}
.footer-finish-message p {
    font-size: 12px;
    color: var(--text-muted);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}
.social-icons-row {
    display: flex;
    gap: 15px;
}
.social-link-icon {
    font-size: 18px;
    color: var(--text-muted);
    transition: var(--transition);
}
.social-link-icon:hover {
    color: var(--primary);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.theme-icon {
    font-size: 14px;
    margin-right: 8px;
    color: var(--primary);
}

.theme-text {
    font-family: var(--font-orbitron);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
}

/* DARK MODE OVERRIDES */
body.dark-mode {
    --bg-main: #0b0f19;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px -2px rgba(13, 110, 253, 0.2), 0 2px 8px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 30px -4px rgba(13, 110, 253, 0.25), 0 4px 12px -2px rgba(0, 0, 0, 0.1);
}

body.dark-mode .preloader-overlay {
    background-color: #0b0f19;
}

body.dark-mode .header-hud {
    background: rgba(30, 41, 59, 0.85);
    border-color: #334155;
}

body.dark-mode .glass-panel {
    background: rgba(30, 41, 59, 0.85);
    border-color: #334155;
    color: #f8fafc;
}

body.dark-mode .nav-link {
    color: #94a3b8 !important;
}

body.dark-mode .nav-link.active,
body.dark-mode .nav-link:hover {
    color: #0D6EFD !important;
}

body.dark-mode .brand-title {
    color: #f8fafc;
}

body.dark-mode .hero-title {
    color: #f8fafc;
}

body.dark-mode .btn-outline {
    border-color: #334155;
    color: #f8fafc;
}

body.dark-mode .btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .city-stat-row {
    border-bottom-color: #334155;
}

body.dark-mode .achieve-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: #334155;
}

body.dark-mode .blueprint-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: #334155;
}

body.dark-mode .form-control {
    background: rgba(15, 23, 42, 0.6);
    border-color: #334155;
    color: #f8fafc;
}

body.dark-mode .form-control:focus {
    border-color: #0D6EFD;
}

body.dark-mode .footer-hud {
    border-top-color: #334155;
}

/* =========================================================
   MEGA ANIMATION OVERHAUL — index2.html
   ========================================================= */

/* ---- SCROLL PROGRESS BAR ---- */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--secondary), 0 0 20px var(--primary);
}

/* ---- CURSOR TRAIL DOTS ---- */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    animation: cursor-fade 0.6s ease forwards;
}
@keyframes cursor-fade {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}

/* ---- FLOATING PARTICLE CANVAS ---- */
#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
}

/* ---- SCAN LINE ---- */
.scan-line {
    position: fixed;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0.18;
    z-index: 5;
    pointer-events: none;
    animation: scan-sweep 6s linear infinite;
}
@keyframes scan-sweep {
    0%   { top: -2px; }
    100% { top: 100vh; }
}

/* ---- HERO SECTION EXTRAS ---- */
.hero-content-panel {
    position: relative;
}

/* Glitch text effect on hero title */
.hero-title.glitch {
    position: relative;
}
.hero-title.glitch::before,
.hero-title.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    font-family: var(--font-orbitron);
    font-weight: 900;
    line-height: 1.1;
    font-size: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title.glitch::before {
    background: linear-gradient(135deg, #00f0ff, #0D6EFD);
    -webkit-background-clip: text;
    background-clip: text;
    clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
    transform: translateX(-3px);
    animation: glitch-a 3.5s infinite steps(1);
}
.hero-title.glitch::after {
    background: linear-gradient(135deg, #9d00ff, #ff00aa);
    -webkit-background-clip: text;
    background-clip: text;
    clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%);
    transform: translateX(3px);
    animation: glitch-b 3.5s infinite steps(1);
}
@keyframes glitch-a {
    0%, 85%, 100% { opacity: 0; transform: translateX(-3px); }
    86%, 90%      { opacity: 0.7; transform: translateX(-5px) skewX(-2deg); }
    91%, 95%      { opacity: 0; }
    96%, 99%      { opacity: 0.5; transform: translateX(3px); }
}
@keyframes glitch-b {
    0%, 80%, 100% { opacity: 0; transform: translateX(3px); }
    81%, 87%      { opacity: 0.6; transform: translateX(5px) skewX(2deg); }
    88%, 94%      { opacity: 0; }
    95%, 98%      { opacity: 0.4; transform: translateX(-2px); }
}

/* Typewriter cursor blink */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--primary);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink-cursor 0.8s step-end infinite;
}
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ---- SECTION REVEAL — ANIMATE IN ---- */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.in-view {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.in-view {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.in-view {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.in-view {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for grid children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.55s; }

/* ---- SHIMMER SWEEP on glass panels ---- */
.glass-panel {
    overflow: hidden;
}
.glass-panel::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -60%;
    width: 40%;
    height: 300%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.15) 50%,
        transparent 60%
    );
    transform: skewX(-15deg);
    pointer-events: none;
    animation: shimmer-sweep 4s ease-in-out infinite;
    z-index: 10;
}
@keyframes shimmer-sweep {
    0%   { left: -60%; }
    60%, 100% { left: 130%; }
}

/* ---- FLOATING ANIMATION for prize cards ---- */
.prize-card {
    animation: float-card 4s ease-in-out infinite;
}
.prize-card:nth-child(1) { animation-delay: 0s;   animation-duration: 4.2s; }
.prize-card:nth-child(2) { animation-delay: 0.7s; animation-duration: 3.8s; }
.prize-card:nth-child(3) { animation-delay: 1.4s; animation-duration: 4.5s; }
@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}
/* Override scale(1.05) champion card float */
.prize-card[style*="scale(1.05)"] {
    animation: float-card-champion 3.8s ease-in-out infinite !important;
}
@keyframes float-card-champion {
    0%, 100% { transform: scale(1.05) translateY(0); }
    50%       { transform: scale(1.05) translateY(-14px); }
}

/* ---- NEON GLOW PULSE on stat cards ---- */
.stat-card {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.stat-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 0 25px rgba(13, 110, 253, 0.4), 0 8px 30px rgba(13, 110, 253, 0.2);
}
.stat-num {
    animation: num-glow-pulse 2s ease-in-out infinite;
}
@keyframes num-glow-pulse {
    0%, 100% { text-shadow: 0 0 10px rgba(13, 110, 253, 0.4); }
    50%       { text-shadow: 0 0 25px rgba(13, 110, 253, 0.9), 0 0 50px rgba(0, 180, 216, 0.4); }
}

/* ---- ACHIEVE CARD hover glow ---- */
.achieve-card {
    overflow: hidden;
    position: relative;
}
.achieve-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,110,253,0.08), rgba(0,180,216,0.05));
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: var(--radius-md);
}
.achieve-card:hover::before { opacity: 1; }
.achieve-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}
.achieve-card:hover .achieve-icon {
    transform: scale(1.25) rotate(-5deg);
    color: var(--secondary);
}

/* ---- STEM BADGE pulse ring ---- */
.stem-badge {
    position: relative;
    animation: badge-breathe 3s ease-in-out infinite;
}
@keyframes badge-breathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13,110,253,0.3); }
    50%       { box-shadow: 0 0 0 8px rgba(13,110,253,0); }
}

/* ---- TIMELINE STATION active node ripple ---- */
.timeline-station.active .station-node::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: ripple-ring 1.5s ease-out infinite;
}
.station-node {
    position: relative;
}
@keyframes ripple-ring {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ---- CTA BUTTON PULSE ---- */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}
.btn-primary:hover::before {
    width: 300px; height: 300px; opacity: 1;
}

/* ---- BLUEPRINT CARD animated border ---- */
.blueprint-panel {
    position: relative;
    overflow: hidden;
    animation: blueprint-dash 2s linear infinite;
    background-size: 20px 20px;
}
@keyframes blueprint-dash {
    0%   { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* ---- BOXING RING SPOTLIGHT ---- */
.boxing-ring::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 200px; height: 100%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 0%, rgba(255,183,3,0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: spotlight-pulse 2.5s ease-in-out infinite;
}
@keyframes spotlight-pulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1.0; }
}

/* ---- MAZE PATH glow stronger ---- */
.maze-cell.path-active {
    animation: path-glow 0.6s ease forwards;
}
@keyframes path-glow {
    0%   { background: rgba(6,214,160,0); box-shadow: none; }
    50%  { background: rgba(6,214,160,0.5); box-shadow: inset 0 0 12px rgba(6,214,160,0.8); }
    100% { background: rgba(6,214,160,0.2); box-shadow: inset 0 0 8px rgba(6,214,160,0.4); }
}

/* ---- JOURNEY CARD neon border animate ---- */
.journey-card {
    position: relative;
    background-clip: padding-box;
}
.journey-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% 300%;
    z-index: -1;
    animation: border-rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s;
}
.journey-card.active::before { opacity: 1; }
@keyframes border-rotate {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- HUD HEADER ambient glow ---- */
.header-hud {
    animation: hud-pulse 4s ease-in-out infinite;
}
@keyframes hud-pulse {
    0%, 100% { box-shadow: 0 4px 20px -2px rgba(13,110,253,0.08); }
    50%       { box-shadow: 0 4px 35px -2px rgba(13,110,253,0.25), 0 0 0 1px rgba(13,110,253,0.1); }
}

/* ---- FORM CONTROL animated focus ring ---- */
.form-control {
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.form-control:focus {
    transform: translateY(-1px);
}

/* ---- HERO floating robot ring spin ---- */
#hero-robot-ring {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    height: 260px;
    pointer-events: none;
}
.robot-orbit-ring {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    border-color: transparent;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbit-spin linear infinite;
}
.robot-orbit-ring:nth-child(1) {
    width: 200px; height: 200px;
    border-top-color: var(--primary);
    border-right-color: rgba(13,110,253,0.3);
    border-width: 2px;
    animation-duration: 4s;
}
.robot-orbit-ring:nth-child(2) {
    width: 160px; height: 160px;
    border-bottom-color: var(--secondary);
    border-left-color: rgba(0,180,216,0.3);
    border-width: 1.5px;
    animation-duration: 3s;
    animation-direction: reverse;
}
.robot-orbit-ring:nth-child(3) {
    width: 240px; height: 240px;
    border-right-color: rgba(255,183,3,0.4);
    border-bottom-color: transparent;
    border-width: 1px;
    animation-duration: 7s;
}
@keyframes orbit-spin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---- SOCIAL ICON hover bounce ---- */
.social-link-icon {
    display: inline-block;
}
.social-link-icon:hover {
    animation: bounce-icon 0.5s ease;
}
@keyframes bounce-icon {
    0%, 100% { transform: translateY(0); }
    30%       { transform: translateY(-8px); }
    60%       { transform: translateY(-3px); }
}

/* ---- CITY TAG flicker ---- */
.city-tag {
    animation: tag-flicker 5s ease-in-out infinite;
}
@keyframes tag-flicker {
    0%, 95%, 100% { opacity: 1; }
    96%            { opacity: 0.7; }
    97%            { opacity: 1; }
    98%            { opacity: 0.5; }
    99%            { opacity: 1; }
}

/* ---- DARK MODE extra neons ---- */
body.dark-mode .glass-panel::after {
    background: linear-gradient(105deg, transparent 40%, rgba(0,180,216,0.1) 50%, transparent 60%);
}
body.dark-mode .stat-num {
    animation: num-glow-pulse-dark 2s ease-in-out infinite;
}
@keyframes num-glow-pulse-dark {
    0%, 100% { text-shadow: 0 0 10px rgba(0,180,216,0.5); }
    50%       { text-shadow: 0 0 30px rgba(0,180,216,1), 0 0 60px rgba(13,110,253,0.6); }
}
body.dark-mode .sim-dot {
    box-shadow: 0 0 8px var(--success);
}
body.dark-mode .header-hud {
    animation: hud-pulse-dark 4s ease-in-out infinite;
}
@keyframes hud-pulse-dark {
    0%, 100% { box-shadow: 0 4px 20px -2px rgba(13,110,253,0.2); }
    50%       { box-shadow: 0 4px 40px -2px rgba(13,110,253,0.5), 0 0 0 1px rgba(13,110,253,0.2); }
}
body.dark-mode #scroll-progress-bar {
    box-shadow: 0 0 15px var(--secondary), 0 0 30px var(--primary);
}

/* ---- PRIZE CARD inner glow ring on hover ---- */
.prize-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse at center, rgba(255,183,3,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.prize-card:hover::before { opacity: 1; }

/* ---- BTN-SIM pulse click effect ---- */
.btn-sim:active {
    transform: scale(0.94);
    box-shadow: 0 0 15px rgba(13,110,253,0.6);
}
