/* ============================================
   AGE - Alarka Global Enterprise
   Futuristic AI Surveillance Website
   ============================================ */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ----- CSS Variables ----- */
:root {
  --primary-start: #ff4d2e;
  --primary-end: #d42300;
  --primary-gradient: linear-gradient(135deg, #ff4d2e 0%, #d42300 100%);
  --primary-glow: rgba(212, 35, 0, 0.28);
  --secondary-glow: rgba(56, 189, 248, 0.22);
  --bg-dark: #070b13;
  --bg-darker: #04070d;
  --bg-card: #0d1420;
  --bg-glass: rgba(12, 20, 32, 0.58);
  --bg-glass-border: rgba(212, 35, 0, 0.16);
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --text-dim: rgba(255, 255, 255, 0.5);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-alt: 'Montserrat', sans-serif;
  --border-glow: 0 0 20px var(--primary-glow);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-glass: 16px;
  --radius-card: 12px;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.text-muted {
  color: var(--text-muted) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----- Animated Gradient Background ----- */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(212, 35, 0, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    var(--bg-dark);
}

/* ----- Particle Canvas ----- */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ----- Navbar ----- */
.navbar-age {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 1rem 2rem;
  transition: var(--transition-smooth);
  background: transparent;
}

.navbar-age.scrolled {
  background: rgba(7, 11, 19, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-glass-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-brand:hover {
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.logo-nav {
  width: clamp(52px, 6vw, 72px);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-footer {
  width: clamp(40px, 4vw, 56px);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-link-age {
  font-family: var(--font-alt);
  font-weight: 500;
  color: var(--text-muted) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link-age::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.nav-link-age:hover,
.nav-link-age.active {
  color: var(--text-primary) !important;
}

.nav-link-age:hover::after,
.nav-link-age.active::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar-toggler {
  border: 1px solid var(--bg-glass-border);
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(212, 35, 0, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ----- Buttons ----- */
.btn-age {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn-age-primary {
  background: var(--primary-gradient);
  color: var(--bg-dark);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-age-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow), 0 0 40px rgba(212, 35, 0, 0.3);
  color: var(--bg-dark);
}

.btn-age-outline {
  background: transparent;
  color: var(--primary-start);
  border: 2px solid var(--primary-start);
}

.btn-age-outline:hover {
  background: rgba(212, 35, 0, 0.1);
  color: var(--primary-start);
  box-shadow: 0 0 25px var(--primary-glow);
  border-color: var(--primary-start);
}

/* ----- Hero Section ----- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-layout {
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-live-monitor {
  position: absolute;
  right: 0;
  top: -46%;
  width: min(320px, 40vw);
  border: 1px solid rgba(255, 122, 26, 0.22);
  border-radius: 14px;
  background: rgba(6, 12, 22, 0.45);
  box-shadow: 0 0 24px rgba(212, 35, 0, 0.16);
  overflow: hidden;
  z-index: 1;
  opacity: 0.8;
}

.hero-live-monitor .monitor-frame {
  aspect-ratio: 18 / 11;
}

.hero-live-monitor .detect-box.box-1 {
  width: 22%;
  height: 34%;
  top: 22%;
  left: 17%;
}

.hero-live-monitor .detect-box.box-2 {
  width: 18%;
  height: 30%;
  right: 20%;
  bottom: 18%;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px var(--primary-glow);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 100%;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-start);
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--primary-end);
  bottom: 20%;
  left: 5%;
  animation-delay: -3s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--primary-start);
  top: 50%;
  left: 30%;
  animation-delay: -5s;
}

/* ----- Hero: Event detection animation ----- */
.hero-event-detection {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(212, 35, 0, 0.25);
  border-radius: 50%;
}

.radar-ring-1 { width: 280px; height: 280px; animation: radar-pulse 3s ease-in-out infinite; }
.radar-ring-2 { width: 380px; height: 380px; animation: radar-pulse 3s ease-in-out infinite 0.5s; opacity: 0.7; }
.radar-ring-3 { width: 480px; height: 480px; animation: radar-pulse 3s ease-in-out infinite 1s; opacity: 0.4; }

@keyframes radar-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.98); }
  50% { opacity: 0.5; transform: scale(1.02); }
}

.radar-sweep {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(212, 35, 0, 0.12) 30deg, transparent 60deg);
  animation: radar-sweep 4s linear infinite;
}

.monitor-header {
  height: 30px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(3, 8, 14, 0.7);
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.85);
  animation: rec-blink 1.3s ease-in-out infinite;
}

.monitor-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(210, 230, 250, 0.88);
  font-family: var(--font-alt);
}

.monitor-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(8, 14, 23, 0.2), rgba(8, 14, 23, 0.72)),
    repeating-linear-gradient(
      0deg,
      rgba(56, 189, 248, 0.07) 0px,
      rgba(56, 189, 248, 0.07) 1px,
      transparent 1px,
      transparent 4px
    ),
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(212, 35, 0, 0.12));
}

.monitor-grid-line {
  position: absolute;
  background: rgba(56, 189, 248, 0.15);
}

.monitor-grid-line.grid-v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.monitor-grid-line.grid-h {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}

.detect-box {
  position: absolute;
  border: 1px solid rgba(212, 35, 0, 0.72);
  box-shadow: 0 0 12px rgba(212, 35, 0, 0.25);
  animation: detect-pulse 2s ease-in-out infinite;
}

.detect-box.box-1 {
  width: 28%;
  height: 34%;
  top: 20%;
  left: 14%;
}

.detect-box.box-2 {
  width: 24%;
  height: 30%;
  right: 18%;
  bottom: 16%;
  animation-delay: 0.7s;
}

.monitor-pan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.9), transparent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  animation: monitor-pan 3.2s ease-in-out infinite;
}

