/* ====================================================================
   CYBER CORE DESIGN SYSTEM - TOKENS & FOUNDATIONS
   Theme: Pure Cybersecurity / Cyber / Futuristic Technology
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;0,800;1,400&family=Orbitron:wght@500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Dark Purple Palette */
  --bg-void: #150524;
  --bg-darker: #0d0218;
  --bg-surface: #1f0b33;
  --bg-surface-elevated: #281042;
  --bg-panel: rgba(31, 11, 51, 0.88);
  --bg-panel-solid: #1c092d;
  --bg-glass: rgba(35, 14, 56, 0.88);
  --bg-soft: rgba(214, 5, 48, 0.06);

  /* Primary Cherry Red Accents */
  --hz-green: #ff1a4a;
  --cyan-primary: #d60530;
  --cyan-dim: rgba(214, 5, 48, 0.16);
  --cyan-glow: 0 0 20px rgba(214, 5, 48, 0.45), 0 0 44px rgba(255, 26, 74, 0.2);
  --cyan-glow-subtle: 0 0 12px rgba(214, 5, 48, 0.25);

  /* Secondary Lighter Red Accents */
  --green-cyber: #ff4066;
  --green-dim: rgba(255, 64, 102, 0.15);
  --green-glow: 0 0 20px rgba(255, 64, 102, 0.5), 0 0 40px rgba(255, 26, 74, 0.2);

  /* Alert / Contrast Accents */
  --amber-alert: #ffcf73;
  --amber-dim: rgba(255, 207, 115, 0.16);
  --crimson-crit: #ff0033;
  --crimson-dim: rgba(255, 0, 51, 0.2);
  --purple-quantum: #9d4edd;

  /* Typography Colors */
  --text-pure: #ffffff;
  --text-primary: #ffe6eb;
  --text-secondary: #ffb3c6;
  --text-muted: #c48b99;
  --text-cyan: #ff1a4a;
  --text-green: #ff1a4a;

  /* Borders & Dividers */
  --border-subtle: rgba(214, 5, 48, 0.2);
  --border-active: rgba(214, 5, 48, 0.7);
  --border-green: rgba(255, 64, 102, 0.45);
  --border-dim: rgba(255, 255, 255, 0.08);

  /* Fonts */
  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-body: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-standard: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-width: 1370px;
  --header-height: 90px;
  --hud-radius: 4px;
}

/* ====================================================================
   GLOBAL RESET & BASELINE
   ==================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-void);
  color: var(--text-primary);
  background-image:
    radial-gradient(ellipse at 12% 12%, rgba(214, 5, 48, 0.32) 0%, transparent 37%),
    radial-gradient(ellipse at 88% 4%, rgba(157, 78, 221, 0.4) 0%, transparent 34%),
    radial-gradient(ellipse at 74% 85%, rgba(255, 0, 51, 0.14) 0%, transparent 40%),
    linear-gradient(128deg, #100318 0%, #190526 46%, #0a0112 100%);
  background-attachment: fixed;
  background-size: 130% 130%, 120% 120%, 125% 125%, 100% 100%;
  animation: redWallpaperDrift 22s ease-in-out infinite alternate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(118deg, rgba(214, 5, 48, 0.05) 0 1px, transparent 1px 68px),
    linear-gradient(180deg, rgba(255, 235, 245, 0.035), transparent 19%, transparent 80%, rgba(157, 78, 221, 0.08));
  background-size: 140% 100%, 100% 100%;
  animation: redWallpaperSweep 16s linear infinite;
  z-index: 0;
}

body>header,
body>main,
body>footer {
  position: relative;
  z-index: 2;
}

@keyframes redWallpaperDrift {
  0% {
    background-position: 0% 0%, 100% 0%, 70% 100%, 0 0;
  }

  100% {
    background-position: 14% 18%, 84% 15%, 48% 72%, 0 0;
  }
}

@keyframes redWallpaperSweep {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 180px 0, 0 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ====================================================================
   CYBER MATRIX GRID & SCANLINE OVERLAY
   ==================================================================== */

.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 99, 116, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 99, 116, 0.06) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.3) 80%);
  animation: redGridFlow 24s linear infinite;
}

.cyber-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(rgba(255, 96, 110, 0) 50%,
      rgba(30, 0, 5, 0.28) 50%);
  background-size: 100% 4px;
  opacity: 0.45;
}

@keyframes redGridFlow {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 160px 80px;
  }
}

.crimson-live-wallpaper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

/* ====================================================================
   CONTAINERS & TYPOGRAPHY
   ==================================================================== */

.cyber-container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

h1,
h2,
h3,
h4,
.cyber-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-pure);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.3;
}

h4 {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
}

.mono {
  font-family: var(--font-mono);
}

/* Text glow utilities */
.glow-cyan {
  color: var(--cyan-primary);
  text-shadow: 0 0 16px rgba(214, 5, 48, 0.6);
}

.glow-green {
  color: var(--green-cyber);
  text-shadow: 0 0 16px rgba(255, 64, 102, 0.6);
}

.text-gradient-cyber {
  background: linear-gradient(135deg, #ffffff 30%, var(--cyan-primary) 70%, var(--green-cyber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ====================================================================
   SECTION HEADINGS & TERMINAL PROMPTS
   ==================================================================== */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-primary);
  background: rgba(214, 5, 48, 0.08);
  padding: 8px 14px;
  border: 1px solid rgba(214, 5, 48, 0.2);
  border-left: 3px solid var(--cyan-primary);
  margin-bottom: 16px;
  position: relative;
  border-radius: 0 8px 8px 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.section-tag.tag-green {
  color: var(--green-cyber);
  background: var(--green-dim);
  border-left-color: var(--green-cyber);
}

.section-tag::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--cyan-primary);
  border-right: 2px solid var(--cyan-primary);
}

