/* ============================================================
   AViSha — Custom CSS
   Design system: Lexend font, gradient #39bfce → #a3d008
   ============================================================ */

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

:root {
  --bg: #0b0e12;
  --surface: #14181f;
  --surface-light: #1c2128;
  --border: #2a2f38;
  --text-primary: #ffffff;
  --text-secondary: #b9c3d0;
  --text-muted: #6c7a8c;
  --accent: #e2e8f0;
  --btn-bg: #ffffff;
  --btn-text: #0f172a;
  --btn-hover: #f1f5f9;
  --card-radius: 20px;
  --gradient-4: linear-gradient(135deg, #121a22, #171f27, #39bfce, #a3d008);
  --gradient-accent: linear-gradient(135deg, #39bfce, #a3d008);
}

body {
  background-color: var(--bg);
  color: var(--text-secondary);
  font-family: 'Lexend', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.2px;
}

h1, h2, h3 {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ── Navbar ──────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}

.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 8px 0;
  display: block;
}
.nav-link:hover { color: white; }

/* ── Mobile menu ─────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 14, 18, 0.98);
  backdrop-filter: blur(20px);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding-top: 80px;
}
.mobile-menu.open { transform: translateX(0); }
.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  background: var(--gradient-accent);
  color: var(--btn-text);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 24px;
  border-radius: 40px;
  transition: background 0.2s;
  display: inline-block;
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2fa3b1, #8fc000);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 24px;
  border-radius: 40px;
  transition: all 0.2s;
}
.btn-outline:hover {
  border-color: #39bfce;
  color: white;
  background: rgba(57,191,206,0.1);
}

.btn-login {
  background: var(--gradient-accent);
  color: var(--btn-text);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 24px;
  border-radius: 40px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-login:hover {
  opacity: 0.9;
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge { padding: 3px 10px; border-radius: 20px; font-size: 0.68rem; font-weight: 600; display: inline-block; }
.badge-pending   { background: rgba(251,191,36,0.12); color: #fbbf24; }
.badge-confirmed { background: rgba(57,191,206,0.12); color: #39bfce; }
.badge-completed { background: rgba(48,209,88,0.12); color: #30d158; }
.badge-cancelled { background: rgba(255,69,58,0.12); color: #ff453a; }

/* ── Hero section background ─────────────────────────────────── */
.bg-premium-section {
  position: relative;
  background-color: var(--bg);
  overflow: hidden;
}
.bg-premium-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../../images/backgrounds/background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.11;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
  z-index: 1;
}
.bg-premium-section > * {
  position: relative;
  z-index: 2;
}

