/* ============================================================
    NEO THEME / CYBERPUNK STYLES
============================================================ */
:root {
  --bg-0: #000000;
  --bg-1: #03080A;
  --bg-2: #051014;
  --panel: rgba(5, 12, 18, 0.65);
  --line: rgba(79, 216, 255, 0.28);
  --line-strong: rgba(79, 216, 255, 0.6);
  --blue-600: #0A6E8C;
  --blue-500: #0FA6D6;
  --blue-400: #4FE0FF;
  --cyan-400: #7CFBFF;
  --ink-000: #EAFFFF;
  --ink-100: #D6FBFF;
  --ink-300: #8FDDE8;
  --ink-500: #4A8792;
  --ok: #33D687;
  --warn: #FFB545;
  --crit: #FF5468;
  --radius: 8px; /* Neumorphic softening */
  --grid-size: 42px;
  --font-head: 'Chakra Petch', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --transition-theme: 480ms cubic-bezier(.22, .61, .36, 1);
  --glass-border: 1px solid rgba(79, 216, 255, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(12px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-0);
  background-image: url('assets/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--ink-100);
  font-family: var(--font-body);
  line-height: 1.55;
  transition: background var(--transition-theme), color var(--transition-theme);
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  opacity: 0;
}
.fade-in-up-active {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
  color: var(--ink-000);
  text-shadow: 0 0 10px rgba(79, 216, 255, 0.4);
}

.mono { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Matrix Background Canvas */
#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
      rgba(79, 216, 255, 0.035) 0px,
      rgba(79, 216, 255, 0.035) 1px,
      transparent 1px,
      transparent 3px);
  opacity: 1;
}

/* Glassmorphism / Neo Frame */
.frame {
  position: relative;
  border: var(--glass-border);
  background: var(--panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.frame:hover {
  border-color: rgba(79, 216, 255, 0.4);
  box-shadow: 0 0 20px rgba(79, 216, 255, 0.15);
}

/* ============================================================
    NAV
============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: var(--glass-border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-000);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(79, 216, 255, 0.5);
}

.logo img {
  height: 65px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--ink-300);
  font-weight: 500;
  transition: color 200ms ease, text-shadow 200ms ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--blue-400);
  text-shadow: 0 0 10px rgba(79, 216, 255, 0.8);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: var(--blue-400);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--blue-400);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-window-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(0,0,0,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.2);
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.4);
}
.nav-window-btn:hover {
  transform: scale(1.15);
  color: rgba(0,0,0,0.9);
}

.nav-cta {
  padding: 8px 16px;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--blue-400);
  border-radius: 4px;
  cursor: pointer;
  background: rgba(79, 216, 255, 0.05);
  color: var(--blue-400);
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 216, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-solid {
  background: var(--blue-500);
  color: #000;
  border-color: var(--blue-400);
  box-shadow: 0 0 15px rgba(79, 216, 255, 0.4);
}

.btn-solid:hover {
  background: var(--blue-400);
  color: #000;
  box-shadow: 0 0 25px rgba(79, 216, 255, 0.7);
  transform: translateY(-2px);
}

.btn-ghost:hover {
  background: rgba(79, 216, 255, 0.15);
  color: var(--ink-000);
  transform: translateY(-2px);
}

/* ============================================================
    HERO SECTION
============================================================ */
.hero {
  position: relative;
  z-index: 2;
  padding: 20px 0 90px;
  min-height: auto;
  display: flex;
  align-items: flex-start;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: flex-start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-400);
  border: 1px solid rgba(79, 216, 255, 0.3);
  background: rgba(79, 216, 255, 0.05);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(79, 216, 255, 0.1);
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--blue-400);
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 8px var(--blue-400);
}

.dot.pulse {
  animation: pulse 1.8s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.1;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--blue-400);
  text-shadow: 0 0 20px rgba(79, 216, 255, 0.6);
}

.hero p.lead {
  font-size: 18px;
  color: var(--ink-100);
  max-width: 55ch;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-300);
}

.hero-meta b {
  display: block;
  color: var(--blue-400);
  font-size: 24px;
  font-family: var(--font-head);
  text-shadow: 0 0 10px rgba(79, 216, 255, 0.3);
}

