:root {
  --bg: #0a192f;
  --bg-light: #112240;
  --text: #ccd6f6;
  --text-bright: #e6f1ff;
  --muted: #8892b0;
  --accent: #64ffda;
  --accent-glow: rgba(100, 255, 218, 0.15);
  --shadow-low: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
  --shadow-hover: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
  --radius: 12px;
  --nav-height: 70px;
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.8; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================
   NAVBAR (Glass Dark + White Logo)
   ========================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.9); /* Dark background with slight see-through */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO FIX: Inverts dark logo to white so it pops on dark bg */
.logo-img { 
  height: 36px; 
  width: auto;
  filter: brightness(0) invert(1); 
  transition: opacity 0.3s;
}
.logo-img:hover { opacity: 0.8; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0; padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-bright);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }

.btn-nav {
  padding: 8px 18px;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  border-radius: 4px;
}
.btn-nav:hover {
  background: var(--accent-glow);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle i {
  display: block;
  width: 25px; height: 2px;
  background: var(--accent);
  position: relative;
}
.nav-toggle i::before, .nav-toggle i::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--accent);
  transition: 0.3s;
}
.nav-toggle i::before { top: -8px; }
.nav-toggle i::after { top: 8px; }

/* =========================
   HERO SECTION (Tighter Spacing)
   ========================= */
.hero {
  min-height: 60vh; /* Reduced from 80vh to remove big gap */
  display: flex;
  align-items: center;
  padding: 60px 0 40px 0; /* Tighter top/bottom padding */
  position: relative;
  /* Tech Grid Background */
  background-image: 
    linear-gradient(rgba(100, 255, 218, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 218, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Fade at bottom of Hero */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero-text { max-width: 720px; z-index: 2; }

.hero h1 {
  font-size: clamp(36px, 6vw, 64px); /* Slightly smaller for balance */
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.1;
  margin: 0 0 16px 0; /* Reduced margin */
}

/* Gradient Text Effect */
.highlight {
  background: linear-gradient(90deg, var(--accent), #4e9cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 28px; /* Reduced margin */
}

.cta-group { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
}
.btn-primary:hover {
  background: #4cdbb9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
  border: 1px solid var(--text-bright);
  color: var(--text-bright);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
}

.authority-bar {
  margin-top: 32px; /* Pulled closer */
  display: flex;
  gap: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
}
.stat-item h4 { color: var(--text-bright); font-size: 1.4rem; margin: 0; }
.stat-item p { font-size: 0.85rem; margin: 4px 0 0 0; font-family: monospace; color: var(--accent); }

/* =========================
   COMMON SECTIONS (Tighter Spacing)
   ========================= */
.section { padding: 60px 0; /* Reduced from 100px to 60px */ }
.bg-light { background: var(--bg-light); }

.section-title {
  display: flex;
  align-items: center;
  font-size: 1.7rem;
  color: var(--text-bright);
  margin-bottom: 25px; /* Tighter spacing */
  white-space: nowrap;
}
/* Line after title */
.section-title::after {
  content: "";
  display: block;
  width: 150px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-left: 20px;
}

.section-lead {
  max-width: 650px;
  margin-bottom: 35px; /* Tighter spacing */
  font-size: 1.05rem;
}

/* =========================
   GEO SECTION (Premium)
   ========================= */
.geo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.geo-card {
  background: rgba(17, 34, 64, 0.7);
  border: 1px solid rgba(100, 255, 218, 0.1);
  padding: 25px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.geo-card-highlight {
  background: linear-gradient(135deg, rgba(17, 34, 64, 1) 0%, rgba(10, 25, 47, 1) 100%);
  border: 1px solid var(--accent);
  position: relative;
  box-shadow: 0 0 30px rgba(100,255,218,0.05);
}

.geo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.geo-head h3 { margin: 0; color: var(--text-bright); font-size: 1.2rem; }

.geo-badge {
  font-family: monospace;
  font-size: 12px;
  color: var(--accent);
  background: rgba(100,255,218,0.1);
  padding: 4px 10px;
  border-radius: 50px;
}

.geo-points { list-style: none; padding: 0; margin-top: 15px; }
.geo-points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.geo-points li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.geo-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 15px 0;
  background: rgba(255,255,255,0.03);
  padding: 12px;
  border-radius: 8px;
}
.geo-fact { display: flex; flex-direction: column; }
.geo-fact .label { font-size: 9px; text-transform: uppercase; color: var(--muted); letter-spacing: 1px; }
.geo-fact .value { color: var(--text-bright); font-weight: 600; font-size: 0.9rem; }

.geo-cta { display: flex; gap: 10px; margin-top: 20px; }
.geo-cta a { flex: 1; text-align: center; padding: 10px; font-size: 14px; }

/* =========================
   GRID CARDS (Services/Problems)
   ========================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-light);
  padding: 25px;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
  box-shadow: var(--shadow-low);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Hover Effect: Lift and Glow */
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.icon {
  font-size: 30px;
  margin-bottom: 15px;
  display: inline-block;
}

.card h3 {
  margin: 0 0 10px 0;
  color: var(--text-bright);
  font-size: 1.2rem;
}

.card p { font-size: 0.95rem; margin: 0; }

/* =========================
   ABOUT & FAQ
   ========================= */
.about-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.faq-item {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 20px;
  margin-bottom: 12px;
  border-radius: 8px;
}
.faq-item h3 { margin: 0 0 8px 0; color: var(--text-bright); font-size: 1.05rem; }
.faq-item p { margin: 0; font-size: 0.95rem; }

/* =========================
   FOOTER
   ========================= */
footer {
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.email-link { display: block; margin-top: 10px; font-family: monospace; }

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  
  .nav-content { padding: 0 20px; }
  
  .nav-toggle { display: block; z-index: 1001; }
  .nav-toggle.open i { background: transparent; }
  .nav-toggle.open i::before { transform: rotate(45deg); top: 0; }
  .nav-toggle.open i::after { transform: rotate(-45deg); top: 0; }

  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 75vw;
    background: #112240;
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: 0.3s ease-in-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1000;
  }
  .nav-links.open { transform: translateX(0); }
  
  .hero-text { text-align: left; }
  
  /* Mobile Spacing adjustments */
  .hero { min-height: auto; padding-top: 40px; padding-bottom: 40px; }
  .section { padding: 50px 0; }
  
  .geo-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 30px; }
  
  .section-title::after { width: 100%; display: none; }
}

/* =========================
   ANIMATIONS (Scroll Reveal)
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}