/* ============================================
   CAELIA AI — Under Maintenance
   Dark + Red + Cyan Jarvis/Iron Man Theme
   PROFESSIONAL LAYOUT — Properly spaced
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #ff0033;
    --red-dim: #cc0029;
    --red-glow: rgba(255, 0, 51, 0.6);
    --red-subtle: rgba(255, 0, 51, 0.15);
    --cyan: #00e5ff;
    --cyan-dim: #00b8d4;
    --cyan-glow: rgba(0, 229, 255, 0.5);
    --cyan-subtle: rgba(0, 229, 255, 0.1);
    --amber: #ffab00;
    --amber-glow: rgba(255, 171, 0, 0.5);
    --bg-primary: #0a0a0f;
    --bg-card: rgba(15, 15, 25, 0.85);
    --bg-panel: rgba(10, 10, 20, 0.92);
    --text-primary: #e8e8f0;
    --text-dim: #5a5a72;
    --border: rgba(255, 0, 51, 0.2);
    --border-cyan: rgba(0, 229, 255, 0.2);
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
    background: 
        radial-gradient(ellipse at 50% 30%, rgba(255, 0, 51, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(0, 229, 255, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 0, 51, 0.03) 0%, transparent 40%),
        var(--bg-primary);
}

/* --- Scanlines overlay --- */
.scanlines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.02) 2px,
        rgba(0, 0, 0, 0.02) 4px
    );
}

.scanlines::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 200%;
    background: linear-gradient(
        0deg,
        transparent 0%,
        rgba(0, 229, 255, 0.015) 50%,
        transparent 100%
    );
    animation: scanMove 6s linear infinite;
}

@keyframes scanMove {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0%); }
}

/* --- Particle Canvas --- */
#particleCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Grid floor (3D perspective) --- */
.grid-floor {
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 120%;
    height: 50%;
    background: 
        linear-gradient(90deg, rgba(255, 0, 51, 0.04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 0, 51, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: perspective(500px) rotateX(55deg);
    transform-origin: center top;
    z-index: 0;
    animation: gridPulse 4s ease-in-out infinite alternate;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 70%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 70%);
}

@keyframes gridPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.5; }
}

/* --- Hex grid SVG background --- */
.hex-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* --- HUD Corners --- */
.hud-corner {
    position: fixed;
    width: 50px;
    height: 50px;
    z-index: 10;
    pointer-events: none;
}

.hud-corner::before,
.hud-corner::after {
    content: '';
    position: absolute;
    background: var(--red);
    box-shadow: 0 0 10px var(--red-glow), 0 0 20px rgba(255, 0, 51, 0.2);
}

.top-left { top: 20px; left: 20px; }
.top-left::before { top: 0; left: 0; width: 25px; height: 2px; }
.top-left::after { top: 0; left: 0; width: 2px; height: 25px; }

.top-right { top: 20px; right: 20px; }
.top-right::before { top: 0; right: 0; width: 25px; height: 2px; }
.top-right::after { top: 0; right: 0; width: 2px; height: 25px; }

.bottom-left { bottom: 55px; left: 20px; }
.bottom-left::before { bottom: 0; left: 0; width: 25px; height: 2px; }
.bottom-left::after { bottom: 0; left: 0; width: 2px; height: 25px; }

.bottom-right { bottom: 55px; right: 20px; }
.bottom-right::before { bottom: 0; right: 0; width: 25px; height: 2px; }
.bottom-right::after { bottom: 0; right: 0; width: 2px; height: 25px; }

/* Small decorative corner squares */
.corner-squares {
    position: fixed;
    width: 5px;
    height: 5px;
    background: var(--red);
    z-index: 10;
    pointer-events: none;
    opacity: 0.6;
}

.sq-tl-1 { top: 30px; left: 55px; }
.sq-tl-2 { top: 55px; left: 30px; }
.sq-tr-1 { top: 30px; right: 55px; }
.sq-tr-2 { top: 55px; right: 30px; }
.sq-bl-1 { bottom: 85px; left: 55px; }
.sq-bl-2 { bottom: 110px; left: 30px; }
.sq-br-1 { bottom: 85px; right: 55px; }
.sq-br-2 { bottom: 110px; right: 30px; }