.vms-live-monitor {
  margin: 0 0 14px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  background: rgba(6, 12, 22, 0.72);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
  overflow: hidden;
}

.vms-live-monitor .monitor-header {
  height: 24px;
  padding: 0 10px;
}

.vms-live-monitor .monitor-label {
  font-size: 0.54rem;
}

.vms-live-monitor .monitor-frame {
  aspect-ratio: 20 / 7;
}

.vms-live-monitor .detect-box.box-1 {
  width: 16%;
  height: 56%;
  top: 18%;
  left: 24%;
}

.vms-live-monitor .detect-box.box-2 {
  width: 15%;
  height: 52%;
  right: 20%;
  bottom: 20%;
}

/* Hero PTZ camera animation */
.hero-ptz-camera {
  position: relative;
  width: min(390px, 46vw);
  height: min(290px, 34vw);
  transform-origin: 48% 18%;
  z-index: 2;
}

.ptz-mount {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.16), rgba(7, 15, 26, 0.08));
  border: 1.5px solid rgba(255, 122, 26, 0.68);
  box-shadow: inset 0 0 10px rgba(255, 122, 26, 0.28), 0 0 14px rgba(212, 35, 0, 0.2);
}

.ptz-arm {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 38px;
  border-radius: 0 0 20px 20px;
  background: rgba(7, 17, 29, 0.2);
  border: 1.5px solid rgba(255, 122, 26, 0.56);
  border-top: 0;
}

.ptz-head {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 114px;
  border-radius: 18px;
  clip-path: polygon(8% 0, 92% 0, 100% 22%, 100% 78%, 92% 100%, 8% 100%, 0 78%, 0 22%);
  background: linear-gradient(160deg, rgba(8, 16, 28, 0.9), rgba(4, 10, 18, 0.82));
  border: 1.6px solid rgba(255, 122, 26, 0.64);
  box-shadow: 0 0 34px rgba(212, 35, 0, 0.2), inset 0 0 22px rgba(255, 122, 26, 0.12);
  overflow: hidden;
}

.ptz-head::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 26, 0.24);
}

.ptz-head::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 26, 0.38), transparent);
  transform: translateY(-50%);
}

