/* Theme 14 — Primary Teacher · EduSpark (modern animated) */
:root {
  --bg: #F4F6FC;
  --ink: #14182B;
  --muted: #5C6478;
  --line: rgba(20, 24, 43, 0.08);
  --violet: #5B4DFF;
  --violet-soft: #EEECFF;
  --coral: #FF7A59;
  --coral-soft: #FFF0EB;
  --mint: #2DD4BF;
  --mint-soft: #E6FBF7;
  --sun: #FFB84D;
  --card: #FFFFFF;
  --wa: #25D366;
  --d: 'Outfit', system-ui, sans-serif;
  --b: 'Plus Jakarta Sans', system-ui, sans-serif;
  --nav-h: 64px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--b);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--d); line-height: 1.12; font-weight: 700; }

/* animated mesh background */
.mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.mesh .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float 18s ease-in-out infinite;
}
.mesh .o1 { width: 420px; height: 420px; background: var(--violet); top: -120px; right: -80px; }
.mesh .o2 { width: 360px; height: 360px; background: var(--coral); bottom: 10%; left: -100px; animation-delay: -6s; }
.mesh .o3 { width: 280px; height: 280px; background: var(--mint); top: 40%; right: 20%; animation-delay: -12s; opacity: 0.3; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* glass nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(244, 246, 252, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { font-family: var(--d); font-weight: 700; font-size: 0.95rem; }
.nav-links { display: none; gap: 6px; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: 0.2s;
}
.nav-links a:hover { color: var(--violet); background: var(--violet-soft); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* hero */
.hero {
  padding: 48px 0 56px;
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 16px;
  box-shadow: 0 8px 24px -12px rgba(91, 77, 255, 0.25);
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 1.8s ease infinite;
}
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.85); } }

.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: -0.02em; }
.hero .role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--violet);
  margin: 8px 0 12px;
}
.hero .meta { font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 14px; }
.hero .lead { color: var(--muted); font-size: 1rem; max-width: 520px; margin: 18px 0 24px; }

.hero-visual { position: relative; justify-self: center; }
.hero-frame {
  width: min(280px, 72vw);
  aspect-ratio: 1;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  padding: 4px;
  box-shadow: 0 32px 64px -24px rgba(91, 77, 255, 0.45);
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.hero-frame-inner {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: var(--card);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--d);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--violet);
}
.hero-frame-inner img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 12px 32px -16px rgba(20, 24, 43, 0.2);
  animation: bob 4s ease-in-out infinite;
}
.hero-float.f1 { top: 8%; right: -8%; color: var(--coral); }
.hero-float.f2 { bottom: 12%; left: -10%; color: var(--mint); animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 24px;
  border-radius: 14px;
  min-height: 48px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  font-family: var(--b);
}
.btn:active { transform: scale(0.97); }
.btn-v { background: var(--violet); color: #fff; box-shadow: 0 14px 32px -12px rgba(91, 77, 255, 0.55); }
.btn-v:hover { box-shadow: 0 18px 40px -12px rgba(91, 77, 255, 0.65); }
.btn-c { background: var(--coral); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-o { background: var(--card); border: 1.5px solid var(--line); color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* sections */
section { padding: 56px 0; }
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}
h2.sec-title { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-bottom: 24px; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* bento stats */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.bento-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(91, 77, 255, 0.2); }
.bento-card.accent { background: linear-gradient(135deg, var(--violet), #7B6FFF); color: #fff; border: none; }
.bento-card.accent .b-label { color: rgba(255,255,255,0.8); }
.bento-val {
  font-family: var(--d);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  display: block;
}
.b-label { font-size: 0.78rem; color: var(--muted); margin-top: 6px; display: block; }

/* subject pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  transition: 0.2s;
}
.pill:hover { border-color: var(--violet); background: var(--violet-soft); transform: translateY(-2px); }
.pill .em { font-size: 1.1rem; }

/* quals grid */
.qual-grid { display: grid; gap: 12px; }
.qual-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.qual-card b { font-family: var(--d); display: block; font-size: 0.95rem; }
.qual-card span { font-size: 0.8rem; color: var(--muted); }
.qual-card .yr {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--coral);
  background: var(--coral-soft);
  padding: 6px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* timeline */
.tl { display: grid; gap: 0; }
.tl-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}
.tl-item:last-child { border: none; }
.tl-yr { font-size: 0.72rem; font-weight: 800; color: var(--violet); }
.tl-item h3 { font-size: 1rem; margin-bottom: 4px; }
.tl-org { font-size: 0.82rem; color: var(--mint); font-weight: 700; margin-bottom: 4px; }
.tl-item p { font-size: 0.86rem; color: var(--muted); }

/* awards */
.aw-list { display: grid; gap: 10px; }
.aw {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  border-left: 4px solid var(--sun);
}
.aw b { font-family: var(--d); font-size: 0.92rem; display: block; }
.aw span { font-size: 0.78rem; color: var(--muted); }
.aw .yr { margin-left: auto; font-weight: 800; color: var(--coral); font-size: 0.8rem; }

/* testimonials */
.t-grid { display: grid; gap: 14px; }
.tcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  position: relative;
}
.tcard::before {
  content: '\201C';
  font-family: var(--d);
  font-size: 3rem;
  color: var(--violet-soft);
  line-height: 1;
  position: absolute;
  top: 12px;
  left: 18px;
}
.tcard p { font-size: 0.92rem; color: var(--muted); margin: 20px 0 12px; position: relative; z-index: 1; }
.tcard b { font-family: var(--d); font-size: 0.88rem; }
.tcard .role { font-size: 0.75rem; color: var(--muted); }

/* job prefs */
.job-card {
  background: linear-gradient(145deg, var(--ink) 0%, #2A3050 100%);
  color: #E8EAFF;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 64px -32px rgba(20, 24, 43, 0.5);
}
.job-head {
  padding: 24px 24px 8px;
  font-family: var(--d);
  font-size: 1.2rem;
  color: #fff;
}
.job-body { padding: 8px 24px 24px; }
.jrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.jrow:last-child { border: none; }
.jrow span { color: #9BA3C7; }
.jrow b { text-align: right; color: #fff; }
.jrow .yes { color: var(--mint); }

.refs { display: grid; gap: 10px; margin-top: 16px; }
.ref {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.86rem;
}
.ref b { font-family: var(--d); display: block; color: #fff; }
.ref span { color: #9BA3C7; font-size: 0.78rem; }

/* contact */
.contact-sec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 24px 48px -32px rgba(91, 77, 255, 0.15);
}
.contact-sec p { color: var(--muted); margin: 8px 0; }
.contact-form-wrap { max-width: 480px; margin: 28px auto 0; text-align: left; }
.contact-form .form_group { margin-bottom: 12px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: var(--b);
  font-size: 0.9rem;
  background: var(--bg);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--violet); }
.contact-form textarea { min-height: 110px; resize: vertical; }

footer {
  text-align: center;
  padding: 28px 20px 100px;
  font-size: 0.75rem;
  color: var(--muted);
}
footer a { color: var(--violet); font-weight: 700; }

.stick {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
}
.stick .btn { flex: 1; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hero { grid-template-columns: 1fr 1fr; padding: 72px 0 80px; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .qual-grid { grid-template-columns: 1fr 1fr; }
  .t-grid { grid-template-columns: 1fr 1fr; }
  .refs { grid-template-columns: 1fr 1fr; }
  .stick { display: none; }
  .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
