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

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  /* Colors */
  --bg-darkest: #07090e; /* Ultra dark base background */
  --bg-darker: #0d111a; /* Dark section background */
  --bg-card: rgba(16, 22, 35, 0.65); /* Translucent glass card background */

  --primary: #0062ff; /* Main brand solid electric blue */
  --primary-hover: #1a75ff; /* Lighter blue for hover states */
  --primary-glow: rgba(0, 98, 255, 0.25);

  --accent: #00f0ff; /* Technical electric cyan */
  --accent-glow: rgba(0, 240, 255, 0.2);

  --text-white: #ffffff; /* High contrast titles */
  --text-primary: #e2e8f0; /* General light text */
  --text-secondary: #94a3b8; /* Muted metadata and descriptions */
  --text-muted: #64748b; /* Subtext, credits, timestamps */

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 98, 255, 0.35);

  /* Fonts */
  --font-heading:
    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout Options */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  width: 100%;
}

img,
video,
svg,
iframe {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--bg-darkest);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- TYPOGRAPHY & GRADIENTS --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

p {
  color: var(--text-secondary);
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--text-white) 40%,
    var(--primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text-blue {
  color: var(--primary);
  text-shadow: 0 0 15px rgba(0, 98, 255, 0.3);
}

.accent-text-cyan {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* --- BACKGROUND DECORATION --- */
.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-dot-grid {
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
}

.blur-orb-1 {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(100px);
}

.blur-orb-2 {
  position: absolute;
  top: 50%;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(100px);
}

.blur-orb-3 {
  position: absolute;
  bottom: -100px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(80px);
}

@media (max-width: 768px) {
  .blur-orb-1,
  .blur-orb-2,
  .blur-orb-3 {
    width: 320px;
    height: 320px;
  }

  .blur-orb-1 {
    top: -100px;
    right: -80px;
  }

  .blur-orb-2 {
    top: 45%;
    left: -120px;
  }

  .blur-orb-3 {
    bottom: -100px;
    right: -80px;
  }
}

@media (max-width: 768px) {
  .blur-orb-1,
  .blur-orb-2,
  .blur-orb-3 {
    display: none;
  }
  .contact-container,
  .contact-grid {
    overflow-x: hidden;
  }
  .contact-info-panel h1 {
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    font-size: clamp(1.4rem, 5.5vw, 1.9rem) !important;
  }
}

@media (max-width: 480px) {
  .blur-orb-1,
  .blur-orb-2,
  .blur-orb-3 {
    width: 260px;
    height: 260px;
  }

  .blur-orb-1 {
    top: -90px;
    right: -60px;
  }

  .blur-orb-2 {
    top: 48%;
    left: -90px;
  }

  .blur-orb-3 {
    bottom: -90px;
    right: -70px;
  }
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 70px 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 700px;
  margin-bottom: 40px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
}

/* --- COMPONENT STYLES --- */

/* 1. Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background-color: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

header.scrolled {
  background-color: #000000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-white);
  letter-spacing: -0.03em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Site logo image (user-provided) */
.site-logo {
  height: 46px;
  width: auto;
  display: inline-block;
  background: transparent;
  mix-blend-mode: normal;
  filter: none;
}

.site-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-white);
  margin-left: 5px;
  font-size: 1.5rem;
  display: inline-block;
  vertical-align: middle;
}

.logo-icon svg {
  fill: var(--text-white);
  width: 16px;
  height: 16px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.phone-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.phone-badge:hover {
  color: var(--accent);
}

.phone-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

/* 2. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(0, 98, 255, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline-cyan {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-outline-cyan:hover {
  background-color: rgba(0, 240, 255, 0.06);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

/* Hamburger toggler */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-white);
  margin: 5px 0;
  transition: var(--transition);
}

/* Chip/Badge UI */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 98, 255, 0.12);
  border: 1px solid rgba(0, 98, 255, 0.2);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  width: fit-content;
}

