/* ============================================
   BASE.CSS — Shared Variables, Reset, Components
   IT Security & Outsourcing — Dark Tech Theme
   Import on EVERY page before page-specific CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (single source of truth)
   ============================================ */
:root {
  /* --- Background layers --- */
  --color-bg-primary:    #0a0a0c;
  --color-bg-secondary:  #0d0d12;
  --color-bg-tertiary:   #111118;
  --color-bg-card:       rgba(255, 255, 255, 0.03);
  --color-bg-card-hover: rgba(255, 255, 255, 0.06);

  /* --- Accent: cold neon blue (IT / infrastructure) --- */
  --color-blue:          #00d4ff;
  --color-blue-dim:      rgba(0, 212, 255, 0.12);
  --color-blue-border:   rgba(0, 212, 255, 0.25);
  --color-blue-glow:     rgba(0, 212, 255, 0.40);
  --color-blue-glow-lg:  0 0 30px rgba(0, 212, 255, 0.50), 0 0 60px rgba(0, 212, 255, 0.20);

  /* --- Accent: acid green (security / threat) --- */
  --color-green:         #39ff14;
  --color-green-dim:     rgba(57, 255, 20, 0.10);
  --color-green-border:  rgba(57, 255, 20, 0.22);
  --color-green-glow:    0 0 20px rgba(57, 255, 20, 0.30), 0 0 40px rgba(57, 255, 20, 0.12);

  /* --- Text hierarchy --- */
  --color-text-primary:   #e8e8f0;
  --color-text-secondary: #8888a8;
  --color-text-muted:     #555570;

  /* --- Borders --- */
  --color-border:        rgba(255, 255, 255, 0.07);
  --color-border-bright: rgba(255, 255, 255, 0.14);

  /* --- Shadows --- */
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg:    0 12px 40px rgba(0, 0, 0, 0.6);

  /* --- Glows (box-shadow values) --- */
  --glow-blue:    0 0 20px rgba(0, 212, 255, 0.30), 0 0 40px rgba(0, 212, 255, 0.10);
  --glow-green:   0 0 20px rgba(57, 255, 20, 0.25), 0 0 40px rgba(57, 255, 20, 0.10);

  /* --- Typography --- */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Size scale (rem, base 16px) */
  --text-xs:   0.70rem;   /* 11px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  2rem;      /* 32px */
  --text-3xl:  2.5rem;    /* 40px */
  --text-4xl:  3.5rem;    /* 56px */
  --text-5xl:  4.5rem;    /* 72px */

  /* Weights */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Leading */
  --leading-tight:   1.10;
  --leading-snug:    1.30;
  --leading-normal:  1.55;
  --leading-relaxed: 1.75;

  /* --- Spacing scale (multiples of 4px) --- */
  --sp-1:  0.25rem;   /* 4  */
  --sp-2:  0.50rem;   /* 8  */
  --sp-3:  0.75rem;   /* 12 */
  --sp-4:  1.00rem;   /* 16 */
  --sp-5:  1.25rem;   /* 20 */
  --sp-6:  1.50rem;   /* 24 */
  --sp-8:  2.00rem;   /* 32 */
  --sp-10: 2.50rem;   /* 40 */
  --sp-12: 3.00rem;   /* 48 */
  --sp-16: 4.00rem;   /* 64 */
  --sp-20: 5.00rem;   /* 80 */
  --sp-24: 6.00rem;   /* 96 */
  --sp-32: 8.00rem;   /* 128*/

  /* --- Layout --- */
  --container-max:  1280px;
  --container-pad:  var(--sp-6);
  --section-pad:    var(--sp-24);

  /* --- Radius --- */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 24px;

  /* --- Motion --- */
  --ease-fast:   150ms ease;
  --ease-base:   300ms ease;
  --ease-slow:   500ms ease;
  --ease-cubic:  400ms cubic-bezier(0.23, 1, 0.32, 1);

  /* --- Z-index layers --- */
  --z-base:    1;
  --z-overlay: 50;
  --z-nav:     100;
  --z-modal:   200;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: var(--fw-bold); line-height: var(--leading-tight); }
p { color: var(--color-text-secondary); line-height: var(--leading-relaxed); }

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.mono       { font-family: var(--font-mono); }
.text-blue  { color: var(--color-blue); }
.text-green { color: var(--color-green); }
.text-muted { color: var(--color-text-muted); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--sp-5);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-blue));
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-text-primary);
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  max-width: 540px;
  line-height: var(--leading-relaxed);
}

/* Gradient text helper */
.gradient-text {
  background: linear-gradient(135deg, var(--color-blue) 0%, #7c5cff 55%, var(--color-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   BADGE COMPONENT
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-sm);
  border: 1px solid;
}
.badge--blue  { color: var(--color-blue);  border-color: var(--color-blue-border);  background: var(--color-blue-dim); }
.badge--green { color: var(--color-green); border-color: var(--color-green-border); background: var(--color-green-dim);}

