:root {
  --navy: #183f75;
  --navy-deep: #102f59;
  --gold: #d4a51b;
  --ink: #1c1c1d;
  --muted: #647087;
  --cream: #fbfaf6;
  --paper: #ffffff;
  --soft: #f3f5f8;
  --line: #e6e9ef;
  --green: #20cb68;
  --shadow: 0 24px 60px rgba(24, 63, 117, 0.12);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.dark {
  --cream: #10151d;
  --paper: #151b25;
  --soft: #1b2330;
  --ink: #f5f7fb;
  --muted: #aeb8c8;
  --line: #2b3441;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

main section[id] { scroll-margin-top: 92px; }

button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(92%, var(--max));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
  position: relative;
}

.alt-bg { background: var(--soft); }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  background: var(--navy);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 999;
}

.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-container {
  width: min(94%, 1280px);
  min-height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 290px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 12px 26px rgba(24, 63, 117, .16);
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 15px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 600;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-left: auto;
}

.primary-nav a {
  font-weight: 700;
  font-size: 15px;
  position: relative;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--gold);
  transition: .25s ease;
}

.primary-nav a:hover::after { right: 0; }

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  display: block;
  margin: 5px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(24, 63, 117, .14);
}

.btn-primary { background: var(--navy); color: white; }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-gold { background: var(--gold); color: #101010; }
.btn-light { background: white; color: var(--navy-deep); }
.btn-whatsapp { background: var(--green); color: #072312; }

/* Hero */
.hero {
  padding-top: 105px;
  padding-bottom: 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: 70px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow,
.section-kicker {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.eyebrow span {
  width: 42px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 6.8rem);
  line-height: .99;
  letter-spacing: -.065em;
  max-width: 860px;
}

.hero h1 span { color: var(--navy); }

.hero-intro {
  max-width: 750px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
  color: var(--muted);
  font-weight: 700;
}

.hero-visual {
  min-height: 520px;
  position: relative;
  border-radius: 38px;
}

.photo-frame {
  height: 500px;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(212,165,27,.26), transparent 30%),
    linear-gradient(140deg, #dfe7f3 0%, #eef1f4 43%, #cad2dc 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.55);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.photo-placeholder {
  height: 100%;
  display: none;
  place-items: center;
  align-content: center;
  text-align: center;
  color: var(--muted);
}

.photo-missing .photo-placeholder { display: grid; }

.photo-placeholder span {
  width: 110px;
  height: 110px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: white;
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 18px;
}

.availability {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 26px;
  padding: 13px 19px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--navy-deep);
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.visual-card {
  position: absolute;
  bottom: 22px;
  left: 26px;
  right: 26px;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(16,47,89,.92);
  color: white;
  backdrop-filter: blur(10px);
}

.visual-card strong,
.visual-card span { display: block; }

.visual-card span {
  margin-top: 4px;
  color: #d6dfeb;
  font-size: 14px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
  pointer-events: none;
}

.hero-glow-one {
  width: 380px;
  height: 380px;
  right: -100px;
  top: 120px;
  background: rgba(212,165,27,.22);
}

.hero-glow-two {
  width: 280px;
  height: 280px;
  left: -110px;
  bottom: 90px;
  background: rgba(67,122,192,.20);
}

.stats-panel {
  margin-top: 78px;
  background: var(--navy);
  color: white;
  border-radius: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stats-panel article {
  padding: 38px 26px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.16);
}

.stats-panel article:last-child { border-right: 0; }

.stats-panel strong {
  display: block;
  font-size: 34px;
  margin-bottom: 10px;
}

.stats-panel span {
  color: #d5dfed;
  font-weight: 600;
}

/* General sections */
.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-heading h2,
.split-grid h2,
.data-grid h2,
.resource-wrap h2,
.contact-box h2 {
  font-size: clamp(2.25rem, 4.3vw, 4.2rem);
  line-height: 1.07;
  letter-spacing: -.045em;
  margin: 12px 0 18px;
}

.section-heading > p:last-child,
.lead,
.prose {
  color: var(--muted);
  font-size: 1.08rem;
}

.split-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 75px;
  align-items: start;
}

.prose p:first-child { margin-top: 48px; }

.tag-row,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-row span,
.project-tags span {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.service-card,
.project-card,
.article-card,
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 34px rgba(24,63,117,.06);
}

.service-card {
  padding: 30px;
}

.service-card .icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #edf3fb;
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
}

.service-card h3,
.project-card h3,
.article-card h3 {
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 22px 0 10px;
}

.service-card p,
.project-card p,
.article-card p {
  color: var(--muted);
}

.service-card a,
.article-card a,
.text-link {
  color: var(--navy);
  font-weight: 900;
}

/* Data */
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.skill-list {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.skill-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.skill-list strong { color: var(--navy); }
.skill-list span { color: var(--muted); }

.dashboard-mockup {
  min-height: 430px;
  background: #eef2f6;
  border: 1px solid #dde4ec;
  border-radius: 30px;
  padding: 26px;
  color: #192536;
  box-shadow: var(--shadow);
}

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-top span { font-size: 20px; font-weight: 900; }
.dash-top small { color: #687489; }

.dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.dash-cards div {
  background: white;
  border-radius: 16px;
  padding: 18px;
}

.dash-cards small,
.dash-cards strong { display: block; }

.dash-cards strong { font-size: 28px; color: var(--navy); margin-top: 5px; }

.bar-chart {
  height: 210px;
  display: flex;
  align-items: end;
  gap: 14px;
  margin-top: 28px;
  padding: 20px;
  background: white;
  border-radius: 20px;
}

.bar-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #3569a7, var(--navy));
}

.dash-foot {
  margin-top: 14px;
  font-size: 12px;
  color: #687489;
}

/* Projects */
.row-heading {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}

.project-card { overflow: hidden; }

.project-visual {
  height: 220px;
  display: flex;
  align-items: end;
  padding: 22px;
  background-size: cover;
}

.project-visual span {
  background: rgba(255,255,255,.9);
  color: var(--navy-deep);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.visual-one {
  background:
    linear-gradient(135deg, rgba(24,63,117,.15), rgba(212,165,27,.20)),
    repeating-linear-gradient(90deg, #e8edf4 0 28px, #f8fafc 28px 56px);
}

.visual-two {
  background:
    radial-gradient(circle at 22% 24%, #d4a51b 0 8%, transparent 8.5%),
    radial-gradient(circle at 68% 63%, #295993 0 13%, transparent 13.5%),
    linear-gradient(135deg, #edf2f9, #d8e0ea);
}

.visual-three {
  background:
    linear-gradient(120deg, rgba(24,63,117,.15), rgba(24,63,117,.04)),
    linear-gradient(180deg, #f7f9fc 50%, #dfe7f0 50%);
}

.project-body { padding: 26px; }

/* Writing */
.article-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 24px;
}

.article-card { padding: 30px; }
.article-card:first-child { padding: 38px; }

.article-category {
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

/* Resources */
.resource-wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
}

.resource-list {
  border-top: 1px solid var(--line);
}

.resource-list a {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.resource-list span { color: var(--gold); font-weight: 900; }
.resource-list strong { font-size: 1.08rem; }
.resource-list em { font-style: normal; color: var(--navy); font-size: 20px; }

/* Testimonials */
.quote-card {
  margin: 0;
  padding: 30px;
}

.quote-card p {
  font-size: 1.12rem;
  line-height: 1.65;
  margin: 0 0 28px;
}

.quote-card footer {
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

/* Contact */
.contact-section {
  padding-top: 50px;
}

.contact-box {
  background: var(--navy-deep);
  color: white;
  border-radius: 36px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 55px;
  align-items: center;
}

.section-kicker.light { color: #e9c55c; }

.contact-box p { color: #d4dfec; max-width: 720px; }

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Footer */
.site-footer {
  padding: 42px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.footer-grid p { margin: 7px 0 0; }

.floating-wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(32,203,104,.35);
  z-index: 80;
}

/* Responsive */
@media (max-width: 1120px) {
  .brand { min-width: 240px; }
  .primary-nav { gap: 18px; }
  .primary-nav a { font-size: 14px; }
  .nav-cta { display: none; }

  .hero-grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 44px;
  }
}

@media (max-width: 900px) {
  .section { padding: 85px 0; }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .primary-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 4% 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0,0,0,.06);
  }

  .primary-nav.open { display: flex; }

  .primary-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a::after { display: none; }

  .nav-actions .theme-toggle { display: block; }

  .hero {
    padding-top: 72px;
  }

  .hero-grid,
  .split-grid,
  .data-grid,
  .resource-wrap,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-grid { gap: 48px; }

  .hero h1 {
    max-width: 800px;
    font-size: clamp(3rem, 10vw, 5.2rem);
  }

  .hero-visual {
    width: min(100%, 620px);
    min-height: 500px;
  }

  .stats-panel { grid-template-columns: repeat(2, 1fr); }
  .stats-panel article:nth-child(2) { border-right: 0; }
  .stats-panel article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }

  .prose p:first-child { margin-top: 0; }

  .card-grid.three,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-card:first-child {
    grid-column: 1 / -1;
  }

  .contact-box { padding: 46px; }

  .contact-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .nav-container {
    min-height: 70px;
    gap: 14px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 17px;
  }

  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 11px; }
  .theme-toggle { width: 40px; height: 40px; }

  .primary-nav { top: 70px; }

  .section { padding: 70px 0; }

  .hero {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: .12em;
    margin-bottom: 22px;
  }

  .eyebrow span { width: 28px; }

  .hero h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
    line-height: 1.01;
  }

  .hero-intro { margin-top: 22px; }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn { width: 100%; }

  .hero-meta {
    gap: 12px 20px;
    font-size: 14px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .photo-frame { height: 420px; }

  .availability {
    top: 18px;
    left: 18px;
    right: 18px;
    text-align: center;
    font-size: 13px;
  }

  .visual-card {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .stats-panel {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .stats-panel article {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
    padding: 28px 22px;
  }

  .stats-panel article:last-child { border-bottom: 0; }

  .card-grid.three,
  .article-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .article-card:first-child { grid-column: auto; }

  .row-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .dashboard-mockup { padding: 18px; }
  .dash-cards { grid-template-columns: 1fr; }
  .bar-chart { height: 170px; gap: 8px; }

  .skill-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .contact-box {
    padding: 34px 24px;
    border-radius: 26px;
  }

  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-wa {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.social-icon{width:42px;height:42px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--navy);transition:.2s}
.social-icon:hover{transform:translateY(-2px);background:var(--navy);color:#fff}
.social-icon svg{width:18px;height:18px;fill:currentColor}
.footer-social{display:flex;align-items:center;gap:14px}
.footer-social p{margin:0}
@media(max-width:640px){.footer-social{align-items:flex-start}}

/* Featured student testimonial */
.testimonial-feature {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 52px 58px 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.testimonial-feature .quote-mark {
  position: absolute;
  top: 18px;
  left: 28px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 1;
}

.testimonial-feature blockquote {
  margin: 0;
}

.testimonial-feature blockquote p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.85;
  margin: 0 0 20px;
}

.testimonial-feature footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.testimonial-feature footer strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.testimonial-feature footer span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .testimonial-feature {
    padding: 45px 24px 28px;
    border-radius: 24px;
  }

  .testimonial-feature .quote-mark {
    left: 18px;
    font-size: 58px;
  }

  .testimonial-feature blockquote p {
    font-size: 1rem;
    line-height: 1.75;
  }
}