.section-heading-wrap {
  margin-bottom: 48px;
  position: relative;
}

.section-heading-wrap .subtitle {
  max-width: 680px;
  margin-top: 12px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ====================================================================
   CYBER PANEL & HUD FRAMES (ANGLED CUT CORNERS)
   ==================================================================== */

.cyber-panel {
  background: linear-gradient(180deg, rgba(11, 20, 33, 0.9), rgba(11, 20, 33, 0.72));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: border-color var(--transition-standard), box-shadow var(--transition-standard), transform var(--transition-standard);
  clip-path: polygon(0 0,
      calc(100% - 16px) 0,
      100% 16px,
      100% 100%,
      16px 100%,
      0 calc(100% - 16px));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.cyber-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--cyan-primary);
  border-right: 2px solid var(--cyan-primary);
  pointer-events: none;
}

.cyber-panel::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-bottom: 2px solid var(--cyan-primary);
  border-left: 2px solid var(--cyan-primary);
  pointer-events: none;
}

.cyber-panel:hover {
  border-color: var(--border-active);
  box-shadow: 0 8px 32px rgba(214, 5, 48, 0.08);
}

/* Cyber Box with Four Corner Accents */
.cyber-card {
  background: var(--bg-surface);
  border: 1px solid rgba(214, 5, 48, 0.12);
  padding: 32px 28px;
  position: relative;
  transition: all var(--transition-standard);
  display: flex;
  flex-direction: column;
}

.cyber-card::before,
.cyber-card::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  transition: all var(--transition-standard);
}

.cyber-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cyan-primary);
  border-left: 2px solid var(--cyan-primary);
}

.cyber-card::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--cyan-primary);
  border-right: 2px solid var(--cyan-primary);
}

.cyber-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 5, 48, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(214, 5, 48, 0.15);
}

.cyber-card:hover::before,
.cyber-card:hover::after {
  width: 16px;
  height: 16px;
  border-color: var(--green-cyber);
}

/* ====================================================================
   BUTTONS & CYBER INTERACTIVE CONTROLS
   ==================================================================== */

.cyber-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 14px 28px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-standard);
  border: 1px solid var(--cyan-primary);
  background: var(--cyan-dim);
  color: var(--cyan-primary);
  clip-path: polygon(10px 0%,
      100% 0%,
      100% calc(100% - 10px),
      calc(100% - 10px) 100%,
      0% 100%,
      0% 10px);
}

.cyber-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(214, 5, 48, 0.35),
      transparent);
  transition: left 0.5s ease;
}

.cyber-btn:hover {
  background: var(--cyan-primary);
  color: var(--bg-void);
  box-shadow: var(--cyan-glow);
  transform: translateY(-2px);
}

.cyber-btn:hover::before {
  left: 100%;
}

.cyber-btn.btn-primary {
  background: var(--cyan-primary);
  color: var(--bg-void);
  border-color: var(--cyan-primary);
  font-weight: 800;
  box-shadow: 0 0 15px rgba(214, 5, 48, 0.35);
}

.cyber-btn.btn-primary:hover {
  background: #38f8ff;
  box-shadow: var(--cyan-glow);
}

.cyber-btn.btn-green {
  background: var(--green-dim);
  color: var(--green-cyber);
  border-color: var(--green-cyber);
}

.cyber-btn.btn-green:hover {
  background: var(--green-cyber);
  color: var(--bg-void);
  box-shadow: var(--green-glow);
}

.cyber-btn.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-active);
}

.cyber-btn.btn-outline:hover {
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  background: var(--cyan-dim);
}

.cyber-btn.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

/* ====================================================================
   STATUS INDICATORS & BEACONS
   ==================================================================== */

.status-beacon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.status-dot.green {
  background-color: var(--green-cyber);
  box-shadow: 0 0 10px var(--green-cyber);
}

.status-dot.green::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--green-cyber);
  animation: cyberPulse 2s infinite ease-out;
}

.status-dot.cyan {
  background-color: var(--cyan-primary);
  box-shadow: 0 0 10px var(--cyan-primary);
}

.status-dot.cyan::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--cyan-primary);
  animation: cyberPulse 2s infinite ease-out;
}

.status-dot.amber {
  background-color: var(--amber-alert);
  box-shadow: 0 0 10px var(--amber-alert);
}

.status-dot.crimson {
  background-color: var(--crimson-crit);
  box-shadow: 0 0 10px var(--crimson-crit);
}

@keyframes cyberPulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ====================================================================
   TAGS, CHIPS & BADGES
   ==================================================================== */

.cyber-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cyan-primary);
  background: rgba(214, 5, 48, 0.08);
  border: 1px solid rgba(214, 5, 48, 0.2);
  border-radius: 2px;
  white-space: nowrap;
}

.cyber-tag.tag-alt {
  color: var(--green-cyber);
  background: rgba(255, 64, 102, 0.08);
  border-color: rgba(255, 64, 102, 0.2);
}

.cyber-tag.tag-alert {
  color: var(--amber-alert);
  background: rgba(255, 184, 0, 0.08);
  border-color: rgba(255, 184, 0, 0.25);
}

/* ====================================================================
   CUSTOM SCROLLBAR
   ==================================================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-void);
  border-left: 1px solid var(--border-dim);
}

::-webkit-scrollbar-thumb {
  background: #14233c;
  border-radius: 2px;
  border: 1px solid rgba(214, 5, 48, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-primary);
  box-shadow: 0 0 10px var(--cyan-primary);
}