/* 
   Alliance Secure Solutions - Mobile-First Premium Responsive Design System
   Brand: Dark Premium (#0B0B0B) with White & Gold Highlights (#D4AF37)
*/

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

:root {
  /* Colors */
  --bg-primary: #050505;
  --bg-secondary: #0c0c0c;
  --bg-tertiary: #121212;
  --accent-gold: #D4AF37;
  --accent-gold-rgb: 212, 175, 55;
  --accent-gold-dark: #B38F24;
  --accent-gold-glow: rgba(212, 175, 55, 0.18);
  --text-primary: #FFFFFF;
  --text-secondary: #A3A3A3;
  --text-muted: #525252;
  --border-color: rgba(255, 255, 255, 0.07);
  --success: #10B981;
  --danger: #EF4444;

  /* Glassmorphism */
  --glass-bg: rgba(12, 12, 12, 0.75);
  --glass-border: rgba(212, 175, 55, 0.1);
  --glass-border-hover: rgba(212, 175, 55, 0.3);
  --glass-shadow: rgba(0, 0, 0, 0.5);

  /* Layout */
  --max-width: 1280px;
  --header-height-mobile: 64px;
  --header-height-desktop: 80px;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  
  /* Typography System (Responsive clamp values) */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-size-hero-title: clamp(2rem, 5.5vw, 3.8rem);
  --font-size-section-title: clamp(1.6rem, 4.5vw, 2.5rem);
  --font-size-section-desc: clamp(0.95rem, 2vw, 1.1rem);
  --font-size-body: clamp(0.95rem, 1.8vw, 1.05rem);
  --font-size-card-title: clamp(1.1rem, 2.5vw, 1.3rem);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease-out;
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: pan-y; /* Prevent default browser pinch-zoom scale triggers */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border: 1px solid var(--bg-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Accessibility Focus & Skip Link */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  padding: 10px 20px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  z-index: 9999;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 20px;
}

/* Background Radial Glow patterns */
.bg-glow-radial {
  position: absolute;
  width: min(100vw, 500px);
  height: min(100vw, 500px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-gold-glow) 0%, rgba(5, 5, 5, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Structural Components */
section {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0;
  width: 100%;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto clamp(40px, 6vw, 60px);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(212, 175, 55, 0.05);
}

.section-title {
  font-size: var(--font-size-section-title);
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FFFFFF 60%, #E5E5E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-secondary);
  font-size: var(--font-size-section-desc);
}

/* Button UI System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  min-height: 48px; /* Safe mobile touch target */
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 10px;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}
.btn-primary:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-gold-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}
.btn-gold-outline:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: 0 6px 20px var(--accent-gold-glow);
  transform: translateY(-2px);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  padding: clamp(20px, 4vw, 32px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold-glow), transparent);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.08);
}

.glass-card:hover::before {
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-mobile);
  z-index: 1000;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  white-space: nowrap;
}

.logo span {
  color: #ffffff;
}

.logo-img {
  height: clamp(34px, 5vw, 44px);
  width: auto;
  object-fit: contain;
}

/* Mobile Hamburger Menu */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding: 13px; /* Extends target size to 44px */
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Menu Drawer */
.nav-menu {
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height-mobile));
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 24px;
  padding: 40px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 999;
  overflow-y: auto;
}

.nav-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-link {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 20px;
  width: 100%;
  text-align: center;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

.nav-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.nav-cta .btn {
  width: 100%;
  max-width: 280px;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-height-mobile) + 40px);
  padding-bottom: 60px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.03) 0%, rgba(5, 5, 5, 1) 80%);
}

.hero-grid {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-content {
  text-align: center;
  width: 100%;
  z-index: 5;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--accent-gold-glow);
  padding: 6px 16px;
  border-radius: 100px;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: var(--font-size-hero-title);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-title span {
  display: block;
}

.hero-desc {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.hero-btns .btn {
  width: 100%;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: clamp(220px, 45vw, 360px);
}

.hero-circle-glow {
  position: absolute;
  width: clamp(200px, 40vw, 340px);
  height: clamp(200px, 40vw, 340px);
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.15);
  animation: spin 35s linear infinite;
}

.hero-circle-glow::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-gold);
}