.ptz-lens-module {
  position: absolute;
  inset: 0;
  animation: lens-track 3.6s ease-in-out infinite;
}

.ptz-lens {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 122, 26, 0.92);
  background: radial-gradient(circle at 35% 30%, rgba(255, 235, 214, 0.95) 0 9%, rgba(120, 45, 18, 0.9) 32%, rgba(20, 8, 8, 0.95) 68%);
  box-shadow: inset 0 0 16px rgba(255, 122, 26, 0.34);
}

.ptz-lens-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.36), transparent 62%);
  animation: lens-pulse 1.8s ease-in-out infinite;
}

.ptz-scan-cone {
  position: absolute;
  top: 48%;
  left: 53%;
  width: 260px;
  height: 150px;
  transform-origin: 0% 0%;
  clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.34), rgba(212, 35, 0, 0.04));
  filter: blur(1px);
  animation: cone-sweep 2.4s ease-in-out infinite;
}

.ptz-detect-zone {
  position: absolute;
  border: 1px solid rgba(212, 35, 0, 0.85);
  box-shadow: 0 0 14px rgba(212, 35, 0, 0.3);
  animation: zone-detect 2.3s ease-in-out infinite;
}

.ptz-detect-zone.zone-1 {
  width: 58px;
  height: 70px;
  right: -5%;
  top: 16%;
}

.ptz-detect-zone.zone-2 {
  width: 50px;
  height: 60px;
  right: 10%;
  bottom: 5%;
  animation-delay: 0.6s;
}

.ptz-detect-zone.zone-3 {
  width: 42px;
  height: 50px;
  left: 68%;
  bottom: -6%;
  animation-delay: 1.1s;
}

.ptz-hud-ring {
  position: absolute;
  left: 31%;
  top: 30%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 122, 26, 0.34);
  animation: hud-spin 6s linear infinite;
}

.ptz-hud-arc {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.ptz-hud-arc.arc-1 {
  left: 27%;
  top: 26%;
  width: 138px;
  height: 138px;
  border-top-color: rgba(255, 122, 26, 0.7);
  border-left-color: rgba(255, 122, 26, 0.5);
  animation: hud-spin 5s linear infinite reverse;
}

.ptz-hud-arc.arc-2 {
  left: 35%;
  top: 34%;
  width: 100px;
  height: 100px;
  border-right-color: rgba(212, 35, 0, 0.7);
  border-bottom-color: rgba(212, 35, 0, 0.5);
  animation: hud-spin 4.2s linear infinite;
}

.ptz-event-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212, 35, 0, 0.95);
  box-shadow: 0 0 10px rgba(212, 35, 0, 0.7);
  animation: event-pulse 1.6s ease-in-out infinite;
}

.ptz-event-dot.dot-1 { right: 6%; top: 23%; }
.ptz-event-dot.dot-2 { right: 18%; bottom: 14%; animation-delay: .45s; }
.ptz-event-dot.dot-3 { left: 76%; bottom: 6%; animation-delay: .9s; }

@keyframes radar-sweep {
  to { transform: rotate(360deg); }
}

.detection-blip {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-start);
  box-shadow: 0 0 15px var(--primary-glow), 0 0 30px rgba(212, 35, 0, 0.4);
  animation: blip-detect 2.5s ease-in-out infinite;
  opacity: 0.9;
}

.detection-blip-1 { top: 28%; left: 42%; animation-delay: 0s; }
.detection-blip-2 { top: 35%; right: 32%; animation-delay: 0.4s; }
.detection-blip-3 { bottom: 38%; left: 38%; animation-delay: 0.8s; }
.detection-blip-4 { bottom: 32%; right: 40%; animation-delay: 1.2s; }
.detection-blip-5 { top: 42%; left: 28%; animation-delay: 0.2s; }
.detection-blip-6 { top: 48%; right: 28%; animation-delay: 1s; }

@keyframes blip-detect {
  0%, 100% { transform: scale(0.6); opacity: 0.4; box-shadow: 0 0 8px var(--primary-glow); }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(212, 35, 0, 0.5); }
}

