@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

html { scroll-behavior: smooth; }

:root {
  /* Core theme tokens (dark default) */
  --bg: #111112;
  --surface: rgba(28, 26, 40, 0.92);
  --surface-strong: rgba(22, 20, 32, 0.98);
  --primary: #b37bff;
  --accent: #66ffe8;
  --accent-strong: #aad4ff;
  --text: #f9fbff;
  --muted: #b9d8ff;
  --shadow: 0 28px 120px rgba(0, 0, 0, 0.42);
  --grid-line: rgba(154, 108, 255, 0.18);
  --surface-soft: rgba(32, 30, 46, 0.84);

  /* Liquid canvas appearance (read by JS) */
  --liquid-color-1: 166,92,255; /* purple */
  --liquid-color-2: 62,249,199; /* cyan */
  --liquid-blend: screen;
}

/* Light theme overrides */
.light-theme {
  --bg: #F9F9FB;
  --surface: rgba(255,255,255,0.92);
  --surface-strong: rgba(245,245,247,0.98);
  --primary: #111112;
  --accent: #0057ff;
  --accent-strong: #ff2aa6;
  --text: #111112;
  --muted: #44475a;
  --shadow: 0 18px 48px rgba(16,16,24,0.06);
  --grid-line: rgba(18, 24, 42, 0.06);
  --liquid-color-1: 6,24,80; /* deep ink blue for contrast */
  --liquid-color-2: 255,45,135; /* vivid hot-pink accent */
  --liquid-blend: multiply;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ffffff;
  background: radial-gradient(circle at 14% 18%, rgba(179, 123, 255, 0.16), transparent 16%),
    radial-gradient(circle at 84% 12%, rgba(102, 255, 232, 0.1), transparent 18%),
    linear-gradient(180deg, #17161d 0%, #121018 55%, #0c0b0f 100%);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 16%, rgba(134, 82, 255, 0.08), transparent 16%),
    radial-gradient(circle at 80% 14%, rgba(62, 249, 199, 0.08), transparent 18%);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 220px 220px;
  opacity: 0.18;
}

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

.site-header {
  position: sticky; top: 0; z-index: 70;
  background: rgba(17,17,18,0.94); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 18px clamp(20px, 4vw, 60px);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.site-nav a { color: #ffffff; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.site-nav a:hover { color: #ffffff; background: rgba(99, 54, 255, 0.12); border-color: rgba(99, 54, 255, 0.25); }

.brand { display:flex; align-items:center; gap:10px; }
.site-header h1, .site-header p { margin:0 }
.site-header h1 { color:#ffffff; font-size:1rem; letter-spacing:0.18em; text-transform:uppercase }
.site-header p { color:#ffffff; font-size:0.92rem }
.logo { width:56px; height:56px; object-fit:contain }

.logo-3d-container, .hero-logo-container { position:relative; overflow:hidden }
.logo-3d-container { width:72px; height:72px; perspective:1200px; display:inline-flex; align-items:center; justify-content:center }
.logo-3d { width:100%; height:100%; border-radius:14px; box-shadow:0 18px 46px rgba(0,0,0,0.28); transition:transform .18s ease }

.site-nav { display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.site-nav a { color:#ffffff; text-decoration:none; font-weight:700; position:relative; display:inline-flex; align-items:center; padding:10px 16px; border-radius:999px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.06); transition: transform .22s ease, background .22s ease, border-color .22s ease; }
.site-nav a::after { content:''; position:absolute; left:50%; transform:translateX(-50%) scaleX(0); bottom:8px; height:3px; width:70%; background:var(--primary); transform-origin:center; transition:transform .22s ease; border-radius:999px; }
.site-nav a:hover { color:#ffffff; transform:translateY(-2px); background:rgba(122,214,255,0.08); border-color:rgba(122,214,255,0.18); }
.site-nav a:hover::after { transform:translateX(-50%) scaleX(1); }

/* Header actions (login/logout) */
.site-actions { display:flex; align-items:center; gap:12px; }
.site-actions .button { padding:12px 16px; font-size:0.92rem; border-radius:14px; }
.site-actions .button.ghost { color:#ffffff; border:1px solid rgba(255,255,255,0.08); background:rgba(255,255,255,0.03); }
.site-actions .button.ghost:hover { color:#ffffff; border-color:rgba(122,214,255,0.2); background:rgba(122,214,255,0.08); }

/* Theme toggle (top-right) */
.theme-toggle { --size:42px; display:inline-grid; place-items:center; width:var(--size); height:var(--size); border-radius:999px; background:transparent; border:1px solid rgba(255,255,255,0.06); color:#ffffff; cursor:pointer; transition: background .28s ease, transform .28s cubic-bezier(.2,.9,.28,1), color .28s ease; position:relative; overflow:visible }
.theme-toggle .toggle-inner { display:inline-grid; grid-auto-flow:column; gap:8px; align-items:center; justify-items:center }
.theme-toggle .icon { opacity:0.98; width:18px; height:18px; display:block }
.theme-toggle .icon.icon-moon { opacity:0; transform:scale(.85); transition: opacity .28s ease, transform .28s ease }
.theme-toggle[aria-pressed="true"] .icon.icon-sun { opacity:0; transform:scale(.85); }
.theme-toggle[aria-pressed="true"] .icon.icon-moon { opacity:0.98; transform:scale(1); }
.theme-toggle:active { transform: scale(.96) }

.theme-toggle .ripple { position:absolute; left:50%; top:50%; width:8px; height:8px; background: rgba(255,255,255,0.14); border-radius:999px; transform:translate(-50%,-50%) scale(0); pointer-events:none; will-change: transform, opacity; }
.theme-toggle .ripple.animate { animation: rippleExpand 650ms cubic-bezier(.2,.9,.28,1) forwards; }
@keyframes rippleExpand { to { transform: translate(-50%,-50%) scale(16); opacity: 0; } }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.section { padding:64px clamp(20px,4vw,60px); position:relative; overflow:hidden; transform:translateY(var(--section-offset,0)); transition:transform .35s ease; background: rgba(22, 19, 36, 0.72); border: 1px solid rgba(255,255,255,0.06); }
.section::before { content:''; position:absolute; inset:0; pointer-events:none; background: radial-gradient(circle at top left, rgba(179,123,255,0.06), transparent 18%), radial-gradient(circle at bottom right, rgba(102,255,232,0.06), transparent 16%) }

.hero-section { min-height:94vh; display:grid; grid-template-columns: minmax(320px, 1.2fr) minmax(300px, 0.8fr); align-items:center; gap:48px; position:relative; padding-top:120px; overflow: hidden; }
.hero-section::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 15% 18%, rgba(166, 92, 255, 0.09), transparent 18%), radial-gradient(circle at 88% 12%, rgba(62, 249, 199, 0.09), transparent 22%); pointer-events:none; z-index:0; }
.hero-grid-overlay { position:absolute; inset:0; background-image: linear-gradient(90deg, var(--grid-line) 1px, transparent 1px), linear-gradient(var(--grid-line) 1px, transparent 1px); background-size: 100px 100px; opacity:0.18; pointer-events:none; z-index:1; animation: driftGrid 14s linear infinite reverse; }
.hero-bubbles { position:absolute; inset:0; pointer-events:none; overflow:hidden; opacity:0.55; z-index:0; }
.bubble { position:absolute; bottom:-60px; width:var(--size); height:var(--size); left:var(--left); border-radius:50%; background:rgba(255,255,255,0.2); box-shadow:0 0 40px rgba(122,214,255,0.18); opacity:0.85; animation:floatBubble var(--duration) ease-in-out infinite; animation-delay:var(--delay) }

@keyframes floatBubble { 0%{ transform:translate3d(0,0,0) scale(.92); opacity:.8 } 50%{ transform:translate3d(10px,-45vh,0) scale(1.05); opacity:.96 } 100%{ transform:translate3d(-10px,-95vh,0) scale(.9); opacity:0 } }

.hero-section { 
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0908 0%, #17161d 50%, #121018 100%);
}

.hero-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(62, 249, 199, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 249, 199, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.hero-content-overlay {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  pointer-events: none;
}

.glassmorphic-panel {
  background: rgba(20, 18, 32, 0.7);
  backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(102, 255, 232, 0.15);
  border-radius: 24px;
  padding: 40px;
  pointer-events: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.glassmorphic-panel:hover {
  background: rgba(25, 22, 40, 0.8);
  border-color: rgba(102, 255, 232, 0.25);
  box-shadow: 0 32px 100px rgba(62, 249, 199, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-label {
  display: inline-block;
  margin-bottom: 16px;
  color: #66ffe8;
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.hero-meta {
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-meta p {
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
}

.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-visual-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.hero-visual-panel h3 {
  font-size: 1.3rem;
  color: #66ffe8;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.hero-visual-panel p {
  font-size: 1.4rem;
  color: #ffffff;
  margin: 0;
  font-weight: 700;
  max-width: 280px;
  line-height: 1.4;
}

.hero-logo-display {
  width: 240px;
  height: 240px;
  margin: 0 auto 12px;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(102, 255, 232, 0.12), transparent 60%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-philosophy-logo {
  width: 140%;
  height: 140%;
  object-fit: contain;
  border-radius: 32px;
  filter: drop-shadow(0 12px 28px rgba(102, 255, 232, 0.22));
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), filter 0.4s ease;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.hero-philosophy-logo:hover {
  transform: scale(1.08) rotateZ(1.5deg);
  filter: drop-shadow(0 18px 42px rgba(102, 255, 232, 0.4));
}

@media (max-width: 900px) {
  .hero-logo-display {
    width: 160px;
    height: 160px;
    margin-bottom: 12px;
  }
  
  .hero-philosophy-logo {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 620px) {
  .hero-logo-display {
    width: 140px;
    height: 140px;
    margin-bottom: 12px;
  }
  
  .hero-philosophy-logo {
    width: 180px;
    height: 180px;
  }
}

.hero-logo-container:hover .hero-logo { filter:hue-rotate(165deg) saturate(220%) brightness(1.22); opacity:.98; box-shadow: inset 0 0 58px rgba(0,0,0,0.16); transform: scale(1.08) rotateY(2.2deg) rotateX(1.2deg); }

.hero-copy { transform:translateY(var(--hero-copy-parallax,0)); transition:transform .35s ease; max-width: 720px; position: relative; z-index: 10; }
.hero-label { display:inline-block; margin-bottom:16px; color: #ffffff; font-size:0.92rem; letter-spacing:0.22em; text-transform:uppercase; font-weight:700; }
.hero-title {
  margin: 0 0 18px 0;
  font-weight: 900;
  font-size: clamp(3.6rem, 7vw, 6.2rem);
  color: #fff;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-shadow: 0 26px 88px rgba(0,0,0,0.35);
}
.hero-sub { margin:0 0 30px 0; color:#ffffff; font-size:clamp(1rem,1.3vw,1.2rem); max-width: 680px; }
.hero-actions { display:flex; gap:18px; align-items:center; flex-wrap:wrap }
.hero-intro { position: relative; }
#fluid-canvas-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.12; mix-blend-mode: screen; pointer-events: none; z-index: -1; }
.hero-actions .button.ghost { background: rgba(255,255,255,0.05); color: #ffffff; border: 1px solid rgba(134,82,255,0.18); }
.hero-actions .button.ghost:hover { background: rgba(134,82,255,0.12); }
.hero-meta { margin-top:24px; color:#ffffff; font-size:1rem; }
.typed { font-weight:600; color:#ffffff; }
.hero-visual-panel { display:grid; place-items:center; gap:24px; padding:32px; border-radius:36px; background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.04); backdrop-filter: blur(18px); box-shadow: 0 40px 120px rgba(0,0,0,0.24); position:relative; z-index:10; }
.hero-logo-container { width:min(320px,100%); max-width:320px; aspect-ratio:1/1; margin:0 auto; perspective:1600px; border-radius:40px; overflow:hidden; box-shadow:0 34px 110px rgba(0,0,0,0.34); transition:transform .36s ease, box-shadow .28s ease; background:linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02)); touch-action:none; will-change:transform; transform:translateY(var(--hero-parallax,0)); border:1px solid rgba(62,255,182,0.14); transform-style:preserve-3d; animation: heroLogoSpin 10s linear infinite; cursor: grab; }
.hero-logo-container:active { cursor: grabbing; }
.hero-logo { width:100%; height:100%; object-fit:cover; transition:transform .22s ease-out, filter .35s ease, opacity .35s ease; transform-style: preserve-3d; backface-visibility: hidden; animation: heroLogoFace 8s ease-in-out infinite; }
.hero-logo-mask { position:absolute; inset:0; background: radial-gradient(circle at 32% 24%, rgba(22,255,160,0.22), transparent 22%), linear-gradient(180deg, rgba(255,255,255,0.08), transparent 70%); mix-blend-mode:screen; pointer-events:none; opacity:0.95; z-index:2; }
.hero-logo-container::before { content:''; position:absolute; inset:0; pointer-events:none; background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 70%); }
.hero-logo-container::after { content:''; position:absolute; inset:0; pointer-events:none; background: radial-gradient(circle at 24% 25%, rgba(62,255,182,0.18), transparent 24%), radial-gradient(circle at 82% 30%, rgba(13, 184, 156, 0.14), transparent 32%); mix-blend-mode: screen; opacity:0.95; transition: opacity .35s ease, transform .35s ease; }
.hero-logo-container:hover::after { transform: scale(1.08); opacity:1; }
.hero-logo-container:hover { transform:translateY(calc(var(--hero-parallax,0)-8px)) rotateZ(-0.6deg) scale(1.02); box-shadow:0 78px 170px rgba(0,0,0,0.42); }
.hero-logo-container.interactive-active { box-shadow: 0 90px 180px rgba(0,0,0,0.35); }
.hero-logo-container.interactive-press { transform: translateY(calc(var(--hero-parallax,0)-10px)) rotateZ(-0.3deg) scale(1.02); }
@keyframes heroLogoSpin { 0% { transform: translateY(var(--hero-parallax,0)) rotateX(20deg) rotateY(0deg); } 50% { transform: translateY(var(--hero-parallax,0)) rotateX(20deg) rotateY(180deg); } 100% { transform: translateY(var(--hero-parallax,0)) rotateX(20deg) rotateY(360deg); } }
@keyframes heroLogoFace { 0%, 100% { transform: scale(1) rotateY(0deg); } 50% { transform: scale(1.02) rotateY(15deg); } }
.hero-panel-copy { display:grid; gap:16px; position: relative; z-index: 3; }
.hero-panel-copy h3 { margin: 0 0 12px 0; color: #66ffe8; font-size: 1.3rem; font-weight: 800; letter-spacing: 0.08em; text-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 0 24px rgba(102, 255, 232, 0.4); text-transform: uppercase; }
.hero-panel-copy p { margin:0; color:#ffffff; font-size:1.4rem; line-height:1.8; font-weight: 700; text-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 0 20px rgba(102, 255, 232, 0.2); letter-spacing: 0.02em; }


.dashboard-grid { display:grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap:24px; margin-top:32px; }
.analytics-card { background: rgba(19, 16, 30, 0.95); border: 1px solid rgba(134,82,255,0.14); border-radius: 30px; padding: 30px 28px; box-shadow: 0 34px 98px rgba(0,0,0,0.24); transition: transform .28s ease, border-color .28s ease, background .28s ease; }
.analytics-card:hover { transform: translateY(-8px); border-color: rgba(134,82,255,0.28); }
.analytics-card .card-top { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:22px; }
.analytics-card .card-top span { color: #ffffff; font-size:0.88rem; text-transform: uppercase; letter-spacing: 0.14em; }
.analytics-card .card-top strong { color: #fff; font-size: 1.8rem; line-height: 1; }
.progress-ring { width: 100%; min-height: 140px; position: relative; background: radial-gradient(circle, rgba(255,255,255,0.02), transparent 66%); border-radius: 24px; display: grid; place-items: center; margin-bottom: 20px; }
.progress-ring::before { content: attr(data-progress) '%'; color: #ffffff; font-size: 2rem; font-weight: 800; }
.progress-bar-wrap { background: rgba(255,255,255,0.04); border: 1px solid rgba(134,82,255,0.13); border-radius: 999px; padding: 5px; margin: 18px 0 20px 0; }
.progress-bar { width: var(--progress, 60%); height: 14px; border-radius: 999px; background: linear-gradient(90deg, rgba(134,82,255,0.96), rgba(62,249,199,0.9)); box-shadow: 0 0 18px rgba(134,82,255,0.22); transition: width .36s ease; }
.milestone-list { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.milestone-list span { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,0.05); color: #ffffff; font-size:0.88rem; }
.analytics-card p { margin:0; color: #ffffff; line-height:1.8; }

.curriculum-grid { display:grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap:24px; margin-top:32px; }
.curriculum-card { background: rgba(21, 18, 36, 0.96); border: 1px solid rgba(134,82,255,0.14); border-radius: 30px; padding: 28px; box-shadow: 0 34px 90px rgba(0,0,0,0.22); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.curriculum-card:hover { transform: translateY(-10px); border-color: rgba(134,82,255,0.3); box-shadow: 0 44px 108px rgba(79, 28, 153, 0.18); }
.curriculum-head { display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.curriculum-head span { color: #ffffff; font-size:0.86rem; text-transform: uppercase; letter-spacing: 0.12em; }
.curriculum-head strong { color: #fff; font-size: 1.3rem; line-height: 1.2; }
.curriculum-summary { color: #ffffff; margin-bottom: 22px; line-height: 1.75; }
.curriculum-toggle { width: 100%; justify-content: space-between; }
.curriculum-details { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.curriculum-details ul { margin: 0; padding: 0; list-style: none; display:grid; gap: 10px; }
.curriculum-details li { color: #ffffff; background: rgba(255,255,255,0.04); padding: 10px 14px; border-radius: 14px; }
.curriculum-card.open { background: linear-gradient(180deg, rgba(134,82,255,0.15), rgba(62,249,199,0.1)); border-color: rgba(255,255,255,0.2); }
.curriculum-card.open .curriculum-head strong, .curriculum-card.open li { color: #111112; }

.button.ghost { background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.06); box-shadow: none; }
.button.ghost::after { background: rgba(0,0,0,0.12); }

.button, .quiz-actions button, .contact-form button, .difficulty-buttons button {
  --depth-color: rgba(0,0,0,0.24);
  --top-gradient: linear-gradient(135deg, #6ad1ff 0%, #28a5ff 100%);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 16px;
  border: none;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--top-gradient);
  box-shadow: 0 24px 44px rgba(0, 110, 190, 0.18);
  transform-style: preserve-3d;
  transition: transform 260ms cubic-bezier(.2,.9,.28,1), box-shadow 260ms ease, filter 200ms ease, background 220ms ease;
  cursor: pointer;
}
.button::after {
  /* depth layer */
  content: '';
  position: absolute;
  left: 6px;
  right: -6px;
  bottom: -8px;
  height: 16px;
  background: var(--depth-color);
  border-radius: 14px;
  z-index: -1;
  filter: blur(8px);
  transform: translateZ(-1px) scaleX(0.98);
  transition: transform 260ms cubic-bezier(.2,.9,.28,1), opacity 260ms ease;
}
.button::before {
  /* shine */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  mix-blend-mode: screen;
  pointer-events: none;
}
.button:hover { transform: translateY(-6px) rotateX(6deg); box-shadow: 0 34px 60px rgba(0,0,0,0.28); }
.button:active { transform: translateY(-2px) rotateX(2deg) scale(0.995); }

/* apply 3D to other buttons */
.quiz-actions button, .contact-form button, .difficulty-buttons button { border-radius: 12px; }
.button.ghost { background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.06); box-shadow: none; }
.button.ghost::after { background: rgba(0,0,0,0.12); }

#liquid-canvas { position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: 0.88; mix-blend-mode: var(--liquid-blend, screen); transition: filter .28s ease, opacity .28s ease; }
#cursor-trail { position: fixed; inset: 0; pointer-events: none; z-index: 9998; }
.cursor-dot { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, rgba(134,82,255,0.95), rgba(62,249,199,0.45)); box-shadow: 0 0 20px rgba(134,82,255,0.18), 0 0 40px rgba(62,249,199,0.18); opacity: 0.72; transform: translate(-50%, -50%) scale(0.72); pointer-events:none; transition: transform 240ms ease, opacity 240ms ease; }
.cursor-dot:nth-child(2) { opacity: 0.56; transform: translate(-50%, -50%) scale(0.62); }
.cursor-dot:nth-child(3) { opacity: 0.44; transform: translate(-50%, -50%) scale(0.52); }
.cursor-dot:nth-child(4) { opacity: 0.32; transform: translate(-50%, -50%) scale(0.42); }
.cursor-dot:nth-child(5) { opacity: 0.22; transform: translate(-50%, -50%) scale(0.32); }
#custom-cursor { background: radial-gradient(circle, rgba(134,82,255,1), rgba(62,249,199,0.8)); box-shadow:0 12px 32px rgba(134,82,255,0.28), 0 0 18px rgba(62,249,199,0.22); }
#custom-cursor.cursor-grow { width: 48px; height: 48px; opacity: 0.9; }

.tracks-section { padding-top: 24px; }
.track-grid { display:grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap:26px; margin-top:32px; }
.track-card { background: rgba(24, 18, 38, 0.93); border: 1px solid rgba(134,82,255,0.12); border-radius: 32px; padding: 30px; box-shadow: 0 34px 100px rgba(0,0,0,0.22); transition: transform .28s ease, border-color .28s ease, background .28s ease, filter .28s ease; transform-style: preserve-3d; }
.track-card:hover { transform: translateY(-12px) rotateX(2deg) scale(1.01); border-color: rgba(134,82,255,0.3); background: rgba(26, 14, 45, 1); filter: saturate(1.12); }
.track-card.active, .track-card:hover { box-shadow: 0 44px 120px rgba(92, 55, 255, 0.14); }
.track-chip { display:inline-flex; align-items:center; padding: 10px 14px; border-radius: 999px; background: rgba(99,54,255,0.12); color: #ffffff; font-size: 0.87rem; font-weight:700; margin-bottom: 18px; }
.track-card h3 { margin: 0 0 14px 0; color: #fff; font-size: 1.5rem; line-height: 1.05; }
.track-card p { margin: 0 0 22px 0; color: #ffffff; line-height: 1.8; }
.track-meta { display:flex; gap:14px; flex-wrap:wrap; font-size:0.92rem; color: #ffffff; margin-bottom:20px; }
.track-meta span { display:inline-flex; align-items:center; gap:6px; }
.track-progress { display:grid; gap:12px; }
.track-progress span { color: #ffffff; font-size: 0.92rem; font-weight: 700; }
.track-progress-bar { height: 12px; width: 100%; border-radius: 999px; background: rgba(255,255,255,0.06); overflow:hidden; position: relative; }
.track-progress-bar::after { content: ''; position: absolute; inset: 0; width: var(--progress, 50%); background: linear-gradient(90deg, rgba(134,82,255,0.95), rgba(62,249,199,0.9)); border-radius: inherit; box-shadow: 0 0 24px rgba(134,82,255,0.22); transition: width .38s ease; }
.track-card.active h3, .track-card.active p, .track-card.active .track-meta span { color: #111112; }
.track-card.active { background: linear-gradient(180deg, rgba(134,82,255,0.94), rgba(62,249,199,0.9)); border-color: rgba(255,255,255,0.22); }
.track-card.active .track-chip { background: rgba(255,255,255,0.16); color: #111112; }

@keyframes driftGrid { 0% { background-position: 0 0, 0 0; } 100% { background-position: 110px 110px, 110px 110px; } }

@media (max-width: 980px) {
  .hero-section { grid-template-columns: 1fr; padding-top: 96px; gap: 28px; }
  .hero-image, .hero-copy { z-index: 2; }
  .hero-status-grid { grid-template-columns: 1fr; }
  .hero-panel-metrics { grid-template-columns: 1fr 1fr; }
  .track-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .curriculum-grid { grid-template-columns: 1fr; }
  .section { padding: 48px clamp(18px, 4vw, 36px); }
}

@media (max-width: 620px) {
  .site-header { flex-direction: column; align-items: flex-start; padding: 18px 18px 10px; }
  .site-nav { width: 100%; justify-content: flex-start; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
  .site-actions { width: 100%; justify-content: space-between; }
  .hero-grid-overlay { opacity: 0.1; }
  .hero-panel-copy { gap: 12px; }
  .hero-panel-metrics { flex-direction: column; }
  .hero-title { font-size: clamp(2.6rem, 10vw, 4.2rem); }
  .hero-section { padding-top: 80px; grid-template-columns: 1fr; }
  .hero-logo-container { max-width: 280px; }
  .track-grid { gap: 18px; }
  .dashboard-grid, .curriculum-grid { gap: 18px; }
  .track-card { padding: 24px; }
  .section { padding: 40px 18px; }
}

/* Auth modal (3D card) */
.auth-modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(2,6,23,0.7); z-index: 10010; backdrop-filter: blur(12px); }
.auth-card { width: min(520px, 92%); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); border-radius: 18px; padding: 28px; box-shadow: 0 40px 120px rgba(2,6,23,0.6); transform-style: preserve-3d; perspective: 1400px; border: 1px solid rgba(255,255,255,0.03); }
.auth-card.inner { transform: translateZ(0); }
.auth-header { display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.avatar { width:64px; height:64px; border-radius:50%; background: linear-gradient(180deg,#fff,#ddd); display:inline-grid; place-items:center; font-weight:800; color:#0b2b3a; box-shadow: 0 10px 30px rgba(0,0,0,0.28); transform: translateZ(40px); overflow:hidden; }
.avatar img { width:100%; height:100%; object-fit:cover; display:block; border-radius:50%; }
.auth-title { font-size:1.2rem; font-weight:700; color:#ffffff; }
.auth-form { display:grid; gap:12px; margin-top:6px; }
.auth-form input { padding:12px 14px; border-radius:12px; border:1px solid rgba(255,255,255,0.06); background: rgba(9,14,32,0.6); color:#ffffff; outline:none; box-shadow: inset 0 2px 6px rgba(255,255,255,0.02); }
.auth-actions { display:flex; gap:12px; justify-content:flex-end; margin-top:8px; }
.auth-note { color:#ffffff; font-size:0.92rem; }

/* small avatar badge in header */
#user-badge { display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:12px; background: rgba(255,255,255,0.03); color:#ffffff; font-weight:600; margin-left:12px; }
#user-badge .avatar { width:36px; height:36px; border-radius:999px; }
#user-badge .user-email { max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:0.92rem; color:#ffffff }


/* Custom cursor */
#custom-cursor { position:fixed; top:0; left:0; width:18px; height:18px; border-radius:50%; pointer-events:none; transform:translate(-50%,-50%); background:linear-gradient(135deg,var(--primary),#9bffea); box-shadow:0 6px 22px rgba(122,214,255,0.18); transition:width 160ms ease, height 160ms ease, background 160ms ease, transform 120ms ease, opacity 120ms ease; z-index:9999; mix-blend-mode:screen }
#custom-cursor.cursor-grow { width:44px; height:44px; opacity:0.95 }

.section-header { max-width:720px; margin-bottom:32px }
.section-header h2 { margin-bottom:12px; font-size:clamp(2rem,2.6vw,2.6rem) }
.quiz-section { padding:48px clamp(20px,4vw,60px) }
.contact-section { background:var(--surface); border-radius:28px; box-shadow:var(--shadow); margin:0 clamp(20px,4vw,60px) }

.difficulty-buttons { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:28px }
.quiz-start { display:grid; gap:18px; max-width:720px; margin-bottom:28px }
.quiz-note { margin:0; color:#ffffff; font-size:0.98rem }

.difficulty-buttons button { flex:1 1 140px; border-radius:999px; background:linear-gradient(135deg,#ff8c42 0%,#ffb56c 100%); color:white; padding:14px 18px; cursor:pointer; font-weight:700 }
.difficulty-buttons button:hover, .difficulty-buttons button.active { transform:translateY(-3px); box-shadow:0 24px 45px rgba(255,140,66,0.24) }

.quiz-card, .quiz-results, .contact-form { max-width:900px; margin:0 auto }
.quiz-card { background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); color: #ffffff; border-radius:24px; padding:28px; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.22); }
.quiz-info { display:flex; justify-content:space-between; gap:24px; margin-bottom:20px; color:#ffffff; align-items:center; }
.quiz-question { font-size:1.32rem; margin-bottom:22px; color: #ffffff; font-weight:700; }
.quiz-options { display:grid; gap:14px }
.option-button { border-radius:14px; padding:16px 18px; text-align:left; cursor:pointer; position:relative; overflow:visible; background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.04); color:#ffffff; font-weight:700; transform-style:preserve-3d; }
.option-button::after { content: ''; position: absolute; left: 6px; right: -6px; bottom: -8px; height: 12px; background: rgba(0,0,0,0.18); border-radius: 12px; z-index: -1; filter: blur(6px); transition: transform 220ms cubic-bezier(.2,.9,.28,1), opacity 220ms ease; }
.option-button:hover { transform: translateY(-6px) rotateX(4deg); box-shadow: 0 20px 44px rgba(0,0,0,0.22); }
.option-button.selected { background: linear-gradient(135deg, rgba(122,214,255,0.08), rgba(255,155,50,0.06)); border-color: rgba(122,214,255,0.12); box-shadow: 0 14px 36px rgba(0,164,196,0.08); }
.quiz-actions { display:flex; justify-content:flex-end; margin-top:24px }
.quiz-actions button, .contact-form button { border:none; border-radius:999px; background:var(--accent); color:white; padding:14px 26px; cursor:pointer; font-weight:700 }
.quiz-results { background: var(--surface); border-radius:24px; padding:32px; text-align:center; color: #ffffff; border: 1px solid rgba(255,255,255,0.08); }

.contact-form { display:grid; gap:18px; padding:28px clamp(20px,4vw,60px) }
.contact-form label { display:grid; gap:10px; font-weight:600 }
.contact-form input, .contact-form textarea { border:1px solid rgba(16,42,67,0.16); border-radius:16px; padding:16px; font-size:1rem }
.contact-form input:focus, .contact-form textarea:focus { border-color:var(--primary); box-shadow:0 0 0 4px rgba(0,101,117,0.08) }
.form-note { margin:0; color:#ffffff; font-size:0.95rem }
.status-message { font-weight:700 }

/* Contact section */
.contact-section { background: rgba(8, 20, 50, 0.72); border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.22); border-radius:30px; margin:40px clamp(20px,4vw,60px); padding:48px clamp(20px,4vw,60px); }
.contact-container { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); gap: 28px; align-items:start; margin-top: 32px; }
.contact-email, .contact-socials { flex: none; }
.contact-email h3, .contact-socials h3 { margin: 0 0 16px 0; font-size: 1.2rem; color: #ffffff; }
.email-link { display: inline-flex; align-items: center; gap: 8px; color: #ffffff; text-decoration: none; font-weight: 600; padding: 12px 16px; border-radius: 12px; background: rgba(122,214,255,0.08); transition: all 240ms ease; border: 1px solid rgba(122,214,255,0.12); }
.email-link:hover { background: rgba(122,214,255,0.16); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(122,214,255,0.1); }

.social-links { display: flex; flex-direction: column; gap: 12px; }
.social-icon { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; text-decoration: none; font-weight: 600; color: #ffffff; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); transition: all 260ms cubic-bezier(.2,.9,.28,1); }
.social-icon:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 40px rgba(0,0,0,0.2); }
.social-icon.youtube { color: #ff0000; border-color: rgba(255,0,0,0.12); }
.social-icon.youtube:hover { background: rgba(255,0,0,0.08); box-shadow: 0 16px 40px rgba(255,0,0,0.12); }
.social-icon.instagram { color: #E4405F; border-color: rgba(228,64,95,0.12); }
.social-icon.instagram:hover { background: rgba(228,64,95,0.08); box-shadow: 0 16px 40px rgba(228,64,95,0.12); }
.social-img { width: 24px; height: 24px; object-fit: contain; filter: brightness(1.1); transition: transform 200ms ease, filter 200ms ease; }
.social-icon:hover .social-img { transform: scale(1.15) rotateZ(6deg); filter: brightness(1.3) drop-shadow(0 0 8px currentColor); }

.site-footer { text-align:center; padding:32px clamp(20px,4vw,60px); color:#ffffff; display:grid; gap:8px; background:rgba(9,20,41,0.7); border-top:1px solid rgba(122,214,255,0.06) }
.footer-contact a { color:var(--primary); text-decoration:none }
.hidden { display:none }

/* small social pills near hero */
.socials { display:flex; gap:12px; justify-content:center; margin-top:14px }
.social { padding:8px 12px; border-radius:999px; background:rgba(255,255,255,0.02); color:#ffffff; text-decoration:none; font-weight:600; font-size:0.95rem }
.social:hover { color:var(--primary); transform:translateY(-4px) }

/* reveal utility for intersection observer */
.reveal { opacity:0; transform:translateY(18px) scale(.995); transition:opacity 520ms ease, transform 520ms cubic-bezier(.2,.9,.28,1) }
.reveal.visible { opacity:1; transform:none }

/* additional animation utilities */
.fade-up { animation: fadeUp 560ms both; }
.pop-in { animation: popIn 520ms both; }
.nav-stagger a { opacity: 0; transform: translateY(8px); }
.nav-stagger a.visible { opacity: 1; transform: none; transition: opacity 360ms ease, transform 360ms cubic-bezier(.2,.9,.28,1); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }

/* hero-logo floating */
.hero-logo { transform-origin: center; animation: floatLogo 6s ease-in-out infinite; }
@keyframes floatLogo { 0%{ transform: translateY(0) } 50%{ transform: translateY(-8px) } 100%{ transform: translateY(0) } }

/* subtle pulse for CTA */
.button.pulse { box-shadow: 0 22px 48px rgba(122,214,255,0.06); animation: pulseBtn 2200ms infinite; }
@keyframes pulseBtn { 0%{ transform: translateY(0) } 50%{ transform: translateY(-3px) } 100%{ transform: translateY(0) } }

/* logo hover & interactive effects */
.logo-3d { transition: transform .18s cubic-bezier(.2,.9,.24,1), filter .28s ease, box-shadow .28s ease; }
.logo-3d.glow { filter: drop-shadow(0 10px 26px rgba(122,214,255,0.22)) saturate(150%); transform: scale(1.04) rotateZ(-1deg); }
.logo-3d.ripple { animation: logoRipple 520ms ease; }
@keyframes logoRipple { 0% { transform: scale(1) rotateZ(0); } 40% { transform: scale(1.06) rotateZ(-0.7deg); } 100% { transform: scale(1.02) rotateZ(-0.4deg); } }

/* boom explosion animation on click */
.logo-3d.boom { animation: boom 720ms cubic-bezier(.68,-.55,.265,1.55) forwards; }
@keyframes boom {
  0% { transform: scale(1); opacity: 1; filter: brightness(1); }
  30% { transform: scale(1.15) rotateZ(8deg); opacity: 1; filter: brightness(1.3) drop-shadow(0 0 20px rgba(122,214,255,0.4)); }
  60% { transform: scale(1.25) rotateZ(-4deg); opacity: 0.9; filter: brightness(1.2) drop-shadow(0 0 40px rgba(255,155,50,0.3)); }
  100% { transform: scale(1) rotateZ(0); opacity: 1; filter: brightness(1); }
}

/* Hero logo with boom effect */
.hero-logo { cursor: pointer; }
.hero-logo.boom { animation: heroBoom 800ms cubic-bezier(.68,-.55,.265,1.55) forwards; }
@keyframes heroBoom {
  0% { transform: scale(1) rotateZ(0deg); filter: brightness(1); }
  25% { transform: scale(1.2) rotateZ(12deg); filter: brightness(1.4) drop-shadow(0 0 30px rgba(122,214,255,0.5)); }
  50% { transform: scale(1.3) rotateZ(-6deg); filter: brightness(1.3) drop-shadow(0 0 50px rgba(255,155,50,0.4)); }
  75% { transform: scale(1.15) rotateZ(4deg); filter: brightness(1.15) drop-shadow(0 0 30px rgba(122,214,255,0.3)); }
  100% { transform: scale(1) rotateZ(0deg); filter: brightness(1); }
}

/* fancy underline shimmer for nav */
.site-nav a::before { content: ''; position: absolute; left: 0; bottom: -8px; height: 3px; width: 0; background: linear-gradient(90deg, rgba(122,214,255,0.9), rgba(255,155,50,0.9)); transition: width 360ms cubic-bezier(.2,.9,.28,1); border-radius: 4px; }
.site-nav a:hover::before { width: 100%; }

/* option button micro-animations */
.option-button { transition: transform 180ms cubic-bezier(.2,.9,.28,1), box-shadow 200ms ease, background 160ms ease; }
.option-button:active { transform: translateY(1px) scale(.995); }
.option-button.selected { animation: optionSelect 360ms cubic-bezier(.2,.9,.28,1) both; box-shadow: 0 14px 32px rgba(0,164,196,0.12); }
@keyframes optionSelect { from { transform: scale(.995); } to { transform: scale(1); } }

/* header entrance */
.site-header { transform: translateY(-6px); animation: headerIn 620ms cubic-bezier(.2,.9,.28,1) forwards; }
@keyframes headerIn { to { transform: translateY(0); } }

/* footer wave */
.site-footer { position:relative; overflow:hidden }
.site-footer::after { content: ''; position:absolute; left:-20%; right:-20%; bottom:-18px; height:120px; background: radial-gradient(closest-side, rgba(122,214,255,0.04), transparent); transform: rotate(4deg); }

/* cursor trail sparkle (pseudo) */
@keyframes cursorSpark { 0%{ box-shadow: 0 0 0 0 rgba(122,214,255,0.14);} 100%{ box-shadow: 0 0 40px 18px rgba(122,214,255,0); } }
#custom-cursor.spark { animation: cursorSpark 820ms forwards; }

/* big-screen decorative shimmer */
.hero-section::after { content: ''; position: absolute; inset: -20% -10% auto -10%; height: 30%; background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.06), rgba(255,255,255,0.02)); transform: skewY(-8deg); pointer-events:none; opacity:0.6 }

/* subtle transitions for all links and buttons */
a, button { transition: transform 200ms ease, color 200ms ease, opacity 180ms ease; }

/* Make native buttons 3D by default unless explicitly opted-out */
button:not(.no-3d) { position: relative; transform-style: preserve-3d; }
button:not(.no-3d)::after { content: ''; position: absolute; left: 6px; right: -6px; bottom: -8px; height: 14px; background: rgba(0,0,0,0.22); border-radius: 12px; z-index: -1; filter: blur(8px); transition: transform 220ms cubic-bezier(.2,.9,.28,1), opacity 220ms ease; }
button:not(.no-3d):hover { transform: translateY(-6px) rotateX(6deg); box-shadow: 0 34px 60px rgba(0,0,0,0.28); }
button:not(.no-3d):active { transform: translateY(-2px) rotateX(2deg) scale(.996); }

/* Confirm modal (3D) */
.confirm-modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(2,6,23,0.5); z-index: 10020; backdrop-filter: blur(6px); }
.confirm-card { width: min(420px, 92%); background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius: 16px; padding: 18px; box-shadow: 0 40px 120px rgba(2,6,23,0.6); transform-style: preserve-3d; perspective: 1200px; border: 1px solid rgba(255,255,255,0.03); display:flex; flex-direction:column; gap:12px; align-items:stretch }
.confirm-title { font-size:1.05rem; font-weight:800; color:#ffffff; }
.confirm-body { color:#ffffff; font-size:0.96rem }
.confirm-actions { display:flex; gap:12px; justify-content:flex-end; margin-top:6px }
.confirm-actions .button { min-width:110px }

/* ===== FLOATING & DRIFTING ANIMATIONS ===== */

/* hero section floating drift */
.hero-section { animation: sectionFloat 8s ease-in-out infinite; }
@keyframes sectionFloat { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }

/* hero copy sway */
.hero-copy { animation: swayCopy 7.2s ease-in-out infinite; }
@keyframes swayCopy { 0%, 100% { transform: translateY(var(--hero-copy-parallax, 0)) rotateZ(0deg); } 50% { transform: translateY(calc(var(--hero-copy-parallax, 0) + 4px)) rotateZ(0.2deg); } }

/* quiz section bob */
.quiz-section { animation: sectionBob 6.4s ease-in-out infinite; }
@keyframes sectionBob { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-6px); } }

/* contact section drift */
.contact-section { animation: sectionDrift 7.8s ease-in-out infinite; }
@keyframes sectionDrift { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-5px); } }

/* floating cards/buttons */
/* removed continuous button float for cleaner visual design */

.quiz-card { animation: floatCard 5.6s ease-in-out infinite; }
@keyframes floatCard { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-6px); } }

.contact-card { animation: floatCardAlt 6.2s ease-in-out infinite; }
@keyframes floatCardAlt { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-5px); } }

/* hero title gentle sway */
.hero-title { animation: swayTitle 5.4s ease-in-out infinite; }
@keyframes swayTitle { 0%, 100% { transform: translateX(0px) rotateZ(0deg); } 50% { transform: translateX(2px) rotateZ(0.1deg); } }

/* hero subtitle drift */
.hero-sub { animation: driftText 6s ease-in-out infinite; }
@keyframes driftText { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(2px); } }

/* section headers float */
.section-header { animation: floatHeader 4.8s ease-in-out infinite; }
@keyframes floatHeader { 0%, 100% { transform: translateY(0px) rotateZ(0deg); } 50% { transform: translateY(-3px) rotateZ(-0.05deg); } }

/* quiz results gentle bob */
.quiz-results { animation: bobResults 5.2s ease-in-out infinite; }
@keyframes bobResults { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-4px); } }

/* email link float */
.email-link { animation: floatEmail 4.6s ease-in-out infinite; }
@keyframes floatEmail { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-3px); } }

/* social icons drift */
.social-icon { animation: driftSocial 5.8s ease-in-out infinite; }
@keyframes driftSocial { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-4px); } }

/* footer gentle sway */
.site-footer { animation: swayFooter 7.4s ease-in-out infinite; }
@keyframes swayFooter { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-2px); } }

/* quiz option buttons subtle float on hover */
.option-button:hover { animation: floatOption 2.2s ease-in-out infinite; }
@keyframes floatOption { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(-3px); } }

/* hero logo continuous smooth float */
.hero-logo { animation: floatLogo 6.8s ease-in-out infinite; }
@keyframes floatLogo { 0%, 100% { transform: translateY(0px); } 25% { transform: translateY(-6px); } 50% { transform: translateY(-3px); } 75% { transform: translateY(-7px); } }

/* rotating accent elements (subtle) */
.logo-3d { animation: subtleRotate 12s linear infinite; }
@keyframes subtleRotate { 0% { transform: rotateZ(0deg); } 100% { transform: rotateZ(1deg); } }

/* typed element fade-in float */
.typed { animation: floatTyped 5.4s ease-in-out infinite; opacity: 1; }
@keyframes floatTyped { 0%, 100% { transform: translateY(0px) scale(1); } 50% { transform: translateY(-2px) scale(1.01); } }

@media (max-width:900px) {
  .hero-section { grid-template-columns:1fr; text-align:center }
  .hero-image { max-width:360px; margin:0 auto }
  .site-header { flex-direction:column; align-items:flex-start }
  .site-nav { width:100%; justify-content:flex-start }
  
  .hero-content-overlay {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  }
  
  .hero-meta p {
    font-size: 1rem;
  }
  
  .glassmorphic-panel {
    padding: 28px;
  }
}

@media (max-width:620px) {
  .site-header, .section, .quiz-section, .contact-section { padding-left:18px; padding-right:18px }
  .difficulty-buttons { flex-direction:column }
  .quiz-actions { justify-content:center }
  
  .hero-3d-canvas {
    height: 60vh;
  }
  
  .hero-content-overlay {
    padding: 24px 16px;
    gap: 24px;
  }
  
  .glassmorphic-panel {
    padding: 20px;
    border-radius: 16px;
  }
  
  .hero-label {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
  }
  
  .hero-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-actions a {
    width: 100%;
    text-align: center;
  }
  
  .hero-meta p {
    font-size: 0.95rem;
  }
  
  .hero-visual-panel h3 {
    font-size: 1.1rem;
  }
  
  .hero-visual-panel p {
    font-size: 1.2rem;
    max-width: 100%;
  }
}

/* ========== SCROLL-TRIGGERED ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy .reveal {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-info .reveal {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* Scroll-triggered section animations */
.section {
  position: relative;
}

.section.in-view {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Quiz section scroll animation */
.quiz-section.in-view .section-header {
  animation: slideInLeft 0.8s ease-out forwards;
}

.quiz-section.in-view .quiz-card {
  animation: scaleIn 0.6s ease-out forwards;
}

/* Contact section scroll animation */
.contact-section.in-view .section-header {
  animation: slideInRight 0.8s ease-out forwards;
}

.contact-section.in-view .contact-container {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* Parallax scroll effect for hero content */
.hero-content-overlay {
  transform: translateY(calc(var(--scroll-parallax, 0) * 0.5px));
}

/* Button hover animations */
.button {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(62, 249, 199, 0.2);
}

.button.ghost:hover {
  background: rgba(102, 255, 232, 0.1);
  border-color: rgba(102, 255, 232, 0.4);
}

/* Smooth page transitions */
html {
  scroll-behavior: smooth;
}

/* Hero section entrance animation */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(102, 255, 232, 0.02) 0%,
    transparent 50%,
    rgba(255, 215, 0, 0.01) 100%
  );
  pointer-events: none;
  z-index: 5;
  animation: fadeIn 1.2s ease-out forwards;
}

/* Glassmorphic panel entrance stagger */
.glassmorphic-panel:nth-of-type(1) {
  animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

.glassmorphic-panel:nth-of-type(2) {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

/* Text reveal animations */
.hero-title::after,
.hero-label::after,
.hero-meta::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Interaction state animations */
.button:active {
  transform: translateY(-1px);
}

.glassmorphic-panel:focus-within {
  background: rgba(25, 22, 40, 0.9);
  border-color: rgba(102, 255, 232, 0.35);
}
