/* ================================================================
   REDBIRD SECURITY — main.css
   ================================================================ */

:root {
  --red: #e01010;
  --red-bright: #ff2222;
  --red-dim: #7a0808;
  --red-glow: rgba(224,16,16,0.35);
  --bg: #060608;
  --bg2: #0c0c10;
  --bg3: #111118;
  --surface: #13131a;
  --border: #1e1e2e;
  --text: #c8c8d8;
  --text-muted: #5a5a7a;
  --mono: 'Share Tech Mono', monospace;
  --display: 'Orbitron', sans-serif;
  --body: 'Rajdhani', sans-serif;
}

[data-theme="light"] {
  --bg: #f5f4f2;
  --bg2: #eeecea;
  --bg3: #e8e6e3;
  --surface: #ffffff;
  --border: #d8d4ce;
  --text: #1a1a22;
  --text-muted: #888080;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  overflow-x: hidden;
  cursor: crosshair;
  transition: background 0.3s, color 0.3s;
}

/* ── SCANLINES ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

[data-theme="light"] body::before { opacity: 0.04; }

/* ── CANVAS MATRIX ── */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

/* ── PRELOADER ── */
#preloader {
  position: fixed;
  inset: 0;
  background: #060608;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transition: opacity 0.6s ease;
}

#preloader.fade-out { opacity: 0; pointer-events: none; }

.preloader-logo svg {
  width: 80px; height: 80px;
  filter: drop-shadow(0 0 20px rgba(224,16,16,0.8));
  animation: pulse-glow 1.2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(224,16,16,0.8)); }
  50% { filter: drop-shadow(0 0 50px rgba(224,16,16,1)) drop-shadow(0 0 80px rgba(224,16,16,0.5)); }
}

.preloader-terminal {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 2.2;
  width: 420px;
  max-width: 90vw;
}

.preloader-line {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.preloader-line.visible { opacity: 1; transform: translateX(0); }
.preloader-line.ok { color: #4ade80; }
.preloader-line.warn { color: #f59e0b; }
.preloader-line.cmd { color: #c8c8d8; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 3rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(6,6,8,0.98) 0%, rgba(6,6,8,0) 100%);
  border-bottom: 1px solid rgba(224,16,16,0.12);
  transition: all 0.35s ease;
}

nav.scrolled {
  backdrop-filter: blur(16px);
  background: rgba(6,6,8,0.95);
  height: 52px;
  border-bottom-color: rgba(224,16,16,0.25);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo svg { width: 36px; height: 36px; }

.nav-brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.15em;
}

.nav-brand span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a::before { content: '// '; color: var(--red-dim); }
.nav-links a:hover,
.nav-links a.active { color: var(--red-bright); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.nav-cta:hover { background: var(--red); color: #fff; box-shadow: 0 0 24px var(--red-glow); }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  line-height: 1;
}

.theme-toggle:hover { border-color: var(--red); color: var(--red); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

/* Mobile overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #060608;
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.open { transform: translateY(0); }

.mobile-menu-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.mobile-menu-close:hover { color: var(--red); }

.mobile-menu a {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.5rem 1.5rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.mobile-menu a:hover { border-left-color: var(--red); color: #fff; }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 3rem;
  overflow: hidden;
  z-index: 1;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(224,16,16,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,16,16,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,16,16,0.12) 0%, transparent 70%);
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
  z-index: 2;
}

/* Threat ticker */
.threat-ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.threat-dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1s step-end infinite;
  flex-shrink: 0;
}

.threat-count {
  color: var(--text-muted);
  transition: color 0.15s;
}

.threat-count.flash { color: var(--red-bright); }

.hero-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-tag::before { content: ''; display: block; width: 32px; height: 1px; background: var(--red); }

.hero-tag-blink {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.2s step-end infinite;
}

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

.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-title .red { color: var(--red); }

.glitch { position: relative; display: inline-block; }

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  color: var(--red);
}

.glitch::before {
  animation: glitch-1 3.5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translateX(-3px);
  opacity: 0.8;
}

.glitch::after {
  animation: glitch-2 3.5s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translateX(3px);
  color: #fff;
  opacity: 0.6;
}

@keyframes glitch-1 {
  0%, 92%, 100% { transform: translateX(-3px); opacity: 0; }
  93% { transform: translateX(-8px) skewX(-5deg); opacity: 0.8; }
  95% { transform: translateX(4px); opacity: 0.6; }
  97% { transform: translateX(-3px); opacity: 0; }
}

@keyframes glitch-2 {
  0%, 92%, 100% { transform: translateX(3px); opacity: 0; }
  94% { transform: translateX(8px) skewX(5deg); opacity: 0.7; }
  96% { transform: translateX(-4px); opacity: 0.5; }
  98% { transform: translateX(3px); opacity: 0; }
}

.hero-subtitle {
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}

.hero-subtitle .cursor {
  display: inline-block;
  width: 9px; height: 1.1em;
  background: var(--red);
  vertical-align: text-bottom;
  animation: blink 0.9s step-end infinite;
}

.hero-desc {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-actions { display: flex; gap: 1.2rem; align-items: center; }

.btn-primary {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 14px 32px;
  background: var(--red);
  color: #fff;
  border: none;
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover { box-shadow: 0 0 40px var(--red-glow), 0 0 80px var(--red-glow); }
.btn-primary:hover::before { left: 100%; }

.btn-secondary {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.25s;
  cursor: pointer;
}

.btn-secondary:hover { border-color: var(--red); color: var(--red); }

.btn-outline {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 14px 32px;
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.25s;
  cursor: pointer;
}

.btn-outline:hover { background: rgba(224,16,16,0.08); box-shadow: 0 0 20px var(--red-glow); }

/* ── HERO BIRD ── */
.hero-bird {
  position: absolute;
  right: 4%; top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 35vw, 500px);
  opacity: 0.9;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 60px rgba(224,16,16,0.5));
  z-index: 2;
  will-change: transform;
  transition: transform 0.08s linear;
}

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

/* ── STATS BAR ── */
.stats-bar {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-top: 1px solid rgba(224,16,16,0.15);
  border-bottom: 1px solid rgba(224,16,16,0.15);
  padding: 2rem 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--red);
  display: block;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 4px;
}

/* ── SECTION COMMONS ── */
section { position: relative; z-index: 1; }

.section-header { text-align: center; margin-bottom: 4rem; }

.section-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--red);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #fff;
  letter-spacing: 0.02em;
}

