/* ============================================================
   NTHAN GROUP — Design System
   Navy + Steel Silver + Electric Blue
   Fonts: Poppins (display) / Open Sans (body)
   ============================================================ */

:root {
  /* Brand */
  --navy-950: #050d1c;
  --navy-900: #0a1a33;
  --navy-850: #0c2143;
  --navy-800: #102a52;
  --navy-700: #16386c;
  --blue-600: #1747a6;
  --blue-500: #1e63d6;
  --blue-400: #2e7dff;
  --blue-300: #5b9bff;
  --steel-400: #8b97a8;
  --silver-300: #c7d0dc;
  --silver-200: #dfe6ef;

  /* Surfaces */
  --bg: #f4f7fc;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --line: #e4eaf3;

  /* Text */
  --ink: #0f1b33;
  --ink-soft: #38465f;
  --ink-muted: #64728a;
  --on-dark: #eef3fb;
  --on-dark-soft: #aebbd2;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(15, 27, 51, 0.06);
  --shadow-md: 0 14px 40px -12px rgba(15, 27, 51, 0.18);
  --shadow-blue: 0 18px 50px -14px rgba(30, 99, 214, 0.45);
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Poppins', sans-serif;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}

.section--alt { background: var(--bg-alt); }
.section--tint {
  background: linear-gradient(180deg, #eef3fb 0%, #f4f7fc 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 700;
  margin: 14px 0 0;
}

.section-intro {
  max-width: 620px;
  color: var(--ink-muted);
  font-size: 1.02rem;
  margin-top: 14px;
}

.section-head { margin-bottom: 52px; }
.section-head--center { text-align: center; }
.section-head--center .section-intro { margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 60px -14px rgba(30, 99, 214, 0.6); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.6px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; transform: translateY(-2px); }
.btn-dark {
  background: var(--navy-900);
  color: #fff;
}
.btn-dark:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--blue-500);
  border: 1.6px solid var(--blue-500);
}
.btn-outline:hover { background: var(--blue-500); color: #fff; transform: translateY(-2px); }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
  padding: 16px 0;
}
.nav--solid {
  background: rgba(8, 20, 40, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -16px rgba(0, 0, 0, 0.7);
  padding: 10px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 46px; width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)); }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav__brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.04em;
}
.nav__brand-sub { font-size: 0.62rem; letter-spacing: 0.32em; color: var(--blue-300); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--on-dark-soft);
  border-radius: 8px;
  transition: color 0.2s;
}
.nav__link:hover { color: #fff; }
.nav__link::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--blue-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta { padding: 11px 22px; font-size: 0.9rem; }

.nav__toggle {
  display: none;
  color: #fff;
  padding: 8px;
  border-radius: 8px;
}

/* mobile menu */
.nav__mobile {
  overflow: hidden;
  background: rgba(8, 20, 40, 0.97);
  backdrop-filter: blur(14px);
}
.nav__mobile-inner { display: flex; flex-direction: column; padding: 12px 24px 24px; gap: 4px; }
.nav__mobile a {
  color: var(--on-dark);
  font-weight: 600;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__mobile .btn { margin-top: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 600px at 78% 18%, rgba(46, 125, 255, 0.18), transparent 60%),
    radial-gradient(800px 500px at 8% 90%, rgba(30, 99, 214, 0.16), transparent 55%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-850) 100%);
  color: var(--on-dark);
  overflow: hidden;
  padding: 130px 0 80px;
}
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 155, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 155, 255, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(91, 155, 255, 0.4);
  border-radius: 100px;
  background: rgba(46, 125, 255, 0.1);
  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-300);
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(46, 125, 255, 0.25);
}
.hero h1 {
  font-size: clamp(2.5rem, 5.8vw, 4.4rem);
  font-weight: 800;
  color: #fff;
  margin: 22px 0;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--blue-300), var(--silver-300) 60%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead {
  font-size: 1.1rem;
  color: var(--on-dark-soft);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__mini-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero__mini-stat .num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: #fff;
}
.hero__mini-stat .lbl { font-size: 0.8rem; color: var(--on-dark-soft); }