.hero-shield-wrapper {
  z-index: 2;
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-hover);
  padding: 24px;
  border-radius: 50%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  width: clamp(140px, 30vw, 220px);
  height: clamp(140px, 30vw, 220px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-shield-wrapper svg {
  width: 50%;
  height: 50%;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
  animation: float 4s ease-in-out infinite;
}

/* Why Choose Us Section */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.why-card .card-icon {
  width: 54px;
  height: 54px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin-bottom: 20px;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.why-card:hover .card-icon {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.why-card h3 {
  font-size: var(--font-size-card-title);
  margin-bottom: 12px;
}

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

/* Services Section Tabs & Content */
.services-tabs-container {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  gap: 12px;
  margin-bottom: 36px;
  padding-bottom: 12px;
  justify-content: flex-start;
}

.services-tabs-container::-webkit-scrollbar {
  height: 4px;
}

.tab-btn {
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px var(--accent-gold-glow);
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

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

.service-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card h4 {
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Industries We Serve Grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.industry-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.industry-card:hover {
  border-color: var(--accent-gold-glow);
  background: rgba(212, 175, 55, 0.02);
}

.industry-card .ind-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.3rem;
  margin: 0 auto 16px;
  transition: var(--transition-smooth);
}

.industry-card:hover .ind-icon {
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.industry-card h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* About Us Section */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-left {
  width: 100%;
}

.about-tabs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.about-tab-card {
  padding: 20px;
  border-left: 3px solid var(--accent-gold);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.about-tab-card h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-tab-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.about-right {
  width: 100%;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.value-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.value-item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent-gold);
}

.value-item h5 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Technology Showcase Section */
.tech-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tech-item.active {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.03);
}

.tech-item svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

.tech-item.active svg {
  color: var(--accent-gold);
  filter: drop-shadow(0 0 6px var(--accent-gold));
}

.tech-item-text h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.tech-item-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Console Dashboard Mockup */
.tech-visual-console {
  width: 100%;
}

.dashboard-console {
  background: #080808;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.8);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  background: #0f0f0f;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-controls {
  display: flex;
  gap: 6px;
}

.dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dash-dot:nth-child(1) { background-color: var(--danger); }
.dash-dot:nth-child(2) { background-color: var(--accent-gold); }
.dash-dot:nth-child(3) { background-color: var(--success); }

.dash-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.dashboard-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background-image: radial-gradient(rgba(212, 175, 55, 0.01) 1px, transparent 1px);
  background-size: 16px 16px;
}

.dash-panel {
  background: rgba(12, 12, 12, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 14px;
}

.dash-panel h5 {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}

.cctv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.cctv-feed {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  height: 100px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cctv-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(212, 175, 55, 0.02) 50%, rgba(212, 175, 55, 0.02));
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
}

.cctv-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  color: var(--text-secondary);
  font-family: monospace;
  z-index: 5;
}

.cctv-rec {
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 2px;
}

.cctv-rec-dot {
  width: 4px;
  height: 4px;
  background-color: var(--danger);
  border-radius: 50%;
  animation: pulse 1s infinite;
}

.cctv-screen {
  color: rgba(255,255,255,0.02);
  width: 40px;
  height: 40px;
}

.log-terminal {
  background: #030303;
  border-radius: 4px;
  padding: 8px;
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--text-secondary);
  height: 110px;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-entry {
  display: flex;
  gap: 6px;
  line-height: 1.3;
}

.log-time {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.log-msg {
  color: #fff;
}

.gps-map-container {
  background: #020202;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  height: 140px;
  width: 100%;
}

.gps-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.gps-legend {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(5,5,5,0.85);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 0.55rem;
  display: flex;
  gap: 8px;
}

.gps-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gps-legend-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.gps-legend-dot.patrol { background: var(--accent-gold); }
.gps-legend-dot.hq { background: var(--success); }

/* Careers Section */
.careers-wrapper {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.openings-list {
  width: 100%;
}

.opening-item {
  border: 1px solid var(--border-color);
  background: var(--glass-bg);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.opening-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  min-height: 48px;
}

.opening-title h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.opening-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.opening-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.opening-meta svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.opening-arrow {
  color: var(--accent-gold);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.opening-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.01);
}

.opening-content {
  padding: 0 20px 20px;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 16px;
}

.opening-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.opening-content h5 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin: 14px 0 6px;
}

.opening-content ul {
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.opening-content .btn {
  width: 100%;
  margin-top: 16px;
}

.opening-item.active {
  border-color: var(--accent-gold-glow);
}

.opening-item.active .opening-arrow {
  transform: rotate(180deg);
}

.careers-sidebar {
  width: 100%;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.benefit-item svg {
  flex-shrink: 0;
  color: var(--accent-gold);
}

.benefit-item h5 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.benefit-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Modals & Forms */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-gold-glow);
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 32px);
  border-radius: var(--border-radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.8);
  position: relative;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.25rem;
  color: var(--accent-gold);
}

.modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
  -webkit-overflow-scrolling: touch;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  min-height: 48px; /* Safe mobile input touch target */
  color: #fff;
  font-size: 16px; /* Prevents auto browser-zoom on focus in iOS Safari */
  transition: var(--transition-fast);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

textarea.form-control {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

/* Custom File Upload */
.file-upload-wrapper {
  position: relative;
  width: 100%;
}

.file-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 5;
}

.file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px 20px;
  color: var(--text-secondary);
  text-align: center;
  min-height: 48px;
  transition: var(--transition-fast);
}

