﻿:root {
  --bg-dark: #0a0b14;
  --bg-panel: rgba(15, 15, 20, 0.7);
  --neon-blue: #00f3ff;
  --neon-purple: #9d00ff;
  --neon-pink: #ff0055;
  --neon-gold: #ffd700;
  --neon-green: #0aff00;
  --text-main: #e0e6ed;
  --text-muted: #8b9bb4;
  
  --glass-bg: rgba(10, 14, 20, 0.85);
  --glass-border: rgba(255, 215, 0, 0.2);
  --border-glow: linear-gradient(135deg, var(--neon-gold), transparent, #ffaa00);
  
  --font-mono: "Courier New", Courier, monospace;
}

html, body {
  height: 100%;
}

body {
  background: linear-gradient(135deg, #111931 0%, #0a0b14 100%);
  color: var(--text-main);
  font-family: "Alibaba PuHuiTi", "Rajdhani", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Cyberpunk Grid Background - Faded for Starry Sky */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 215, 0, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.01) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  z-index: -2;
  pointer-events: none;
  transform: perspective(500px) rotateX(60deg) scale(2);
  transform-origin: top center;
  top: 20%;
  opacity: 0.3;
}

/* Global Cinematic Filter (CRT + Grain + Vignette) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E"),
    radial-gradient(circle at center, transparent 60%, rgba(0,0,0,0.9) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1) 1px, transparent 1px, transparent 2px);
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.7;
}

/* Color Grading */
html {
  filter: contrast(1.1) saturate(1.2) hue-rotate(-5deg);
}

main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

/* Splash Screen - Holographic Portal */
#splash-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.6) 0%, #000 100%); /* Semi-transparent vignette */
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 1.5s cubic-bezier(0.7, 0, 0.3, 1);
  cursor: pointer;
}

#splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.5);
  filter: blur(20px);
}

.splash-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Sleek Metallic Splash Title */
.splash-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700; /* Thinner */
  font-family: "Rajdhani", "Microsoft YaHei", sans-serif; /* Tech font */
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 8px; /* Wider spacing for high-end feel */
  line-height: 1.4;
  position: relative;
  
  /* Metallic Fill */
  background: linear-gradient(to bottom, #ffffff, #8899a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  /* Cyan Rim Light (Backlight) */
  filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.4));
  
  transition: all 0.5s;
}

/* Subtle glow pulse instead of glitch */
.splash-title:hover {
  filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.7));
  letter-spacing: 10px;
}

/* Interactive Trigger - Charged Energy Block */
.splash-hint {
  margin-top: 4rem;
  font-family: var(--font-mono);
  color: var(--neon-blue);
  font-size: 1.2rem;
  letter-spacing: 6px;
  padding: 15px 60px;
  border: 1px solid rgba(0, 243, 255, 0.5);
  border-radius: 2px; /* Tech block style */
  background: linear-gradient(90deg, 
    rgba(0, 243, 255, 0.05), 
    rgba(0, 243, 255, 0.15), 
    rgba(0, 243, 255, 0.05));
  background-size: 200% 100%;
  position: relative;
  transition: all 0.3s;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.2), inset 0 0 20px rgba(0, 243, 255, 0.1);
  animation: breathe 3s infinite ease-in-out, energyFlow 3s infinite linear;
  cursor: pointer;
}

.splash-hint:hover {
  background-position: 100% 0;
  box-shadow: 0 0 50px rgba(0, 243, 255, 0.5), inset 0 0 30px rgba(0, 243, 255, 0.3);
  letter-spacing: 8px;
  text-shadow: 0 0 10px var(--neon-blue);
}

.splash-hint .hint-arrow {
  opacity: 0.5;
  transition: all 0.3s;
  font-weight: bold;
}

.splash-hint:hover .hint-arrow {
  opacity: 1;
  margin: 0 10px;
  color: #fff;
}

