/* =============================================================
   MM SEC — Main Stylesheet
   Version: 1.0.0
   Description: Cybersecurity website styles for MM SEC
   ============================================================= */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --bg:       #000000;
  --surface:  #0b0b0b;
  --surface2: #111111;
  --border:   #1a1a1a;
  --border2:  #222222;
  --red:      #D62828;
  --deep-red: #B22222;
  --red-glow: #FF3B3B;
  --text:     #E6E6E6;
  --muted:    #AAAAAA;
  --mono:    'Share Tech Mono', monospace;
  --head:    'Orbitron', sans-serif;
  --body:    'Exo 2', sans-serif;
  --nav-h:    64px;
}

/* ── REDUCED MOTION ────────────────────────────────────────── */
/* Must be first — later rules may selectively override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:       0.001ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:      0.001ms !important;
    scroll-behavior:          auto    !important;
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background:  var(--bg);
  color:       var(--text);
  font-family: var(--body);
  overflow-x:  hidden;
  line-height: 1.6;
}

/* ── FOCUS RING ─────────────────────────────────────────────── */
:focus-visible {
  outline:        2px solid var(--red);
  outline-offset: 3px;
}

/* ── SKIP LINK ──────────────────────────────────────────────── */
/* Uses !important so the reduced-motion override does NOT suppress it
   (a skip link that never appears is unusable) */
.skip-link {
  position:      fixed;
  top:           -100%;
  left:          12px;
  z-index:       9999;
  background:    var(--red);
  color:         #fff;
  padding:       8px 18px;
  font-family:   var(--mono);
  font-size:     13px;
  border-radius: 0 0 4px 4px;
  transition:    top 0.2s !important;
  text-decoration: none;
  white-space:   nowrap;
}
.skip-link:focus { top: 0; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* =============================================================
   NAVBAR
   ============================================================= */
#navbar {
  position:         fixed;
  top: 0; left: 0; right: 0;
  z-index:          1000;
  padding:          0 48px;
  height:           var(--nav-h);
  display:          flex;
  align-items:      center;
  justify-content:  space-between;
  background:       transparent;
  border-bottom:    1px solid transparent;
  will-change:      background, border-color;
  transition:       background 0.4s, border-color 0.4s;
}

#navbar.scrolled {
  background:        rgba(0,0,0,0.92);
  border-color:      var(--border);
  backdrop-filter:   blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  font-family:    var(--head);
  font-size:      22px;
  font-weight:    700;
  color:          var(--red);
  letter-spacing: 0.18em;
  cursor:         pointer;
  text-decoration: none;
  user-select:    none;
  display:        inline-block;
  min-width:      5ch;
}

.nav-links { display: flex; gap: 36px; list-style: none; }

