@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

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

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #111111;
    --accent-cyan: #FFD700;
    --accent-blue: #FFA500;
    --accent-purple: #FFCC00;
    --silver: #b8b8b8;
    --white: #ffffff;
    --glow-cyan: 0 0 30px rgba(255, 215, 0, 0.5);
    --glow-blue: 0 0 30px rgba(255, 165, 0, 0.5);
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--primary-dark);
    font-family: 'Rajdhani', sans-serif;
}

/* Hide Odoo default elements on this page */
.o_main_navbar,
.o_footer,
.o_header,
#wrapwrap > header,
#wrapwrap > footer,
.o_website_cookies_bar {
    display: none !important;
}

#wrapwrap {
    overflow: hidden !important;
    height: 100vh !important;
    padding-top: 0 !important;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

canvas {
    display: block;
}

/* =====================
   Cinematic Overlay UI
   ===================== */
.cinematic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Scanlines effect */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 215, 0, 0.01) 2px,
        rgba(255, 215, 0, 0.01) 4px
    );
    pointer-events: none;
    opacity: 0.3;
}

/* Vignette effect */
.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(10, 14, 26, 0.8) 100%
    );
    pointer-events: none;
}

/* Corner brackets */
.corner {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-cyan);
    opacity: 0.6;
}

.corner-tl { top: 30px; left: 30px; border-right: none; border-bottom: none; }
.corner-tr { top: 30px; right: 30px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 30px; left: 30px; border-right: none; border-top: none; }
.corner-br { bottom: 30px; right: 30px; border-left: none; border-top: none; }

/* HUD Elements */
.hud-top {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 40px;
}

.hud-line {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.hud-text {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--accent-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* =====================
   Loading Screen
   ===================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 1s ease, visibility 1s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 12px;
    margin-bottom: 40px;
    text-shadow: var(--glow-cyan);
}

.loading-bar-container {
    width: 300px;
    height: 2px;
    background: rgba(0, 240, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: var(--glow-cyan);
}

.loading-text {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--accent-cyan);
    margin-top: 20px;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* =====================
   Center Logo
   ===================== */
.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    animation: fadeInLogo 2s ease 3s forwards;
}

.logo-main {
    font-family: 'Orbitron', sans-serif;
    font-size: 72px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 20px;
    text-shadow:
        0 0 40px rgba(0, 240, 255, 0.8),
        0 0 80px rgba(0, 240, 255, 0.4),
        0 0 120px rgba(0, 102, 255, 0.3);
    margin-bottom: 20px;
}

.logo-tagline {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: var(--silver);
    letter-spacing: 12px;
    text-transform: uppercase;
}

@keyframes fadeInLogo {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* =====================
   Data Stats
   ===================== */
.data-stats {
    position: absolute;
    bottom: 50px;
    left: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 4s; }
.stat-item:nth-child(2) { animation-delay: 4.2s; }
.stat-item:nth-child(3) { animation-delay: 4.4s; }
.stat-item:nth-child(4) { animation-delay: 4.6s; }

.stat-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 16px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 11px;
    color: var(--silver);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes slideInLeft {
    0%   { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* =====================
   Modules Panel
   ===================== */
.modules-panel {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
}

.module-item:nth-child(1) { animation-delay: 4.8s; }
.module-item:nth-child(2) { animation-delay: 5s; }
.module-item:nth-child(3) { animation-delay: 5.2s; }
.module-item:nth-child(4) { animation-delay: 5.4s; }
.module-item:nth-child(5) { animation-delay: 5.6s; }

.module-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan);
    animation: pulse 2s ease-in-out infinite;
}

.module-name {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--silver);
    letter-spacing: 2px;
}

@keyframes slideInRight {
    0%   { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

/* =====================
   Timeline
   ===================== */
.timeline {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
}

.timeline-marker {
    width: 8px;
    height: 8px;
    border: 1px solid var(--accent-cyan);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.timeline-marker.active {
    background: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.timeline-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-cyan), rgba(0, 240, 255, 0.3));
}

/* =====================
   Play Button
   ===================== */
.play-btn {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 50px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: transparent;
    border: 1px solid var(--accent-cyan);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease 6s forwards;
    z-index: 20;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.play-btn:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
    box-shadow: var(--glow-cyan);
    text-decoration: none;
}

/* =====================
   Info Particles
   ===================== */
.info-particles {
    position: absolute;
    top: 120px;
    right: 50px;
    text-align: right;
}

.info-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: var(--accent-cyan);
    letter-spacing: 3px;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeIn 1s ease 5.8s forwards;
}

.info-value {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--silver);
    opacity: 0;
    animation: fadeIn 1s ease 6s forwards;
}

@keyframes fadeIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}