/* ============================================
   HARRO WIERSMA — Apple Minimalist Design
   Clean, spacious, system fonts, soft shadows
   ============================================ */

:root {
  --bg: #FBFBFD;
  --bg-secondary: #F5F5F7;
  --bg-dark: #1D1D1F;
  --bg-darker: #000000;
  --text: #1D1D1F;
  --text-secondary: #86868B;
  --text-on-dark: #F5F5F7;
  --text-on-dark-secondary: #A1A1A6;
  --blue: #0071E3;
  --blue-hover: #0077ED;
  --border: rgba(0,0,0,0.06);
  --border-dark: rgba(255,255,255,0.08);
  --card-shadow: 0 2px 12px rgba(0,0,0,0.04), 0 0 1px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.47; font-size: 17px; letter-spacing: -0.022em; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }

/* Hide grain from previous design */
.grain { display: none; }

/* Layout */
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }

.section-light { padding: 100px 0; }
.section-dark { padding: 100px 0; background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark .section-eyebrow { color: var(--blue); }
.section-dark .section-heading em { color: var(--blue); font-style: normal; }

/* Section typography */
.section-eyebrow {
  font-size: 14px; font-weight: 600; color: var(--blue);
  letter-spacing: -0.01em; margin-bottom: 8px;
}
.section-heading {
  font-size: clamp(32px, 5vw, 48px); font-weight: 700; line-height: 1.1;
  letter-spacing: -0.04em; margin-bottom: 12px;
}
.section-heading em { font-style: normal; background: linear-gradient(90deg, var(--blue), #40C8FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-sub {
  font-size: 19px; color: var(--text-secondary); max-width: 600px;
  line-height: 1.47; margin-bottom: 48px; letter-spacing: -0.01em;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  border-radius: 980px; border: none;
  transition: all 0.3s var(--ease);
}
.btn-primary:hover { background: var(--blue-hover); transform: scale(1.02); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; background: transparent; color: var(--blue);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  border-radius: 980px; border: none;
  transition: all 0.3s var(--ease);
}
.btn-ghost:hover { background: rgba(0,113,227,0.06); }
.section-dark .btn-ghost { color: #2997FF; }
.section-dark .btn-ghost:hover { background: rgba(41,151,255,0.1); }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-full { width: 100%; }

/* ===================== NAVIGATION ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251,251,253,0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(251,251,253,0.92); }
.nav-inner {
  max-width: 980px; margin: 0 auto; padding: 0 22px; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 24px; width: auto; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 13px; font-weight: 400; color: var(--text);
  opacity: 0.8; transition: opacity 0.2s; letter-spacing: 0;
}
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-actions .btn-primary { padding: 8px 18px; font-size: 13px; }
.nav-actions .btn-ghost { padding: 8px 18px; font-size: 13px; }

/* Hamburger */
.hamburger { display: none; width: 28px; height: 20px; position: relative; }
.hamburger span {
  position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--text);
  border-radius: 1px; transition: all 0.3s var(--ease);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; padding: 20px 22px 28px;
  background: rgba(251,251,253,0.98); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid rgba(0,0,0,0.08);
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 17px; font-weight: 500; padding: 12px 0;
  border-bottom: 0.5px solid var(--border); color: var(--text);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.mobile-menu-actions .btn-primary, .mobile-menu-actions .btn-ghost { justify-content: center; }

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: block; }
}

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 120px 22px 60px; background: var(--bg);
}
.hero::before { display: none; }
.hero-content { max-width: 720px; }
.hero-badge {
  display: inline-block; font-size: 14px; font-weight: 600;
  color: var(--blue); letter-spacing: -0.01em;
  margin-bottom: 20px;
  border: none; padding: 0;
}
.hero-title {
  font-size: clamp(40px, 7vw, 64px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 20px;
}
.hero-title em { font-style: normal; font-weight: 300; }
.hero-accent { background: linear-gradient(90deg, var(--blue), #40C8FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub {
  font-size: 21px; color: var(--text-secondary); max-width: 540px;
  margin: 0 auto 32px; line-height: 1.47; letter-spacing: -0.01em;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex; justify-content: center; gap: 56px; margin-top: 80px;
  border-top: none; padding-top: 0;
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-size: 36px; font-weight: 700; letter-spacing: -0.04em;
  display: inline; line-height: 1; color: var(--text);
}
.hero-stat-plus { font-size: 28px; font-weight: 700; color: var(--blue); }
.hero-stat-label {
  font-size: 12px; color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.04em; margin-top: 6px; display: block; font-weight: 500;
}

@media (max-width: 640px) {
  .hero-stats { flex-wrap: wrap; gap: 32px; }
  .hero-stat { min-width: 40%; }
}

/* ===================== MARQUEE ===================== */
.marquee {
  padding: 20px 0; overflow: hidden; display: flex;
  align-items: center; background: var(--bg-secondary);
}
.marquee-label {
  flex-shrink: 0; padding: 0 22px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary);
}
.marquee-track { overflow: hidden; flex: 1; }
.marquee-content {
  display: flex; gap: 48px; animation: marquee 35s linear infinite;
  width: max-content;
}
.marquee-content span {
  font-size: 15px; font-weight: 600; white-space: nowrap;
  color: var(--text); opacity: 0.25; letter-spacing: -0.01em;
}
.marquee:hover .marquee-content { animation-play-state: paused; }
.marquee:hover .marquee-content span { opacity: 0.5; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== ABOUT ===================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.about-text p { margin-bottom: 16px; color: var(--text-secondary); font-size: 17px; line-height: 1.58; }
.about-text p:first-child { color: var(--text); font-size: 19px; }
.about-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.approach-card {
  background: var(--bg-secondary); border-radius: var(--radius);
  padding: 28px; border: none; margin-bottom: 20px;
}
.approach-title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.approach-step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 10px 0; border-bottom: 0.5px solid var(--border);
}
.approach-step:last-child { border-bottom: none; }
.step-num {
  font-size: 12px; font-weight: 700; color: #fff; background: var(--blue);
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.approach-step strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; display: block; }
.approach-step p { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.certs-card {
  background: var(--bg-secondary); border-radius: var(--radius);
  padding: 28px; border: none;
}
.certs-title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.cert-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-tag {
  font-size: 13px; font-weight: 500; padding: 6px 12px;
  background: #fff; border-radius: 980px; color: var(--text);
  box-shadow: var(--card-shadow);
}

@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ===================== SERVICES ===================== */
.services-grid { display: flex; flex-direction: column; gap: 0; }

.svc { border-top: 0.5px solid var(--border); overflow: hidden; }
.svc:last-child { border-bottom: 0.5px solid var(--border); }
.svc-header {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 24px 0; cursor: pointer; transition: opacity 0.2s;
}
.svc-header:hover { opacity: 0.7; }
.svc-num {
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  min-width: 32px; padding-top: 2px;
}
.svc-info { flex: 1; }
.svc-info h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.svc-info p { font-size: 15px; color: var(--text-secondary); line-height: 1.47; }
.svc-toggle {
  color: var(--text-secondary); width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.3s var(--ease); flex-shrink: 0;
}
.svc-toggle:hover { background: var(--bg-secondary); }
.svc.active .svc-toggle { transform: rotate(45deg); color: var(--blue); }

.svc-details {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 0 0 52px;
}
.svc.active .svc-details { max-height: 500px; padding: 0 0 28px 52px; }
.svc-details p { font-size: 15px; color: var(--text-secondary); margin-bottom: 16px; max-width: 600px; line-height: 1.58; }
.svc-deliverables strong { font-size: 14px; font-weight: 600; display: block; margin-bottom: 8px; }
.svc-deliverables ul { padding-left: 20px; list-style: disc; }
.svc-deliverables li { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }

.services-cta {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-secondary); border-radius: var(--radius);
  padding: 28px 32px; margin-top: 48px; gap: 24px; border: none;
}
.services-cta p { font-size: 15px; color: var(--text-secondary); }
.services-cta strong { color: var(--text); }

@media (max-width: 640px) {
  .svc-header { gap: 12px; }
  .svc-details, .svc.active .svc-details { padding-left: 0; }
  .services-cta { flex-direction: column; text-align: center; }
}

/* ===================== PROCESS ===================== */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }

