/* ==========================================================
   Shishir Basnet – Best Computer Teacher in Dang
   ========================================================== */
:root {
  --purple: #7c5ce0;
  --purple-light: #906ee4;
  --purple-soft: #f1ecfd;
  --plum: #5e1e42;
  --plum-dark: #3f1029;
  --ink: #14121f;
  --text: #4b4a5a;
  --muted: #7d7b8c;
  --border: #e8e5f2;
  --bg: #fbfaff;
  --white: #fff;
  --grad: linear-gradient(135deg, #7c5ce0 0%, #5e1e42 100%);
  --container: 1200px;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(40, 20, 80, .06);
  --shadow: 0 18px 50px rgba(40, 20, 80, .10);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.75;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; transition: color .2s; }
a:hover { color: var(--plum); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--plum); color: #fff; padding: 8px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #cfcbe0; font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { color: #cfcbe0; }
.topbar a:hover { color: #fff; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; margin-right: 20px; }
.topbar svg { width: 15px; height: 15px; color: var(--purple-light); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 17px; box-shadow: 0 8px 20px rgba(124,92,224,.35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.brand-tag { font-size: 12.5px; color: var(--muted); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a { display: block; padding: 9px 16px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 15px; }
.main-nav a:hover { background: var(--purple-soft); color: var(--purple); }
.main-nav a.active { color: var(--purple); background: var(--purple-soft); }
.main-nav .nav-cta a { background: var(--grad); color: #fff; margin-left: 8px; padding: 10px 22px; box-shadow: 0 8px 20px rgba(94,30,66,.25); }
.main-nav .nav-cta a:hover { color: #fff; transform: translateY(-1px); }
.menu-toggle { display: none; background: var(--purple-soft); border: 0; cursor: pointer; width: 44px; height: 44px; padding: 11px; border-radius: 12px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 0; padding: 15px 28px; border-radius: 999px; font: 700 15.5px/1 var(--font-body); transition: transform .2s, box-shadow .2s, background .2s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 28px rgba(94,30,66,.28); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(94,30,66,.36); }
.btn-outline { background: #fff; color: var(--ink); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-light { background: #fff; color: var(--plum); }
.btn-light:hover { color: var(--plum-dark); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 110px; background: radial-gradient(900px 500px at 85% 10%, #efe8ff 0%, transparent 60%), radial-gradient(700px 400px at 0% 100%, #fbeaf3 0%, transparent 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero-hello { font-family: "Autour One", var(--font-head); font-size: 20px; color: var(--purple-light); margin-bottom: 6px; display: block; font-weight: 400; letter-spacing: 0; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); margin-bottom: 22px; }
.hero-text { font-size: 17.5px; max-width: 560px; }
.hero-text b { color: var(--ink); }
.hero .btn-group { margin-top: 30px; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 36px; color: var(--muted); font-size: 14.5px; }
.hero-trust strong { color: var(--ink); }
.avatars { display: flex; }
.avatars span { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; margin-left: -10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.avatars span:first-child { margin-left: 0; }
.hero-media { position: relative; }
.hero-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-photo img { width: 100%; aspect-ratio: 4/4.3; object-fit: cover; object-position: 58% center; }
.hero-media::before { content: ""; position: absolute; inset: 30px -24px -24px 30px; border-radius: var(--r-lg); background: var(--grad); opacity: .9; z-index: -1; }
.hero-media { z-index: 1; isolation: isolate; }
.float-card { position: absolute; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; animation: float 5s ease-in-out infinite; }
.float-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); }
.float-card .ic svg { width: 22px; height: 22px; }
.float-card strong { display: block; font-family: var(--font-head); font-size: 20px; color: var(--ink); line-height: 1.1; }
.float-card small { color: var(--muted); font-size: 13px; }
.float-1 { left: -36px; bottom: 60px; }
.float-2 { right: -20px; top: 40px; animation-delay: -2.5s; }
.float-2 .ic { background: #fbeaf3; color: var(--plum); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats-wrap { margin-top: -60px; position: relative; z-index: 5; }
.stats { background: var(--grad); border-radius: var(--r-lg); padding: 44px 30px; display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: 0 24px 60px rgba(94,30,66,.28); color: #fff; }
.stat { text-align: center; padding: 6px 14px; border-right: 1px solid rgba(255,255,255,.2); }
.stat:last-child { border-right: 0; }
.stat-number { font-family: var(--font-head); font-size: 48px; font-weight: 800; line-height: 1; }
.stat-label { margin-top: 10px; color: rgba(255,255,255,.82); font-size: 15px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; object-position: 55% center; }
.exp-badge { position: absolute; right: -24px; bottom: -24px; background: #fff; border-radius: var(--r); padding: 22px 26px; box-shadow: var(--shadow); text-align: center; }
.exp-badge strong { display: block; font-family: var(--font-head); font-size: 44px; line-height: 1; }
.exp-badge span { font-size: 13.5px; color: var(--muted); }
.about-content h2 { font-size: clamp(30px, 4vw, 40px); }
.checklist { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.5; }
.checklist .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; }
.checklist .tick svg { width: 14px; height: 14px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 34px 30px; transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); margin-bottom: 22px; transition: background .3s, color .3s; }
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { background: var(--grad); color: #fff; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { margin: 0; font-size: 15.5px; }
.card-list { list-style: none; padding: 0; margin: 18px 0 0; }
.card-list li { padding: 6px 0 6px 22px; position: relative; font-size: 14.5px; border-top: 1px dashed var(--border); }
.card-list li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--purple-light); }
.card-num { position: absolute; top: 18px; right: 24px; font-family: var(--font-head); font-weight: 800; font-size: 44px; color: var(--purple-soft); line-height: 1; }

.feature { text-align: center; padding: 36px 26px; }
.feature .card-icon { margin: 0 auto 20px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.why-items { display: grid; gap: 22px; }
.why-item { display: flex; gap: 18px; padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--border); transition: box-shadow .3s, transform .3s; }
.why-item:hover { box-shadow: var(--shadow); transform: translateX(6px); }
.why-item .card-icon { flex: none; margin: 0; width: 52px; height: 52px; }
.why-item h3 { font-size: 18px; margin-bottom: 4px; }
.why-item p { margin: 0; font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 38px; left: 16%; right: 16%; border-top: 2px dashed #d6cdf5; }
.step { text-align: center; position: relative; }
.step-num { width: 76px; height: 76px; border-radius: 50%; background: #fff; border: 2px solid var(--purple-soft); display: grid; place-items: center; margin: 0 auto 22px; font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--purple); box-shadow: var(--shadow-sm); position: relative; z-index: 1; }
.step h3 { font-size: 20px; }
.step p { max-width: 300px; margin: 0 auto; font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 0 26px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #d6cdf5; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; font-size: 20px; font-weight: 600; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; margin: 0; }

/* ---------- CTA ---------- */
.cta { background: var(--grad); border-radius: var(--r-lg); padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta::before { width: 320px; height: 320px; right: -80px; top: -140px; }
.cta::after { width: 200px; height: 200px; left: 30%; bottom: -120px; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.5vw, 38px); margin-bottom: 8px; }
.cta p { margin: 0; font-size: 17px; }
.cta > * { position: relative; z-index: 1; }

/* ---------- Page header ---------- */
.page-hero { background: radial-gradient(700px 300px at 80% 0%, #efe8ff, transparent 70%), var(--bg); padding: 80px 0 70px; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.page-hero p { max-width: 620px; margin: 0 auto 18px; font-size: 17px; color: var(--muted); }
.breadcrumb { display: inline-flex; gap: 8px; font-size: 14px; background: #fff; border: 1px solid var(--border); padding: 7px 18px; border-radius: 999px; color: var(--muted); }
.breadcrumb a { color: var(--purple); font-weight: 600; }

/* ---------- Contact ---------- */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 50px; }
.info-card { display: flex; align-items: center; gap: 18px; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); }
.info-card .card-icon { margin: 0; flex: none; width: 54px; height: 54px; }
.info-card h3 { font-size: 16px; margin: 0 0 2px; }
.info-card p, .info-card a { margin: 0; font-size: 15px; color: var(--text); word-break: break-word; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 42px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 28px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 26px; }
.wpf-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.wpf-form legend, .wpf-form .label { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink); margin-bottom: 7px; padding: 0; }
.req { color: #d63637; }
.name-row { display: flex; gap: 14px; }
.name-row > div { flex: 1; }
.sublabel { font-size: 12.5px; color: var(--muted); }
.field { margin-bottom: 18px; }
.wpf-form input, .wpf-form textarea { width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; padding: 13px 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s, background .2s; }
.wpf-form textarea { min-height: 140px; resize: vertical; }
.wpf-form input:focus, .wpf-form textarea:focus { outline: none; background: #fff; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124,92,224,.14); }
.wpf-form .error-msg { color: #d63637; font-size: 13px; display: none; }
.wpf-form .has-error input, .wpf-form .has-error textarea { border-color: #d63637; }
.wpf-form .has-error .error-msg { display: block; }
.wpf-form .btn { width: 100%; justify-content: center; }
.form-success { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: #e9f9ef; border: 1px solid #b6e3c6; color: #1d5a33; }
.form-success.show { display: block; }
.map-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); min-height: 460px; background: var(--purple-soft); }
.map-card iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b7b3c9; padding-top: 80px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 20px; }
.site-footer a { color: #b7b3c9; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand-tag { color: #8f8aa6; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--purple-light); flex: none; margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: var(--purple); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s; z-index: 90; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: #fff; }
.to-top svg { width: 20px; height: 20px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-1 { left: -10px; } .float-2 { right: -6px; }
}
@media (max-width: 920px) {
  .hero-grid, .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero { padding: 60px 0 100px; }
  .hero-media { max-width: 520px; margin: 0 auto; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .stat:nth-child(2) { border-right: 0; }
  .info-cards { grid-template-columns: 1fr; }
  .cta { flex-direction: column; text-align: center; padding: 50px 30px; }
  .exp-badge { right: 16px; }
}
@media (max-width: 768px) {
  .topbar .hide-sm { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height .35s ease; box-shadow: var(--shadow-sm); }
  .main-nav.open { max-height: 380px; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
  .main-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
  .section { padding: 70px 0; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .checklist { grid-template-columns: 1fr; }
  .stat-number { font-size: 38px; }
  .form-card { padding: 28px 22px; }
  .name-row { flex-direction: column; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-card { padding: 10px 14px; }
  .float-card strong { font-size: 17px; }
  .float-1 { left: 6px; bottom: 20px; } .float-2 { right: 6px; top: 16px; }
  .hero-photo { transform: none; }
  .hero-media::before { inset: 20px -10px -14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}