[data-theme="light"] .section-title { color: #1a1a22; }

.section-title .accent { color: var(--red); }

.section-line {
  width: 60px; height: 2px;
  background: var(--red);
  margin: 1.5rem auto 0;
}

/* ── SERVICES ── */
#services { padding: 7rem 3rem; background: var(--bg2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  max-width: 1200px;
  margin: 0 auto;
  border: 1.5px solid rgba(224,16,16,0.08);
}

.service-card {
  background: var(--surface);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s;
  border: 1.5px solid transparent;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.service-card:hover {
  background: #161620;
  border-color: rgba(224,16,16,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(224,16,16,0.06);
}

.service-card:hover::before { transform: scaleX(1); }

/* Scanline sweep */
.service-card .scanline {
  position: absolute;
  top: -2px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #e01010, transparent);
  pointer-events: none;
  opacity: 0;
}

.service-card.scanning .scanline {
  animation: scan-sweep 0.55s ease-out forwards;
}

@keyframes scan-sweep {
  0%   { top: -2px; opacity: 0.9; }
  100% { top: 102%; opacity: 0; }
}

.service-icon { width: 52px; height: 52px; margin-bottom: 1.5rem; color: var(--red); }

.service-num {
  position: absolute;
  top: 2rem; right: 2rem;
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(224,16,16,0.06);
  line-height: 1;
  user-select: none;
}

.service-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

[data-theme="light"] .service-title { color: #1a1a22; }

.service-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.5rem; }

.tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 3px 10px;
  background: rgba(224,16,16,0.08);
  border: 1px solid rgba(224,16,16,0.2);
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── ABOUT / TERMINAL ── */
#about {
  padding: 7rem 3rem;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-text .section-header { text-align: left; }
.about-text .section-line { margin: 1.5rem 0 0; }

.about-text p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
  margin-top: 1.5rem;
}

.about-text p strong { color: #fff; font-weight: 600; }
[data-theme="light"] .about-text p strong { color: #1a1a22; }

.about-list {
  margin-top: 2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-list li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-list li::before { content: '▸'; color: var(--red); }

/* Terminal — always dark */
.terminal-window {
  background: #0a0a0f;
  border: 1px solid rgba(224,16,16,0.2);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(224,16,16,0.06);
}

.terminal-bar {
  background: #111118;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(224,16,16,0.12);
}

.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red { background: var(--red); }
.t-dot.yellow { background: #f59e0b; }
.t-dot.green { background: #10b981; }

.terminal-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #5a5a7a;
  margin-left: auto;
  letter-spacing: 0.1em;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 2;
  color: #c8c8d8;
}

.t-prompt { color: var(--red); }
.t-cmd { color: #fff; }
.t-out { color: #4ade80; }
.t-warn { color: #f59e0b; }
.t-dim { color: #5a5a7a; }
.t-blank { display: block; height: 0.5rem; }

.terminal-cursor {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: var(--red);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

/* ── APPROACH ── */
#approach { padding: 7rem 3rem; background: var(--bg2); }
.approach-wrapper { max-width: 1200px; margin: 0 auto; }

.approach-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 4rem;
  position: relative;
}

.approach-steps::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-dim), var(--red), var(--red-dim), transparent);
}

.step { text-align: center; padding: 0 1rem; position: relative; }

.step-bubble {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.step:hover .step-bubble { background: var(--red); color: #fff; box-shadow: 0 0 30px var(--red-glow); }

.step-title {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

[data-theme="light"] .step-title { color: #1a1a22; }

.step-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ── CLIENT PORTAL TEASER ── */
#portal {
  padding: 5rem 3rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.portal-card {
  background: #0a0a0f;
  border: 1px solid rgba(224,16,16,0.2);
  max-width: 700px;
  margin: 0 auto;
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.portal-lock-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(3);
  opacity: 0.03;
  pointer-events: none;
  color: var(--red);
}

.portal-lock-bg svg { width: 120px; height: 120px; }

.portal-subtitle {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 1.5rem 0 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.portal-pills {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.portal-pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 8px 18px;
  background: rgba(224,16,16,0.06);
  border: 1px solid rgba(224,16,16,0.2);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.portal-footer-note {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 1rem;
  opacity: 0.7;
}

/* ── CERTIFICATIONS ── */
#certs {
  padding: 4rem 3rem;
  background: var(--surface);
  border-top: 1px solid rgba(224,16,16,0.1);
  border-bottom: 1px solid rgba(224,16,16,0.1);
}

.certs-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
}

.certs-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.certs-track {
  display: flex;
  gap: 3rem;
  animation: scroll-certs 20s linear infinite;
  white-space: nowrap;
}

@keyframes scroll-certs {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cert-item {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 8px 20px;
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all 0.3s;
}

.cert-item:hover { border-color: var(--red); color: var(--red); }

/* ── CONTACT ── */
#contact { padding: 7rem 3rem; background: var(--bg); }

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

[data-theme="light"] .contact-info h3 { color: #1a1a22; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.contact-item-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(224,16,16,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}

.contact-item-text {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-item-text strong { color: var(--text); display: block; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-field { display: flex; flex-direction: column; gap: 6px; position: relative; }

.form-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.form-input, .form-textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.25s;
  resize: none;
  width: 100%;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(224,16,16,0.08);
}

.form-input.error { border-color: var(--red); animation: field-shake 0.4s ease; }

@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.form-error {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--red);
  margin-top: 2px;
  display: none;
}

.form-error.visible { display: block; }

.form-textarea { min-height: 100px; }

.form-success {
  background: var(--surface);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 2.2;
  display: none;
}

.form-success.visible { display: block; }
.form-success .s-ok { color: #4ade80; }
.form-success .s-arrow { color: var(--text-muted); }
.form-success a { color: var(--red); cursor: pointer; text-decoration: underline; }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid rgba(224,16,16,0.12);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.15em;
}

[data-theme="light"] .footer-logo { color: #1a1a22; }
.footer-logo svg { width: 28px; height: 28px; }
.footer-logo span { color: var(--red); }

.footer-copy {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.footer-links { display: flex; gap: 1.5rem; list-style: none; }

.footer-links a {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--red); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-dim); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,16,16,0.3), transparent);
}

.section-inner { max-width: 1200px; margin: 0 auto; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links, .nav-cta, .theme-toggle { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }

  #hero { padding: 0 1.5rem; padding-top: 80px; }
  .hero-bird { display: none; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }

  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 1.5rem; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:last-child, .stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  #services { padding: 4rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }

  #about { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem; }

  .approach-steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .approach-steps::before { display: none; }

  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }

  footer { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { justify-content: center; }

  .portal-pills { flex-direction: column; align-items: center; }
}