@keyframes rec-blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes detect-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes monitor-pan {
  0%, 100% { top: 16%; }
  50% { top: 84%; }
}

@keyframes ptz-pan {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-2px); }
}

@keyframes ptz-tilt {
  0%, 100% { transform: translateX(-50%) rotate(-2deg); }
  50% { transform: translateX(-50%) rotate(2deg); }
}

@keyframes lens-track {
  0%, 100% { transform: translateX(-34px); }
  50% { transform: translateX(34px); }
}

@keyframes cone-sweep {
  0%, 100% { transform: rotate(-18deg) scale(0.95); opacity: 0.24; }
  50% { transform: rotate(18deg) scale(1.02); opacity: 0.9; }
}

@keyframes lens-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

@keyframes zone-detect {
  0%, 100% { opacity: 0.28; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes hud-spin {
  to { transform: rotate(360deg); }
}

@keyframes event-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 35, 0, 0.6), transparent);
  box-shadow: 0 0 10px var(--primary-glow);
  animation: scan-move 3s ease-in-out infinite;
}

@keyframes scan-move {
  0%, 100% { top: 25%; opacity: 0.3; }
  50% { top: 75%; opacity: 0.8; }
}

@media (max-width: 768px) {
  .radar-ring-1 { width: 200px; height: 200px; }
  .radar-ring-2 { width: 280px; height: 280px; }
  .radar-ring-3 { width: 360px; height: 360px; }
  .radar-sweep { width: 170px; height: 170px; }
  .detection-blip { width: 8px; height: 8px; }
  .hero-event-detection { opacity: 0.85; }
  .hero-ptz-camera {
    width: min(300px, 62vw);
    height: 210px;
  }

  .ptz-head {
    width: 182px;
    height: 84px;
  }

  .ptz-lens-module {
    animation: lens-track-mobile 3.2s ease-in-out infinite;
  }

  .ptz-lens {
    width: 58px;
    height: 58px;
  }

  .ptz-lens-glow {
    width: 90px;
    height: 90px;
  }

  .ptz-scan-cone {
    width: 170px;
    height: 98px;
  }

  .ptz-detect-zone.zone-1,
  .ptz-detect-zone.zone-2,
  .ptz-detect-zone.zone-3 {
    width: 24px;
    height: 30px;
  }
}

@keyframes lens-track-mobile {
  0%, 100% { transform: translateX(-20px); }
  50% { transform: translateX(20px); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ----- Section Titles ----- */
.section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-start);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ----- Glass Cards ----- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-glass);
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-start), transparent);
  opacity: 0.5;
}

.glass-card:hover {
  border-color: rgba(212, 35, 0, 0.32);
  box-shadow: 0 0 30px var(--secondary-glow), 0 0 35px rgba(212, 35, 0, 0.1), inset 0 0 50px rgba(56, 189, 248, 0.03);
  transform: translateY(-5px);
}

/* ----- Feature Cards ----- */
.feature-card {
  height: 100%;
  text-align: center;
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  border-radius: 16px;
  font-size: 1.75rem;
  box-shadow: 0 0 30px var(--primary-glow);
  transition: var(--transition-smooth);
}

.feature-icon i {
  font-size: 1.6rem;
  line-height: 1;
}

.glass-card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 0 40px var(--primary-glow);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ----- Divider ----- */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-start), var(--primary-end), transparent);
  opacity: 0.5;
  margin: 4rem 0;
}

.divider-glow.animated {
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* ----- Counter Section ----- */
.counter-item {
  text-align: center;
  padding: 1.5rem;
}

.counter-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.25rem;
}

