/* =========================================================
   Kartik Motors Driving School — Stylesheet
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg-0: #05070d;
  --bg-1: #0a0f1c;
  --bg-2: #0f1524;
  --bg-3: #141c30;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #f3f5fb;
  --text-muted: #a9b0c2;
  --text-dim: #7a8196;

  --primary: #ff5a1f;       /* vivid orange */
  --primary-2: #ff7a3c;
  --accent: #2fd0ff;         /* electric cyan */
  --accent-2: #7a6bff;       /* violet */
  --whatsapp: #25D366;
  --whatsapp-2: #20b858;

  --grad-primary: linear-gradient(135deg, #ff5a1f 0%, #ff9a3c 100%);
  --grad-accent: linear-gradient(135deg, #2fd0ff 0%, #7a6bff 100%);
  --grad-mix: linear-gradient(135deg, #ff5a1f 0%, #7a6bff 60%, #2fd0ff 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-primary: 0 20px 40px -10px rgba(255, 90, 31, 0.45);

  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(255, 90, 31, 0.10), transparent 60%),
    radial-gradient(1000px 700px at -10% 20%, rgba(47, 208, 255, 0.08), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(122, 107, 255, 0.10), transparent 60%),
    var(--bg-0);
}

img, svg, iframe, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}

a:hover { color: var(--primary-2); }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

ul, ol { list-style: none; margin: 0; padding: 0; }
li { min-width: 0; }

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.2vw + .8rem, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.4vw + .6rem, 1.45rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

::selection { background: rgba(255, 90, 31, .4); color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(48px, 6vw, 84px);
  padding-inline: 0;
  position: relative;
}

/* Tighten vertical rhythm between adjacent sections */
.section + .section { padding-top: clamp(24px, 3vw, 44px); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
  padding-inline: 12px;
}
.section-head p { margin-bottom: 0; }

.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 999px;
  color: #ffd4bd;
  background: rgba(255, 90, 31, 0.12);
  border: 1px solid rgba(255, 90, 31, 0.35);
  margin-bottom: 18px;
}

.gradient-text {
  background: var(--grad-mix);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: #fff;
  --btn-color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .97rem;
  letter-spacing: .01em;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--btn-bg);
  color: var(--btn-color);
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  position: relative;
  isolation: isolate;
}
.btn > i { flex-shrink: 0; }

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 10px 16px; font-size: .88rem; }
.btn-lg { padding: 16px 26px; font-size: 1rem; }