.process-step {
  padding: 28px; border-radius: var(--radius); border: none;
  background: rgba(255,255,255,0.06);
  transition: all 0.3s var(--ease);
}
.process-step:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.process-num {
  font-size: 40px; font-weight: 700; letter-spacing: -0.04em;
  color: var(--blue); opacity: 0.4; line-height: 1; margin-bottom: 16px;
}
.process-step h3 {
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 8px; color: var(--text-on-dark);
}
.process-step p { font-size: 14px; color: var(--text-on-dark-secondary); line-height: 1.47; }

@media (max-width: 900px) { .process-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .process-steps { grid-template-columns: 1fr; } }

/* ===================== TESTIMONIALS ===================== */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 48px; }

.quote-card {
  background: var(--bg-secondary); border-radius: var(--radius);
  padding: 32px; position: relative; border: none;
  transition: all 0.3s var(--ease);
}
.quote-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.quote-mark {
  font-size: 48px; line-height: 1; color: var(--blue); opacity: 0.15;
  position: absolute; top: 16px; left: 28px;
}
.quote-card blockquote {
  font-size: 15px; color: var(--text-secondary); line-height: 1.58;
  font-style: normal; margin-bottom: 20px; position: relative; z-index: 1;
}
.quote-author strong { font-size: 15px; font-weight: 600; display: block; color: var(--text); }
.quote-author span { font-size: 13px; color: var(--text-secondary); }

