/* =========================================
   ADeX SYSTEM — FUTURISTIC DESIGN
   Color Palette: Dark Navy + Neon Orange
   ========================================= */

:root {
  --bg-deep:      #04060f;
  --bg-dark:      #080c1a;
  --bg-card:      #0c1228;
  --bg-card2:     #0f1630;
  --border:       rgba(255, 255, 255, 0.15);
  --border-bright: rgba(255, 255, 255, 0.45);
  --accent:       #386FA3;
  --accent-bright:#ffffff;
  --accent-dim:   rgba(255, 255, 255, 0.12);
  --accent-glow:  rgba(255, 255, 255, 0.35);
  --text:         #e8eaf0;
  --text-muted:   #7a8099;
  --text-dim:     #4a5068;
  --navy:         #0d1a3a;
  --cyan:         #00c8e0;
  --success:      #00e676;
  --font-display: 'Orbitron', monospace;
  --font-body:    'Exo 2', sans-serif;
  --radius:       6px;
  --radius-lg:    12px;
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card:  0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-glow:  0 0 30px rgba(255, 255, 255, 0.25);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

/* ===================== RESPONSIVE UTILITIES ===================== */

/* --- TABLETS (Below 1024px) --- */
@media (max-width: 1024px) {
  .products-grid, .services-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns instead of 4 */
    gap: 20px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr; /* 2x2 grid for footer */
  }

  .about-grid {
    grid-template-columns: 1fr; /* Stack visual and text */
    text-align: center;
    gap: 40px;
  }

  .feature-item {
    justify-content: center;
  }
}

/* --- MOBILE & TABLET NAVIGATION (Below 992px) --- */
@media (max-width: 992px) {
  .header-inner {
    padding: 0 20px;
  }

  /* Hamburger Menu Button */
  .nav-toggle {
    display: flex !important; /* Force show hamburger */
    z-index: 1001;
  }

  /* Mobile Navigation Overlay */
  #main-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Hide off-screen to the right */
    width: 280px;
    height: 100vh;
    background: #04060f;
    padding-top: 100px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1000;
    display: block !important;
  }

  #main-nav.active {
    right: 0; /* Slide in when active */
  }

  #main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .header-cta {
    display: none; /* Hide large button on mobile */
  }

  /* Hero Section Adjustments */
  #intro {
    flex-direction: column;
    padding-top: 140px;
    text-align: center;
  }

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

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-carousel {
    width: 100%;
    max-width: 450px;
  }
}

/* --- SMALL MOBILE (Below 600px) --- */
@media (max-width: 600px) {
  .products-grid, .services-grid, .footer-main {
    grid-template-columns: 1fr; /* Single column stack */
  }

  .form-row {
    grid-template-columns: 1fr; /* Form fields stack */
  }

  .hero-line {
    font-size: 38px; /* Smaller text for phones */
  }

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

  .contact-form-wrap {
    padding: 25px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .cert-col {
    border-left: none;
    border-top: 2px solid #386FA3;
    padding-left: 0;
    padding-top: 20px;
    align-items: center;
  }
}

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

.logo-image {
  height: 60px;    /* Adjust this height to fit your header */
  width: auto;     /* Keeps the logo from looking stretched */
  display: block;
  padding: 10px 0; /* Adds a little breathing room */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
address { font-style: normal; }

/* ========= PARTICLE CANVAS ========= */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ========= SCANLINES ========= */
.scanlines {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ========= LAYOUT ========= */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.footer-logo-img {
  height: 60px;      /* Matches the height of your header logo */
  width: auto;       /* Prevents the logo from stretching */
  display: block;    /* Ensures it sits on its own line */
  margin-bottom: 20px; /* Adds space between the logo and the text below */
  padding: 5px 0;    /* Optional: adds a small amount of breathing room */
}

section { position: relative; z-index: 2; }

/* ========= TYPOGRAPHY ========= */
.accent { color: var(--accent); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  color: var(--text);
}

.section-header p {
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ========= BUTTONS ========= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
}
.btn-ghost span { transition: transform 0.3s; }
.btn-ghost:hover span { transform: translateX(5px); }

/* ========= HEADER & NAVIGATION ========= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(4, 6, 15, 0.95); /* Deep dark background */
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 80px; 
}

#header.scrolled {
  padding: 0;
  background: rgba(4, 6, 15, 0.97);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    /* This pushes the logo to the left and navigation to the right */
    justify-content: space-between; 
    align-items: center;
    height: 80px;
    padding: 0 40px; /* Adjust padding to match your preference */
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  position: relative;
}

.logo-bracket {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1;
}

.logo-accent { color: var(--accent); }

.logo-sub {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  position: absolute;
  bottom: -11px;
  left: 16px;
}

/* Nav */
@media (min-width: 769px) {
  #main-nav {
    display: block !important;
    position: relative !important;
    transform: none !important;
    opacity: 1 !important;
    top: 0;
  }

}
#main-nav ul {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
}