.counter-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ----- Footer ----- */
.footer-age {
  background: var(--bg-darker);
  border-top: 1px solid var(--bg-glass-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-age h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-age ul {
  list-style: none;
  padding: 0;
}

.footer-age ul li {
  margin-bottom: 0.5rem;
}

.footer-age a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-age a:hover {
  color: var(--primary-start);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-glass-border);
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.footer-social a i {
  font-size: 1rem;
  line-height: 1;
}

.footer-social a:hover {
  border-color: var(--primary-start);
  box-shadow: 0 0 20px var(--primary-glow);
  color: var(--primary-start);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ----- Page Header (inner pages) ----- */
.page-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
}

.page-hero .section-label {
  margin-bottom: 0.5rem;
}

.page-hero .section-title {
  margin-bottom: 0.75rem;
}

/* ----- About: Mission / Vision Cards ----- */
.mission-card {
  text-align: center;
  padding: 2rem;
}

.mission-card .icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-glass-border);
  border-radius: 50%;
  font-size: 2rem;
  transition: var(--transition-smooth);
}

.mission-card .icon-wrap i {
  font-size: 1.9rem;
  line-height: 1;
}

.glass-card:hover .icon-wrap {
  border-color: var(--primary-start);
  box-shadow: 0 0 30px var(--primary-glow);
}

/* ----- Product Cards ----- */
.product-section {
  padding: 5rem 0;
}

.product-section:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.product-card {
  height: 100%;
  transition: var(--transition-smooth);
}

.product-card .img-placeholder {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.ai-scene {
  position: relative;
  isolation: isolate;
}

.ai-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.12), transparent 40%),
    radial-gradient(circle at 80% 75%, rgba(212, 35, 0, 0.16), transparent 45%);
  z-index: -1;
}

/* AGE-AI scene */
.ai-radar-ring {
  position: absolute;
  border: 1px solid rgba(212, 35, 0, 0.25);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: aiPulse 3s ease-in-out infinite;
}

.ai-radar-ring.ring-1 { width: 110px; height: 110px; }
.ai-radar-ring.ring-2 { width: 170px; height: 170px; animation-delay: .4s; }
.ai-radar-ring.ring-3 { width: 230px; height: 230px; animation-delay: .8s; }

.ai-scan-beam {
  position: absolute;
  width: 130px;
  height: 130px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(212, 35, 0, 0.28) 40deg, transparent 80deg);
  animation: aiRotate 4s linear infinite;
}

.ai-target {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-start);
  box-shadow: 0 0 12px var(--primary-glow);
  animation: aiBlink 2s ease-in-out infinite;
}

.ai-target.target-1 { top: 34%; left: 36%; }
.ai-target.target-2 { top: 62%; left: 58%; animation-delay: .4s; }
.ai-target.target-3 { top: 45%; left: 70%; animation-delay: .8s; }

/* VMS scene */
.ai-scene-vms {
  padding: 16px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: linear-gradient(160deg, rgba(6, 12, 20, 0.88), rgba(10, 17, 28, 0.92));
}

.vms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.vms-feed {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.2), rgba(6, 10, 18, 0.72)),
    repeating-linear-gradient(
      0deg,
      rgba(56, 189, 248, 0.08) 0px,
      rgba(56, 189, 248, 0.08) 1px,
      transparent 1px,
      transparent 4px
    ),
    linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(212, 35, 0, 0.12));
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45), 0 0 12px rgba(56, 189, 248, 0.08);
  animation: vmsFlicker 2.8s ease-in-out infinite;
  overflow: hidden;
}

.vms-feed::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16px;
  background: rgba(4, 8, 14, 0.65);
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
}

.vms-feed:nth-child(2n) { animation-delay: .35s; }
.vms-feed:nth-child(3n) { animation-delay: .7s; }
.vms-feed:nth-child(4n) { animation-delay: 1s; }

.vms-rec-dot {
  position: absolute;
  top: 5px;
  left: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.8);
  animation: recBlink 1.4s ease-in-out infinite;
  z-index: 2;
}

.vms-feed-label {
  position: absolute;
  top: 3px;
  right: 7px;
  font-family: var(--font-alt);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgba(212, 226, 243, 0.88);
  z-index: 2;
}

