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

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

:root {
  --black:      #0a0a0a;
  --dark:       #111111;
  --panel:      #161616;
  --panel-2:    #1c1c1c;
  --border:     rgba(255,255,255,0.10);
  --border-red: rgba(196,28,28,0.40);
  --red:        #c41c1c;
  --red-bright: #e02222;
  --red-dim:    rgba(196,28,28,0.55);
  --red-glow:   rgba(196,28,28,0.08);
  --white:      #f2f2f2;
  --white-dim:  rgba(242,242,242,0.72);
  --muted:      #7a7a7a;
  --muted-2:    #555555;
  --font-head:  'Rajdhani', sans-serif;
  --font-mono:  'Space Mono', monospace;
  --font-body:  'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Subtle grid overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 68px;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 700;
  letter-spacing: 4px; color: var(--white);
  text-transform: uppercase; text-decoration: none;
}
.nav-logo span { color: var(--red); }

.nav-logo-img {
  height: 36px; width: auto; display: block;
  filter: brightness(0) invert(1); opacity: 0.9;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); background: var(--red);
  border: none; padding: 9px 22px;
  cursor: pointer; transition: background 0.2s;
  text-decoration: none; display: inline-block;
}
.nav-cta:hover { background: var(--red-bright); }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  padding: 2.25rem 3rem;
  background: var(--panel);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 1;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 700;
  letter-spacing: 4px; color: var(--white);
  text-transform: uppercase;
}
.footer-logo span { color: var(--red); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 1px; color: var(--muted);
}

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

.section-header {
  display: flex; align-items: center;
  gap: 1rem; margin-bottom: 0.75rem;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); white-space: nowrap;
}
.section-line { flex: 1; height: 1px; background: var(--border); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 1rem; line-height: 1.05;
}
.section-sub {
  color: var(--muted); max-width: 540px;
  font-size: 17px; line-height: 1.8;
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn-primary {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  background: var(--red); color: var(--white);
  border: none; padding: 14px 30px;
  cursor: pointer; font-weight: 700;
  transition: background 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--red-bright); }

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 14px 30px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* ─── TECH SCROLL ────────────────────────────────────── */
.tech-banner {
  padding: 3rem;
  display: flex; align-items: center; gap: 4rem;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  position: relative; z-index: 1;
}
.tech-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); white-space: nowrap;
}
.tech-scroll {
  flex: 1; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.tech-track {
  display: flex; gap: 3rem;
  animation: scroll-tech 24s linear infinite;
  white-space: nowrap;
}
@keyframes scroll-tech {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tech-item {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted-2); flex-shrink: 0;
}

/* ─── PAGE HEADER (inner pages) ──────────────────────── */
.page-header {
  padding: 128px 3rem 4.5rem;
  position: relative; z-index: 1;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.page-header .section-tag { margin-bottom: 1rem; display: block; }
.page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: -1px;
  line-height: 1; margin-bottom: 1.25rem;
}
.page-header p {
  color: var(--muted); max-width: 580px;
  font-size: 17px; line-height: 1.8;
}

/* ─── PRODUCT PAGES (night-vision / thermal / laser / products) ── */

/* Category tabs under page-header */
.cat-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  position: relative; z-index: 1;
  overflow-x: auto;
}
.cat-tab {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 1rem 2rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.cat-tab:hover { color: var(--white); }
.cat-tab.active { color: var(--white); border-bottom-color: var(--red); }

/* Product grid layout */
.products-main-grid {
  padding: 4.5rem 3rem 7rem;
  position: relative; z-index: 1;
}

.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

/* Card */
.product-card-full {
  background: var(--panel);
  display: flex; flex-direction: column;
  position: relative;
  transition: background 0.25s;
}
.product-card-full::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.product-card-full:hover::before { transform: scaleX(1); }
.product-card-full:hover { background: var(--panel-2); }

.pcard-image {
  background: #0f0f0f;
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 2.5rem;
  min-height: 240px; overflow: hidden;
  position: relative;
}
.pcard-image::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10,10,10,0.55));
  pointer-events: none;
}
.pcard-image img {
  max-height: 200px; width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(196,28,28,0.15));
  transition: transform 0.5s ease, filter 0.5s ease;
  position: relative; z-index: 1;
}
.product-card-full:hover .pcard-image img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 36px rgba(196,28,28,0.38));
}

.pcard-body {
  padding: 2rem;
  display: flex; flex-direction: column; flex: 1;
  border-top: 1px solid var(--border);
}
.pcard-cat {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.4rem;
}
.pcard-name {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--white); line-height: 1.1; margin-bottom: 0.85rem;
}
.pcard-desc {
  color: var(--muted); font-size: 15px; line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Spec table */
.pcard-specs { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.pcard-specs tr { border-top: 1px solid var(--border); }
.pcard-specs tr:last-child { border-bottom: 1px solid var(--border); }
.pcard-specs td { padding: 9px 0; font-size: 14px; }
.pcard-specs td:first-child {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); width: 40%;
}
.pcard-specs td:last-child { color: var(--white); font-weight: 500; }

/* Card footer */
.pcard-footer {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.75rem; margin-top: auto;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.pcard-badge {
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid var(--border-red);
  color: var(--red); padding: 4px 10px;
}
.pcard-brochure {
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid var(--border); padding: 4px 10px;
}
.pcard-brochure a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.pcard-brochure a:hover { color: var(--white); }

.pcard-contact {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  margin-left: auto; transition: color 0.2s;
}
.pcard-contact:hover { color: var(--red); }

/* Hamburger for mobile */
.nav-hamburger {
  display: none;
  background: none; border: none;
  color: var(--white); cursor: pointer; padding: 4px;
}
.nav-mobile-overlay {
  display: none;
  flex-direction: column;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 1rem 3rem 1.5rem;
  position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay a {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile-overlay a:hover, .nav-mobile-overlay a.active { color: var(--white); }

@media (max-width: 900px) {
  .nav-hamburger { display: block; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .products-main-grid { padding: 3rem 1.5rem 5rem; }
  .product-cards-grid { grid-template-columns: 1fr; }
  nav { padding: 0 1.5rem; }
}