.nav-links a {
  font-family:    var(--mono);
  font-size:      13px;
  color:          var(--muted);
  text-decoration: none;
  letter-spacing: 0.12em;
  transition:     color 0.25s;
  position:       relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content:    '';
  position:   absolute;
  bottom: 0; left: 0;
  width:      0;
  height:     1px;
  background: var(--red);
  transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active            { color: var(--red); }
.nav-links a:hover::after,
.nav-links a.active::after     { width: 100%; }

/* ── Hamburger ──────────────────────────────────────────────── */
.hamburger {
  display:         none;
  flex-direction:  column;
  gap:             5px;
  cursor:          pointer;
  padding:         8px;
  background:      none;
  border:          none;
  min-width:       44px;
  min-height:      44px;
  align-items:     center;
  justify-content: center;
}
.hamburger span {
  display:          block;
  width:            24px;
  height:           2px;
  background:       var(--red);
  transition:       transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ────────────────────────────────────────────── */
.mobile-menu {
  position:        fixed;
  top:             var(--nav-h);
  left: 0; right:  0;
  background:      rgba(0,0,0,0.97);
  border-bottom:   1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding:         24px 32px;
  z-index:         999;
  display:         flex;
  flex-direction:  column;
  visibility:      hidden;
  opacity:         0;
  transform:       translateY(-10px);
  pointer-events:  none;
  transition:      opacity 0.3s, transform 0.3s, visibility 0s linear 0.3s;
}
.mobile-menu.open {
  visibility:     visible;
  opacity:        1;
  transform:      translateY(0);
  pointer-events: auto;
  transition:     opacity 0.3s, transform 0.3s;
}
.mobile-menu a {
  font-family:    var(--mono);
  font-size:      15px;
  color:          var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  padding:        14px 0;
  border-bottom:  1px solid var(--border);
  transition:     color 0.2s;
  min-height:     44px;
  display:        flex;
  align-items:    center;
}
.mobile-menu a:hover,
.mobile-menu a:focus-visible { color: var(--red); }
.mobile-menu a:last-child    { border-bottom: none; }

/* =============================================================
   HERO SECTION
   ============================================================= */
#home {
  position:        relative;
  height:          100vh;
  height:          100dvh;
  min-height:      600px;
  overflow:        hidden;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  padding-top:     var(--nav-h);
}

.hero-slider { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
  position:            absolute;
  inset:               0;
  background-size:     cover;
  background-position: center;
  opacity:             0;
  transition:          opacity 0.8s ease-in-out;
}
.hero-slide.active { opacity: 1; }

/* Photo slides: fallback bg colour while image loads */
.hero-slide--photo {
  background-color:    #0a0202;
  background-repeat:   no-repeat;
  background-size:     cover;
  background-position: center;
}

/* Hero stats: prevent overlap with content on very short viewports */
@media (max-width: 768px) and (max-height: 700px) {
  .hero-stats {
    position:        static;
    transform:       none;
    left:            auto;
    margin-top:      24px;
    flex-direction:  row;
    flex-wrap:       wrap;
    justify-content: center;
  }
  .stat-card { min-width: 120px; }
  #home {
    justify-content: flex-start;
    padding-top:     calc(var(--nav-h) + 24px);
    padding-bottom:  24px;
    height:          auto;
    min-height:      100dvh;
  }
}