.vms-timeline {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.vms-playhead {
  width: 36px;
  height: 100%;
  border-radius: 999px;
  background: var(--primary-gradient);
  box-shadow: 0 0 10px var(--primary-glow);
  animation: vmsScrub 3.4s ease-in-out infinite;
}

/* FR Attendance scene */
.fr-head,
.fr-shoulders {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid rgba(56, 189, 248, 0.45);
}

.fr-head {
  top: 28%;
  width: 62px;
  height: 62px;
  border-radius: 50%;
}

.fr-shoulders {
  top: 52%;
  width: 138px;
  height: 78px;
  border-radius: 70px 70px 16px 16px;
}

.fr-frame {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(212, 35, 0, 0.8);
}

.frame-top-left { top: 24%; left: 27%; border-right: 0; border-bottom: 0; }
.frame-top-right { top: 24%; right: 27%; border-left: 0; border-bottom: 0; }
.frame-bottom-left { bottom: 24%; left: 27%; border-right: 0; border-top: 0; }
.frame-bottom-right { bottom: 24%; right: 27%; border-left: 0; border-top: 0; }

.fr-scan-line {
  position: absolute;
  left: 24%;
  right: 24%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.9), transparent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  animation: frScan 2.6s ease-in-out infinite;
}

@keyframes aiPulse {
  0%, 100% { opacity: 0.22; transform: translate(-50%, -50%) scale(0.98); }
  50% { opacity: 0.55; transform: translate(-50%, -50%) scale(1.03); }
}

@keyframes aiRotate { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes aiBlink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes vmsFlicker { 0%,100% { opacity: .45; } 50% { opacity: .95; } }
@keyframes vmsScrub { 0%,100% { transform: translateX(0); } 50% { transform: translateX(360%); } }
@keyframes frScan { 0%,100% { top: 30%; } 50% { top: 70%; } }
@keyframes recBlink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.product-card:hover .img-placeholder {
  border-color: rgba(212, 35, 0, 0.4);
  box-shadow: 0 0 30px rgba(212, 35, 0, 0.1);
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.product-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.product-card .feature-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-card .feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary-gradient);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ----- Contact Form ----- */
.form-age .form-control,
.form-age .form-select {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 0.875rem 1.25rem;
  transition: var(--transition-smooth);
}

.form-age .form-control::placeholder {
  color: var(--text-dim);
}

.form-age .form-control:focus,
.form-age .form-select:focus {
  border-color: var(--primary-start);
  box-shadow: 0 0 0 3px rgba(212, 35, 0, 0.2), 0 0 20px rgba(212, 35, 0, 0.15);
  outline: none;
}

.form-age textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-age .btn-age-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

/* ----- Contact Info Box ----- */
.contact-info-box {
  padding: 2rem;
  height: 100%;
}

.contact-info-box .item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-box .item-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  border-radius: 12px;
  font-size: 1.25rem;
}

.contact-info-box .item-icon i {
  line-height: 1;
}

.contact-info-box .item h6 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.contact-info-box .item p {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
}

/* ----- Map ----- */
.map-container {
  border-radius: var(--radius-glass);
  overflow: hidden;
  border: 1px solid var(--bg-glass-border);
  height: 350px;
  background: var(--bg-card);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) invert(92%) contrast(83%);
}

/* ----- Utility ----- */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- AOS overrides ----- */
[data-aos] {
  pointer-events: auto;
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
  .navbar-age {
    padding: 0.75rem 1rem;
  }

  .hero-section {
    padding: 5rem 1.5rem 3rem;
  }

  .hero-visual {
    min-height: 220px;
  }

  .hero-live-monitor {
    width: min(250px, 70vw);
    top: -34%;
    right: 50%;
    transform: translateX(50%);
    opacity: 0.7;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-age {
    width: 100%;
    text-align: center;
  }

  .shape {
    filter: blur(80px);
    opacity: 0.25;
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.75rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .counter-value {
    font-size: 2rem;
  }

  .logo-nav {
    width: 48px;
  }

  .logo-footer {
    width: 36px;
  }
}