.file-upload-wrapper:hover .file-upload-btn {
  border-color: var(--accent-gold);
  color: #fff;
}

.error-msg {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}

.form-control.is-invalid {
  border-color: var(--danger);
}

/* Blog Insights Section */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-img-container {
  height: clamp(160px, 35vw, 200px);
  background: var(--bg-tertiary);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-img-container svg {
  color: rgba(255,255,255,0.03);
  width: 80px;
  height: 80px;
}

.blog-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 5;
}

.blog-details {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-details h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-details p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
  flex-grow: 1;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: auto;
}

/* Contact Section & Form Type Selector */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-form-type-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.form-type-btn {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 6px;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  min-height: 44px;
  text-align: center;
  transition: var(--transition-fast);
}

.form-type-btn.active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.03);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.contact-info-item h5 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-map-mockup {
  height: 200px;
  background: #0c0c0c;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-bg-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.7;
}

.map-location-marker {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-logo-img {
  width: clamp(38px, 8vw, 44px);
  height: clamp(38px, 8vw, 44px);
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  background: var(--bg-primary);
  padding: 2px;
}

.map-glow-ring {
  position: absolute;
  top: 6px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.map-tag {
  background: #000;
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  margin-top: 6px;
  white-space: nowrap;
}

/* Form Success state */
.success-overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 10px;
}

.success-overlay svg {
  color: var(--success);
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  animation: float 4s ease-in-out infinite;
}

.success-overlay h4 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 10px;
}

.success-overlay p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Footer Section */
.footer {
  background: #050505;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 24px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-logo-desc p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 14px 0 20px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-size: 0.95rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 4px 0;
}

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

.footer-newsletter p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex-grow: 1;
}

.newsletter-form button {
  min-height: 48px;
  padding: 0 16px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--accent-gold);
}

/* Floating Widgets Container */
.widgets-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.widget-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.whatsapp-widget {
  background: #25D366;
  color: #fff;
  border: none;
  position: relative;
}

.whatsapp-widget::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse 2s infinite;
  z-index: -1;
}

.whatsapp-widget:hover {
  transform: scale(1.05);
}