.hero-overlay {
  position:       absolute;
  inset:          0;
  background:     linear-gradient(
    180deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.45) 40%,
    rgba(0,0,0,0.55) 70%,
    rgba(0,0,0,0.82) 100%
  );
  z-index:        1;
  pointer-events: none;
}
.hero-grid {
  position:        absolute;
  inset:           0;
  z-index:         2;
  pointer-events:  none;
  background-image:
    linear-gradient(rgba(214,40,40,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,40,40,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-scanlines {
  position:       absolute;
  inset:          0;
  z-index:        2;
  pointer-events: none;
  background:     repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px
  );
}

.hero-content {
  position:   relative;
  z-index:    3;
  text-align: center;
  padding:    0 20px;
  max-width:  900px;
  width:      100%;
}

.hero-wordmark {
  font-family:     var(--head);
  font-size:       clamp(64px, 10vw, 120px);
  font-weight:     900;
  letter-spacing:  0.12em;
  background:      linear-gradient(135deg, var(--red) 0%, var(--deep-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height:     1;
  margin-bottom:   20px;
  display:         inline-block;
  min-width:       6ch;
}
.hero-wordmark.scrambling {
  filter: drop-shadow(0 0 20px rgba(255,59,59,0.6));
}

.hero-headline {
  font-family:   var(--head);
  font-size:     clamp(24px, 4vw, 44px);
  font-weight:   700;
  color:         #fff;
  margin-bottom: 16px;
  line-height:   1.2;
}
.hero-sub {
  font-family:    var(--mono);
  font-size:      clamp(13px, 1.5vw, 16px);
  color:          var(--muted);
  margin-bottom:  36px;
  letter-spacing: 0.05em;
}

/* ── Primary Button ─────────────────────────────────────────── */
.btn-primary {
  display:         inline-block;
  font-family:     var(--head);
  font-size:       13px;
  font-weight:     700;
  letter-spacing:  0.18em;
  color:           #fff;
  background:      var(--red);
  border:          2px solid var(--red);
  padding:         16px 44px;
  cursor:          pointer;
  text-decoration: none;
  transition:      box-shadow 0.3s, transform 0.3s;
  position:        relative;
  overflow:        hidden;
  clip-path:       polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-primary::before {
  content:        '';
  position:       absolute;
  inset:          0;
  background:     var(--red-glow);
  opacity:        0;
  transition:     opacity 0.3s;
  pointer-events: none;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 0 32px rgba(214,40,40,0.7), 0 0 64px rgba(214,40,40,0.3);
  transform:  translateY(-2px);
}
.btn-primary:hover::before,
.btn-primary:focus-visible::before { opacity: 0.15; }

/* ── Slider Dots ────────────────────────────────────────────── */
.slider-dots {
  display:         flex;
  gap:             10px;
  justify-content: center;
  margin-top:      32px;
}
.slider-dot {
  width:        12px;
  height:       12px;
  border-radius: 50%;
  background:    rgba(214,40,40,0.35);
  border:        1px solid var(--red);
  cursor:        pointer;
  padding:       0;
  position:      relative;
  transition:    background 0.3s, box-shadow 0.3s;
}
.slider-dot::after {
  content:  '';
  position: absolute;
  inset:    -8px;
}
.slider-dot.active {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255,59,59,0.7);
}

/* ── Hero Stats ─────────────────────────────────────────────── */
.hero-stats {
  position:  absolute;
  bottom:    36px;
  left:      50%;
  transform: translateX(-50%);
  display:   flex;
  gap:       16px;
  z-index:   3;
  width:     100%;
  max-width: 800px;
  padding:   0 20px;
  box-sizing: border-box;
}
.stat-card {
  flex:              1;
  background:        rgba(11,11,11,0.75);
  border:            1px solid var(--border2);
  backdrop-filter:   blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding:           20px 16px;
  text-align:        center;
  border-radius:     4px;
  position:          relative;
  overflow:          hidden;
}
.stat-card::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 0;
  height:     2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.stat-value {
  font-family:   var(--head);
  font-size:     clamp(18px, 2.5vw, 26px);
  font-weight:   700;
  color:         var(--red);
  display:       block;
  margin-bottom: 6px;
}
.stat-label {
  font-family:    var(--mono);
  font-size:      11px;
  color:          var(--muted);
  letter-spacing: 0.08em;
}

/* =============================================================
   SECTION BASE
   ============================================================= */
section { padding: 100px 0; }

#home, #services, #about, #contact {
  scroll-margin-top: var(--nav-h);
}

.container {
  max-width: 1200px;
  margin:    0 auto;
  padding:   0 48px;
}

.section-title {
  font-family:    var(--head);
  font-size:      clamp(28px, 4vw, 42px);
  font-weight:    700;
  color:          var(--red);
  letter-spacing: 0.05em;
  margin-bottom:  12px;
}
.section-title-center { text-align: center; }

.section-divider {
  width:         80px;
  height:        2px;
  background:    linear-gradient(90deg, var(--red), transparent);
  margin-bottom: 60px;
}
.section-divider.center {
  margin-left:  auto;
  margin-right: auto;
  background:   linear-gradient(90deg, transparent, var(--red), transparent);
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
  opacity:    0;
  transform:  translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================================
   SERVICES SECTION
   ============================================================= */
#services { background: var(--bg); position: relative; }
#services::before {
  content:          '';
  position:         absolute;
  inset:            0;
  z-index:          0;
  background-image:
    linear-gradient(rgba(214,40,40,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,40,40,0.025) 1px, transparent 1px);
  background-size:  80px 80px;
  pointer-events:   none;
}
#services .container { position: relative; z-index: 1; }

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

.service-card {
  background:     var(--surface);
  border:         1px solid var(--border);
  border-radius:  8px;
  padding:        32px 28px;
  cursor:         pointer;
  transition:     border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  position:       relative;
  overflow:       hidden;
  display:        flex;
  flex-direction: column;
  text-align:     left;
}
.service-card::before {
  content:        '';
  position:       absolute;
  inset:          0;
  border-radius:  8px;
  opacity:        0;
  box-shadow:     0 0 30px rgba(214,40,40,0.25) inset;
  transition:     opacity 0.35s;
  pointer-events: none;
}
.service-card::after {
  content:        '';
  position:       absolute;
  bottom: 0; left: 0; right: 0;
  height:         2px;
  background:     linear-gradient(90deg, transparent, var(--red), transparent);
  opacity:        0;
  transition:     opacity 0.35s;
  pointer-events: none;
}
.service-card:hover,
.service-card:focus-visible {
  border-color: var(--red);
  transform:    translateY(-5px);
  box-shadow:   0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(214,40,40,0.15);
  outline:      none;
}
.service-card:hover::before, .service-card:hover::after,
.service-card:focus-visible::before, .service-card:focus-visible::after { opacity: 1; }

.service-icon {
  width:          60px;
  height:         60px;
  background:     rgba(214,40,40,0.15);
  border:         1px solid rgba(214,40,40,0.3);
  border-radius:  8px;
  display:        flex;
  align-items:    center;
  justify-content: center;
  margin-bottom:  24px;
  color:          var(--red);
  flex-shrink:    0;
  pointer-events: none;
}
.service-name {
  font-family:    var(--head);
  font-size:      16px;
  font-weight:    700;
  color:          var(--red);
  letter-spacing: 0.08em;
  margin-bottom:  14px;
}
.service-desc {
  font-family:   var(--mono);
  font-size:     13px;
  color:         var(--muted);
  line-height:   1.75;
  flex-grow:     1;
  margin-bottom: 20px;
}
.service-footer {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-top:      auto;
}
.badge-active {
  font-family:    var(--mono);
  font-size:      11px;
  color:          var(--red);
  border:         1px solid var(--red);
  padding:        4px 10px;
  letter-spacing: 0.1em;
  pointer-events: none;
}
.service-arrow {
  color:          var(--red);
  font-size:      18px;
  transition:     transform 0.25s;
  pointer-events: none;
}
.service-card:hover .service-arrow,
.service-card:focus-visible .service-arrow { transform: translateX(4px); }

/* =============================================================
   SERVICE MODAL
   ============================================================= */
.modal-overlay {
  position:        fixed;
  inset:           0;
  background:      rgba(0,0,0,0.85);
  z-index:         2000;
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         20px;
  opacity:         0;
  pointer-events:  none;
  visibility:      hidden;
  transition:      opacity 0.3s, visibility 0s linear 0.3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.open {
  opacity:        1;
  pointer-events: auto;
  visibility:     visible;
  transition:     opacity 0.3s;
}
.modal {
  background:         var(--surface);
  border:             1px solid var(--border2);
  border-top:         2px solid var(--red);
  border-radius:      8px;
  max-width:          640px;
  width:              100%;
  padding:            40px;
  position:           relative;
  transform:          scale(0.92) translateY(20px);
  transition:         transform 0.35s;
  max-height:         90vh;
  overflow-y:         auto;
  overscroll-behavior: contain;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-close {
  position:        absolute;
  top:  16px;
  right: 16px;
  background:      none;
  border:          1px solid var(--border2);
  color:           var(--muted);
  font-size:       18px;
  width:           44px;
  height:          44px;
  cursor:          pointer;
  display:         flex;
  align-items:     center;
  justify-content: center;
  transition:      border-color 0.2s, color 0.2s;
  border-radius:   4px;
}
.modal-close:hover,
.modal-close:focus-visible { border-color: var(--red); color: var(--red); }

.modal-service-name {
  font-family:    var(--head);
  font-size:      22px;
  font-weight:    700;
  color:          var(--red);
  letter-spacing: 0.08em;
  margin-bottom:  16px;
  padding-right:  52px;
}
.modal-summary {
  font-family:   var(--mono);
  font-size:     14px;
  color:         var(--muted);
  line-height:   1.75;
  margin-bottom: 28px;
}
.modal-section-label {
  font-family:    var(--head);
  font-size:      12px;
  color:          var(--red);
  letter-spacing: 0.15em;
  margin-bottom:  12px;
  opacity:        0.8;
}
.modal-list { list-style: none; margin-bottom: 24px; }
.modal-list li {
  font-family:  var(--mono);
  font-size:    13px;
  color:        var(--text);
  padding:      6px 0;
  border-bottom: 1px solid var(--border);
  display:      flex;
  align-items:  flex-start;
  gap:          10px;
}
.modal-list li::before {
  content:     '▸';
  color:       var(--red);
  flex-shrink: 0;
  margin-top:  1px;
}
.modal-cta {
  display:         block;
  width:           100%;
  font-family:     var(--head);
  font-size:       13px;
  font-weight:     700;
  letter-spacing:  0.15em;
  color:           #fff;
  background:      var(--red);
  border:          none;
  padding:         16px;
  cursor:          pointer;
  text-align:      center;
  transition:      background 0.3s, box-shadow 0.3s;
  margin-top:      8px;
  border-radius:   2px;
}
.modal-cta:hover,
.modal-cta:focus-visible {
  background:  var(--deep-red);
  box-shadow:  0 0 24px rgba(214,40,40,0.5);
}

/* =============================================================
   ABOUT SECTION
   ============================================================= */
#about { background: var(--bg); position: relative; overflow: hidden; }

.about-particles {
  position:       absolute;
  inset:          0;
  z-index:        0;
  pointer-events: none;
  overflow:       hidden;
}
.particle {
  position:      absolute;
  border-radius: 50%;
  background:    var(--red);
  opacity:       0.25;
  animation:     floatParticle linear infinite;
  will-change:   transform;
}
@keyframes floatParticle {
  0%   { transform: translateY(0) translateX(0);      opacity: 0; }
  10%  { opacity: 0.25; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-110vh) translateX(30px); opacity: 0; }
}

.about-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  align-items:           center;
  position:              relative;
  z-index:               1;
}
.about-text .section-title { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 12px; }
.about-title-brand { display: inline-block; min-width: 5ch; }

.about-body {
  font-family:   var(--mono);
  font-size:     14px;
  color:         var(--muted);
  line-height:   1.85;
  margin-bottom: 40px;
}
.about-body p + p { margin-top: 20px; }

.about-stats {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   12px;
}
.about-stat {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: 8px;
  padding:       22px 16px;
  text-align:    center;
  position:      relative;
  overflow:      hidden;
}
.about-stat::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 0;
  height:     2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.about-stat-val {
  font-family:   var(--head);
  font-size:     22px;
  font-weight:   700;
  color:         var(--red);
  display:       block;
  margin-bottom: 6px;
}
.about-stat-label {
  font-family:    var(--mono);
  font-size:      11px;
  color:          var(--muted);
  letter-spacing: 0.05em;
}

.about-image-wrap { position: relative; }
.about-img-card {
  position:      relative;
  border:        1px solid var(--border2);
  border-radius: 8px;
  overflow:      hidden;
  aspect-ratio:  4/3;
  background:    var(--surface);
}
.about-img-badge {
  position:        absolute;
  top: 16px; left: 16px;
  font-family:     var(--mono);
  font-size:       11px;
  color:           var(--red);
  border:          1px solid var(--red);
  background:      rgba(0,0,0,0.7);
  padding:         5px 12px;
  letter-spacing:  0.12em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index:         1;
}
.about-img-badge-active {
  position:       absolute;
  bottom: 16px; right: 16px;
  font-family:    var(--mono);
  font-size:      11px;
  color:          #fff;
  background:     var(--red);
  padding:        5px 12px;
  letter-spacing: 0.12em;
  z-index:        1;
}
.about-img-fallback {
  width:      100%;
  height:     100%;
  background: linear-gradient(135deg, #0d0000 0%, #1a0808 30%, #0a0a14 60%, #080808 100%);
  display:    flex;
  align-items: center;
  justify-content: center;
  position:   relative;
  overflow:   hidden;
}
.soc-visual { width: 100%; height: 100%; position: absolute; inset: 0; }

/* =============================================================
   CONTACT SECTION
   ============================================================= */
#contact { background: var(--bg); position: relative; overflow: hidden; }

.contact-bg {
  position:       absolute;
  inset:          0;
  z-index:        0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(214,40,40,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 70% 50%, rgba(214,40,40,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.contact-subtitle {
  font-family:   var(--mono);
  font-size:     15px;
  color:         var(--muted);
  text-align:    center;
  margin-bottom: 8px;
  margin-top:    -4px;
}
.contact-layout {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   32px;
  margin-top:            60px;
}

.form-card {
  background:    var(--surface);
  border:        1px solid var(--border2);
  border-radius: 8px;
  padding:       36px;
}
.form-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   28px;
  padding-bottom:  20px;
  border-bottom:   1px solid var(--border);
}
.secure-badge {
  font-family:    var(--mono);
  font-size:      11px;
  color:          var(--red);
  border:         1px solid var(--red);
  padding:        5px 14px;
  letter-spacing: 0.12em;
}
.form-dots { display: flex; gap: 8px; }
.form-dot  { width: 10px; height: 10px; border-radius: 50%; }
.form-dot:nth-child(1) { background: var(--red); }
.form-dot:nth-child(2) { background: rgba(214,40,40,0.5); }
.form-dot:nth-child(3) { background: rgba(214,40,40,0.25); }

.form-field  { margin-bottom: 22px; }
.form-label  {
  font-family:    var(--mono);
  font-size:      11px;
  color:          var(--red);
  letter-spacing: 0.15em;
  display:        block;
  margin-bottom:  8px;
}
.form-input,
.form-textarea {
  width:       100%;
  background:  var(--surface2);
  border:      1px solid var(--border2);
  border-radius: 4px;
  color:       var(--text);
  font-family: var(--mono);
  font-size:   14px;
  padding:     14px 16px;
  outline:     none;
  transition:  border-color 0.25s, box-shadow 0.25s;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(170,170,170,0.4); }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--red);
  box-shadow:   0 0 0 2px rgba(214,40,40,0.12);
}
/* Explicit :focus-visible ring for keyboard users — outline:none on these
   elements suppresses the global rule, so we restore it here with higher
   specificity and a visually distinct indicator */
.form-input:focus-visible,
.form-textarea:focus-visible {
  outline:        2px solid var(--red);
  outline-offset: 1px;
}
.form-input.error,
.form-textarea.error {
  border-color: #ff4444;
  box-shadow:   0 0 0 2px rgba(255,68,68,0.12);
}
.field-error {
  font-family:  var(--mono);
  font-size:    11px;
  color:        #ff6666;
  margin-top:   5px;
  display:      none;
}
.field-error.visible { display: block; }

.form-textarea { height: 140px; resize: vertical; min-height: 100px; }
.char-counter  {
  font-family: var(--mono);
  font-size:   11px;
  color:       var(--muted);
  text-align:  right;
  margin-top:  4px;
}

.btn-send {
  width:           100%;
  font-family:     var(--head);
  font-size:       13px;
  font-weight:     700;
  letter-spacing:  0.2em;
  color:           #fff;
  background:      var(--red);
  border:          none;
  padding:         18px;
  cursor:          pointer;
  transition:      background 0.3s, box-shadow 0.3s;
  border-radius:   2px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             10px;
  margin-top:      6px;
  min-height:      44px;
}
.btn-send:hover:not(:disabled),
.btn-send:focus-visible:not(:disabled) {
  background:  var(--deep-red);
  box-shadow:  0 0 30px rgba(214,40,40,0.5);
}
.btn-send:disabled { opacity: 0.6; cursor: not-allowed; }

.success-msg {
  display:    none;
  text-align: center;
  padding:    32px 20px;
}
.success-msg.visible { display: block; }
.success-icon        { font-size: 48px; color: var(--red); margin-bottom: 16px; }
.success-title {
  font-family:    var(--head);
  font-size:      18px;
  color:          var(--red);
  letter-spacing: 0.1em;
  margin-bottom:  12px;
}
.success-text { font-family: var(--mono); font-size: 13px; color: var(--muted); line-height: 1.7; }

.contact-info-col { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background:    var(--surface);
  border:        1px solid var(--border2);
  border-radius: 8px;
  padding:       28px;
}
.info-card-title {
  font-family:    var(--head);
  font-size:      18px;
  font-weight:    600;
  color:          var(--red);
  letter-spacing: 0.06em;
  margin-bottom:  24px;
}
.info-item {
  display:       flex;
  align-items:   flex-start;
  gap:           16px;
  margin-bottom: 18px;
}
.info-item:last-child { margin-bottom: 0; }
.info-icon {
  width:           40px;
  height:          40px;
  background:      rgba(214,40,40,0.15);
  border:          1px solid rgba(214,40,40,0.3);
  border-radius:   6px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           var(--red);
  flex-shrink:     0;
}
.info-label {
  font-family:    var(--mono);
  font-size:      11px;
  color:          var(--muted);
  letter-spacing: 0.12em;
  margin-bottom:  4px;
}
.info-value { font-family: var(--mono); font-size: 14px; color: var(--text); }

a.info-link {
  color:           var(--text);
  text-decoration: none;
  font-family:     var(--mono);
  font-size:       14px;
}
a.info-link:hover,
a.info-link:focus-visible { color: var(--red); }

.social-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.social-icon {
  width:           46px;
  height:          46px;
  background:      rgba(214,40,40,0.1);
  border:          1px solid rgba(214,40,40,0.25);
  border-radius:   6px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           var(--red);
  text-decoration: none;
  transition:      background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  min-width:       44px;
  min-height:      44px;
}
.social-icon:hover,
.social-icon:focus-visible {
  background:   rgba(214,40,40,0.2);
  border-color: var(--red);
  box-shadow:   0 0 16px rgba(214,40,40,0.35);
  transform:    translateY(-2px);
}

/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background:      var(--bg);
  border-top:      1px solid var(--border);
  padding:         28px 48px;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             16px;
}
.footer-logo {
  font-family:     var(--head);
  font-size:       16px;
  font-weight:     700;
  color:           var(--red);
  letter-spacing:  0.18em;
  cursor:          pointer;
  text-decoration: none;
  display:         inline-block;
  min-width:       5ch;
}
.footer-badge {
  font-family:    var(--mono);
  font-size:      11px;
  color:          var(--muted);
  border:         1px solid var(--border2);
  padding:        5px 14px;
  border-radius:  20px;
  letter-spacing: 0.08em;
}
.footer-copy { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }

/* =============================================================
   SPINNER
   ============================================================= */
.spinner {
  width:         18px;
  height:        18px;
  border:        2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation:     spin 0.6s linear infinite;
  flex-shrink:   0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================= */
@media (max-width: 1024px) {
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-grid       { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout   { grid-template-columns: 1fr; }
  .container        { padding: 0 32px; }
}

@media (max-width: 768px) {
  #navbar               { padding: 0 20px; }
  .nav-links            { display: none; }
  .hamburger            { display: flex; }
  .services-grid        { grid-template-columns: 1fr; }
  .hero-stats           { flex-direction: column; gap: 8px; bottom: 16px; }
  .stat-card            { padding: 12px 10px; }
  footer                { padding: 20px; }
  .about-stats          { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .about-stat-val       { font-size: 18px; }
  section               { padding: 70px 0; }
  .contact-layout       { margin-top: 40px; }
  .form-card            { padding: 24px 20px; }
  .info-card            { padding: 22px 18px; }
  .modal                { padding: 28px 20px; }
  .modal-service-name   { font-size: 18px; }
}

@media (max-width: 480px) {
  .about-stats    { grid-template-columns: 1fr; }
  .hero-wordmark  { font-size: 52px; }
  .hero-stats     { gap: 6px; }
  .hero-headline  { font-size: 22px; }
  footer          { flex-direction: column; text-align: center; }
  /* Ensure content never touches screen edges on tiny phones */
  .container      { padding: 0 16px; }
  .form-card,
  .info-card      { padding: 20px 16px; }
  .modal          { padding: 20px 16px; }
  .modal-service-name { font-size: 16px; }
}