/* Hero visual / logo stage */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.hero__logo-glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 125, 255, 0.55), transparent 62%);
  filter: blur(50px);
}
.hero__logo-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(91, 155, 255, 0.22);
}
.hero__logo-ring.two { inset: 16%; border-color: rgba(91, 155, 255, 0.14); }
/* Add the floating keyframes above the card */
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero__logo-card {
  position: relative;
  z-index: 2;
  width: min(440px, 88%);
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  /* Force the image to stay static */
  animation: none !important; 
  transform: none !important;
}
.hero__logo-card img { width: 100%; border-radius: 14px; }
/* The main container holds the background, borders, text, AND the animation */
.hero__badge {
  position: absolute;
  z-index: 3;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(8, 20, 40, 0.85);
  border: 1px solid rgba(91, 155, 255, 0.3);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  /* This single animation makes the ENTIRE card (text + background) move together */
  animation: cardFloat 4s ease-in-out infinite;
}
.hero__badge__float {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__badge .ic {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  color: #fff;
}
.hero__badge .t { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 0.92rem; color: #fff; line-height: 1.2; }
.hero__badge .s { display: block; font-size: 0.72rem; color: var(--on-dark-soft); line-height: 1.2; }

.hero__badge--tl { 
  top: -2%; 
  left: -10%; 
} 
.hero__badge--br { 
  bottom: -5%; 
  right: -10%; 
  animation-delay: 2s; 
}

/* Mobile safe zones */
@media (max-width: 768px) {
  .hero__badge--tl { top: -5%; left: 0%; }
  .hero__badge--br { bottom: -5%; right: 0%; }
}

.hero__scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--on-dark-soft);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero__scroll .mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(174, 187, 210, 0.5);
  border-radius: 14px;
  display: flex; justify-content: center; padding-top: 6px;
}
.hero__scroll .mouse span {
  width: 4px; height: 8px; border-radius: 4px; background: var(--blue-300);
}

/* divisions pills under hero */
.hero__divisions {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
}
.hero__division {
  display: flex; align-items: center; gap: 12px;
  color: var(--on-dark-soft);
  font-family: 'Poppins'; font-weight: 600; font-size: 0.95rem;
}
.hero__division .ic { color: var(--blue-300); display: grid; place-items: center; }
.hero__division .bar { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.14); }

/* ============================================================
   FEATURE TRIO
   ============================================================ */
.features {
  margin-top: 0px; /* Kept at 0px based on our last fix */
  position: relative;
  z-index: 5;
  /* Add padding to increase the overall height of the section container */
  padding-top: 60px; 
  padding-bottom: 60px; 
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px -20px rgba(15, 27, 51, 0.28); }
.feature-card .ic {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--blue-300);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: var(--ink-muted); font-size: 0.96rem; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats {
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(46, 125, 255, 0.18), transparent 60%),
    linear-gradient(120deg, var(--navy-900), var(--navy-800));
  color: #fff;
  border-radius: 24px;
  padding: 48px clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-shadow: var(--shadow-md);
}
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after {
  content: '';
  position: absolute; right: -12px; top: 12%; height: 76%;
  width: 1px; background: rgba(255, 255, 255, 0.12);
}
.stat .num {
  font-family: 'Poppins'; font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3rem);
  background: linear-gradient(120deg, #fff, var(--blue-300));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .lbl { color: var(--on-dark-soft); font-size: 0.92rem; margin-top: 4px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about__visual { position: relative; }
.about__visual-card {
  border-radius: 24px;
  position: relative;
  width: 100%;
  /* Padding, background, and shadow removed */
}
.about__visual-card::before {
  display: none; /* Hides the grid pattern background */
}
.about__visual-card img { 
  position: relative; 
  width: 100%; 
  height: 100%;
  object-fit: cover;
  border-radius: 24px; /* Increased to match the outer container's old radius */
  box-shadow: var(--shadow-md); /* Moved shadow to the image directly */
}
.about__floating {
  position: absolute;
  bottom: -22px; left: -22px;
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line);
}
.about__floating .big { font-family: 'Poppins'; font-weight: 800; font-size: 2rem; color: var(--blue-500); }
.about__floating .small { font-size: 0.8rem; color: var(--ink-muted); max-width: 110px; }