/* HUD Layer */
.hud-layer {
  position: absolute;
  inset: 20px;
  pointer-events: none;
  z-index: 10;
  border: 1px solid rgba(0, 243, 255, 0.1);
  background: 
    linear-gradient(to right, rgba(0,243,255,0.3) 2px, transparent 2px) 0 0,
    linear-gradient(to bottom, rgba(0,243,255,0.3) 2px, transparent 2px) 0 0,
    linear-gradient(to left, rgba(0,243,255,0.3) 2px, transparent 2px) 100% 0,
    linear-gradient(to bottom, rgba(0,243,255,0.3) 2px, transparent 2px) 100% 0,
    linear-gradient(to left, rgba(0,243,255,0.3) 2px, transparent 2px) 100% 100%,
    linear-gradient(to top, rgba(0,243,255,0.3) 2px, transparent 2px) 100% 100%,
    linear-gradient(to right, rgba(0,243,255,0.3) 2px, transparent 2px) 0 100%,
    linear-gradient(to top, rgba(0,243,255,0.3) 2px, transparent 2px) 0 100%;
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

.hud-corner {
  position: absolute;
  color: rgba(0, 243, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.hud-tl { top: 20px; left: 20px; }
.hud-tr { top: 20px; right: 20px; text-align: right; }
.hud-bl { bottom: 20px; left: 20px; }
.hud-br { bottom: 20px; right: 20px; text-align: right; }

.hud-bar {
  width: 100px; height: 4px;
  background: var(--neon-blue);
  margin-top: 5px;
  box-shadow: 0 0 10px var(--neon-blue);
}

.radar-circle {
  width: 40px; height: 40px;
  border: 1px solid rgba(0, 243, 255, 0.4);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

.radar-circle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%; width: 50%; height: 2px;
  background: var(--neon-blue);
  transform-origin: 0 50%;
  animation: radarSpin 2s linear infinite;
}

/* CRT Scanlines Overlay */
#splash-screen::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 5;
}

@keyframes energyFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes radarSpin {
  to { transform: rotate(360deg); }
}

@keyframes hologram-jitter {
  0% { transform: skewX(0deg); filter: blur(0px); }
  5% { transform: skewX(2deg); filter: blur(1px); }
  6% { transform: skewX(0deg); filter: blur(0px); }
  90% { transform: skewX(0deg); }
  95% { transform: skewX(-1deg); opacity: 0.8; }
  100% { transform: skewX(0deg); opacity: 1; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; box-shadow: 0 0 20px rgba(0, 243, 255, 0.1); }
  50% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 35px rgba(0, 243, 255, 0.3); }
}

/* Holographic Optical Panels */
.glass {
  background: rgba(10, 15, 30, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 243, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.05);
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0 10px, 10px 0, 
    100% 0, 100% calc(100% - 10px), 
    calc(100% - 10px) 100%, 0 100%
  );
  
  /* Micro-grid Texture */
  background-image: 
    linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* L-Shaped Tech Corners */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    linear-gradient(to right, #00f3ff 2px, transparent 2px) 0 0,
    linear-gradient(to bottom, #00f3ff 2px, transparent 2px) 0 0,
    linear-gradient(to left, #00f3ff 2px, transparent 2px) 100% 0,
    linear-gradient(to bottom, #00f3ff 2px, transparent 2px) 100% 0,
    linear-gradient(to left, #00f3ff 2px, transparent 2px) 100% 100%,
    linear-gradient(to top, #00f3ff 2px, transparent 2px) 100% 100%,
    linear-gradient(to right, #00f3ff 2px, transparent 2px) 0 100%,
    linear-gradient(to top, #00f3ff 2px, transparent 2px) 0 100%;
  background-size: 15px 15px;
  background-repeat: no-repeat;
  opacity: 0.8;
  filter: drop-shadow(0 0 2px #00f3ff);
}

.glass:hover::after {
  opacity: 1;
  box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.1);
}

/* Scan Sweep */
.glass::before {
  content: "";
  position: absolute;
  top: -100%; left: 0; width: 100%; height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(0, 243, 255, 0.2), transparent);
  transition: top 0s;
}

.glass:hover::before {
  top: 150%;
  transition: top 1s ease-in-out;
}

.depth-card {
  transition: all 0.3s;
}

.depth-card:hover {
  border-color: rgba(0, 243, 255, 0.8);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
  transform: translateY(-5px);
}

.depth-card:hover::before {
  transform: translateX(50%) translateY(50%) rotate(45deg);
  transition: transform 0.8s;
}

/* Floating Capsule Navbar */
.navbar {
  background: rgba(10, 20, 40, 0.8) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 50px;
  top: 20px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  left: 0; right: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 1000;
}

.navbar-brand {
  color: #fff !important;
  text-shadow: 0 0 10px var(--neon-blue);
  font-weight: 700;
}

.nav-link {
  color: var(--text-muted) !important;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-blue) !important;
  text-shadow: 0 0 8px var(--neon-blue);
}

/* Hero Section - Floating & Open */
.hero-box {
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: visible; /* Allow 3D elements to float visually */
}

/* Remove the pulsing background container since we have global 3D */
.hero-box::after {
  display: none;
}

/* Liquid Metal Title */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: transparent;
  text-transform: uppercase;
  position: relative;
  letter-spacing: 4px;
  
  /* Liquid Metal Gradient */
  background: linear-gradient(120deg, #888 0%, #fff 40%, #888 60%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shineMetal 4s linear infinite;
  
  /* Atmospheric Glow */
  filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.5));
}

.hero-title::before {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, #00f3ff, #9d00ff);
  -webkit-background-clip: text;
  color: transparent;
  filter: blur(20px);
  opacity: 0.6;
  z-index: -1;
}

@keyframes shineMetal {
  to { background-position: 200% center; }
}

@keyframes textShine {
  to { background-position: 200% center; }
}

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

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 700px;
  border-left: 3px solid var(--neon-purple);
  padding-left: 20px;
}

/* Sci-Fi Energy Buttons */
.btn-cyber, .btn-primary {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 170, 0, 0.1));
  color: var(--neon-gold);
  border: 1px solid var(--neon-gold);
  padding: 12px 30px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 2px;
  transition: all 0.3s;
  /* Angled Cut Corners */
  clip-path: polygon(
    10px 0, 100% 0, 
    100% calc(100% - 10px), calc(100% - 10px) 100%, 
    0 100%, 0 10px
  );
  border-radius: 0;
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.1);
  backdrop-filter: blur(5px);
}

