/* =============================================
   EigenZ Solutions — Global Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@500;700&display=swap');
:root {
  --clr-bg: #f5f4f0;
  --clr-surface: #ffffff;
  --clr-dark: #0d0f14;
  --clr-dark-2: #1a1d26;
  --clr-accent: #1a56db;
  --clr-accent-2: #0e3fa8;
  --clr-accent-light: #e8effd;
  --clr-text: #0d0f14;
  --clr-muted: #6b7280;
  --clr-border: #e2e4e9;
  --clr-white: #ffffff;

  --font-display: 'Roboto', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(13,15,20,0.07), 0 1px 2px rgba(13,15,20,0.05);
  --shadow-md: 0 4px 16px rgba(13,15,20,0.08), 0 2px 6px rgba(13,15,20,0.05);
  --shadow-lg: 0 12px 40px rgba(13,15,20,0.12), 0 4px 12px rgba(13,15,20,0.06);

  --nav-h: 72px;
  --max-w: 1160px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===================== UTILITIES ===================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 16px;
}
.label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--clr-accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--clr-dark);
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--clr-muted);
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--clr-accent);
  color: var(--clr-white);
}
.btn-primary:hover {
  background: var(--clr-accent-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,86,219,0.30);
}
.btn-success {
  background: #16a34a;
  color: var(--clr-white);
}
.btn-success:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22,163,74,0.30);
}
.btn-outline {
  background: transparent;
  color: var(--clr-dark);
  border: 1.5px solid var(--clr-border);
}
.btn-outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-accent-light);
}
.btn-ghost-white {
  background: rgba(255,255,255,0.12);
  color: var(--clr-white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.22);
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(245,244,240,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--clr-blue);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .logo-mark {
  width: 36px; height: 36px;
  background: var(--clr-dark);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* ===================== NAVBAR LOGO FIX ===================== */
.nav-logo .logo-mark {
  width: 36px; 
  height: 36px;
  background-color: var(--clr-light);
  background-image: url('logo.png'); /* Ensure your logo file is saved as 'logo.png' in the root folder */
  background-size: 75% 75%; /* Perfectly bounds the geometric graphic inside the dark pill container */
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Remove the old text placeholder entirely */
.nav-logo .logo-mark::after {
  display: none !important;
}
.nav-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--clr-dark);
}
.nav-logo .logo-text span { color: var(--clr-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--clr-accent);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--clr-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  padding: 20px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--clr-text);
  padding: 12px 0;
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--clr-accent); }
.mobile-nav .btn { margin-top: 12px; justify-content: center; }

/* ===================== PAGE HERO ===================== */
.page-hero {
  background: var(--clr-dark);
  padding: 128px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 40%, rgba(26,86,219,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 70%, rgba(26,86,219,0.10) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .label { color: rgba(255,255,255,0.5); }
.page-hero .label::before { background: rgba(255,255,255,0.5); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.page-hero p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.7;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.breadcrumb a:hover { color: white; }
.breadcrumb .sep { opacity: 0.4; }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .nav-logo .logo-mark { background: rgba(255,255,255,0.1); }
.footer-brand .nav-logo .logo-text { color: white; }
.footer-brand p {
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.8125rem;
}
.footer-bottom .socials { display: flex; gap: 16px; }
.footer-bottom .socials a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background var(--transition);
}
.footer-bottom .socials a:hover { background: var(--clr-accent); }

/* ===================== GRID CARDS ===================== */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}
.card-icon {
  width: 48px; height: 48px;
  background: var(--clr-accent-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 8px;
}
.card p {
  font-size: 0.9375rem;
  color: var(--clr-muted);
  line-height: 1.65;
}

/* ===================== GRID LAYOUTS ===================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===================== DIVIDER ===================== */
.divider {
  height: 1px;
  background: var(--clr-border);
  margin: 0;
}

/* ===================== STAT PILL ===================== */
.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
}
.stat-pill .stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--clr-accent);
  letter-spacing: -0.03em;
}
.stat-pill .stat-label {
  font-size: 0.875rem;
  color: var(--clr-muted);
  margin-top: 4px;
}

/* ===================== FORM ===================== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-dark);
  letter-spacing: 0.01em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--clr-text);
  background: var(--clr-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ===================== TAG ===================== */
.tag {
  display: inline-flex;
  padding: 4px 12px;
  background: var(--clr-accent-light);
  color: var(--clr-accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===================== TAG ===================== */
.tag {
  display: inline-flex;
  padding: 4px 12px;
  background: var(--clr-accent-light);
  color: var(--clr-accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* ===================== FOUNDERS / TEAM ===================== */
.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center top; 
  position: relative;
  z-index: 2; 
}


/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

/* ===== SERVICE IMAGE BACKGROUNDS ===== */
/* ===== THE BULLETPROOF IMAGE BACKGROUND FIX ===== */
    .service-visual {
      background: var(--clr-dark);
      border-radius: var(--radius-xl);
      aspect-ratio: 4/3;
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .service-img-bg {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0; /* Forces the image to the absolute bottom layer */
      opacity: 0.35; 
      pointer-events: none; /* Prevents the image from accidental clicking */
    }

    .vis-inner {
      position: relative;
      z-index: 2; /* Pushes the icon and title to the top layer */
      text-align: center;
      padding: 32px;
      margin-bottom: auto; /* Pushes the chips downward naturally */
      margin-top: auto;
    }

    .vis-chips {
      position: absolute;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 2; /* Keeps chips cleanly visible over the picture */
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: center;
    }