.btn i { font-size: 1em; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { color: #fff; box-shadow: 0 25px 50px -12px rgba(255, 90, 31, .6); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-2) 100%);
  color: #fff;
  box-shadow: 0 15px 30px -10px rgba(37, 211, 102, 0.5);
}
.btn-whatsapp:hover { color: #fff; box-shadow: 0 22px 40px -12px rgba(37, 211, 102, 0.6); }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-0);
  display: grid;
  place-items: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.loaded { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }
.loader-road {
  width: 260px; height: 64px;
  margin: 0 auto 18px;
  background:
    linear-gradient(90deg, transparent 0 40%, #ff5a1f 40% 55%, transparent 55% 100%),
    linear-gradient(#16203a, #16203a);
  background-size: 60px 4px, 100% 100%;
  background-position: 0 bottom, 0 0;
  background-repeat: repeat-x, no-repeat;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: loaderRoad 1.2s linear infinite;
}
.loader-car {
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-55%);
  color: #fff;
  font-size: 2.2rem;
  filter: drop-shadow(0 8px 12px rgba(255, 90, 31, .4));
  animation: loaderCar 1.4s ease-in-out infinite;
}
.loader-text {
  color: var(--text-muted);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@keyframes loaderRoad {
  0% { background-position: 0 bottom, 0 0; }
  100% { background-position: -60px bottom, 0 0; }
}
@keyframes loaderCar {
  0%, 100% { transform: translateY(-55%); }
  50% { transform: translateY(-60%); }
}

/* ---------- Topbar ---------- */
.topbar {
  background: linear-gradient(90deg, rgba(255, 90, 31, .18), rgba(122, 107, 255, .14));
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
  color: var(--text);
}
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item i { color: var(--primary-2); }
.topbar-divider { color: var(--text-dim); }
.topbar-link { color: var(--text); font-weight: 600; }
.topbar-link:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(5, 7, 13, 0.55);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(5, 7, 13, 0.82);
  border-bottom-color: var(--border);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 12px;
  font-size: 1.15rem;
  box-shadow: var(--shadow-primary);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: var(--grad-mix);
  filter: blur(14px);
  opacity: .4;
  z-index: -1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-tag { font-size: .72rem; color: var(--text-dim); letter-spacing: .04em; }

.nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: width .3s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 60px 0 90px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1000px 700px at 85% 10%, rgba(255, 90, 31, 0.18), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(122, 107, 255, 0.15), transparent 60%),
    linear-gradient(180deg, #070b16 0%, #0a0f1c 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  z-index: 1;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  right: -200px; top: -150px;
  background: radial-gradient(closest-side, rgba(255, 90, 31, .22), transparent 70%);
  filter: blur(50px);
  z-index: 0;
  animation: glowMove 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-glow-2 {
  right: auto;
  left: -200px;
  top: auto;
  bottom: -200px;
  background: radial-gradient(closest-side, rgba(47, 208, 255, .18), transparent 70%);
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}
@keyframes glowMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-60px, 30px); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #27e06a;
  box-shadow: 0 0 0 4px rgba(39, 224, 106, .25);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(39, 224, 106, .25); }
  50% { box-shadow: 0 0 0 8px rgba(39, 224, 106, 0); }
}

.hero-copy h1 { margin-top: 18px; }
.hero-sub { font-size: 1.1rem; max-width: 600px; color: var(--text-muted); }
.hero-sub strong { color: #fff; font-weight: 600; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stats strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 2.3vw + .4rem, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: inline-block;
}
.hero-stats span {
  color: var(--primary-2);
  font-weight: 700;
  font-size: 1.25rem;
  margin-left: 2px;
}
.hero-stats em {
  font-style: normal;
  color: var(--text-muted);
  font-size: .82rem;
  letter-spacing: .04em;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.visual-ring {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .10);
  animation: ringSpin 40s linear infinite;
  pointer-events: none;
}
.visual-ring.ring-2 {
  inset: 18%;
  border-style: solid;
  border-color: rgba(255, 90, 31, .15);
  animation-duration: 28s;
  animation-direction: reverse;
}

@keyframes ringSpin { to { transform: rotate(360deg); } }

/* Hero SVG illustration */
.hero-art {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, 92%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
  z-index: 1;
  pointer-events: none;
  animation: artBob 5s ease-in-out infinite;
}
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art .wheel { transform-box: fill-box; transform-origin: center; animation: wheelSpin 2.5s linear infinite; }
.hero-art .wheel-front { animation-duration: 2.2s; }
.hero-art .art-headlight { animation: headlightPulse 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hero-art .art-lines line { animation: dashLines 1.6s linear infinite; }
.hero-art .art-lines line:nth-child(2) { animation-delay: -.3s; }
.hero-art .art-lines line:nth-child(3) { animation-delay: -.6s; }
.hero-art .art-ground rect { animation: groundDash 1.1s linear infinite; }
.hero-art .art-ground rect:nth-child(2n) { animation-delay: -.55s; }

@keyframes wheelSpin { to { transform: rotate(360deg); } }
@keyframes artBob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}
@keyframes headlightPulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes dashLines {
  0% { transform: translateX(0); opacity: 0; }
  30% { opacity: .6; }
  100% { transform: translateX(-24px); opacity: 0; }
}
@keyframes groundDash {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50px); }
}