.nav-link {
  color: #ffffff;               /* White text for visibility */
  text-decoration: none;
  position: relative;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

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

.nav-link:hover, .nav-link.active {
    color: #386FA3; /* Brand Blue from your logo */
}
.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 20px);
}

.nav-link.active { color: var(--accent); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

.header-cta { flex-shrink: 0; }

/* ========= HERO SECTION ========= */
#intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 60px;
}

.hero-bg-grid {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  flex: 1;
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--accent); }
  50% { opacity: 0.6; transform: scale(0.8); box-shadow: 0 0 4px var(--accent); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--text);
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.7s forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.2s; }
.hero-line:nth-child(2) { animation-delay: 0.4s; }
.hero-line:nth-child(3) { animation-delay: 0.6s; }
.hero-line.accent { color: var(--accent); }

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-desc {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
  opacity: 0;
  animation: slideUp 0.7s 0.8s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  opacity: 0;
  animation: slideUp 0.7s 1s forwards;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0;
  animation: slideUp 0.7s 1.1s forwards;
}

.stat { text-align: center; }

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  font-weight: 700;
}

.stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
  font-family: var(--font-display);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Carousel */
.hero-carousel {
  width: 380px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: slideUp 0.7s 1.2s forwards;
}

.carousel-track { position: relative; min-height: 220px; }

.carousel-slide {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.carousel-slide.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-tag {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.carousel-slide h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.carousel-slide p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 300;
}

.slide-link {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  transition: gap 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.slide-link:hover { gap: 14px; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.carousel-btn {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.carousel-dots { display: flex; gap: 6px; }

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 3px;
  box-shadow: 0 0 8px var(--accent);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-indicator span {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ========= PRODUCTS ========= */
#products {
  padding: 120px 0;
  background: linear-gradient(to bottom, var(--bg-deep), var(--bg-dark));
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.product-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-6px);
  background: var(--bg-card2);
  box-shadow: var(--shadow-card), 0 20px 60px rgba(255,107,0,0.1);
}
.product-card:hover::before { opacity: 1; }

.product-card.featured {
  border-color: rgba(255, 107, 0, 0.35);
  background: linear-gradient(135deg, var(--bg-card2) 0%, rgba(255,107,0,0.05) 100%);
}

.featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #000;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

.card-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.product-card:hover .card-glow { opacity: 1; }

.card-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.card-icon {
  width: 48px; height: 48px;
  color: var(--accent);
  margin-bottom: 16px;
  transition: transform 0.3s;
}
.product-card:hover .card-icon { transform: scale(1.1) rotate(-5deg); }

.product-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.product-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 300;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.card-tags span {
  font-size: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

.card-link {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { color: var(--accent); gap: 12px; }

/* ========= ABOUT ========= */
#about {
  padding: 120px 0;
  background: var(--bg-dark);
  overflow: hidden;
}

.about-bg-accent {
  position: absolute;
  top: 50%;
  left: -200px;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,0,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Hex Visual */
.about-visual {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-container {
  position: relative;
  width: 320px;
  height: 320px;
}

.hex {
  position: absolute;
  width: 80px;
  height: 92px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: default;
}

.hex:hover {
  background: var(--accent-dim);
  border-color: var(--border-bright);
  color: var(--accent);
}

.hex-center {
  width: 100px; height: 115px;
  background: var(--accent);
  color: #000 !important;
  font-size: 13px;
  font-weight: 900;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 40px var(--accent-glow);
  animation: hexPulse 3s infinite;
}

@keyframes hexPulse {
  0%, 100% { box-shadow: 0 0 40px var(--accent-glow); }
  50% { box-shadow: 0 0 70px rgba(255,107,0,0.5); }
}

.hex-1 { top: 0px; left: 50%; transform: translateX(-50%); }
.hex-2 { top: 50px; right: 10px; }
.hex-3 { bottom: 50px; right: 10px; }
.hex-4 { bottom: 0px; left: 50%; transform: translateX(-50%); }
.hex-5 { bottom: 50px; left: 10px; }
.hex-6 { top: 50px; left: 10px; }

.about-orbit {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border);
  border-radius: 50%;
}
.ring-1 { width: 280px; height: 280px; }
.ring-2 { width: 380px; height: 380px; opacity: 0.5; }

.orbit-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.dot-1 {
  animation: orbit1 8s linear infinite;
  margin: -4px;
}
.dot-2 {
  animation: orbit2 13s linear infinite;
  margin: -4px;
}

@keyframes orbit1 {
  from { transform: rotate(0deg) translateX(140px); }
  to { transform: rotate(360deg) translateX(140px); }
}
@keyframes orbit2 {
  from { transform: rotate(90deg) translateX(190px); }
  to { transform: rotate(450deg) translateX(190px); }
}

/* About Content */
.about-content { position: relative; z-index: 2; }

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.about-lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 300;
}

.about-content > p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 40px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-item h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.feature-item p {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 300;
}

/* ========= SERVICES ========= */
#services {
  padding: 120px 0;
  background: linear-gradient(to bottom, var(--bg-dark), var(--bg-deep));
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  position: relative;
  transition: all 0.4s;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.service-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.service-card:hover::after { transform: scaleX(1); }

.service-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-dim), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(2);
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.service-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

.service-line {
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.4s;
}
.service-card:hover .service-line { height: 100%; }

/* ========= CONTACT ========= */
#contact {
  padding: 120px 0;
  background: var(--bg-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 32px; }

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

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-item h4 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

.contact-item a {
  color: var(--text-muted);
  transition: color 0.3s;
}
.contact-item a:hover { color: var(--accent); }

.fax {
  font-size: 12px !important;
  color: var(--text-dim) !important;
  margin-top: 4px;
}

/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright), transparent);
}

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

