/* =========================
   1. CORE SETTINGS & RESET
========================= */
:root {
  --brand-primary: #3b82f6;       
  --brand-glow: rgba(59, 130, 246, 0.4);
  --brand-accent: #60a5fa;
  --bg-deep: #020617;             
  --bg-surface: rgba(30, 41, 59, 0.3); 
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-blur: blur(16px);
  --nav-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* =========================
   2. SCROLL CONTAINER (Natural Scroll for GSAP)
========================= */
.scroll-container {
  width: 100%;
  position: relative;
  z-index: 2;
  overflow-x: hidden;
}

/* Section Defaults */
section, header {
  min-height: 100vh; /* Allow natural growth */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 100px 20px;
}

/* =========================
   3. NAVIGATION (Fixed: Hanging Logo)
========================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px; 
  z-index: 1000;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: visible; /* Allows logo to hang out */
}

.brand-logo-nav {
  position: relative;
  width: 200px;
  height: 100%;
  display: flex;
  align-items: center;
}

.brand-logo-nav img {
  position: absolute;
  width: 260px; /* Big Desktop Logo */
  height: auto;
  top: 0; 
  left: -20px;
  z-index: 1001; 
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
  transition: width 0.3s ease;
}

.nav-right { display: flex; align-items: center; gap: 32px; }

.nav-right a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
}
.nav-right a:hover { color: white; }

.nav-cta {
  padding: 10px 24px;
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  color: white !important;
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}
.nav-cta:hover { background: var(--brand-primary); }

/* =========================
   HERO SECTION
========================= */
.hero {
  text-align: center;
  align-items: center; 
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to bottom right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.25rem; max-width: 600px; margin: 0 auto 40px; }

/* =========================
   BUTTONS
========================= */
.primary-btn {
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: white;
  padding: 18px 42px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
}

/* =========================
   COMPONENTS
========================= */
.container { max-width: 1200px; margin: 0 auto; width: 100%; }

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-surface);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  transition: 0.3s;
}
.service-card:hover { transform: translateY(-10px); background: rgba(59, 130, 246, 0.1); border-color: var(--brand-primary); }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: white; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Metrics Section */
.metrics-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 60px;
  text-align: center;
}
.metric h2 { font-size: 3.5rem; color: var(--brand-accent); margin-bottom: 5px; }
.metric span { color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; font-size: 0.85rem; }

/* Testimonials */
.testimonial {
  background: rgba(2,6,23,0.8);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

/* Footer */
.footer-section { height: auto; min-height: 200px; padding: 50px 0; }
.footer { text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* Watermark */
.watermark-bg {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw; opacity: 0.04;
  pointer-events: none;
  z-index: 0; filter: grayscale(100%);
}

/* Animations */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.active .fade-in-up { opacity: 1; transform: translateY(0); }


/* =========================
   5. MOBILE & TABLET MEDIA QUERIES (Cleaned & Final)
========================= */

/* Tablet (1024px and down) */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; } /* 2 columns */
  section { 
    height: auto; 
    min-height: 100vh; 
    padding: 120px 20px;
    justify-content: flex-start;
  }
}

/* Mobile (768px and down) */
@media (max-width: 768px) {
  /* 1. NAVIGATION: Make Logo Bigger on Mobile */
  .nav { padding: 0 15px; height: 75px; }
  .nav-right { display: none; }
  
  .brand-logo-nav { 
    width: 180px; /* Wider container */
  }
  .brand-logo-nav img { 
    width: 200px; /* Increased from 160px to 200px */
    top: 0;
    left: -15px;
  }

  /* 2. HERO TEXT: Make Smaller & Balanced */
  .hero h1 { 
    /* Force smaller font on mobile */
    font-size: clamp(2rem, 8vw, 2.5rem) !important; 
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .hero p { 
    font-size: 1rem; 
    line-height: 1.5;
    margin-bottom: 30px;
  }
  
  /* 3. LAYOUT FIXES */
  .services-grid { grid-template-columns: 1fr; gap: 24px; }
  
  .metrics-row { 
    flex-direction: column; 
    gap: 40px; 
    margin-top: 40px; 
  }
  
  .metric h2 { font-size: 2.5rem; }

  /* 4. BUTTONS */
  .primary-btn {
    padding: 16px 32px;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
  }
  
  .watermark-bg { width: 95vw; opacity: 0.02; }
}