/* =============================================
   Landing Page - Pilih Kelas CBT
   Modern Glassmorphism Design
   ============================================= */

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

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg-start: #0f0c29;
  --color-bg-mid: #302b63;
  --color-bg-end: #24243e;
  --color-primary: #7c3aed;
  --color-primary-light: #a78bfa;
  --color-accent-sd: #f59e0b;
  --color-accent-smp: #06b6d4;
  --color-accent-smu: #8b5cf6;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-glass: rgba(255, 255, 255, 0.06);
  --color-glass-border: rgba(255, 255, 255, 0.12);
  --color-glass-hover: rgba(255, 255, 255, 0.1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow-sd: 0 0 40px rgba(245, 158, 11, 0.2);
  --shadow-glow-smp: 0 0 40px rgba(6, 182, 212, 0.2);
  --shadow-glow-smu: 0 0 40px rgba(139, 92, 246, 0.2);
  --radius-lg: 24px;
  --radius-md: 16px;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--color-bg-start) 0%, var(--color-bg-mid) 50%, var(--color-bg-end) 100%);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* --- Animated Background Particles --- */
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-particles .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float-orb 20s ease-in-out infinite;
}

.bg-particles .orb:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--color-accent-sd);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.bg-particles .orb:nth-child(2) {
  width: 350px;
  height: 350px;
  background: var(--color-accent-smp);
  top: 50%;
  right: -10%;
  animation-delay: -7s;
}

.bg-particles .orb:nth-child(3) {
  width: 300px;
  height: 300px;
  background: var(--color-accent-smu);
  bottom: -5%;
  left: 30%;
  animation-delay: -14s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.1); }
  50% { transform: translate(-30px, 60px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

/* --- Stars --- */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.5); }
}

/* --- Main Container --- */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Navbar --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
}

.navbar__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.navbar__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.navbar__subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.navbar__badge {
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  backdrop-filter: blur(10px);
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 60px 0 40px;
  animation: fadeInUp 0.8s ease-out;
}

.hero__image {
  width: 160px;
  height: 160px;
  margin: 0 auto 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-glass-border);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.2);
  animation: hero-pulse 4s ease-in-out infinite;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(124, 58, 237, 0.2); }
  50% { box-shadow: 0 0 80px rgba(124, 58, 237, 0.35); }
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--color-primary-light);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero__tag-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero__title span {
  background: linear-gradient(135deg, var(--color-accent-sd), var(--color-accent-smp), var(--color-accent-smu));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Cards Grid --- */
.cards-section {
  padding: 40px 0 80px;
}

.cards-section__heading {
  text-align: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

.cards-section__line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-sd), var(--color-accent-smp), var(--color-accent-smu));
  margin: 0 auto 48px;
  border-radius: 999px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

/* --- Class Card --- */
.class-card {
  position: relative;
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px 36px;
  color: var(--color-text);
  backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out both;
}

.class-card:nth-child(1) { animation-delay: 0.1s; }
.class-card:nth-child(2) { animation-delay: 0.25s; }
.class-card:nth-child(3) { animation-delay: 0.4s; }

.class-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: 0;
}

.class-card--sd::before {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), transparent 60%);
}

.class-card--smp::before {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), transparent 60%);
}

.class-card--smu::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent 60%);
}

.class-card:hover::before {
  opacity: 1;
}

.class-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--color-glass-hover);
}

.class-card--sd:hover {
  box-shadow: var(--shadow-glow-sd);
  border-color: rgba(245, 158, 11, 0.3);
}

.class-card--smp:hover {
  box-shadow: var(--shadow-glow-smp);
  border-color: rgba(6, 182, 212, 0.3);
}

.class-card--smu:hover {
  box-shadow: var(--shadow-glow-smu);
  border-color: rgba(139, 92, 246, 0.3);
}

/* Shimmer effect on hover */
.class-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 60%
  );
  transform: rotate(0deg);
  transition: transform 0.8s ease;
  z-index: 0;
}

.class-card:hover::after {
  transform: rotate(180deg);
}

.class-card > * {
  position: relative;
  z-index: 1;
}

/* Card image */
.class-card__image {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.class-card:hover .class-card__image {
  transform: scale(1.05);
}

.class-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card badge / level */
.class-card__level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.class-card--sd .class-card__level {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.class-card--smp .class-card__level {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
}

.class-card--smu .class-card__level {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
}

.class-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.class-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Card Buttons Group */
.class-card__buttons {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: auto;
}

/* Card CTA button - shared base */
.class-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

/* E-Learning button (outlined / ghost style) */
.class-card__cta--elearning {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.class-card--sd .class-card__cta--elearning {
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.class-card--smp .class-card__cta--elearning {
  border-color: rgba(6, 182, 212, 0.35);
  color: #22d3ee;
}

.class-card--smu .class-card__cta--elearning {
  border-color: rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
}

.class-card__cta--elearning:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.class-card--sd .class-card__cta--elearning:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.class-card--smp .class-card__cta--elearning:hover {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

.class-card--smu .class-card__cta--elearning:hover {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

/* Ujian CBT button (solid gradient) */
.class-card--sd .class-card__cta--cbt {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

.class-card--smp .class-card__cta--cbt {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}

.class-card--smu .class-card__cta--cbt {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.class-card__cta--cbt:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.class-card--sd .class-card__cta--cbt:hover {
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.35);
}

.class-card--smp .class-card__cta--cbt:hover {
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.35);
}

.class-card--smu .class-card__cta--cbt:hover {
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.35);
}

/* SVG icons in buttons */
.class-card__cta svg {
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--color-glass-border);
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.footer a {
  color: var(--color-primary-light);
  text-decoration: none;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: 40px 0 24px;
  }

  .hero__image {
    width: 120px;
    height: 120px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .class-card {
    padding: 32px 24px 28px;
  }

  .class-card__image {
    width: 110px;
    height: 110px;
  }

  .navbar__badge {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.75rem;
  }

  .hero__desc {
    font-size: 0.95rem;
  }
}
