/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Light Theme */
  --bg-primary: #faf7ff;
  --bg-secondary: #f0e6ff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-hero: linear-gradient(135deg, #f5f0ff 0%, #e8dff5 30%, #faf7ff 60%, #f0e6ff 100%);
  --bg-cta: linear-gradient(135deg, #7c3aed, #a855f7, #c084fc);
  --bg-footer: #1e1245;
  
  --text-primary: #1a0a3e;
  --text-secondary: #4a3660;
  --text-muted: #7c6a94;
  --text-on-accent: #ffffff;
  --text-footer: #c4b5d9;
  
  --accent-primary: #7c3aed;
  --accent-secondary: #a855f7;
  --accent-gold: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --border-color: rgba(124, 58, 237, 0.15);
  --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.08);
  --shadow-md: 0 4px 20px rgba(124, 58, 237, 0.12);
  --shadow-lg: 0 8px 40px rgba(124, 58, 237, 0.18);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.2);
  
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #080818;
  --bg-secondary: #0f0f2e;
  --bg-card: rgba(20, 15, 50, 0.7);
  --bg-card-hover: rgba(30, 25, 65, 0.85);
  --bg-hero: linear-gradient(135deg, #080818 0%, #0f0f2e 30%, #13082e 60%, #080818 100%);
  --bg-cta: linear-gradient(135deg, #7c3aed, #6d28d9, #5b21b6);
  --bg-footer: #050510;
  
  --text-primary: #e8e0f4;
  --text-secondary: #b8a8d4;
  --text-muted: #8878a0;
  --text-footer: #6a5a80;
  
  --accent-primary: #a78bfa;
  --accent-secondary: #c084fc;
  
  --border-color: rgba(167, 139, 250, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);
  
  --glass-bg: rgba(15, 10, 40, 0.6);
  --glass-border: rgba(124, 58, 237, 0.2);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition-med), color var(--transition-med);
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent-secondary);
}

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

/* ===== FLOATING MUSIC NOTES ===== */
.music-notes-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.music-note {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.06;
  animation: floatNote linear infinite;
  color: var(--accent-primary);
}

[data-theme="dark"] .music-note {
  opacity: 0.08;
}

@keyframes floatNote {
  0% {
    transform: translateY(110vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.06;
  }
  90% {
    opacity: 0.06;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

[data-theme="dark"] @keyframes floatNote {
  10%, 90% { opacity: 0.08; }
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition-med), box-shadow var(--transition-med);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.navbar-brand .brand-icon {
  font-size: 1.6rem;
}

.navbar-brand .brand-accent {
  color: var(--accent-primary);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.navbar-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-fast);
}

.navbar-nav a:hover {
  color: var(--accent-primary);
}
.navbar-nav a:hover::after {
  width: 100%;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.1rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.theme-toggle .toggle-icon-sun,
.theme-toggle .toggle-icon-moon {
  transition: opacity var(--transition-fast);
}

[data-theme="dark"] .theme-toggle .toggle-icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .toggle-icon-moon { display: none; }
:root .theme-toggle .toggle-icon-sun { display: none; }
:root .theme-toggle .toggle-icon-moon { display: inline; }

/* Mobile Nav */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hero);
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite alternate;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

@keyframes heroGlow {
  0% { transform: translateX(-5%) translateY(-5%); }
  100% { transform: translateX(5%) translateY(5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-xl);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-med);
  text-decoration: none;
}

.btn-primary {
  background: var(--bg-cta);
  color: var(--text-on-accent);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
  color: var(--text-on-accent);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--accent-primary);
  border: 1.5px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  color: var(--accent-primary);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: all var(--transition-med);
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== TIMELINE (Exam Process) ===== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), var(--accent-gold));
  border-radius: 3px;
}

.timeline-item {
  padding-left: 70px;
  margin-bottom: 2.5rem;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-step {
  position: absolute;
  left: 10px;
  top: 0;
  width: 38px;
  height: 38px;
  background: var(--bg-cta);
  color: var(--text-on-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 6px var(--accent-primary);
}

.timeline-content {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-med);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.timeline-content ul {
  list-style: none;
  margin-top: 0.75rem;
}

.timeline-content ul li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.timeline-content ul li::before {
  content: '♪';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 0.85rem;
}

/* ===== PROGRAM CARDS ===== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.program-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-med);
  opacity: 0;
  transform: translateY(30px);
}

.program-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.program-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.program-card .program-icon {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}

.program-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.program-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== VALUE BANNER ===== */
.value-banner {
  background: var(--bg-cta);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-on-accent);
  position: relative;
  overflow: hidden;
}

.value-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.12) 0%, transparent 70%);
}

.value-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
  position: relative;
}

.value-banner .value-amount {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  display: block;
  margin: 0.5rem 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.value-banner p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

/* ===== VIDEO SECTION ===== */
.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-color);
  aspect-ratio: 16/9;
  background: #000;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--bg-hero);
  text-align: center;
  padding: 5rem 2rem;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* ===== WORKSHOP CONTENT ===== */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.workshop-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-med);
  opacity: 0;
  transform: translateY(30px);
}

.workshop-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.workshop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.workshop-card .workshop-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.workshop-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.workshop-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #e8e0f4;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-footer);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-secondary);
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.6;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== EXAM CONTENT INFO ===== */
.exam-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.exam-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--transition-med);
  opacity: 0;
  transform: translateY(20px);
}

.exam-info-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.exam-info-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.exam-info-item .info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.exam-info-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.exam-info-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    gap: 0.5rem;
  }
  
  .navbar-nav.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding: 7rem 1.5rem 3rem;
  }
  
  .section {
    padding: 3.5rem 1.25rem;
  }
  
  .timeline::before {
    left: 18px;
  }

  .timeline-step {
    left: 0;
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  
  .timeline-item {
    padding-left: 55px;
  }
  
  .features-grid,
  .workshop-grid {
    grid-template-columns: 1fr;
  }
  
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== SCROLL TRANSITION DELAYS ===== */
.feature-card:nth-child(1) { transition-delay: 0.05s; }
.feature-card:nth-child(2) { transition-delay: 0.12s; }
.feature-card:nth-child(3) { transition-delay: 0.19s; }
.feature-card:nth-child(4) { transition-delay: 0.26s; }
.feature-card:nth-child(5) { transition-delay: 0.33s; }

.program-card:nth-child(1) { transition-delay: 0.05s; }
.program-card:nth-child(2) { transition-delay: 0.12s; }
.program-card:nth-child(3) { transition-delay: 0.19s; }
.program-card:nth-child(4) { transition-delay: 0.26s; }

.workshop-card:nth-child(1) { transition-delay: 0.05s; }
.workshop-card:nth-child(2) { transition-delay: 0.12s; }
.workshop-card:nth-child(3) { transition-delay: 0.19s; }
.workshop-card:nth-child(4) { transition-delay: 0.26s; }
.workshop-card:nth-child(5) { transition-delay: 0.33s; }