/* ============================================================
    TERMINAL (Draggable & Glassmorphic)
============================================================ */
.terminal {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(79, 216, 255, 0.3);
  background: rgba(2, 6, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(79, 216, 255, 0.1);
  transition: box-shadow 0.3s ease;
}

.terminal:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(79, 216, 255, 0.2);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(79, 216, 255, 0.05);
  border-bottom: 1px solid rgba(79, 216, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-400);
  cursor: grab;
}

.terminal-bar:active {
  cursor: grabbing;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-500);
}
.terminal-dot:nth-child(1) { background: #FF5F56; }
.terminal-dot:nth-child(2) { background: #FFBD2E; }
.terminal-dot:nth-child(3) { background: #27C93F; }

.terminal-body {
  padding: 20px 20px 26px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink-300);
  min-height: 450px;
  max-height: 550px;
  overflow-y: auto;
}

.terminal-body.idle-state {
  cursor: pointer;
}

.terminal-line { margin: 0 0 10px; white-space: pre-wrap; }
.terminal-line.path, .terminal-line .path { color: var(--blue-400); }
.terminal-line.ok, .terminal-line .ok { color: var(--ok); text-shadow: 0 0 8px rgba(51, 214, 135, 0.5); }
.terminal-line.warn, .terminal-line .warn { color: var(--warn); text-shadow: 0 0 8px rgba(255, 181, 69, 0.5); }
.terminal-line.crit, .terminal-line .crit { color: var(--crit); text-shadow: 0 0 8px rgba(255, 84, 104, 0.5); }
.terminal-line.white-bold { color: var(--blue-400); font-weight: bold; }
.terminal-line.green { color: #44ff44; font-weight: bold; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--blue-400);
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 8px var(--blue-400);
}

@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
    SECTIONS & CARDS
============================================================ */
section {
  position: relative;
  z-index: 2;
  padding: 40px 0;
}

.sect-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 50px;
  border-bottom: 1px solid rgba(79, 216, 255, 0.2);
  padding-bottom: 24px;
  flex-wrap: wrap;
}

.sect-head h2 { font-size: clamp(30px, 4vw, 42px); max-width: 20ch; text-transform: uppercase;}
.sect-head p { color: var(--ink-300); max-width: 45ch; font-size: 16px; margin: 12px 0 0; }
.sect-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-400);
  border: 1px solid var(--blue-400);
  padding: 8px 16px;
  background: rgba(79, 216, 255, 0.05);
  border-radius: 4px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svc-card {
  background: rgba(2, 6, 12, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 216, 255, 0.15);
  padding: 35px 30px;
  border-radius: 12px;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.svc-card p {
  flex-grow: 1;
  margin-bottom: 0;
}

.svc-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 216, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(79, 216, 255, 0.1);
  background: rgba(10, 20, 30, 0.7);
}

.svc-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-400);
  margin-bottom: 18px;
  display: inline-block;
  padding: 4px 10px;
  background: rgba(79, 216, 255, 0.1);
  border-radius: 4px;
}

.svc-card h3 { font-size: 22px; margin-bottom: 12px; }
.svc-card p { font-size: 14.5px; color: var(--ink-300); margin: 0; line-height: 1.6;}

/* Training rows */
.train-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 24px; 
}
.train-card {
  background: rgba(2, 6, 12, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 216, 255, 0.15);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.train-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 216, 255, 0.1), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}
.train-card:hover::before { left: 150%; }
.train-card:hover {
  border-color: rgba(79, 216, 255, 0.8);
  box-shadow: 0 10px 30px rgba(79, 216, 255, 0.15), 0 0 15px rgba(79, 216, 255, 0.2) inset;
  transform: translateY(-8px) scale(1.02);
}