.chip span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* 3. Hero Section */
.hero {
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  min-height: 76vh;
  background-image:
    linear-gradient(
      to right,
      #07090e 38%,
      rgba(7, 9, 14, 0.5) 68%,
      rgba(7, 9, 14, 0.25) 100%
    ),
    url("assets/hero_monitoring.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  display: flex;
  flex-direction: column;
  max-width: 660px;
  z-index: 2;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-checklist {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.hero-checklist li svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero image classes removed - background layout in use */

/* 4. About Section */
.about-media-box {
  position: relative;
}

.about-image-frame {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16/10;
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 16px;
}

.about-content p {
  font-size: 1rem;
  margin-bottom: 18px;
  line-height: 1.65;
}

/* 5. Services Carousel */
.carousel-track-wrapper {
  overflow: hidden;
  position: relative;
  /* Fade-out edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: carousel-scroll 40s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Removed mobile overrides for the carousel to restore
   the original infinite-scroll behavior on small screens. */

/* Legacy grid fallback - not used but kept for reference */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  /* Fixed width so carousel tracks work perfectly */
  width: 290px;
  flex-shrink: 0;
  transition: var(--transition-slow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  user-select: none;
}

.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 35px rgba(0, 98, 255, 0.18);
  transform: translateY(-5px);
}

.service-image-box {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
}

.service-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  pointer-events: none;
}

.service-card:hover .service-image-box img {
  transform: scale(1.07);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* 6. Why Choose Us Section */
.why-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 30px;
  align-items: center;
}

.why-media-panel {
  display: flex;
  align-self: center;
}

.why-media-panel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.why-content-panel {
  display: flex;
  flex-direction: column;
}

.why-card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 10px;
}

.why-check-item {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.why-check-item:hover {
  background: rgba(0, 98, 255, 0.03);
  border-color: var(--border-hover);
}

.why-check-icon {
  width: 24px;
  height: 24px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.why-check-text h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.why-check-text p {
  font-size: 0.95rem;
}

/* 7. Call To Action section */
.cta-box {
  background:
    linear-gradient(
      135deg,
      rgba(0, 98, 255, 0.15) 0%,
      rgba(0, 240, 255, 0.05) 100%
    ),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.cta-box::after {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(0, 240, 255, 0.15) 0%,
    transparent 70%
  );
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.cta-box h2 {
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* 8. Contact Form & Request Page Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-info-panel h2 {
  margin-bottom: 20px;
}

.contact-info-panel p {
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.02);
}

.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 98, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.info-card-details h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.info-card-details span {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-white);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  background: rgba(0, 98, 255, 0.02);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 98, 255, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
  background-color: rgba(255, 255, 255, 0.03);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  cursor: pointer;
}

.form-select option {
  background-color: #07111f;
  color: var(--text-white);
  padding: 10px;
}

.form-select option:checked,
.form-select option:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 98, 255, 0.35),
    rgba(0, 240, 255, 0.25)
  );
  color: var(--text-white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* 9. Back to Top Button */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.9);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 1100;
}

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

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* 10. Footer Layout */
footer {
  background-color: #040508;
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-info-item svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* --- RESPONSIVE MEDIA BREAKPOINTS --- */
@media (max-width: 1024px) {
  html,
  body,
  .container,
  .hero,
  .section,
  footer {
    width: 100%;
    max-width: 100%;
  }

  .container {
    padding-left: 5px;
    padding-right: 5px;
  }

  .hero {
    padding: 130px 0 80px;
    min-height: auto;
    /* Full overlay so image shows behind text on tablet */
    background-image:
      linear-gradient(
        to bottom,
        rgba(7, 9, 14, 0.88) 0%,
        rgba(7, 9, 14, 0.78) 60%,
        rgba(7, 9, 14, 0.92) 100%
      ),
      url("assets/hero_monitoring.png");
    background-position: center center;
  }
  .hero-content {
    max-width: 100%;
  }
  .grid-2,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body,
  html {
    overflow-x: hidden;
  }

  .section {
    padding: 50px 0;
  }

  .hero {
    padding: 110px 0 60px;
    min-height: auto;
  }

  .hero p {
    max-width: 100%;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .menu-btn {
    display: block;
    margin-left: 10px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #090b11;
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 85px 30px 30px;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition-slow);
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-actions {
    display: none;
  }

  /* CTA block sits naturally at the bottom of the nav list */
  .nav-actions-mobile {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    gap: 16px;
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }

  .nav-actions-mobile .phone-badge {
    color: var(--text-white);
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cta-box {
    padding: 36px 20px;
  }

  .section-header {
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  :root {
    --radius-md: 8px;
    --radius-lg: 12px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding: 100px 0 50px;
    /* Darker overlay on small screens for better text legibility */
    background-image:
      linear-gradient(rgba(7, 9, 14, 0.93), rgba(7, 9, 14, 0.88)),
      url("assets/hero_monitoring.png");
    background-position: center center;
  }

  .hero-content {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero p {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }

  .hero-checklist {
    margin-bottom: 22px;
    gap: 8px;
  }

  .hero-checklist li {
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

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

  .chip {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-check-item {
    padding: 12px 14px;
  }

  .cta-box {
    padding: 30px 16px;
  }

  .cta-box h2 {
    font-size: 1.6rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-col h3 {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }
}

/* Contact page specific responsive fixes to prevent horizontal overflow */
@media (max-width: 768px) {
  /* Override the large inline padding on the contact page */
  .contact-container {
    padding: 80px 12px 60px !important;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-info-panel,
  .glass-card {
    width: 100%;
    max-width: 100%;
    padding-top: 20px;
  }

  .info-cards {
    flex-direction: column;
    gap: 14px;
  }

  .info-card,
  .info-card-details {
    min-width: 0;
    width: 100%;
  }

  .contact-info-panel h1,
  .contact-info-panel p,
  .info-card-details span,
  .info-card-details h4 {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  /* Force children to respect the container width and allow wrapping */
  .contact-info-panel,
  .contact-info-panel *,
  .info-cards,
  .info-card,
  .info-card * {
    box-sizing: border-box;
    max-width: 100%;
  }
  .info-cards {
    flex-wrap: wrap;
  }
  /* Ensure grid items can shrink instead of forcing overflow */
  .contact-grid > * {
    min-width: 0;
    max-width: 100%;
  }
  .contact-info-panel {
    min-width: 0;
    max-width: 100%;
  }
  /* Force full-width behavior on narrow screens */
  .contact-grid > * {
    width: 100% !important;
  }
  .glass-card {
    width: 100% !important;
    max-width: 100% !important;
  }
  .info-card {
    width: 100% !important;
    padding: 16px !important;
  }
  .form-input,
  .form-select,
  .form-textarea,
  .btn {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 60px 12px 40px !important;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-group {
    width: 100%;
  }
}