/* --- HUD Side Panels --- */
.hud-panel {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    z-index: 20;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hud-panel-left {
    left: 25px;
    border-left: 2px solid var(--red);
    animation: panelSlideLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hud-panel-right {
    right: 25px;
    border-right: 2px solid var(--cyan);
    animation: panelSlideRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

@keyframes panelSlideLeft {
    from { transform: translateY(-50%) translateX(-60px); opacity: 0; }
    to { transform: translateY(-50%) translateX(0); opacity: 1; }
}

@keyframes panelSlideRight {
    from { transform: translateY(-50%) translateX(60px); opacity: 0; }
    to { transform: translateY(-50%) translateX(0); opacity: 1; }
}

.hud-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.hud-dot.red {
    background: var(--red);
    box-shadow: 0 0 8px var(--red-glow);
    animation: dotBlink 1.5s ease-in-out infinite;
}

.hud-dot.cyan {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan-glow);
    animation: dotBlink 2s ease-in-out infinite;
}

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

.hud-label {
    color: var(--text-dim);
    font-size: 10px;
}

.hud-panel-content {
    padding: 12px 16px;
}

.hud-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.hud-row:last-child {
    border-bottom: none;
}

.val {
    font-weight: 600;
    font-size: 11px;
}

.red-text { color: var(--red); text-shadow: 0 0 6px var(--red-glow); }
.amber-text { color: var(--amber); text-shadow: 0 0 6px var(--amber-glow); }
.cyan-text { color: var(--cyan); text-shadow: 0 0 6px var(--cyan-glow); }

.hud-progress-bar {
    margin: 12px 16px 16px;
    height: 3px;
    background: rgba(255, 0, 51, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.hud-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--red), var(--amber));
    box-shadow: 0 0 10px var(--red-glow);
    transition: width 0.5s ease;
    animation: progressFill 8s ease-in-out infinite;
}

@keyframes progressFill {
    0% { width: 0%; }
    50% { width: 68%; }
    80% { width: 72%; }
    100% { width: 0%; }
}

.hud-graph {
    padding: 8px 16px 16px;
}

#graphCanvas {
    width: 100%;
    height: 50px;
    opacity: 0.8;
}

/* =============================================
   MAIN CONTAINER - VERTICAL STACKED LAYOUT
   ============================================= */
.main-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px 80px;
    min-height: 100vh;
    justify-content: center;
    gap: 0; /* We control spacing per-element */
}

/* --- Logo Section (top) --- */
.logo-section {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.caelia-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 16px;
    line-height: 1;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo-cael {
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.logo-ia {
    color: var(--cyan);
    text-shadow: 0 0 40px var(--cyan-glow), 0 0 80px rgba(0, 229, 255, 0.15);
}

@keyframes logoGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.15); }
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    letter-spacing: 10px;
    color: var(--text-dim);
    margin-top: 8px;
}

/* --- 3D Hologram --- */
.hologram-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hologram-scene {
    position: relative;
    width: 260px;
    height: 260px;
    transform-style: preserve-3d;
    animation: sceneFloat 6s ease-in-out infinite;
}

@keyframes sceneFloat {
    0%, 100% { transform: translateY(0px) rotateX(5deg); }
    50% { transform: translateY(-12px) rotateX(-5deg); }
}

/* --- Holographic Rings --- */
.holo-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1.5px solid transparent;
    transform-style: preserve-3d;
}

.ring-1 {
    width: 260px; height: 260px;
    margin: -130px 0 0 -130px;
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.08), inset 0 0 20px rgba(0, 229, 255, 0.04);
    animation: ring1Rotate 14s linear infinite;
    transform: rotateX(70deg) rotateZ(0deg);
}

@keyframes ring1Rotate {
    from { transform: rotateX(70deg) rotateZ(0deg); }
    to { transform: rotateX(70deg) rotateZ(360deg); }
}