.form-group {
  margin-bottom: 28px;
  position: relative;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  transition: all 0.3s;
  outline: none;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 107, 0, 0.04);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.08);
}

.input-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--accent);
  width: 0;
  transition: width 0.4s;
  border-radius: 2px;
}

.form-group:focus-within .input-line { width: 100%; }

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 13px;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--radius);
  color: var(--success);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ========= FULL FOOTER DESIGN (MATCHING REFERENCE) ========= */
#footer {
    background: #111111; /* Dark background from image */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 0 30px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

/* Background Grid Effect */
.footer-grid-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,107,0,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,107,0,0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Main Grid Layout - Matches the 4-column reference */
.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.2fr 0.8fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

/* Column 1: Brand & Logo */
.footer-brand .logo { 
    margin-bottom: 25px; 
}

.footer-logo-img {
    height: 60px; /* Exact height requested */
    width: auto;
    display: block;
    margin-bottom: 20px;
    padding: 5px 0;
}

.footer-brand p {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.8;
    font-weight: 300;
}

/* Column Titles with Blue Bottom Border */
.footer-links-col h4 {
    font-size: 15px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #386FA3; /* Logo Blue line */
    display: block;
    letter-spacing: 0.1em;
}

/* Column 2: Product Links with Horizontal Separators */
.footer-links-col ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.footer-links-col ul li {
    border-bottom: 1px solid #222; /* Horizontal lines from image */
    padding: 10px 0;
}

.footer-links-col ul li:last-child {
    border-bottom: none;
}

.footer-links-col a {
    font-size: 14px;
    color: #bbbbbb;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links-col a::before {
    content: '›';
    color: #386FA3; /* Logo Blue arrow */
    font-size: 18px;
    font-weight: bold;
}

.footer-links-col a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Column 3: Contact Info Styling */
.footer-links-col address {
    font-style: normal;
    font-size: 14px;
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-link {
    font-size: 14px;
    color: #cccccc;
}

.label-red {
    color: #E3242B; /* Logo Red */
    font-weight: 700;
    margin-right: 5px;
}

.report-link {
    color: #386FA3; /* Logo Blue from Adex LogoX.png */
    text-decoration: none;
    font-weight: 500;
}

.report-link:hover {
    text-decoration: underline;
}

/* Column 4: Certifications with Blue Vertical Line */
.cert-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 2px solid #386FA3; /* The vertical blue bar from image */
    padding-left: 20px;
}

.cert-img {
    height: 60px; /* Consistent with logo height */
    width: auto;
    display: block;
    margin-bottom: 15px;
    padding: 5px 0;
    transition: transform 0.3s ease;
}

.cert-img:hover {
    transform: scale(1.05);
}

/* Footer Bottom Bar */
.footer-bottom {
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    font-size: 13px;
    color: #888888;
}

.footer-bottom strong {
    color: #bbbbbb;
}

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

.footer-bottom-links a {
    font-size: 12px;
    color: #888888;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #386FA3;
}

/* Back to Top & Utility */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: #386FA3;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transition: all 0.3s;
}

.back-to-top.visible { opacity: 1; }

/* ===================== RESPONSIVE UTILITIES ===================== */

/* Tablet & Mobile (Standard breakpoint) */
@media (max-width: 992px) {
  .header-inner {
    padding: 0 20px;
  }

  /* Navigation becomes an overlay */
  #main-nav {
    position: fixed;
    top: 80px;
    left: -100%; /* Hidden by default */
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-deep);
    transition: var(--transition);
    z-index: 1000;
  }

  #main-nav.active {
    left: 0; /* Slide in */
  }

  #main-nav ul {
    flex-direction: column;
    padding: 40px;
    gap: 30px;
  }

  .nav-toggle {
    display: flex; /* Show hamburger */
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 30px;
    height: 2px;
    background: white;
    transition: var(--transition);
  }

  /* Grid Adjustments */
  .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Small Mobile */
@media (max-width: 576px) {
  .header-cta {
    display: none; /* Hide button on very small screens to save space */
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}