.train-icon { font-size: 28px; color: var(--blue-400); margin-bottom: 5px; align-self: center; }
.train-card h3 { font-size: 22px; margin-bottom: 0px; }
.train-card p { font-size: 14.5px; color: var(--ink-300); margin: 0; flex-grow: 1; line-height: 1.5; }
.train-meta { font-family: var(--font-mono); font-size: 13px; color: var(--blue-400); background: rgba(79, 216, 255, 0.1); padding: 4px 10px; border-radius: 4px; display: inline-block; align-self: flex-start; }
.train-cta {
  margin-top: auto;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #000;
  background: var(--blue-400);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.train-cta:hover { background: var(--blue-500); box-shadow: 0 0 15px rgba(79, 216, 255, 0.5); }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.social-card {
  padding: 24px;
  border: 1px solid var(--border-300);
  background: var(--ink-500);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--ink-000);
}
.social-card:hover {
  border-color: var(--blue-400);
  background: var(--ink-400);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.social-card .icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.social-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--blue-400);
  margin: 0;
}
.social-card p {
  font-size: 14px;
  color: var(--ink-300);
  margin: 0;
  line-height: 1.5;
}
.stat-card {
  background: rgba(2, 6, 12, 0.6);
  border: 1px solid rgba(79, 216, 255, 0.15);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); border-color: rgba(79, 216, 255, 0.5); }
.stat-card b { display: block; font-family: var(--font-head); font-size: 42px; color: var(--blue-400); margin-bottom: 10px; text-shadow: 0 0 15px rgba(79, 216, 255, 0.4); }
.stat-card span { font-size: 14px; color: var(--ink-100); text-transform: uppercase; font-family: var(--font-mono); letter-spacing: 1px;}