.ring-2 {
    width: 220px; height: 220px;
    margin: -110px 0 0 -110px;
    border-color: rgba(255, 0, 51, 0.25);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.08), inset 0 0 20px rgba(255, 0, 51, 0.04);
    animation: ring2Rotate 11s linear infinite reverse;
    transform: rotateX(60deg) rotateY(30deg) rotateZ(0deg);
}

@keyframes ring2Rotate {
    from { transform: rotateX(60deg) rotateY(30deg) rotateZ(0deg); }
    to { transform: rotateX(60deg) rotateY(30deg) rotateZ(360deg); }
}

.ring-3 {
    width: 240px; height: 240px;
    margin: -120px 0 0 -120px;
    border-color: rgba(0, 229, 255, 0.15);
    border-style: dashed;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.03);
    animation: ring3Rotate 18s linear infinite;
    transform: rotateX(80deg) rotateY(-20deg) rotateZ(0deg);
}

@keyframes ring3Rotate {
    from { transform: rotateX(80deg) rotateY(-20deg) rotateZ(0deg); }
    to { transform: rotateX(80deg) rotateY(-20deg) rotateZ(360deg); }
}

.ring-4 {
    width: 170px; height: 170px;
    margin: -85px 0 0 -85px;
    border-color: rgba(255, 0, 51, 0.2);
    border-width: 2px;
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: ring4Rotate 9s linear infinite;
    transform: rotateX(45deg) rotateY(45deg) rotateZ(0deg);
}

@keyframes ring4Rotate {
    from { transform: rotateX(45deg) rotateY(45deg) rotateZ(0deg); }
    to { transform: rotateX(45deg) rotateY(45deg) rotateZ(360deg); }
}

.ring-5 {
    width: 185px; height: 185px;
    margin: -92.5px 0 0 -92.5px;
    border-color: rgba(0, 229, 255, 0.12);
    border-width: 1px;
    border-left-color: transparent;
    border-right-color: transparent;
    animation: ring5Rotate 7s linear infinite reverse;
    transform: rotateX(30deg) rotateY(-60deg) rotateZ(0deg);
}

@keyframes ring5Rotate {
    from { transform: rotateX(30deg) rotateY(-60deg) rotateZ(0deg); }
    to { transform: rotateX(30deg) rotateY(-60deg) rotateZ(360deg); }
}

.ring-6 {
    width: 200px; height: 200px;
    margin: -100px 0 0 -100px;
    border-color: rgba(255, 0, 51, 0.1);
    border-width: 1px;
    border-style: dotted;
    animation: ring6Rotate 20s linear infinite;
    transform: rotateX(50deg) rotateY(70deg) rotateZ(0deg);
}

@keyframes ring6Rotate {
    from { transform: rotateX(50deg) rotateY(70deg) rotateZ(0deg); }
    to { transform: rotateX(50deg) rotateY(70deg) rotateZ(360deg); }
}

/* Ring segments (bright arc highlights) */
.ring-segment {
    position: absolute;
    top: -1px; left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 .ring-segment {
    border-top-color: var(--cyan);
    box-shadow: 0 0 25px var(--cyan-glow);
    animation: segSpin 14s linear infinite;
}

.ring-2 .ring-segment {
    border-top-color: var(--red);
    border-bottom-color: var(--red);
    box-shadow: 0 0 25px var(--red-glow);
    animation: segSpin 11s linear infinite reverse;
}

.ring-6 .ring-segment {
    border-top-color: rgba(255, 0, 51, 0.3);
    animation: segSpin 20s linear infinite;
}

@keyframes segSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Core --- */
.holo-core {
    position: absolute;
    top: 50%; left: 50%;
    width: 70px; height: 70px;
    margin: -35px 0 0 -35px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, rgba(0, 229, 255, 0.04) 50%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-inner {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cyan) 0%, rgba(0, 229, 255, 0.4) 40%, transparent 70%);
    box-shadow: 0 0 40px var(--cyan-glow), 0 0 80px rgba(0, 229, 255, 0.25);
    animation: corePulse 2s ease-in-out infinite;
}

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

.core-pulse {
    position: absolute;
    top: 50%; left: 50%;
    width: 70px; height: 70px;
    margin: -35px 0 0 -35px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.25);
    animation: coreExpand 3s ease-out infinite;
}

