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

:root {
  --primary: #22C55E;
  --primary-dark: #16A34A;
  --primary-light: #86EFAC;
  --text-dark: #1F2937;
  --text-gray: #6B7280;
  --text-light: #9CA3AF;
  --bg-white: #FFFFFF;
  --bg-gray: #F9FAFB;
  --footer-bg: #1F2937;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

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

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-login {
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

.nav-login:hover {
  color: var(--primary);
}

.nav-btn {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

.hero {
  padding: 8rem 1.5rem 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  max-width: 480px;
  text-align: justify;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.fasilitas {
  padding: 5rem 1.5rem;
  background: var(--bg-white);
}

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

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

.fasilitas-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.fasilitas-header p {
  color: var(--text-gray);
  margin: 0 auto;
}

.fasilitas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.fasilitas-card {
  background: var(--bg-white);
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.fasilitas-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.fasilitas-card p {
  font-size: 0.875rem;
  color: var(--text-gray);
}

.metode {
  padding: 5rem 1.5rem;
  background: var(--bg-white);
}

.metode-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.metode-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.metode-content > p {
  color: var(--text-gray);
  margin-bottom: 2rem;
  text-align: justify;
}

.metode-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.metode-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metode-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metode-icon.video {
  background: #D1FAE5;
  color: #10B981;
}

.metode-icon.quiz {
  background: #D1FAE5;
  color: #10B981;
}

.metode-icon.live {
  background: #D1FAE5;
  color: #10B981;
}

.metode-icon.forum {
  background: #D1FAE5;
  color: #10B981;
}

.metode-list span {
  font-weight: 500;
  color: var(--text-dark);
}

.metode-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.metode-image img {
  max-width: 450px;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.footer {
  background: var(--primary);
  color: white;
  padding: 3rem 0 4rem 0;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: white;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--text-dark);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: white;
  transition: var(--transition);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--text-dark);
}

.contact-list li {
  font-size: 0.875rem;
  color: white;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: #25D366 !important;
  padding: 0.625rem 1rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: var(--transition);
  border: 2px solid white;
  white-space: nowrap;
  min-width: fit-content;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: var(--text-dark);
  color: #25D366 !important;
  border-color: var(--text-dark);
}

.btn-whatsapp svg {
  color: #25D366;
  transition: var(--transition);
}

.btn-whatsapp:hover svg {
  color: #25D366;
}

.footer-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  text-align: center;
  background: var(--footer-bg);
  margin: 0;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-light);
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }

  .fasilitas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metode-container {
    gap: 2rem;
  }

  .metode-image img {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
    gap: 1rem;
  }

  .nav-actions.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 150px);
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
    gap: 1rem;
    align-items: stretch;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    max-width: 100%;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 280px;
  }

  .fasilitas-grid {
    grid-template-columns: 1fr;
  }

  .metode-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .metode-content > p {
    text-align: center;
  }

  .metode-list {
    align-items: center;
  }

  .metode-image {
    order: -1;
  }

  .metode-image img {
    max-width: 250px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand p {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col ul {
    align-items: center;
  }
}

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

  .fasilitas-header h2,
  .metode-content h2 {
    font-size: 1.5rem;
  }

  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top .progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.back-to-top .progress-ring-circle {
  transition: stroke-dashoffset 0.1s linear;
}

.back-to-top .arrow-icon {
  color: var(--primary);
  position: relative;
  z-index: 2;
  top: -5px;
}

.back-to-top .scroll-percentage {
  position: absolute;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--primary);
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