.about__body p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.02rem; }
.about__points { margin: 24px 0 32px; display: grid; gap: 14px; }
.about__point { display: flex; gap: 12px; align-items: flex-start; }
.about__point .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(30, 99, 214, 0.12); color: var(--blue-500);
}
.about__point span { color: var(--ink-soft); font-weight: 500; }

/* ============================================================
   CORE VALUES
   ============================================================ */
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 99, 214, 0.35);
}
.value-card .ic {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 99, 214, 0.1), rgba(46, 125, 255, 0.05));
  color: var(--blue-500);
  border: 1px solid rgba(30, 99, 214, 0.15);
  transition: background 0.3s, color 0.3s;
}
.value-card:hover .ic { background: linear-gradient(135deg, var(--blue-500), var(--blue-400)); color: #fff; }
.value-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.value-card p { color: var(--ink-muted); font-size: 0.92rem; }

/* ============================================================
   APPROACH
   ============================================================ */
.approach__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.approach__line {
  position: absolute;
  top: 38px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-300), var(--blue-500));
  opacity: 0.3;
  transform-origin: left;
}
.approach-step { text-align: center; position: relative; }
.approach-step .ring {
  width: 76px; height: 76px; margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid rgba(30, 99, 214, 0.2);
  color: var(--blue-500);
  position: relative;
  z-index: 2;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.approach-step:hover .ring {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  color: #fff; border-color: transparent;
  transform: scale(1.06);
}
.approach-step .step-num {
  font-family: 'Poppins'; font-weight: 800;
  font-size: 1.7rem; color: var(--ink);
}
.approach-step h3 { font-size: 1.1rem; font-weight: 600; margin: 4px 0 8px; }
.approach-step p { color: var(--ink-muted); font-size: 0.9rem; max-width: 220px; margin: 0 auto; }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .ic {
  width: 56px; height: 56px; margin-bottom: 18px;
  display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--blue-300);
}
.service-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--ink-muted); font-size: 0.94rem; }