.core-pulse.pulse-2 {
    animation-delay: 1s;
}

.core-pulse.pulse-3 {
    animation-delay: 2s;
    border-color: rgba(255, 0, 51, 0.15);
}

@keyframes coreExpand {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(3.5); opacity: 0; }
}

/* --- Orbit dots --- */
.orbit-dot {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan-glow), 0 0 20px rgba(0, 229, 255, 0.25);
    top: 50%; left: 50%;
}

.dot-1 { animation: orbitDot1 7s linear infinite; }
.dot-2 { animation: orbitDot2 9s linear infinite; }
.dot-3 { animation: orbitDot3 6s linear infinite reverse; }
.dot-4 { 
    background: var(--red);
    box-shadow: 0 0 10px var(--red-glow), 0 0 20px rgba(255, 0, 51, 0.25);
    animation: orbitDot4 8s linear infinite; 
}
.dot-5 {
    width: 3px; height: 3px;
    animation: orbitDot5 5s linear infinite;
}
.dot-6 {
    width: 3px; height: 3px;
    background: var(--red);
    box-shadow: 0 0 10px var(--red-glow);
    animation: orbitDot6 10s linear infinite reverse;
}

@keyframes orbitDot1 {
    0% { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}
@keyframes orbitDot2 {
    0% { transform: rotate(90deg) translateX(100px) rotate(-90deg); }
    100% { transform: rotate(450deg) translateX(100px) rotate(-450deg); }
}
@keyframes orbitDot3 {
    0% { transform: rotate(180deg) translateX(110px) rotate(-180deg); }
    100% { transform: rotate(540deg) translateX(110px) rotate(-540deg); }
}
@keyframes orbitDot4 {
    0% { transform: rotate(270deg) translateX(90px) rotate(-270deg); }
    100% { transform: rotate(630deg) translateX(90px) rotate(-630deg); }
}
@keyframes orbitDot5 {
    0% { transform: rotate(45deg) translateX(130px) rotate(-45deg); }
    100% { transform: rotate(405deg) translateX(130px) rotate(-405deg); }
}
@keyframes orbitDot6 {
    0% { transform: rotate(135deg) translateX(80px) rotate(-135deg); }
    100% { transform: rotate(495deg) translateX(80px) rotate(-495deg); }
}

/* --- Hologram base --- */
.hologram-base {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 10px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.25), transparent);
    border-radius: 50%;
    filter: blur(5px);
    animation: baseFlicker 3s ease-in-out infinite;
}

@keyframes baseFlicker {
    0%, 100% { opacity: 0.5; width: 200px; }
    50% { opacity: 0.9; width: 220px; }
}

/* =============================================
   MAINTENANCE BADGE — Above heading
   ============================================= */
.maintenance-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 28px;
    border: 1px solid rgba(255, 0, 51, 0.4);
    border-radius: 2px;
    background: rgba(255, 0, 51, 0.06);
    margin-bottom: 25px;
    animation: badgePulse 2.5s ease-in-out infinite, fadeIn 1s ease-out 0.6s both;
    position: relative;
}

.maintenance-badge::before,
.maintenance-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--red), transparent);
}

.maintenance-badge::before {
    right: 100%;
    margin-right: 15px;
    transform: translateY(-50%);
}

.maintenance-badge::after {
    left: 100%;
    margin-left: 15px;
    transform: translateY(-50%);
    background: linear-gradient(270deg, var(--red), transparent);
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 0, 51, 0.1), inset 0 0 15px rgba(255, 0, 51, 0.03); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 51, 0.25), inset 0 0 20px rgba(255, 0, 51, 0.06); }
}

.badge-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 8px var(--red-glow);
    animation: dotBlink 1s ease-in-out infinite;
    flex-shrink: 0;
}

.badge-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--red);
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--red-glow);
}

/* =============================================
   GLITCH TEXT — Main heading, its own block
   ============================================= */
.glitch-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 8px;
    color: var(--text-primary);
    position: relative;
    display: block;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
    animation: fadeIn 1s ease-out 0.8s both;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.glitch-text::before {
    color: var(--cyan);
    z-index: -1;
    animation: glitch1 4s infinite;
}