/* Blog Grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card {
  border-radius: 12px;
  border: 1px solid rgba(79, 216, 255, 0.15);
  background: rgba(2, 6, 12, 0.6);
  backdrop-filter: blur(10px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 216, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(79, 216, 255, 0.2);
}
.blog-thumb {
  height: 180px;
  background: linear-gradient(135deg, rgba(79,216,255,0.1), rgba(0,0,0,0.8));
  border-bottom: 1px solid rgba(79, 216, 255, 0.15);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-thumb::before {
  content: attr(data-glyph);
  font-family: var(--font-mono);
  font-size: 70px;
  color: rgba(79, 216, 255, 0.2);
}
.blog-card:hover .blog-thumb::before {
  color: rgba(79, 216, 255, 0.5);
  text-shadow: 0 0 20px rgba(79, 216, 255, 0.5);
}
.blog-body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-cat { font-family: var(--font-mono); font-size: 11px; color: var(--blue-400); margin-bottom: 12px; }
.blog-body h3 { font-size: 20px; margin-bottom: 12px; line-height: 1.3; color: var(--ink-000);}
.blog-body p { font-size: 14px; color: var(--ink-300); margin-bottom: 24px; flex-grow: 1; }
.blog-foot { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); border-top: 1px solid rgba(79,216,255,0.1); padding-top: 15px;}
.blog-card:hover .blog-foot span:last-child { color: var(--blue-400); }

/* CTA Panel */
.cta-panel {
  padding: 60px;
  text-align: center;
  background: linear-gradient(135deg, rgba(2, 6, 12, 0.8), rgba(10, 20, 30, 0.9));
  border: 1px solid rgba(79, 216, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(79, 216, 255, 0.15);
}
.cta-panel h2 { font-size: 36px; margin-bottom: 16px; }
.cta-panel p { font-size: 18px; color: var(--ink-100); max-width: 600px; margin: 0 auto 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* Footer */
footer {
  border-top: 1px solid rgba(79, 216, 255, 0.2);
  padding: 40px 0 20px;
  background: rgba(0,0,0,0.8);
  position: relative;
  z-index: 2;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.foot-col h4 { font-size: 14px; color: var(--blue-400); margin-bottom: 12px; font-family: var(--font-mono); letter-spacing: 1px;}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.nav-links li {
  position: relative;
}

.nav-links a, .dropbtn {
  color: var(--ink-100);
  text-decoration: none;
  font-size: 15px;
  font-family: var(--font-mono);
  transition: color 0.3s;
  cursor: pointer;
}

.mobile-menu-toggle {
  display: none;
}

.nav-links a:hover, .dropbtn:hover {
  color: var(--blue-400);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(2, 6, 12, 0.95);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
  border: 1px solid rgba(79, 216, 255, 0.2);
  border-radius: 4px;
  z-index: 1000;
  padding: 10px 0;
  backdrop-filter: blur(10px);
}

.dropdown-content a {
  color: var(--ink-100);
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: rgba(79, 216, 255, 0.1);
  color: var(--blue-400);
}

.dropdown:hover .dropdown-content {
  display: block;
}
.foot-col a { color: var(--ink-300); text-decoration: none; font-size: 14.5px; transition: color 0.3s; }
.foot-col a:hover { color: var(--blue-400); }
.foot-col p { color: var(--ink-300); font-size: 14.5px; max-width: 300px; line-height: 1.6;}
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 30px; border-top: 1px solid rgba(79,216,255,0.1);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-500);
}
#mode-status { color: var(--blue-400); }

/* Responsive */
@media(max-width: 900px) {
  .train-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .train-cta { justify-self: start; align-self: stretch; text-align: center; }
}
@media(max-width: 600px) {
  .svc-grid, .blog-grid, .stats-grid, .foot-grid { grid-template-columns: 1fr; }
  .nav-cta, .toggle-wrap { display: none; }
  .nav-row { height: 80px; padding: 0 16px; justify-content: space-between; position: relative; }
  .mobile-menu-toggle { display: block; background: transparent; border: 1px solid rgba(79, 216, 255, 0.28); color: var(--ink-100); font-size: 24px; cursor: pointer; padding: 6px 10px; border-radius: 4px; }
  .nav-links { display: none; position: absolute; top: 80px; left: 0; width: 100%; flex-direction: column; background: var(--bg-1); border-bottom: 1px solid rgba(79, 216, 255, 0.28); padding: 20px; z-index: 999; text-align: center; gap: 20px; }
  .nav-links.nav-active { display: flex !important; }
  .nav-links a, .dropbtn { font-size: 18px; }
  .dropdown-content { position: static; display: none; background: transparent; border: none; box-shadow: none; min-width: auto; margin-top: 10px; }
  .dropdown:hover .dropdown-content { display: flex; flex-direction: column; gap: 10px; }
  .hero h1 { font-size: 32px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .foot-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* ============================================================
    AUTH POPUPS (HackerTyper)
============================================================ */
.auth-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  padding: 20px 40px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 50px rgba(0,0,0,0.8);
}

.auth-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.auth-denied {
  background: rgba(200, 10, 10, 0.9);
  border: 2px solid #ff4444;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.auth-granted {
  background: rgba(10, 150, 10, 0.9);
  border: 2px solid #44ff44;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.blink-fast {
  animation: blinkFast 0.3s infinite alternate;
}

@keyframes blinkFast {
  0% { opacity: 0.2; box-shadow: 0 0 10px rgba(0,255,0,0.2); }
  100% { opacity: 1; box-shadow: 0 0 40px rgba(0,255,0,0.8); }
}

/* ============================================================
    LEAD BOX
============================================================ */
.lead-box {
  background: rgba(79, 216, 255, 0.05);
  border-left: 4px solid var(--blue-400);
  padding: 16px 20px;
  font-size: 16px;
  color: var(--ink-100);
  margin-top: 15px;
  margin-bottom: 30px;
  max-width: 55ch;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}

/* ============================================================
    TERMINAL OVERLAY (SKULL)
============================================================ */
.terminal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 5, 10, 0.95);
  z-index: 50;
  display: none; /* Changed from flex to none */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  color: var(--blue-400);
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.skull-banner {
  font-size: 10px;
  line-height: 1.1;
  white-space: pre;
  color: var(--crit);
  text-shadow: 0 0 10px var(--crit);
  margin-bottom: 20px;
}

.slogan {
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.hack-msg {
  font-size: 14px;
  color: var(--ink-100);
  margin-bottom: 30px;
}

.hack-input-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.hack-input {
  background: transparent !important;
  background-color: transparent !important;
  border: none;
  border-bottom: 1px solid var(--blue-400);
  color: var(--blue-400) !important;
  font-family: var(--font-mono);
  font-size: 16px;
  outline: none;
  width: 200px;
  padding: 5px;
  -webkit-appearance: none;
  border-radius: 0;
}

.hack-input:-webkit-autofill,
.hack-input:-webkit-autofill:hover, 
.hack-input:-webkit-autofill:focus, 
.hack-input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px rgba(0, 5, 10, 0.95) inset !important;
    -webkit-text-fill-color: var(--blue-400) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.hack-input:focus {
  border-bottom-color: var(--warn);
  box-shadow: 0 5px 10px rgba(255, 170, 0, 0.2);
}