/* ============================================
   BUTTON COMPONENT
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all var(--ease-base);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Shimmer on hover for all buttons */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.07) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn:hover::after { transform: translateX(100%); }

.btn--primary {
  background: var(--color-blue);
  color: var(--color-bg-primary);
  border-color: var(--color-blue);
}
.btn--primary:hover {
  box-shadow: var(--color-blue-glow-lg);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-bright);
}
.btn--ghost:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.btn--outline-green {
  background: transparent;
  color: var(--color-green);
  border-color: var(--color-green-border);
}
.btn--outline-green:hover {
  box-shadow: var(--glow-green);
  background: var(--color-green-dim);
}

.btn--lg {
  font-size: var(--text-base);
  padding: var(--sp-4) var(--sp-8);
}
.btn--sm {
  font-size: var(--text-xs);
  padding: var(--sp-2) var(--sp-4);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: var(--z-nav);
  padding-block: var(--sp-5);
  transition: padding var(--ease-base), background var(--ease-base), border-color var(--ease-base), box-shadow var(--ease-base);
}
.nav.scrolled {
  padding-block: var(--sp-3);
  background: rgba(10, 10, 12, 0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4),
              0 1px 0 rgba(0, 212, 255, 0.18);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  transition: color var(--ease-fast);
  flex-shrink: 0;
}
.nav__logo-mark {
  width: 34px;
  height: 34px;
  background: var(--color-blue);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-primary);
  font-size: var(--text-sm);
  box-shadow: var(--glow-blue);
  flex-shrink: 0;
}
.nav__logo-img {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav__logo:hover { color: var(--color-blue); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex: 1;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  transition: color var(--ease-fast);
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--color-blue);
  transition: width var(--ease-base);
}
.nav__link:hover,
.nav__link.active { color: var(--color-text-primary); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

/* NAV DROPDOWN */
.nav__item { position: relative; list-style: none; }

.nav__link--btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}
.nav__dropdown-caret {
  width: 10px;
  height: 10px;
  transition: transform 0.2s var(--ease-fast);
  flex-shrink: 0;
}
.nav__item.is-open .nav__dropdown-caret { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 270px;
  background: #111114;
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-fast), transform 0.18s var(--ease-fast), visibility 0.18s;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.nav__item.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-link {
  display: block;
  padding: 8px var(--sp-3);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  border-radius: var(--r-md);
  transition: background var(--ease-fast), color var(--ease-fast);
  white-space: nowrap;
}
.nav__dropdown-link:hover,
.nav__dropdown-link.active {
  background: rgba(0,212,255,0.08);
  color: var(--color-text-primary);
}
.nav__dropdown-sep {
  height: 1px;
  background: var(--color-border);
  margin: var(--sp-2) var(--sp-3);
}

/* Sidebar link variant */
.sidebar-nav__link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-radius: var(--r-md);
  transition: background var(--ease-fast), color var(--ease-fast);
  cursor: pointer;
}
.sidebar-nav__link:hover,
.sidebar-nav__link.is-active {
  background: rgba(0,212,255,0.07);
  color: var(--color-text-primary);
}
.sidebar-nav__link.is-active { color: var(--color-blue); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* Burger — hidden on desktop */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  cursor: pointer;
}
.nav__burger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text-primary);
  transition: all var(--ease-base);
  transform-origin: center;
}

/* Mobile overlay */
.nav__mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
}
.nav__mobile-overlay.open { display: flex; }
.nav__mobile-link {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  transition: color var(--ease-fast);
}
.nav__mobile-link:hover { color: var(--color-blue); }
.nav__mobile-close {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--ease-fast);
}
.nav__mobile-close:hover { color: var(--color-blue); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  padding-block: var(--sp-16) var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 280px;
  line-height: var(--leading-relaxed);
  margin-top: var(--sp-4);
}

.footer__col-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--ease-fast);
}
.footer__link:hover { color: var(--color-blue); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-green);
}
.footer__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  animation: blink-dot 2s ease-in-out infinite;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms cubic-bezier(0.23, 1, 0.32, 1),
              transform 700ms cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }
.reveal-delay-4 { transition-delay: 360ms; }
.reveal-delay-5 { transition-delay: 450ms; }