.glitch-text::after {
    color: var(--red);
    z-index: -2;
    animation: glitch2 4s infinite;
}

@keyframes glitch1 {
    0%, 92%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    93% { clip-path: inset(20% 0 40% 0); transform: translate(-3px, 1px); }
    95% { clip-path: inset(60% 0 10% 0); transform: translate(3px, -1px); }
    97% { clip-path: inset(30% 0 30% 0); transform: translate(-2px, 2px); }
    99% { clip-path: inset(0 0 80% 0); transform: translate(2px, -2px); }
}

@keyframes glitch2 {
    0%, 90%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    91% { clip-path: inset(40% 0 20% 0); transform: translate(3px, -1px); }
    94% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 1px); }
    96% { clip-path: inset(50% 0 20% 0); transform: translate(2px, 2px); }
    98% { clip-path: inset(80% 0 0 0); transform: translate(-2px, -1px); }
}

/* =============================================
   SEPARATOR LINE
   ============================================= */
.separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    animation: fadeIn 1s ease-out 1s both;
}

.sep-line {
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 51, 0.4), transparent);
}

.sep-diamond {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--red);
    transform: rotate(45deg);
    box-shadow: 0 0 10px var(--red-glow);
    animation: diamondPulse 2s ease-in-out infinite;
}

@keyframes diamondPulse {
    0%, 100% { opacity: 0.6; transform: rotate(45deg) scale(1); }
    50% { opacity: 1; transform: rotate(45deg) scale(1.2); }
}

/* =============================================
   DESCRIPTION
   ============================================= */
.description {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    color: var(--text-dim);
    max-width: 550px;
    line-height: 1.7;
    text-align: center;
    letter-spacing: 0.5px;
    margin-bottom: 35px;
    animation: fadeIn 1s ease-out 1.1s both;
}

/* =============================================
   COUNTDOWN
   ============================================= */
.eta-container {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out 1.3s both;
}

.eta-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 14px 22px;
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

.time-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    animation: shimmer 2.5s linear infinite;
}

.time-block::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 51, 0.3), transparent);
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.time-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--red);
    text-shadow: 0 0 20px var(--red-glow);
    line-height: 1;
}

.time-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 8px;
    color: var(--text-dim);
    letter-spacing: 3px;
    margin-top: 6px;
}

.time-sep {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    color: var(--red);
    animation: sepBlink 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes sepBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.15; }
}

/* =============================================
   MAIN PROGRESS BAR
   ============================================= */
.main-progress {
    width: 100%;
    max-width: 420px;
    margin-bottom: 25px;
    animation: fadeIn 1s ease-out 1.5s both;
}

.main-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.progress-pct {
    color: var(--cyan);
    text-shadow: 0 0 6px var(--cyan-glow);
    font-weight: 600;
}

.main-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 0, 51, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.main-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--red), var(--cyan));
    border-radius: 2px;
    box-shadow: 0 0 12px var(--red-glow);
    transition: width 0.3s ease;
}

.main-progress-glow {
    position: absolute;
    top: -2px;
    left: 0;
    height: 8px;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), transparent);
    border-radius: 4px;
    animation: progressGlowMove 3s ease-in-out infinite;
}

@keyframes progressGlowMove {
    0% { left: -60px; }
    100% { left: 100%; }
}

/* =============================================
   VERSION INFO
   ============================================= */
.version-info {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeIn 1s ease-out 1.6s both;
}

.ver-number {
    color: var(--cyan);
    text-shadow: 0 0 8px var(--cyan-glow);
}

.ver-model {
    color: var(--amber);
    text-shadow: 0 0 5px var(--amber-glow);
}

.ver-sep {
    color: rgba(255,255,255,0.12);
}

/* =============================================
   ASK CAELIA BUTTON
   ============================================= */
.ask-caelia-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    animation: fadeIn 1s ease-out 1.8s both;
}

.ask-caelia-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    background: transparent;
    border: 1.5px solid var(--red);
    color: var(--red);
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    z-index: 1;
}

