:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1e40af;
  --color-accent: #22c55e;
  --color-bg: #f9fafb;
  --color-card: #ffffff;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.08);

  --font-primary: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --spacing-1: 8px;
  --spacing-2: 16px;
  --spacing-3: 24px;
  --spacing-4: 32px;
  --spacing-5: 48px;
  --spacing-6: 64px;
  --spacing-7: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 55%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.08), transparent 50%),
    var(--color-bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  scroll-margin-top: 90px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-2);
}

.section {
  padding: 80px 0;
}

.section-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 var(--spacing-2);
  color: var(--color-text);
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto var(--spacing-4);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 250, 251, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.nav-container {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text);
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  font-size: 14px;
  color: var(--color-text-muted);
}

.nav-link {
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.btn-outline:hover {
  background: rgba(37, 99, 235, 0.06);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.04);
}

.btn-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #ffffff;
  box-shadow: 0 15px 30px rgba(214, 36, 159, 0.3);
}

.btn-instagram:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(214, 36, 159, 0.4);
}

.btn-youtube {
  background: #ff0000;
  color: #ffffff;
  box-shadow: 0 15px 30px rgba(239, 68, 68, 0.3);
}

.btn-youtube:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(239, 68, 68, 0.4);
}

/* Hero */
.hero {
  padding-top: 96px;
  padding-bottom: 96px;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 50%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-5);
  align-items: center;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 var(--spacing-2);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  margin: 0 0 var(--spacing-3);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--color-text-muted);
  font-size: 12px;
  margin-bottom: var(--spacing-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--spacing-3);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(148, 163, 184, 0.6);
}

.hero-media {
  display: flex;
  justify-content: flex-end;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.3), transparent 50%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.4), transparent 50%);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-stat-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.5);
}

.hero-stat-card span {
  display: block;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.8);
}

/* Proof Section */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--spacing-3);
  margin-bottom: var(--spacing-4);
}

.proof-item {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #000;
}

.proof-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.95;
}

.proof-item:hover img {
  transform: scale(1.06);
  opacity: 1;
}

.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
}

.video-wrapper video {
  width: 100%;
  display: block;
}

/* Courses */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-3);
}

.course-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-3);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.course-card:hover::before {
  opacity: 1;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
  border-color: rgba(37, 99, 235, 0.4);
}

.course-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-2);
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.08);
  font-size: 26px;
}

.course-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.course-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 var(--spacing-2);
}

.course-card .btn-ghost {
  font-size: 13px;
}

/* Accordion (Course Details) */
.accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.accordion-header {
  width: 100%;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-text);
}

.accordion-icon {
  font-size: 20px;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  transition: max-height 0.25s ease, padding-bottom 0.25s ease;
}

.accordion-item.open .accordion-body {
  max-height: 500px;
  /* Capped height for usability */
  overflow-y: auto;
  /* Scrollable when content is long */
  padding-bottom: 20px;
}

/* Custom Scrollbar for Accordion Body */
.accordion-body::-webkit-scrollbar {
  width: 6px;
}

.accordion-body::-webkit-scrollbar-track {
  background: var(--color-bg);
}

.accordion-body::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 10px;
}

.accordion-body::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

.course-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 15px;
  font-size: 14px;
}

.meta-item {
  background: rgba(37, 99, 235, 0.05);
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--color-primary);
}

.syllabus-module,
.syllabus-week {
  margin-bottom: 20px;
}

.syllabus-module h4,
.syllabus-week h4 {
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.syllabus-module h4::before,
.syllabus-week h4::before {
  content: "🔷";
  font-size: 12px;
}

.syllabus-day {
  margin-bottom: 15px;
  padding-left: 15px;
  border-left: 2px solid var(--color-border);
}

.syllabus-day h5 {
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--color-text);
}

.project-day {
  background: rgba(34, 197, 94, 0.05);
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px dashed var(--color-accent);
}

.project-day h5 {
  color: #15803d;
}

.accordion-body ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.accordion-body li+li {
  margin-top: 6px;
}

/* Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--spacing-3);
}

.why-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: var(--spacing-3);
  text-align: center;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  border-color: rgba(37, 99, 235, 0.4);
}

.why-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--spacing-2);
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.why-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.why-card p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Video Section */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-cta {
  margin-top: var(--spacing-3);
  text-align: center;
}

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--spacing-3);
  align-items: center;
}

.map-embed {
  position: relative;
  padding-bottom: 60%;
  height: 0;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.location-info h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.location-address {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-3);
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-3);
}

.contact-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-3);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.contact-card p {
  margin: 0 0 var(--spacing-2);
  font-size: 14px;
  color: var(--color-text-muted);
}

.contact-info {
  margin-bottom: 10px;
}

.contact-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.contact-value {
  font-size: 15px;
}

.contact-actions {
  margin-top: var(--spacing-2);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 18px 38px rgba(22, 163, 74, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  z-index: 120;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.floating-whatsapp:hover {
  background: #16a34a;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 46px rgba(22, 163, 74, 0.65);
}

/* Footer */
.footer {
  background: #111827;
  color: #e5e7eb;
  padding-top: var(--spacing-4);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: var(--spacing-3);
  padding-bottom: var(--spacing-3);
}

.footer h4,
.footer h5 {
  margin: 0 0 10px;
}

.footer p {
  margin: 0 0 6px;
  font-size: 14px;
  color: #9ca3af;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: #d1d5db;
  margin-bottom: 4px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact a {
  color: inherit;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  transition: all 0.25s ease;
}

.footer-social a svg {
  transition: transform 0.25s ease;
}

.footer-social a[aria-label="Instagram"]:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  border-color: transparent;
  color: #fff;
}

.footer-social a[aria-label="YouTube"]:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}

.footer-social a:hover svg {
  transform: scale(1.1);
}

.btn-icon {
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid #1f2933;
  padding: 10px 0 18px;
}

.footer-bottom-inner {
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1199px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    justify-content: center;
  }

  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    inset-inline: 0;
    top: 70px;
    background: rgba(249, 250, 251, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-3) var(--spacing-2) var(--spacing-3);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    gap: 14px;
  }

  .nav-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 88px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 30px;
  }

  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 34px;
  }

  .hero-badge {
    font-size: 11px;
  }

  .hero-meta {
    gap: 8px;
  }

  .hero-meta span {
    font-size: 12px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-actions {
    flex-direction: column;
  }
}