/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #030014;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

::selection {
  background: rgba(236, 72, 153, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #030014;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0ea5e9, #ec4899);
  border-radius: 3px;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== NAV LINKS ===== */
.nav-link {
  position: relative;
  padding: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.nav-link-text {
  position: relative;
  z-index: 1;
}

.nav-link-line {
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, #0ea5e9, #ec4899);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.nav-link:hover .nav-link-line {
  transform: scaleX(1);
}

.nav-link:hover {
  color: #ffffff;
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* ===== NAVBAR SCROLL ===== */
#navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

#navbar.scrolled {
  background: rgba(3, 0, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* ===== BUTTON GLOW ===== */
.btn-glow {
  position: relative;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  background: inherit;
  border-radius: inherit;
  filter: blur(20px);
  opacity: 0.4;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
  opacity: 0.6;
}

/* ===== SCAN LINE ===== */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.4), rgba(236, 72, 153, 0.4), transparent);
  animation: scan 6s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { top: 0%; opacity: 0; }
  5% { opacity: 1; }
  50% { opacity: 0.3; }
  95% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===== HUD PANELS ===== */
.hud-panel {
  position: absolute;
  min-width: 130px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  animation: float-Gentle 8s ease-in-out infinite;
}

.hud-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-bottom: 6px;
}

.hud-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: rgba(255, 255, 255, 0.2);
}

.hud-tl {
  top: 0; left: 0;
  border-top: 1px solid;
  border-left: 1px solid;
}

.hud-tr {
  top: 0; right: 0;
  border-top: 1px solid;
  border-right: 1px solid;
}

.hud-bl {
  bottom: 0; left: 0;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.hud-br {
  bottom: 0; right: 0;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

/* ===== FORGE CARD CORNERS ===== */
.forge-card {
  position: relative;
}

.forge-card-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.forge-card-tl {
  top: 0; left: 0;
  border-top: 1px solid rgba(14, 165, 233, 0.3);
  border-left: 1px solid rgba(14, 165, 233, 0.3);
}

.forge-card-tr {
  top: 0; right: 0;
  border-top: 1px solid rgba(236, 72, 153, 0.3);
  border-right: 1px solid rgba(236, 72, 153, 0.3);
}

.forge-card-bl {
  bottom: 0; left: 0;
  border-bottom: 1px solid rgba(236, 72, 153, 0.3);
  border-left: 1px solid rgba(236, 72, 153, 0.3);
}

.forge-card-br {
  bottom: 0; right: 0;
  border-bottom: 1px solid rgba(14, 165, 233, 0.3);
  border-right: 1px solid rgba(14, 165, 233, 0.3);
}

/* ===== PROGRESS BARS ===== */
.progress-bar {
  width: 0%;
  transition: width 1.5s ease-out;
}

/* ===== FLOATING ANIMATIONS ===== */
@keyframes float-Gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FADE UP ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HEX OVERLAY ===== */
.hex-overlay {
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.02) 1px, transparent 0);
  background-size: 40px 40px;
}

/* ===== AMBIENT GLOW ORBS ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.orb-sapphire {
  width: 500px;
  height: 500px;
  top: 10%;
  right: -10%;
  background: rgba(14, 165, 233, 0.12);
  animation: orbFloat 15s ease-in-out infinite;
}

.orb-magenta {
  width: 400px;
  height: 400px;
  top: 50%;
  left: -10%;
  background: rgba(236, 72, 153, 0.1);
  animation: orbFloat 20s ease-in-out infinite reverse;
}

.orb-violet {
  width: 350px;
  height: 350px;
  bottom: 10%;
  right: 20%;
  background: rgba(139, 92, 246, 0.08);
  animation: orbFloat 18s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 15px) scale(0.9); }
}

/* ===== CYBER INPUT ===== */
.cyber-input:focus {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.1), inset 0 0 20px rgba(14, 165, 233, 0.05);
}

.cyber-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* ===== LAB CARD HOVER ===== */
.lab-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(236, 72, 153, 0.1);
}

/* ===== PROGRAM CARD HOVER ===== */
.program-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(14, 165, 233, 0.1);
}

/* ===== FORGE CARD HOVER ===== */
.forge-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(14, 165, 233, 0.08);
}

/* ===== PARTICLE ===== */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hud-panel {
    display: none !important;
  }
}