.ask-caelia-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.08), rgba(255, 0, 51, 0.02));
    z-index: -1;
    transition: all 0.4s ease;
}

.ask-caelia-btn::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px;
    right: -2px; bottom: -2px;
    border: 1px solid transparent;
    transition: all 0.4s ease;
    pointer-events: none;
}

.ask-caelia-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(0, 229, 255, 0.3),
        0 0 40px rgba(0, 229, 255, 0.1),
        inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.ask-caelia-btn:hover::before {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 229, 255, 0.02));
}

.ask-caelia-btn:hover::after {
    border-color: rgba(0, 229, 255, 0.2);
}

.ask-caelia-btn:hover .btn-icon svg {
    stroke: var(--cyan);
    filter: drop-shadow(0 0 6px var(--cyan-glow));
}

.ask-caelia-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Button speaking state */
.ask-caelia-btn.speaking {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 
        0 0 25px rgba(0, 229, 255, 0.4),
        0 0 50px rgba(0, 229, 255, 0.15),
        inset 0 0 25px rgba(0, 229, 255, 0.06);
    animation: btnPulseSpeak 1.5s ease-in-out infinite;
}

.ask-caelia-btn.speaking::before {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.03));
}

.ask-caelia-btn.speaking .btn-icon svg {
    stroke: var(--cyan);
    animation: micPulse 0.8s ease-in-out infinite;
}

@keyframes btnPulseSpeak {
    0%, 100% { box-shadow: 0 0 25px rgba(0, 229, 255, 0.4), 0 0 50px rgba(0, 229, 255, 0.15), inset 0 0 25px rgba(0, 229, 255, 0.06); }
    50% { box-shadow: 0 0 35px rgba(0, 229, 255, 0.5), 0 0 70px rgba(0, 229, 255, 0.2), inset 0 0 30px rgba(0, 229, 255, 0.08); }
}

@keyframes micPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 4px var(--red-glow));
}

.btn-text {
    position: relative;
}

.btn-glow {
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: skewX(-20deg);
    animation: btnGlowSweep 4s ease-in-out infinite;
}

@keyframes btnGlowSweep {
    0% { left: -100%; }
    50% { left: 200%; }
    100% { left: 200%; }
}

/* --- Voice Wave Visualizer --- */
.voice-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    opacity: 0;
    transform: scaleY(0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.voice-wave.active {
    opacity: 1;
    transform: scaleY(1);
}

.wave-bar {
    width: 3px;
    height: 4px;
    background: var(--cyan);
    border-radius: 2px;
    box-shadow: 0 0 6px var(--cyan-glow);
    transition: height 0.15s ease;
}

.voice-wave.active .wave-bar {
    animation: waveAnim 0.6s ease-in-out infinite alternate;
}

.voice-wave.active .wave-bar:nth-child(1) { animation-delay: 0.00s; }
.voice-wave.active .wave-bar:nth-child(2) { animation-delay: 0.05s; }
.voice-wave.active .wave-bar:nth-child(3) { animation-delay: 0.10s; }
.voice-wave.active .wave-bar:nth-child(4) { animation-delay: 0.15s; }
.voice-wave.active .wave-bar:nth-child(5) { animation-delay: 0.20s; }
.voice-wave.active .wave-bar:nth-child(6) { animation-delay: 0.25s; }
.voice-wave.active .wave-bar:nth-child(7) { animation-delay: 0.30s; }
.voice-wave.active .wave-bar:nth-child(8) { animation-delay: 0.25s; }
.voice-wave.active .wave-bar:nth-child(9) { animation-delay: 0.20s; }
.voice-wave.active .wave-bar:nth-child(10) { animation-delay: 0.15s; }
.voice-wave.active .wave-bar:nth-child(11) { animation-delay: 0.10s; }
.voice-wave.active .wave-bar:nth-child(12) { animation-delay: 0.05s; }
.voice-wave.active .wave-bar:nth-child(13) { animation-delay: 0.00s; }
.voice-wave.active .wave-bar:nth-child(14) { animation-delay: 0.08s; }
.voice-wave.active .wave-bar:nth-child(15) { animation-delay: 0.16s; }

@keyframes waveAnim {
    0% { height: 4px; opacity: 0.4; }
    100% { height: 32px; opacity: 1; }
}

/* --- Speech Bubble --- */
.speech-bubble {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 480px;
    padding: 14px 22px;
    background: var(--bg-panel);
    border: 1px solid var(--border-cyan);
    border-left: 3px solid var(--cyan);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.speech-bubble.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.speech-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.speech-text {
    color: rgba(0, 229, 255, 0.9);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}


/* =============================================
   BOTTOM STATUS BAR
   ============================================= */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 42px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 50;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
}

.status-left,
.status-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}

