/* ===== Mind Spark Academy — Pure CSS ===== */
:root {
  --primary: #1F5FA6;
  --primary-dark: #164476;
  --accent: #FFB020;
  --accent-dark: #e59a10;
  --ink: #1a2540;
  --muted: #5c6a86;
  --bg: #fbfaf6;
  --bg-alt: #f2f5fa;
  --card: #ffffff;
  --border: #e4e8f0;
  --shadow: 0 10px 30px -12px rgba(20, 40, 80, 0.18);
  --shadow-lift: 0 20px 40px -18px rgba(20, 40, 80, 0.28);
  --radius: 14px;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-sans: "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--muted); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-muted { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(31,95,166,.1);
  padding: .35rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--accent); color: #1a1200; box-shadow: 0 6px 20px -6px rgba(255,176,32,.6); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: var(--shadow); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; }
.logo { display: flex; align-items: center; gap: .65rem; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-family: var(--font-display); font-weight: 800;
  display: grid; place-items: center; font-size: .95rem;
  box-shadow: 0 6px 16px -6px rgba(31,95,166,.5);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-weight: 700; }
.logo-text em { font-style: normal; font-size: .75rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { color: var(--ink); font-weight: 600; font-family: var(--font-display); font-size: .95rem; position: relative; }
.nav a:not(.nav-cta):hover { color: var(--primary); }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--accent); color: #1a1200 !important;
  padding: .55rem 1.1rem; border-radius: 999px;
}
.nav-cta:hover { background: var(--accent-dark); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
}
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; color: #fff; display: flex; align-items: center; }
.hero-slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(22,68,118,.85), rgba(10,25,50,.65));
}
.hero-content { position: relative; z-index: 2; text-align: center; padding-top: 3rem; }
.hero-content .eyebrow { background: rgba(255,255,255,.15); color: #fff; }
.hero-content h1 { color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.hero-content p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 640px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 2rem; left: 0; right: 0; z-index: 2; display: flex; gap: .5rem; justify-content: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: background .2s, width .2s; }
.dot.active { background: var(--accent); width: 26px; border-radius: 999px; }

/* ===== Layout helpers ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.grid { display: grid; gap: 1.5rem; }
.cards { grid-template-columns: repeat(3, 1fr); }
.features { grid-template-columns: repeat(4, 1fr); }
.gallery { grid-template-columns: repeat(3, 1fr); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .35s ease; }
.gallery img:hover { transform: scale(1.03); }
.testimonials { grid-template-columns: repeat(3, 1fr); }

/* Stats */
.stats { display: flex; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.stats > div { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-display); font-size: 2rem; color: var(--primary); font-weight: 800; }
.stats span { font-size: .85rem; color: var(--muted); }

/* Cards */
.card {
  background: var(--card); padding: 2rem 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card-icon { font-size: 2.2rem; margin-bottom: .75rem; }

.feature { text-align: center; padding: 1.5rem 1rem; }
.f-ico { font-size: 2.4rem; margin-bottom: .5rem; }
.feature h4 { font-family: var(--font-display); margin: 0 0 .4em; font-size: 1.05rem; }
.feature p { font-size: .9rem; margin: 0; }

/* Testimonials */
blockquote {
  background: var(--card); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); border-left: 4px solid var(--accent); margin: 0;
}
blockquote p { font-style: italic; color: var(--ink); }
blockquote footer { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* Contact */
.contact-info { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-info li { margin-bottom: .6rem; color: var(--ink); }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  background: var(--card); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-form label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; color: var(--ink); gap: .35rem; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; padding: .7rem .85rem; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,95,166,.15);
}
.contact-form .btn { grid-column: 1 / -1; justify-self: start; }
.form-status { grid-column: 1/-1; margin: 0; font-size: .9rem; }
.form-status.ok { color: #0a7a3b; }
.form-status.err { color: #b3261e; }

/* Footer */
.site-footer { background: var(--ink); color: #cfd6e4; padding: 3rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer .logo-text strong { color: #fff; }
.site-footer .logo-text em { color: #93a0bd; }
.site-footer h5 { color: #fff; font-family: var(--font-display); margin: 0 0 .8em; font-size: 1rem; }
.site-footer a { display: block; color: #cfd6e4; padding: .2rem 0; font-size: .9rem; }
.site-footer a:hover { color: var(--accent); }
.copyright { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #93a0bd; }

/* WhatsApp Float */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(37,211,102,.7);
  animation: wa-bounce 2.4s ease-in-out infinite;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 3.5rem 0; }
  .hamburger { display: flex; }
  .nav {
    position: fixed; top: 68px; right: 0; left: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem; gap: .25rem;
    box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s ease;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: .5rem; }
  .cards, .features, .gallery { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero-cta { flex-direction: column; align-items: stretch; padding: 0 1rem; }
  .hero-cta .btn { text-align: center; }
}