.stats-bar {
  display: flex; justify-content: space-between;
  background: var(--bg-secondary); border-radius: var(--radius);
  padding: 36px 48px; border: none;
}
.stat { text-align: center; }
.stat-value {
  font-size: 40px; font-weight: 700; letter-spacing: -0.04em;
  color: var(--text); display: inline;
}
.stat-plus { font-size: 28px; font-weight: 700; color: var(--blue); }
.stat-label {
  display: block; font-size: 12px; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; font-weight: 500;
}

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; gap: 28px; justify-content: center; padding: 28px; }
}

/* ===================== INSIGHTS ===================== */
.insights-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 48px; }

.featured-card {
  border-radius: var(--radius); padding: 32px; border: none;
  position: relative; overflow: hidden;
}
.featured-book {
  background: linear-gradient(135deg, #1D1D1F, #2C2C2E);
  color: var(--text-on-dark);
}
.featured-campus { background: var(--bg-secondary); }
.featured-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 980px; margin-bottom: 16px;
}
.featured-book .featured-badge { background: var(--blue); color: #fff; }
.featured-campus .featured-badge { background: var(--blue); color: #fff; }
.featured-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.featured-card p { font-size: 15px; line-height: 1.47; margin-bottom: 20px; }
.featured-book p { color: var(--text-on-dark-secondary); }
.featured-campus p { color: var(--text-secondary); }

.articles-heading {
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 0.5px solid var(--border);
}
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 48px; }

.article {
  padding: 24px; background: var(--bg-secondary); border-radius: var(--radius);
  border: none; transition: all 0.3s var(--ease);
}
.article:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.article-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.article-cat { font-size: 12px; font-weight: 600; color: var(--blue); }
.article-meta time { font-size: 13px; color: var(--text-secondary); }
.article h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.article p { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.47; }
.article a { font-size: 14px; font-weight: 500; color: var(--blue); }
.article a:hover { text-decoration: underline; }

.insights-follow {
  text-align: center; padding: 36px; background: var(--bg-secondary);
  border-radius: var(--radius); border: none;
}
.insights-follow p { color: var(--text-secondary); margin-bottom: 16px; max-width: 460px; margin-left: auto; margin-right: auto; font-size: 15px; }

@media (max-width: 768px) {
  .insights-featured, .articles-grid { grid-template-columns: 1fr; }
}

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info .section-heading { font-size: clamp(28px, 4vw, 40px); }

.contact-block { margin-bottom: 28px; }
.contact-block h3 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: #2997FF; margin-bottom: 10px;
}
.contact-block address, .contact-block p { font-size: 15px; color: var(--text-on-dark-secondary); line-height: 1.58; }
.contact-block a { color: #2997FF; transition: opacity 0.2s; }
.contact-block a:hover { opacity: 0.7; }
.contact-block ul li { margin-bottom: 4px; font-size: 15px; color: var(--text-on-dark-secondary); }

.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.contact-links a {
  font-size: 13px; font-weight: 500; padding: 8px 16px;
  background: rgba(255,255,255,0.06); border-radius: 980px;
  color: var(--text-on-dark-secondary); border: none;
  transition: all 0.2s;
}
.contact-links a:hover { background: rgba(255,255,255,0.12); color: #fff; }

.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; padding: 12px 24px;
  background: rgba(37,211,102,0.1); border-radius: 980px;
  color: #25D366; border: none; transition: all 0.3s var(--ease);
}
.whatsapp-btn:hover { background: rgba(37,211,102,0.2); }

/* Form */
.contact-form {
  background: rgba(255,255,255,0.04); border-radius: var(--radius);
  padding: 32px; border: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  font-size: 13px; font-weight: 500; display: block; margin-bottom: 6px;
  color: var(--text-on-dark-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.06);
  border: 0.5px solid var(--border-dark); border-radius: var(--radius-sm);
  color: var(--text-on-dark); font-size: 15px; transition: all 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-on-dark-secondary); opacity: 0.5; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.2);
}
.form-group select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A1A1A6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form-group select option { background: var(--bg-dark); color: var(--text-on-dark); }
.form-group textarea { resize: vertical; min-height: 120px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===================== FOOTER ===================== */
.footer { background: var(--bg-darker); color: var(--text-on-dark-secondary); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; line-height: 1.58; margin-bottom: 16px; }
.footer-certs { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-certs span {
  font-size: 11px; font-weight: 500; padding: 4px 10px;
  background: rgba(255,255,255,0.06); border-radius: 980px;
}
.footer-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-on-dark); margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; opacity: 0.6; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 0.5px solid rgba(255,255,255,0.06); font-size: 13px; opacity: 0.5;
}
.footer-social { display: flex; gap: 20px; }
.footer-social a { opacity: 0.6; transition: opacity 0.2s; }
.footer-social a:hover { opacity: 1; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===================== ANIMATIONS ===================== */
[data-animate] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

[data-animate]:nth-child(2) { transition-delay: 0.06s; }
[data-animate]:nth-child(3) { transition-delay: 0.12s; }
[data-animate]:nth-child(4) { transition-delay: 0.18s; }
[data-animate]:nth-child(5) { transition-delay: 0.24s; }
[data-animate]:nth-child(6) { transition-delay: 0.30s; }
[data-animate]:nth-child(7) { transition-delay: 0.36s; }

.hero [data-animate] { transform: translateY(24px); }
.hero [data-animate].visible { transform: translateY(0); }
.hero [data-animate]:nth-child(1) { transition-delay: 0.05s; }
.hero [data-animate]:nth-child(2) { transition-delay: 0.15s; }
.hero [data-animate]:nth-child(3) { transition-delay: 0.25s; }
.hero [data-animate]:nth-child(4) { transition-delay: 0.35s; }

@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.count-done { animation: countPulse 0.3s var(--ease); }

/* ===================== THEME TOGGLE ===================== */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); background: transparent;
  transition: all 0.3s var(--ease); cursor: pointer; border: none;
  position: relative;
}
.theme-toggle:hover { background: rgba(0,0,0,0.05); }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle-mobile { display: none; }