.status-dot.offline {
    background: var(--red);
    box-shadow: 0 0 10px var(--red-glow);
    animation: dotBlink 1.5s ease-in-out infinite;
}

.status-text {
    color: var(--text-dim);
}

.status-sep {
    color: rgba(255,255,255,0.1);
}

.status-center {
    display: flex;
    align-items: center;
    color: var(--cyan);
    font-size: 12px;
}

.cursor-blink {
    animation: cursorBlink 0.8s step-end infinite;
    color: var(--cyan);
}

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

/* =============================================
   DATA FRAGMENTS
   ============================================= */
.data-fragment {
    position: fixed;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: rgba(255, 0, 51, 0.12);
    pointer-events: none;
    z-index: 1;
    animation: fragmentFloat 25s linear infinite;
    white-space: nowrap;
}

.frag-1 { top: 10%; left: 6%; animation-delay: 0s; animation-duration: 28s; }
.frag-2 { top: 22%; right: 6%; animation-delay: 4s; animation-duration: 24s; color: rgba(0, 229, 255, 0.1); }
.frag-3 { top: 72%; left: 6%; animation-delay: 8s; animation-duration: 30s; }
.frag-4 { top: 84%; right: 6%; animation-delay: 2s; animation-duration: 22s; color: rgba(0, 229, 255, 0.1); }
.frag-5 { top: 38%; left: 4%; animation-delay: 10s; animation-duration: 26s; }
.frag-6 { top: 58%; right: 5%; animation-delay: 6s; animation-duration: 28s; color: rgba(0, 229, 255, 0.1); }

@keyframes fragmentFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.25; }
    50% { opacity: 0.12; }
    90% { opacity: 0.25; }
    100% { transform: translateY(-20px) translateX(15px); opacity: 0; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1300px) {
    .hud-panel-left,
    .hud-panel-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .caelia-logo {
        font-size: 34px;
        letter-spacing: 10px;
    }

    .glitch-text {
        font-size: 24px;
        letter-spacing: 5px;
    }

    .hologram-container {
        width: 240px;
        height: 240px;
    }

    .hologram-scene {
        width: 200px;
        height: 200px;
    }

    .ring-1 { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
    .ring-2 { width: 170px; height: 170px; margin: -85px 0 0 -85px; }
    .ring-3 { width: 190px; height: 190px; margin: -95px 0 0 -95px; }
    .ring-4 { width: 130px; height: 130px; margin: -65px 0 0 -65px; }
    .ring-5 { width: 145px; height: 145px; margin: -72.5px 0 0 -72.5px; }
    .ring-6 { width: 155px; height: 155px; margin: -77.5px 0 0 -77.5px; }

    .time-num {
        font-size: 24px;
    }

    .time-block {
        padding: 10px 16px;
        min-width: 65px;
    }

    .description {
        font-size: 13px;
        padding: 0 15px;
    }

    .data-fragment {
        display: none;
    }

    .maintenance-badge::before,
    .maintenance-badge::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .caelia-logo {
        font-size: 26px;
        letter-spacing: 6px;
    }

    .glitch-text {
        font-size: 18px;
        letter-spacing: 4px;
    }

    .subtitle {
        font-size: 10px;
        letter-spacing: 6px;
    }

    .time-block {
        padding: 8px 12px;
        min-width: 55px;
    }

    .time-num {
        font-size: 20px;
    }

    .badge-text {
        font-size: 9px;
        letter-spacing: 2px;
    }
}