/* Clip-path reveal variant — wipes up from bottom */
.reveal-clip {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  transition: opacity 700ms cubic-bezier(0.23, 1, 0.32, 1),
              clip-path 700ms cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-clip.visible {
  opacity: 1;
  clip-path: inset(0% 0 0 0);
}

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: var(--glow-blue); }
  50%       { box-shadow: var(--color-blue-glow-lg); }
}
@keyframes scan-line {
  0%   { top: -2px; }
  100% { top: 100%; }
}
@keyframes float-up-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE BREAKPOINTS — shared
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --container-pad: var(--sp-5);
    --section-pad:   var(--sp-16);
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: var(--sp-4);
    --section-pad:   var(--sp-12);
  }

  .nav__links,
  .nav__actions { display: none; }
  .nav__burger  { display: flex; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer__grid   { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ============================================
   @PROPERTY — animatable CSS custom properties
   ============================================ */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ============================================
   PAGE TRANSITION
   ============================================ */
@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body { animation: page-fade-in 600ms ease both; }

/* ============================================
   FILM GRAIN TEXTURE
   ============================================ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
#scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-blue) 0%, #7c5cff 50%, var(--color-green) 100%);
  z-index: 99999;
  pointer-events: none;
}

/* ============================================
   TYPEWRITER CURSOR
   ============================================ */
.type-cursor {
  display: inline-block;
  color: var(--color-blue);
  margin-left: 1px;
  animation: type-blink 0.8s step-start infinite;
}
@keyframes type-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================
   ANIMATED GRADIENT BORDER
   ============================================ */
@keyframes border-rotate {
  to { --border-angle: 360deg; }
}

@keyframes cta-border-glow {
  0%, 100% {
    border-color: rgba(0, 212, 255, 0.28);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.07), inset 0 0 50px rgba(0, 212, 255, 0.025);
  }
  50% {
    border-color: rgba(124, 92, 255, 0.38);
    box-shadow: 0 0 50px rgba(124, 92, 255, 0.09), inset 0 0 50px rgba(124, 92, 255, 0.03);
  }
}

/* ============================================
   TOUCH RIPPLE — mobile tap feedback
   ============================================ */
.touch-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.2);
  pointer-events: none;
  z-index: 0;
  animation: touch-ripple-expand 0.55s ease-out forwards;
}
@keyframes touch-ripple-expand {
  from { opacity: 1; transform: scale(0); }
  to   { opacity: 0; transform: scale(1); }
}
@media (hover: none) {
  .btn,
  .svc-card,
  .info-card,
  .metric-card { overflow: hidden; }

  body { animation: none; opacity: 1; }
  body::after { display: none; }
}

/* ============================================
   TERMINAL TRIGGER BUTTON
   ============================================ */
.term-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8900;
  width: 44px;
  height: 44px;
  background: rgba(4, 13, 4, 0.85);
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: 6px;
  color: rgba(57, 255, 20, 0.7);
  font-family: 'JetBrains Mono', 'Cascadia Code', monospace;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.term-trigger:hover {
  border-color: rgba(57, 255, 20, 0.6);
  color: rgba(57, 255, 20, 1);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.15);
}
.term-trigger:focus-visible {
  outline: 2px solid rgba(57, 255, 20, 0.5);
  outline-offset: 2px;
}

/* ============================================
   TERMINAL EASTER EGG
   ============================================ */
.terminal-wrap {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.terminal-wrap.is-open {
  opacity: 1;
  pointer-events: auto;
}
.terminal {
  width: 100%;
  max-width: 800px;
  height: 400px;
  display: flex;
  flex-direction: column;
  background: #040d04;
  border: 1px solid rgba(57, 255, 20, 0.18);
  border-bottom: none;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.65;
}
.terminal__bar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 14px;
  background: #08130a;
  border-bottom: 1px solid rgba(57, 255, 20, 0.12);
  font-size: 11px;
  color: rgba(57, 255, 20, 0.4);
}
.terminal__hint { color: rgba(255, 255, 255, 0.18); }
.terminal__output {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(57, 255, 20, 0.15) transparent;
}
.terminal__line { white-space: pre; font-size: 13px; }
.terminal__line--system { color: rgba(0, 212, 255, 0.7); }
.terminal__line--result { color: rgba(57, 255, 20, 0.85); }
.terminal__line--error  { color: rgba(255, 70,  70,  0.9); }
.terminal__line--cmd    { color: rgba(255, 255, 255, 0.4); margin-top: 6px; }
.terminal__row {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid rgba(57, 255, 20, 0.1);
}
.terminal__prompt { color: rgba(57, 255, 20, 0.5); white-space: nowrap; }
.terminal__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: rgba(57, 255, 20, 0.9);
  font: inherit;
  caret-color: rgba(57, 255, 20, 0.9);
}
@media (max-width: 600px) {
  .terminal { height: 340px; font-size: 12px; }
  .terminal__line { font-size: 12px; }
  .terminal__hint { display: none; }
}

/* ============================================
   KONAMI CODE — Matrix rain + toast
   ============================================ */
.matrix-rain {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none;
}
.konami-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  padding: 28px 48px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(57, 255, 20, 0.35);
  color: rgba(57, 255, 20, 0.95);
  font-family: 'JetBrains Mono', 'Cascadia Code', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.konami-toast small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(57, 255, 20, 0.45);
}
.konami-toast.is-visible { opacity: 1; }