.btn-cyber::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.btn-cyber:hover, .btn-primary:hover {
  background: var(--neon-gold);
  color: #000;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  border-color: var(--neon-gold);
}

.btn-cyber:hover::before {
  transform: translateX(100%);
}

.btn-cyber-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cyber-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-success {
  background: var(--neon-green);
  color: #000;
  border: 1px solid var(--neon-green);
  font-weight: 700;
}
.btn-success:hover {
  background: #fff;
  box-shadow: 0 0 20px var(--neon-green);
}

.btn-outline-primary {
  color: var(--neon-blue);
  border-color: var(--neon-blue);
}
.btn-outline-primary:hover {
  background: var(--neon-blue);
  color: #000;
}

.btn-outline-danger {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}
.btn-outline-danger:hover {
  background: var(--neon-pink);
  color: #000;
}

.btn-cyber-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-cyber-secondary:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

/* Cards (Dark Mode) */
.card {
  background-color: var(--bg-panel);
  border: 1px solid rgba(0, 243, 255, 0.2);
  backdrop-filter: blur(5px);
  color: var(--text-main);
}

.card-header {
  background-color: rgba(0, 243, 255, 0.05);
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.card-footer {
  background-color: rgba(0, 243, 255, 0.05);
  border-top: 1px solid rgba(0, 243, 255, 0.2);
}

.card-title, .card-text {
  color: var(--text-main);
}

/* Form Controls (Dark Mode) */
.form-control, .form-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: #fff;
  border-radius: 2px;
}

.form-control:focus, .form-select:focus {
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Tables (Dark Mode) */
.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(0, 243, 255, 0.1);
  color: #fff !important; /* Force white text for readability */
  border-color: rgba(0, 243, 255, 0.15);
  background: transparent;
}

