/* ==========================================================
   Saurav Bhusal – PTE Instructor in Dang
   Simple, clean stylesheet
   ========================================================== */

:root {
  --navy: #14305f;
  --navy-dark: #0c1f40;
  --blue: #2563c9;
  --orange: #f26a1b;
  --orange-dark: #d85a10;
  --ink: #1b2433;
  --muted: #5b6678;
  --line: #e4e8ef;
  --soft: #f5f7fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(20, 48, 95, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy-dark); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 12px;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff;
  padding: 8px 14px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy-dark); font-weight: 800; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .02em; margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .96rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); border-color: var(--orange); text-decoration: none; }
.nav-links .btn { padding: 9px 20px; color: #fff; border-bottom: 2px solid transparent; }
.nav-links .btn:hover { color: #fff; border-color: transparent; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-dark); margin: 5px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, #f3f6fc 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--orange); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 580px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; padding: 0; list-style: none; }
.hero-badges li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .88rem; font-weight: 600; color: var(--navy);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo { position: relative; max-width: 400px; margin-left: auto; }
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 24px;
  background: var(--navy); z-index: 0;
}
.hero-photo img { position: relative; z-index: 1; border-radius: 24px; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; box-shadow: var(--shadow); }
.score-tag {
  position: absolute; z-index: 2; left: -22px; bottom: 34px; background: #fff; border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.score-tag strong { font-size: 2rem; color: var(--orange); line-height: 1; }
.score-tag span { font-size: .82rem; font-weight: 600; color: var(--muted); line-height: 1.25; }

/* ---------- Stats ---------- */
.stats { margin-top: -34px; position: relative; z-index: 5; }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--navy); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 28px 12px; text-align: center; color: #fff; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2.3rem; font-weight: 800; line-height: 1.1; }
.stat span { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #c5d3ef; font-weight: 600; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-photo img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; max-width: 380px; aspect-ratio: 3/4; object-fit: cover; object-position: center 25%; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: #fde8da; color: var(--orange-dark); font-size: .8rem; font-weight: 800; display: grid; place-items: center;
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: #e9f0fc; color: var(--blue);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 18px;
}
.card p { color: var(--muted); margin: 0; }
.card .quote { font-style: italic; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { counter-increment: step; padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.post-body h3 a { color: var(--navy-dark); }
.post-body p { color: var(--muted); }
.read-more { margin-top: auto; font-weight: 700; }

/* ---------- CTA ---------- */
.cta { background: var(--navy); color: #fff; text-align: center; padding: 72px 0; }
.cta h2 { color: #fff; }
.cta p { color: #c5d3ef; max-width: 560px; margin: 0 auto 28px; }

/* ---------- Page header ---------- */
.page-header { background: linear-gradient(180deg, #f3f6fc, #fff); padding: 64px 0 40px; text-align: center; }
.page-header p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.08rem; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 56px 22px 72px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.8em; font-size: 1.35rem; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: .5em; }
.article .cover { border-radius: var(--radius); margin: 24px 0 32px; width: 100%; }
.back-link { font-weight: 700; display: inline-block; margin-bottom: 18px; }
.author-box { display: flex; gap: 16px; align-items: center; background: var(--soft); border-radius: var(--radius); padding: 18px 22px; margin-top: 44px; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center top; }
.author-box p { margin: 0; font-size: .95rem; color: var(--muted); }
.author-box strong { color: var(--navy-dark); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #e9f0fc; color: var(--blue); display: grid; place-items: center; font-size: 1.2rem; }
.info-list strong { display: block; color: var(--navy-dark); }
.info-list span, .info-list a { color: var(--muted); word-break: break-word; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy-dark); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .field { margin-bottom: 18px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #cfd6e3; border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,201,.15); }
.form textarea { min-height: 130px; resize: vertical; }
.form .note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 14px; font-weight: 600; color: #1b7f4b; display: none; }
.form-status.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c6e0; padding: 56px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.site-footer a { color: #b9c6e0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; background: #fff; border-radius: 10px; padding: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; text-align: center; font-size: .86rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .post-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { margin: 0 auto; max-width: 340px; }
  .about-photo img { margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0;
    padding: 8px 22px 22px; border-bottom: 1px solid var(--line); display: none; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 14px; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 0; }
  .nav-links .btn { display: flex; }
  .posts { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .score-tag { left: 8px; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid rgba(255,255,255,.12) !important; border-bottom: 1px solid rgba(255,255,255,.12); }
  .stat:nth-child(2n) { border-right: 0 !important; }
  .stat:last-child { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}

/* ==========================================================
   Animations
   ========================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blob { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-24px) scale(1.12); } }
@keyframes shine { 0% { left: -80%; } 60%, 100% { left: 130%; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(242,106,27,.45); } 100% { box-shadow: 0 0 0 16px rgba(242,106,27,0); } }

/* Hero entrance */
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0; pointer-events: none;
}
.hero::before { width: 380px; height: 380px; background: rgba(37,99,201,.16); top: -120px; right: 8%; animation: blob 12s ease-in-out infinite; }
.hero::after { width: 300px; height: 300px; background: rgba(242,106,27,.14); bottom: 60px; left: -60px; animation: blob 15s ease-in-out infinite reverse; }
.hero .container { position: relative; z-index: 1; }
.hero-grid > div:first-child > * { opacity: 0; animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-grid > div:first-child > :nth-child(1) { animation-delay: .05s; }
.hero-grid > div:first-child > :nth-child(2) { animation-delay: .15s; }
.hero-grid > div:first-child > :nth-child(3) { animation-delay: .28s; }
.hero-grid > div:first-child > :nth-child(4) { animation-delay: .4s; }
.hero-grid > div:first-child > :nth-child(5) { animation-delay: .52s; }
.hero-photo { opacity: 0; animation: popIn .9s .25s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-photo img { animation: floatY 6s ease-in-out 1.2s infinite; }
.score-tag { animation: floatY 5s ease-in-out .6s infinite reverse; }
.score-tag strong { display: inline-block; }
.hero h1 span { background: linear-gradient(90deg, var(--orange), #ff9a4d, var(--orange)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmerText 4s linear infinite; }
@keyframes shimmerText { to { background-position: 200% center; } }

/* Buttons shine + pulse */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
}
.hero-actions .btn-primary { animation: pulseRing 2.2s ease-out infinite; }
.btn:active { transform: translateY(0) scale(.97); }

/* Header: shadow once scrolled + nav underline slide */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20,48,95,.1); }
.nav-links a:not(.btn) { border-bottom: 0; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.brand img { transition: transform .5s ease; }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }

/* Scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--orange), var(--blue)); z-index: 300; }

/* Cards, steps, stats */
.card .icon { transition: transform .35s ease, background .35s ease; }
.card:hover .icon { transform: rotate(-8deg) scale(1.12); background: #fde8da; }
.card { border-top: 3px solid transparent; }
.card:hover { border-top-color: var(--orange); }
.step { transition: transform .25s ease, box-shadow .25s ease; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step::before { transition: transform .3s ease; }
.step:hover::before { transform: scale(1.15) rotate(8deg); }
.stat { transition: background .3s ease; }
.stat:hover { background: rgba(255,255,255,.07); }
.about-photo img, .hero-photo img { transition: transform .4s ease; }
.about-photo img:hover { transform: scale(1.02) rotate(-.5deg); }
.reveal.visible { transition-delay: var(--d, 0s); }
.check-list li { transition: transform .25s ease; }
.check-list li:hover { transform: translateX(6px); }

/* Form + info */
.info-list li { transition: transform .25s ease; }
.info-list li:hover { transform: translateX(5px); }
.form input, .form textarea, .form select { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.form input:focus, .form textarea:focus, .form select:focus { transform: translateY(-1px); }

/* Page header entrance */
.page-header .container > * { opacity: 0; animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) forwards; }
.page-header .container > :nth-child(2) { animation-delay: .1s; }
.page-header .container > :nth-child(3) { animation-delay: .2s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero-photo img, .score-tag, .hero h1 span, .btn-primary::after, .hero-actions .btn-primary { animation: none !important; }
  .hero-grid > div:first-child > *, .hero-photo, .page-header .container > * { opacity: 1 !important; animation: none !important; }
  .card, .step, .stat, .info-list li, .check-list li, .about-photo img { transition: none !important; }
}