.visual-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(320px, 86%);
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(15, 21, 36, .92), rgba(10, 15, 28, .88));
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  z-index: 3;
}
.visual-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: var(--grad-mix);
  opacity: .18;
  filter: blur(22px);
  z-index: -1;
}
.vc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.vc-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c1ffd6;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.vc-live .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #27e06a;
  box-shadow: 0 0 0 4px rgba(39, 224, 106, .25);
  animation: pulseDot 2s ease-in-out infinite;
}
.vc-rate {
  color: #ffc554;
  font-weight: 700;
  font-size: .9rem;
}
.vc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: .95rem;
}
.vc-row:last-of-type { border-bottom: 0; }
.vc-label {
  color: var(--text-muted);
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vc-label i { color: var(--primary-2); font-size: .9rem; }
.vc-val { color: #fff; font-weight: 600; font-size: .92rem; text-align: right; }
.vc-cta { margin-top: 14px; display: grid; }

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border-radius: 14px;
  border: 2px solid var(--border-strong);
  z-index: 3;
}
.scroll-hint span {
  display: block;
  width: 2px; height: 8px;
  background: #fff;
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50% { transform: translateY(10px); opacity: 0; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 22px 0;
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
  justify-content: center;
  color: var(--text-muted);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: .95rem;
}
.trust-item i { color: var(--primary-2); font-size: 1.1rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.about-media { position: relative; }
.about-image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(10, 15, 28, .2), rgba(10, 15, 28, .6)),
    url('https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.about-image-bg {
  position: absolute;
  inset: -20px;
  background: var(--grad-mix);
  filter: blur(60px);
  opacity: .3;
  z-index: -1;
  border-radius: 50%;
}
.about-floating {
  position: absolute;
  left: -20px;
  top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(10, 15, 28, 0.9);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: floaty 6s ease-in-out infinite;
}
.about-floating.bottom {
  left: auto;
  right: -20px;
  top: auto;
  bottom: 30px;
  animation-delay: -3s;
}
.about-floating i {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--grad-primary);
  color: #fff;
}
.about-floating strong { display: block; color: #fff; font-size: .95rem; }
.about-floating span { display: block; color: var(--text-muted); font-size: .8rem; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.about-content h2 { margin-top: 10px; }
.about-points {
  margin: 20px 0 28px;
  display: grid;
  gap: 10px;
}
.about-points li {
  display: flex;
  align-items: start;
  gap: 12px;
  color: var(--text);
  font-size: 1rem;
}
.about-points i { color: var(--primary-2); font-size: 1.1rem; margin-top: 4px; }

.about-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Courses ---------- */
.courses { background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0)); }
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.course-card {
  position: relative;
  padding: 30px 26px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(20, 28, 48, .6), rgba(10, 15, 28, .4));
  border: 1px solid var(--border);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 90, 31, .4), transparent 40%, rgba(47, 208, 255, .3));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.course-card:hover::before { opacity: 1; }

.course-card.featured {
  background: linear-gradient(160deg, rgba(255, 90, 31, .12), rgba(122, 107, 255, .08));
  border-color: rgba(255, 90, 31, .35);
}

.pop-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  background: var(--grad-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 999px;
  text-transform: uppercase;
}

.course-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 1.6rem;
  box-shadow: var(--shadow-primary);
  margin-bottom: 18px;
}