.table td, .table th {
  color: #fff !important; /* Ensure child cells are also white */
}

.table thead th {
  background: rgba(0, 243, 255, 0.05);
  color: var(--neon-blue);
  border-bottom: 2px solid var(--neon-blue);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  border-top: none;
}

.table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background: rgba(0, 243, 255, 0.08);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--neon-blue);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  --bs-table-accent-bg: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

/* Modals (Cyberpunk) */
.modal-content {
  background: #050508;
  border: 1px solid var(--neon-blue);
  border-radius: 0;
  box-shadow: 0 0 40px rgba(0, 243, 255, 0.15);
}

.modal-header {
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  background: rgba(0, 243, 255, 0.05);
}

.modal-title {
  color: var(--neon-blue);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.modal-footer {
  border-top: 1px solid rgba(0, 243, 255, 0.2);
}

.btn-close {
  filter: invert(1) drop-shadow(0 0 2px var(--neon-blue));
  opacity: 1;
}

/* Glitch Animation */
@keyframes glitch {
  0% { text-shadow: 3px 3px 0px var(--neon-pink), -3px -3px 0px var(--neon-blue); transform: skew(0deg); }
  2% { text-shadow: -3px 3px 0px var(--neon-pink), 3px -3px 0px var(--neon-blue); transform: skew(-0.5deg); }
  4% { text-shadow: 3px -3px 0px var(--neon-pink), -3px 3px 0px var(--neon-blue); transform: skew(0.5deg); }
  6% { text-shadow: none; transform: skew(0deg); }
  100% { text-shadow: none; transform: skew(0deg); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* University Grid */
.uni-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.uni-item {
  background: rgba(10, 20, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #aaa;
  border-radius: 4px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.uni-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, transparent, rgba(0, 243, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
}

.uni-item:hover {
  color: #fff;
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
  transform: translateY(-2px);
}

.uni-item:hover::before {
  opacity: 1;
}

.uni-item:hover::before {
  opacity: 1;
}

/* Section Headers */
.section-kicker {
  color: var(--neon-purple);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.section-title {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Stats (Enhanced) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.stat-glow {
  padding: 40px 20px;
  text-align: center;
  border-radius: 0;
  background: transparent; /* Remove box background */
  border: none; /* Remove border */
  transition: all 0.3s;
  position: relative;
  overflow: visible;
}

/* Holographic Projector Base */
.stat-glow::after {
  content: "";
  position: absolute;
  bottom: -20px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 60px;
  /* Light Beam */
  background: conic-gradient(from 180deg at 50% 100%, transparent 40%, rgba(0, 243, 255, 0.15) 50%, transparent 60%);
  filter: blur(5px);
  pointer-events: none;
  z-index: -1;
  animation: beamPulse 3s infinite alternate;
}

/* Base Ring */
.stat-glow::before {
  content: "";
  position: absolute;
  bottom: -20px; left: 50%; transform: translateX(-50%) rotateX(70deg);
  width: 80px; height: 80px;
  border: 2px dashed rgba(0, 243, 255, 0.3);
  border-radius: 50%;
  animation: spinBase 10s linear infinite;
}

@keyframes beamPulse {
  from { opacity: 0.5; height: 60px; }
  to { opacity: 0.8; height: 80px; }
}

@keyframes spinBase {
  from { transform: translateX(-50%) rotateX(60deg) rotate(0deg); }
  to { transform: translateX(-50%) rotateX(60deg) rotate(360deg); }
}

.stat-glow::before {
  display: none;
}

.stat-glow:hover {
  transform: translateY(-10px);
}

.stat-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 5rem;
  font-weight: 700;
  font-family: "Rajdhani", sans-serif;
  line-height: 1;
  color: rgba(0, 243, 255, 0.9);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 30px rgba(0, 243, 255, 0.3);
  position: relative;
  /* Holographic Flicker */
  animation: holoFlicker 3s infinite alternate;
}

/* Remove old underline */
.stat-value::after { display: none; }

@keyframes holoFlicker {
  0%, 100% { opacity: 1; filter: blur(0px); }
  50% { opacity: 0.85; filter: blur(0.5px); }
  52% { opacity: 0.4; filter: blur(0px); } /* Glitch frame */
  54% { opacity: 0.85; filter: blur(0.5px); }
}

/* Footer */
.footer-bar {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #555;
}

/* Digital Space-Time Warp Animations */

/* 1. Digital Breakdown (Splash Exit) */
.digital-breakdown {
  pointer-events: none;
}

.digital-breakdown .splash-content {
  animation: glitch-out 1s forwards cubic-bezier(0.7, 0, 0.3, 1);
}

@keyframes glitch-out {
  0% {
    opacity: 1;
    transform: scale(1);
    clip-path: inset(0 0 0 0);
  }
  20% {
    clip-path: inset(20% -6px 80% 0);
    transform: translate(-10px, 5px) skew(10deg);
    filter: hue-rotate(90deg) brightness(2);
  }
  40% {
    clip-path: inset(60% 0 10% -6px);
    transform: translate(15px, -10px) scale(1.1);
    filter: hue-rotate(-90deg) contrast(2);
  }
  60% {
    clip-path: inset(10% 0 70% 0);
    transform: translate(-5px, 10px) skew(-15deg);
    opacity: 0.8;
  }
  80% {
    clip-path: inset(40% -10px 30% 0);
    transform: scale(1.5) translate(20px, 0);
    filter: blur(5px);
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: scale(2) translate(0, 0);
    filter: blur(20px);
    clip-path: inset(50% 0 50% 0);
  }
}

/* 2. Hologram Materialize (Main Content Entrance) */
#main-content.hologram-materialize {
  visibility: visible !important;
  display: block !important;
  opacity: 1 !important;
}

/* Ensure ALL direct sections and specific elements within materialize correctly */
#main-content.hologram-materialize section,
#main-content.hologram-materialize .hero-box,
#main-content.hologram-materialize .glass,
#main-content.hologram-materialize footer,
#main-content.hologram-materialize .navbar {
  animation: cyber-in 1.2s both cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cyber-in {
  0% {
    opacity: 0;
    transform: perspective(1000px) translateZ(-500px) scale(0.8) rotateX(20deg);
    filter: blur(20px) brightness(2) hue-rotate(180deg);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) translateZ(0) scale(1) rotateX(0deg);
    filter: blur(0px) brightness(1) hue-rotate(0deg);
  }
}

/* Staggered Delays */
.hologram-materialize .navbar { animation-delay: 0.1s; }
.hologram-materialize .hero-title { animation-delay: 0.2s; }
.hologram-materialize .hero-subtitle { animation-delay: 0.3s; }
.hologram-materialize .btn-cyber { animation-delay: 0.4s; }
.hologram-materialize .hero-values { animation-delay: 0.5s; }
.hologram-materialize .glass:nth-child(1) { animation-delay: 0.6s; }
.hologram-materialize .glass:nth-child(2) { animation-delay: 0.7s; }
.hologram-materialize .glass:nth-child(3) { animation-delay: 0.8s; }
.hologram-materialize footer { animation-delay: 1s; }

/* 3. Text Decoding Styles */
.hero-title.decoding {
  color: var(--neon-blue) !important;
  text-shadow: 0 0 15px var(--neon-blue);
  font-family: var(--font-mono);
}

.hero-title.decoding::after {
  content: "_";
  animation: blink 0.2s infinite;
}

/* Data Fragments Animation */
.data-fragments::before {
  content: "01010110 10101101 01110010 11001010 00101011 11101010";
  position: absolute;
  color: var(--neon-blue);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
  animation: data-scroll 2s linear infinite;
}

@keyframes data-scroll {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

/* Materialize Scanning Effect */
.hologram-materialize::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 243, 255, 0.2), transparent);
  height: 20%;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
  animation: scan-beam 1.5s forwards ease-out;
}

@keyframes scan-beam {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(500%); opacity: 0; }
}