@media (max-width: 768px) {
  .theme-toggle-mobile { display: flex; }
}

/* ===================== DARK MODE ===================== */
[data-theme="dark"] {
  --bg: #000000;
  --bg-secondary: #1C1C1E;
  --bg-dark: #1C1C1E;
  --bg-darker: #000000;
  --text: #F5F5F7;
  --text-secondary: #A1A1A6;
  --text-on-dark: #F5F5F7;
  --text-on-dark-secondary: #A1A1A6;
  --blue: #2997FF;
  --blue-hover: #40A9FF;
  --border: rgba(255,255,255,0.08);
  --border-dark: rgba(255,255,255,0.08);
  --card-shadow: 0 2px 12px rgba(0,0,0,0.3), 0 0 1px rgba(0,0,0,0.4);
  --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.5), 0 0 1px rgba(0,0,0,0.4);
}

[data-theme="dark"] body { color-scheme: dark; }

[data-theme="dark"] .nav {
  background: rgba(0,0,0,0.72); border-bottom-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .nav.scrolled { background: rgba(0,0,0,0.92); }

[data-theme="dark"] .mobile-menu {
  background: rgba(0,0,0,0.98);
  border-top-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .mobile-menu a {
  color: var(--text); border-bottom-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .hamburger span { background: var(--text); }

[data-theme="dark"] .hero { background: var(--bg); }

[data-theme="dark"] .marquee { background: var(--bg-secondary); }
[data-theme="dark"] .marquee-content span { color: var(--text); }

[data-theme="dark"] .section-light { background: var(--bg); }

[data-theme="dark"] .section-dark { background: var(--bg-secondary); }

[data-theme="dark"] .cert-tag {
  background: rgba(255,255,255,0.06); color: var(--text);
  box-shadow: none;
}

[data-theme="dark"] .featured-book { background: linear-gradient(135deg, #2C2C2E, #3A3A3C); }
[data-theme="dark"] .featured-campus { background: var(--bg-secondary); }

[data-theme="dark"] .footer { background: #000000; }
[data-theme="dark"] .footer-brand img { filter: invert(1); }

[data-theme="dark"] .theme-toggle { color: var(--text); }
[data-theme="dark"] .theme-toggle:hover { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

[data-theme="dark"] .nav-links a { color: var(--text); }

[data-theme="dark"] .hero-accent { background: linear-gradient(90deg, #2997FF, #5AC8FA); -webkit-background-clip: text; background-clip: text; }
[data-theme="dark"] .section-heading em { background: linear-gradient(90deg, #2997FF, #5AC8FA); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

[data-theme="dark"] .form-group select option { background: #1C1C1E; }