/* IT + EVENTS */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
.duo-card {
  border-radius: 22px;
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.duo-card--it {
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(46, 125, 255, 0.3), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-800));
}
.duo-card--event {
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(124, 58, 237, 0.35), transparent 60%),
    linear-gradient(150deg, #1a1340, #241a5c);
}
.duo-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.duo-card__head .ic {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.duo-card--it .ic { color: var(--blue-300); }
.duo-card--event .ic { color: #c4b5fd; }
.duo-card__head h3 { color: #fff; font-size: 1.4rem; font-weight: 700; }
.duo-card__head p { color: rgba(255, 255, 255, 0.65); font-size: 0.85rem; }
.duo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.duo-list li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.9); font-size: 0.93rem; }
.duo-list .tick { flex: none; color: inherit; }
.duo-card--it .tick { color: var(--blue-300); }
.duo-card--event .tick { color: #c4b5fd; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.tab {
  padding: 10px 22px;
  border-radius: 100px;
  font-family: 'Poppins'; font-weight: 600; font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.tab:hover { border-color: var(--blue-400); color: var(--blue-500); }
.tab--active { background: linear-gradient(135deg, var(--blue-500), var(--blue-400)); color: #fff; border-color: transparent; box-shadow: var(--shadow-blue); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.project-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  display: grid; place-items: center;
}
.project-card__media .pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}
.project-card__media .ic { position: relative; z-index: 2; color: rgba(255,255,255,0.92); }
.project-card__cat {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  padding: 5px 12px; border-radius: 100px;
  background: rgba(8, 20, 40, 0.7);
  color: #fff; font-size: 0.72rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}
.project-card__body { padding: 22px; }
.project-card__body .tag { font-size: 0.78rem; color: var(--blue-500); font-weight: 600; letter-spacing: 0.04em; }
.project-card__body h3 { font-size: 1.12rem; font-weight: 600; margin-top: 6px; }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.cert-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-card__badge {
  flex: none;
  width: 92px; height: 92px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #fff;
  font-family: 'Poppins'; font-weight: 800; font-size: 1.6rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(91, 155, 255, 0.3);
  position: relative;
}
.cert-card__badge::after {
  content: '';
  position: absolute; inset: 6px; border-radius: 12px;
  border: 1px dashed rgba(91, 155, 255, 0.4);
}
.cert-card__info h3 { font-size: 1.2rem; font-weight: 600; }
.cert-card__info .auth { color: var(--blue-500); font-weight: 600; font-size: 0.85rem; margin: 2px 0 8px; }
.cert-card__info p { color: var(--ink-muted); font-size: 0.92rem; }
.cert-note {
  margin-top: 26px;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px;
  background: rgba(30, 99, 214, 0.06);
  border: 1px solid rgba(30, 99, 214, 0.16);
  border-radius: 14px;
  color: var(--ink-soft);
}
.cert-note .ic { color: var(--blue-500); flex: none; }

/* ============================================================
   WHY CHOOSE (split dark)
   ============================================================ */
.why {
  background:
    radial-gradient(800px 500px at 12% 20%, rgba(46, 125, 255, 0.18), transparent 60%),
    linear-gradient(150deg, var(--navy-950), var(--navy-900));
  color: var(--on-dark);
}
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.why h2 { color: #fff; }
.why .eyebrow { color: var(--blue-300); }
.why .eyebrow::before { background: var(--blue-300); }
.why__lead { color: var(--on-dark-soft); margin: 16px 0 30px; max-width: 460px; }
.why__list { display: grid; gap: 16px; }
.why__item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.why__item:hover { transform: translateX(6px); background: rgba(46, 125, 255, 0.1); border-color: rgba(91, 155, 255, 0.4); }
.why__item .tick {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  color: #fff;
}
.why__item span { color: var(--on-dark); font-weight: 500; }
.why__visual { position: relative; display: grid; place-items: center; }
.why__visual-card {
  width: 100%;
  border-radius: 24px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.why__visual-card img { width: 100%; border-radius: 16px; }
.why__mini {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px;
}
/* The ">" ensures only the outer card gets the background, fixing the nested box bug */
.why__mini > div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 16px; /* Slightly increased top/bottom padding for breathing room */
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px; /* Adds clean, adjustable space between the top text and bottom text */
  justify-content: center;
}
.why__mini .n { font-family: 'Poppins'; font-weight: 800; font-size: 1.5rem; color: var(--blue-300); }
.why__mini .l { font-size: 0.78rem; color: var(--on-dark-soft); }
/* ============================================================
   WHY CHOOSE - Mobile Responsiveness (Max Width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Stack the main left text area and the right image area */
  .why__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Stack the inner stat cards into one column */
  .why__mini {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { padding-top: 80px; padding-bottom: 80px;}
.cta-band__inner {
  background:
    radial-gradient(600px 400px at 80% 50%, rgba(46, 125, 255, 0.35), transparent 60%),
    linear-gradient(120deg, var(--blue-600), var(--blue-500));
  border-radius: 26px;
  padding: clamp(40px, 6vw, 70px);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-blue);
}
.cta-band__inner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); position: relative; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 16px auto 30px; position: relative; }
.cta-band .btn { position: relative; }
.cta-band .btn-light { background: #fff; color: var(--blue-600); }
.cta-band .btn-light:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(0,0,0,0.3); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 5vw, 64px);
}
.contact__cards { display: grid; gap: 18px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card .ic {
  flex: none; width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  color: #fff;
}
.contact-card .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); }
.contact-card .val { font-family: 'Poppins'; font-weight: 600; color: var(--ink); font-size: 1.02rem; word-break: break-word; }
.contact__social { display: flex; gap: 12px; margin-top: 8px; }
.contact__social a {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.contact__social a:hover { background: var(--blue-500); color: #fff; border-color: transparent; transform: translateY(-3px); }

.contact__form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit; font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(46, 125, 255, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.82rem; color: var(--ink-muted); margin-top: 6px; }
.form-success {
  margin-top: 14px; padding: 12px 16px; border-radius: 10px;
  background: rgba(34, 160, 90, 0.1); border: 1px solid rgba(34, 160, 90, 0.3);
  color: #1d8a52; font-size: 0.9rem; display: flex; align-items: center; gap: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: var(--on-dark-soft);
  padding: 64px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand img { height: 56px; margin-bottom: 18px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.footer__brand p { font-size: 0.92rem; max-width: 320px; color: var(--on-dark-soft); }
.footer__col h4 {
  color: #fff; font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px;
}
.footer__col a, .footer__col li { display: block; padding: 6px 0; font-size: 0.92rem; transition: color 0.2s, transform 0.2s; }
.footer__col a:hover { color: var(--blue-300); transform: translateX(4px); }
.footer__contact-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 0.9rem; }
.footer__contact-item .ic { color: var(--blue-300); flex: none; margin-top: 2px; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); color: var(--on-dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.footer__social a:hover { background: var(--blue-500); color: #fff; transform: translateY(-3px); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 22px 0; font-size: 0.85rem;
}
.footer__bottom .made { color: var(--steel-400); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { min-height: 360px; order: -1; }
  /* features__grid stays 3-column until 768px */
  .features { margin-top: -48px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .stat:nth-child(2)::after { display: none; }
  .values__grid, .services__grid { grid-template-columns: repeat(2, 1fr); }
  .approach__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .approach__line { display: none; }
  .about__grid, .why__grid, .contact__grid, .cert__grid, .duo { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .features__grid { grid-template-columns: 1fr; }
  .features { margin-top: -32px; }
  /* Switch to hamburger at tablet to prevent nav link wrapping */
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; place-items: center; }
}

@media (max-width: 640px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .hero { padding: 120px 0 100px; }
  .hero__scroll { bottom: 15px; }
  .hero__mini-stats { gap: 22px; }
  /* Badges stay inside the visual at mobile */
  .hero__badge--tl { top: -18px; left: 0px; }
  .hero__badge--br { bottom: -18px; right: 0px; }
  .hero__badge { padding: 9px 12px; }
  .hero__badge .ic { width: 30px; height: 30px; border-radius: 8px; }
  .hero__badge .t { font-size: 0.82rem; }
  .hero__badge .s { font-size: 0.65rem; }
  .hero__visual { min-height: 300px; overflow: visible; }
  .stats { grid-template-columns: 1fr 1fr; padding: 36px 24px; }
  .stat::after { display: none !important; }
  .values__grid, .services__grid, .projects__grid, .duo-list { grid-template-columns: 1fr; }
  .approach__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero__divisions { gap: 16px; }
  .hero__division .bar { display: none; }
  /* About floating card: pull inside the card at bottom-right on mobile */
  /* Center the floating card directly below the image */
  .about__floating {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: -30px auto 0 auto; /* Pulls it up to overlap the image slightly */
    width: 85%;
    max-width: 300px;
    justify-content: center; /* Centers the text inside the card */
    z-index: 10;
  }
  /* Prevent grid children from blowing out width */
  .features__grid > *, .values__grid > *, .services__grid > *,
  .about__grid > *, .why__grid > *, .contact__grid > * {
    min-width: 0;
  }
}

/* Very small screens — 320px baseline */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 2rem; }
  .hero__lead { font-size: 0.95rem; }
  .hero__mini-stats { gap: 14px; }
  .hero__mini-stat .num { font-size: 1.4rem; }
  .btn { padding: 12px 18px; font-size: 0.88rem; gap: 7px; }
  .hero__actions { gap: 10px; }
  .hero__badge { padding: 8px 10px; }
  .hero__badge .ic { width: 26px; height: 26px; }
  .hero__badge .t { font-size: 0.78rem; }
  .hero__badge__float { gap: 8px; }
  .duo-card { padding: 28px 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