/* ── Hero badge — gradient border ────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.5);
  border: 1px solid transparent;
  background-image: var(--gradient-4);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 60px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: white;
}

/* ── Stat card ───────────────────────────────────────────────── */
.stat-card {
  background: rgba(20, 24, 31, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 12px;
  text-align: center;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: #39bfce; }
.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: white;
}

/* ── Partner logos ───────────────────────────────────────────── */
.partner-logo-light {
  background: #ffffff;
  border-radius: 14px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.partner-logo-dark {
  background: rgba(20, 24, 31, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.partner-logo-light img, .partner-logo-dark img {
  max-width: 100%;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.partner-logo-light:hover img, .partner-logo-dark:hover img {
  filter: grayscale(0%);
}
.partner-with-text {
  gap: 16px;
  justify-content: center;
  padding: 10px 16px;
}
.partner-with-text img { height: 48px; width: auto; }
.partner-with-text .partner-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-align: left;
}
.partner-with-text .partner-text .fti  { font-weight: 700; font-size: 1.1rem; }
.partner-with-text .partner-text .unsap { font-weight: 400; font-size: 0.85rem; opacity: 0.8; }
.partner-logo-light .partner-text { color: #333; }
.partner-logo-dark  .partner-text { color: var(--text-primary); }
.partner-logo-light:hover,
.partner-logo-dark:hover  { transform: translateY(-2px); }
.partner-logo-light.partner-logo-clickable,
.partner-logo-dark.partner-logo-clickable { cursor: pointer; }

/* ── Mentor card ─────────────────────────────────────────────── */
.mentor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}
.mentor-card:hover {
  border-color: #39bfce;
  transform: translateY(-3px);
}
/* Gradient border pada avatar */
.mentor-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 2px solid transparent;
  background-image: var(--gradient-4);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.mentor-name  { font-weight: 700; font-size: 1rem; color: white; margin-bottom: 4px; }
.mentor-title { font-size: 0.7rem; color: #39bfce; margin-bottom: 8px; }
.mentor-desc  { font-size: 0.7rem; color: var(--text-muted); }

/* ── Section labels & titles ─────────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: white;
  position: relative;
  display: inline-block;
}
/* Garis bawah gradient di bawah section title */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 3px;
}

/* ── Course card ─────────────────────────────────────────────── */
.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all 0.25s ease;
}
.course-card:hover {
  border-color: #39bfce;
  transform: translateY(-3px);
}
.card-thumb {
  aspect-ratio: 4 / 5;
  background: var(--surface-light);
  overflow: visible;
  position: relative;
  cursor: pointer;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.course-card:hover .card-thumb img,
.card-thumb:hover img { transform: scale(1.02); }

/* Badges now use Tailwind inline classes */

.card-body { padding: 16px; }

.card-instructor {
  font-size: 0.7rem;
  font-weight: 600;
  color: #39bfce;
  margin-bottom: 6px;
}
.card-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 6px 0 8px;
  color: var(--text-primary);
  line-height: 1.3;
}
.schedule {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Harga pakai warna lime dari gradient */
.price {
  font-weight: 800;
  font-size: 1rem;
  color: #a3d008;
}
.price-original {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

/* Badges now use Tailwind inline classes only - no custom CSS */
/* This ensures Tailwind positioning and colors work correctly */

.btn-detail {
  font-size: 0.7rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 5px 14px;
  border-radius: 30px;
  transition: all 0.2s;
}
.btn-detail:hover {
  border-color: #39bfce;
  color: white;
  background: rgba(57,191,206,0.1);
}

/* ── Feature icons ───────────────────────────────────────────── */
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(57,191,206,0.1);
  border: 0.5px solid rgba(57,191,206,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #39bfce;
}

/* ── Testimonial card ────────────────────────────────────────── */
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}
.stars { color: #fbbf24; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 10px; }

/* ── FAQ Accordion ───────────────────────────────────────────── */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(57,191,206,0.05); }
.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
  color: #39bfce;
}
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}
.faq-item.open .faq-answer  { padding: 0 20px 16px 20px; max-height: 300px; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }

/* ── CTA section ─────────────────────────────────────────────── */
.cta-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Subtle gradient overlay */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-4);
  opacity: 0.05;
  pointer-events: none;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(11, 14, 18, 0.95);
}
.footer-logo { height: 22px; width: auto; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up  { animation: fadeUp 0.5s ease both; }
.delay-1  { animation-delay: 0.07s; }
.delay-2  { animation-delay: 0.14s; }
.delay-3  { animation-delay: 0.21s; }
.delay-4  { animation-delay: 0.28s; }

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Partner modal ───────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 300;
  align-items: center;
  justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
  border-radius: 20px;
  padding: 40px 60px;
  max-width: 700px;
  width: 95%;
  aspect-ratio: 3 / 2;
  text-align: center;
  transition: background 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
@media (max-width: 768px) {
  .modal-content { padding: 24px 20px; max-width: 90vw; aspect-ratio: auto; max-height: 70vh; }
}
@media (max-width: 480px) {
  .modal-content { padding: 16px 12px; max-width: 95vw; }
}
.modal-content.light { background: white;                  box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.modal-content.dark  { background: rgba(20,24,31,0.95);    box-shadow: 0 8px 32px rgba(0,0,0,0.4);  }

.modal-img { height: 240px; width: auto; max-width: 380px; object-fit: contain; animation: zoomIn 0.3s ease; }
@media (max-width: 768px) { .modal-img { height: 120px; max-width: 200px; } }
@media (max-width: 480px)  { .modal-img { height: 80px;  max-width: 150px; } }

.modal-text {
  font-weight: 700; font-size: 1.4rem; color: inherit;
  display: flex; flex-direction: column; align-items: center;
  animation: zoomIn 0.3s ease;
}
@media (max-width: 768px) { .modal-text { font-size: 1rem; } }
@media (max-width: 480px)  { .modal-text { font-size: 0.8rem; } }
.modal-text span { line-height: 1.1; }

.modal-images-container {
  display: flex; gap: 24px; align-items: center; justify-content: center;
  margin-bottom: 24px; flex-wrap: wrap; height: 260px;
}
@media (max-width: 768px) { .modal-images-container { gap: 12px; margin-bottom: 16px; height: auto; } }
@media (max-width: 480px)  { .modal-images-container { gap: 8px; margin-bottom: 12px; } }

.modal-link {
  display: inline-block;
  background: var(--gradient-accent);
  color: var(--btn-text);
  padding: 8px 20px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  transition: background 0.2s;
}
.modal-link:hover { background: linear-gradient(135deg, #2fa3b1, #8fc000); }

.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.3); border: none; border-radius: 50%;
  color: white; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.5); }

/* ── Poster zoom modal ───────────────────────────────────────── */
#posterModal {
  display: none;
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 400;
  align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
#posterModal.active { display: flex; }

.poster-modal-content {
  position: relative;
  max-width: 95vw; max-height: 98vh;
  border-radius: 12px; overflow: auto;
  animation: zoomIn 0.3s ease;
  background: white; padding: 8px;
  aspect-ratio: auto; margin: auto;
}
@media (max-width: 768px) { .poster-modal-content { max-width: 92vw; max-height: 85vh; padding: 6px; } }
@media (max-width: 480px)  { .poster-modal-content { max-width: 96vw; max-height: 80vh; padding: 4px; } }

.poster-modal-img-wrapper {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.poster-modal-img { width: 100%; height: auto; object-fit: contain; display: block; }

.poster-modal-actions {
  position: absolute;
  display: flex; justify-content: center; align-items: center; gap: 12px;
}
.poster-daftar-btn {
  background: var(--gradient-accent);
  color: var(--btn-text);
  font-weight: 700; font-size: 1rem;
  padding: 14px 48px; border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block; border: none; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0.5;
}
.poster-daftar-btn:hover {
  background: linear-gradient(135deg, #2fa3b1, #8fc000);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  opacity: 1;
}
@media (max-width: 480px) {
  .poster-modal-actions { padding: 12px 6px; }
  .poster-daftar-btn { padding: 8px 16px; font-size: 0.8rem; }
}

.poster-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.6); border: none; border-radius: 50%;
  color: white; cursor: pointer; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.poster-modal-close:hover { background: rgba(0,0,0,0.8); }

/* ─ Marquee Horizontal Scroll ──────────────────────────────── */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: transparent;
  padding: 20px 0;
}

.marquee {
  display: flex;
  gap: 24px;
  animation: marquee 45s linear infinite;
  width: max-content;
}

.marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 12px));
  }
}

/* Smooth scroll pada mobile */
@media (max-width: 768px) {
  .marquee {
    animation-duration: 30s;
  }
}