/* WhatsApp mobile responsive popup */
.whatsapp-popup {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: min(290px, 85vw);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-popup.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-popup-header {
  background: #075E54;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-popup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #075E54;
  font-weight: bold;
  font-size: 0.85rem;
}

.whatsapp-popup-header-info h6 {
  color: #fff;
  font-size: 0.8rem;
}

.whatsapp-popup-header-info p {
  color: #c7ebd4;
  font-size: 0.6rem;
}

.whatsapp-popup-body {
  padding: 14px;
  background: #efe7dd;
}

.whatsapp-chat-bubble {
  background: #fff;
  border-radius: 8px 8px 8px 0;
  padding: 8px 10px;
  color: #303030;
  font-size: 0.75rem;
  max-width: 95%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  line-height: 1.4;
}

.whatsapp-popup-footer {
  padding: 10px 14px;
  background: var(--bg-secondary);
}

.whatsapp-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #25D366;
  color: #fff;
  border-radius: 100px;
  padding: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.back-to-top {
  background: var(--bg-secondary);
  color: var(--accent-gold);
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 1; box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { transform: scale(1); opacity: 0.5; box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
  100% { transform: scale(0.95); opacity: 1; box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Scroll-triggered reveal anims */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-left {
  transform: translateX(-20px);
}

.reveal.reveal-right {
  transform: translateX(20px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ==========================================
   Responsive Scaling (Progressive Enhancement)
   ========================================== */

/* Phablets / Small Tablets (600px+) */
@media (min-width: 600px) {
  .hero-btns {
    flex-direction: row;
    max-width: 100%;
    justify-content: center;
    gap: 16px;
  }
  .hero-btns .btn {
    width: auto;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-form-type-selector {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
  :root {
    --font-size-hero-title: clamp(2.5rem, 5.5vw, 4rem);
  }
  
  .header {
    height: var(--header-height-desktop);
  }
  
  .nav-toggle {
    display: none; /* Hide hamburger on tablet/desktop */
  }
  
  /* Reset nav menu to horizontal bar */
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: row;
    gap: 28px;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    overflow-y: visible;
  }
  
  .nav-link {
    font-size: 0.95rem;
    padding: 6px 0;
    width: auto;
    text-align: left;
    position: relative;
  }
  
  .nav-link:hover, .nav-link.active {
    background: transparent;
    color: var(--text-primary);
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-fast);
  }
  
  .nav-link:hover::after, .nav-link.active::after {
    width: 100%;
  }
  
  .nav-cta {
    width: auto;
    margin-top: 0;
  }
  .nav-cta .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    min-height: auto;
  }

  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height-desktop) + 40px);
  }
  
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    flex-direction: row;
    text-align: left;
    gap: 40px;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-desc {
    margin-left: 0;
  }
  
  .hero-btns {
    justify-content: flex-start;
    margin-left: 0;
  }
  
  .hero-visual {
    height: 380px;
  }
  
  .services-tabs-container {
    justify-content: center;
    overflow-x: visible;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
  
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-grid {
    flex-direction: row;
    gap: 50px;
    align-items: center;
  }
  .about-left, .about-right {
    width: 50%;
  }

  .tech-container {
    grid-template-columns: 0.8fr 1.2fr;
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  
  .dashboard-body {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .cctv-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cctv-feed {
    height: 120px;
  }
  .log-terminal {
    height: 154px;
  }
  .gps-map-container {
    height: 180px;
    grid-column: span 2;
  }

  .careers-wrapper {
    flex-direction: row;
    gap: 40px;
  }
  .openings-list {
    width: 60%;
  }
  .careers-sidebar {
    width: 40%;
  }
  .opening-content .btn {
    width: auto;
  }

  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    flex-direction: row;
    gap: 40px;
  }
  .contact-map-mockup {
    height: 250px;
  }

  .footer-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .footer-col {
    flex-basis: 22%;
  }
  .footer-col.footer-logo-desc {
    flex-basis: 30%;
  }
  .footer-col.footer-newsletter {
    flex-basis: 30%;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Laptops / Desktops (1024px+) */
@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