.course-card h3 { color: #fff; margin-bottom: 8px; }
.course-card p { color: var(--text-muted); font-size: .98rem; }
.course-card ul { margin: 12px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.course-card ul li {
  font-size: .78rem;
  color: var(--text);
  padding: 4px 10px;
  background: rgba(255, 255, 255, .05);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-2);
  font-weight: 600;
  font-size: .95rem;
  transition: gap .25s var(--ease);
}
.course-link:hover { gap: 14px; color: #fff; }

/* ---------- Why Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-card {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.why-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 90, 31, .35);
}
.why-card i {
  font-size: 1.5rem;
  color: var(--primary-2);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 90, 31, .1);
  border: 1px solid rgba(255, 90, 31, .25);
  margin-bottom: 14px;
}
.why-card h4 { color: #fff; margin-bottom: 6px; }
.why-card p { font-size: .92rem; margin: 0; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.process-grid::before {
  content: "";
  position: absolute;
  left: 3%; right: 3%; top: 52px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 31, .4), rgba(47, 208, 255, .3), transparent);
  z-index: 0;
  pointer-events: none;
}
.process-step {
  position: relative;
  padding: 26px 22px;
  background: linear-gradient(160deg, rgba(20, 28, 48, .65), rgba(10, 15, 28, .5));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 1;
  list-style: none;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.process-step::marker { content: ""; }
.step-num {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-primary);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: var(--shadow-primary);
  margin-bottom: 18px;
}
.process-step h4 { color: #fff; margin-bottom: 6px; word-wrap: break-word; }
.process-step p { font-size: .95rem; margin: 0; color: var(--text-muted); word-wrap: break-word; overflow-wrap: break-word; }

/* ---------- Testimonials ---------- */
.testimonials {
  overflow: hidden;
  position: relative;
}
.testimonial-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: ticker 45s linear infinite;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.testimonial-track:hover { animation-play-state: paused; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.t-card {
  width: clamp(280px, 28vw, 380px);
  flex: 0 0 auto;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(20, 28, 48, .7), rgba(10, 15, 28, .5));
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.t-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 31, .3);
}
.t-stars { color: #ffc554; font-size: 1.1rem; margin-bottom: 10px; letter-spacing: 2px; }
.t-card p { color: var(--text); font-size: .98rem; margin-bottom: 18px; line-height: 1.6; }
.t-who { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}
.t-who strong { display: block; color: #fff; font-size: .95rem; }
.t-who small { color: var(--text-muted); font-size: .8rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  padding: clamp(60px, 8vw, 100px) 0;
  background: linear-gradient(135deg, rgba(255, 90, 31, .15), rgba(122, 107, 255, .15));
  border-block: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  right: -200px; top: -200px;
  background: radial-gradient(closest-side, rgba(255, 90, 31, .3), transparent);
  filter: blur(30px);
  pointer-events: none;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  position: relative;
}
.cta-inner h2 { margin-bottom: 8px; color: #fff; }
.cta-inner p { margin: 0; color: var(--text-muted); font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.faq-intro h2 { margin-top: 10px; }
.faq-intro a { color: var(--primary-2); font-weight: 600; }

.faq-list { display: grid; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq-item[open] {
  background: rgba(255, 90, 31, .06);
  border-color: rgba(255, 90, 31, .35);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: 'Space Grotesk', sans-serif;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--primary-2);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--grad-primary); color: #fff; }
.faq-item p { margin: 12px 0 2px; color: var(--text-muted); font-size: .97rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}
.contact-card {
  text-align: center;
  padding: 30px 24px;
  background: linear-gradient(160deg, rgba(20, 28, 48, .7), rgba(10, 15, 28, .5));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); border-color: rgba(255, 90, 31, .3); }
.contact-card.primary { border-color: rgba(255, 90, 31, .4); background: linear-gradient(160deg, rgba(255, 90, 31, .1), rgba(255, 90, 31, .03)); }

.contact-avatar {
  width: 74px; height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.contact-avatar.alt { background: var(--grad-accent); box-shadow: 0 20px 40px -12px rgba(47, 208, 255, .45); }
.contact-avatar.map { background: linear-gradient(135deg, #27e06a, #20b858); box-shadow: 0 20px 40px -12px rgba(39, 224, 106, .45); }

.contact-card h3 { color: #fff; margin-bottom: 4px; word-wrap: break-word; }
.contact-role { display: block; color: var(--text-muted); font-size: .88rem; margin-bottom: 20px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.contact-actions .btn {
  flex: 1 1 140px;
  min-width: 0;
  padding-inline: 16px;
}

.map-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b1020;
  box-shadow: var(--shadow);
}
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.15) contrast(1.05); }
.map-open-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 15, 28, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 2;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.map-open-btn:hover { transform: translateY(-2px); background: var(--grad-primary); color: #fff; border-color: transparent; }
.map-open-btn i { color: var(--primary-2); }
.map-open-btn:hover i { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding-top: 80px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .02));
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.f-col h5 {
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  margin-bottom: 18px;
  font-size: 1rem;
  letter-spacing: .02em;
}
.f-col ul { display: grid; gap: 10px; }
.f-col ul a {
  color: var(--text-muted);
  font-size: .95rem;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.f-col ul a:hover { color: #fff; padding-left: 4px; }
.brand-footer { margin-bottom: 16px; }
.f-col p { font-size: .95rem; }

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: .95rem;
}
.contact-list i { color: var(--primary-2); width: 18px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  background: rgba(0, 0, 0, .25);
}
.fb-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-dim);
  font-size: .88rem;
}
.fb-inner a { color: var(--primary-2); font-weight: 600; }

/* ---------- Floating action buttons ---------- */
.fab {
  position: fixed;
  right: 20px;
  z-index: 80;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fab:hover { transform: translateY(-4px) scale(1.05); color: #fff; }
.fab-whatsapp { bottom: 84px; background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-2)); }
.fab-whatsapp::after, .fab-call::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .6);
  animation: pulseFab 2.2s ease-out infinite;
}
.fab-call {
  bottom: 20px;
  background: var(--grad-primary);
}
.fab-call::after {
  box-shadow: 0 0 0 0 rgba(255, 90, 31, .6);
  animation-name: pulseFabOrange;
}
@keyframes pulseFab {
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes pulseFabOrange {
  70% { box-shadow: 0 0 0 18px rgba(255, 90, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}

/* ---------- AOS custom ---------- */
[data-aos] { will-change: transform, opacity; }

/* Hard safety net: if AOS hasn't initialised for any reason, never leave
   content hidden. Once AOS is present, its own styles take over. */
html:not(.aos-initialized) [data-aos] { opacity: 1 !important; transform: none !important; }

/* Specifically tighten the Courses → Why Kartik Motors transition */
.courses { padding-bottom: clamp(32px, 4vw, 56px); }
.why { padding-top: clamp(24px, 3vw, 44px); }
.why .section-head { margin-bottom: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: auto; height: auto; min-height: 380px; padding-bottom: 20px; }
  .hero-art { position: relative; top: 0; margin: 0 auto 20px; }
  .visual-card { position: relative; right: auto; bottom: auto; margin: 0 auto; width: min(380px, 100%); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 520px; margin: 0 auto; width: 100%; }
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 72px;
    right: 14px;
    left: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: rgba(10, 15, 28, 0.96);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease);
    max-width: calc(100vw - 28px);
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav a {
    padding: 14px 10px;
    border-bottom: 1px solid var(--border);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-cta .btn-ghost { display: none; }
  .header-cta .btn-primary { display: inline-flex; padding: 10px 14px; font-size: .85rem; }
  .topbar { font-size: .78rem; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }

  /* Section stack spacing on tablets */
  .section + .section { padding-top: clamp(30px, 4vw, 50px); }
}

@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .section { padding: 54px 0; }
  .section + .section { padding-top: 28px; }
  .section-head { margin-bottom: 32px; }

  .course-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .process-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .hero { padding: 36px 0 70px; min-height: auto; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { width: 100%; flex: 0 0 auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; padding-top: 20px; }
  .hero-stats strong { font-size: 1.55rem; }
  .hero-stats em { font-size: .75rem; }
  .hero-sub { font-size: .98rem; }

  .topbar .topbar-divider { display: none; }
  .topbar-inner { gap: 10px; padding: 6px 0; }
  .topbar { font-size: .72rem; }

  .map-embed iframe { height: 300px; }
  .brand-tag { display: none; }
  .about-floating { left: 8px; padding: 10px 12px; }
  .about-floating.bottom { right: 8px; left: auto; }
  .about-floating strong { font-size: .85rem; }
  .about-floating span { font-size: .72rem; }
  .about-floating i { width: 34px; height: 34px; font-size: .95rem; }

  .header-inner { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; font-size: 1rem; }
  .brand-name { font-size: 1rem; }

  h1 { line-height: 1.12; }

  /* Contact cards stack and fit perfectly */
  .contact-card { padding: 24px 18px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { width: 100%; flex: 0 0 auto; font-size: .92rem; padding: 12px 14px; }

  /* CTA banner stacks neatly */
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .cta-inner h2 { font-size: 1.6rem; }

  /* Course cards slightly tighter */
  .course-card { padding: 24px 20px 20px; }

  /* Visual card inside hero (Live Seats) fits perfectly */
  .visual-card { width: min(340px, 100%); padding: 18px; }
  .vc-label, .vc-val { font-size: .85rem; }

  /* FAQ summary wraps nicely */
  .faq-item { padding: 16px 18px; }
  .faq-item summary { font-size: .95rem; }

  /* Testimonials: cards fit phone width */
  .t-card { width: clamp(240px, 78vw, 300px); padding: 22px; }
  .t-card p { font-size: .94rem; }

  /* Trust strip wraps */
  .trust-inner { gap: 14px 22px; }
  .trust-item { font-size: .9rem; }

  /* Buttons: smaller on phone, allow label wrap if very narrow */
  .btn-lg { padding: 14px 20px; font-size: .95rem; }
  .btn { font-size: .92rem; }

  /* Keep FAB out of the way of long pages */
  .fab { right: 14px; }

  /* FAQ grid gap */
  .faq-grid { gap: 24px; }
}

@media (max-width: 400px) {
  .why-grid { grid-template-columns: 1fr; }
  .fab { width: 50px; height: 50px; font-size: 1.2rem; bottom: 14px; }
  .fab-whatsapp { bottom: 74px; }
  .trust-inner { gap: 12px 18px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats strong { font-size: 1.4rem; }
  .course-card h3 { font-size: 1.1rem; }
  .brand-name { font-size: .95rem; }
  .btn-lg { padding: 13px 16px; font-size: .9rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  .cta-inner h2 { font-size: 1.45rem; }
}

/* Safety net: no element may force horizontal scroll */
img, svg, video, iframe { max-width: 100%; height: auto; }
.testimonials { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .testimonial-track { animation: none; }
}
