:root {
  --brand-green: #19b01e;
  --text-dark: #000000;
  --background-light: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--background-light);
  color: var(--text-dark);
}

/* Gaya untuk mencegah body scroll saat menu mobile terbuka */
body.no-scroll {
  overflow: hidden;
}

.container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 62px;
  padding-right: 62px;
}

/* CSS from section:header */
.site-header {
  background-color: var(--background-light);
  box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.14);
  position: relative;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 93px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.logo-img {
  width: 68px;
  height: 70px;
}

.logo-text {
  color: var(--brand-green);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 24px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 75px;
}

.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}

.main-nav a.active {
  color: var(--brand-green);
  font-weight: 700;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 33px;
  height: 4px;
  background-color: var(--brand-green);
  border-radius: 5px 5px 0 0;
}

.menu-toggle {
  display: none; /* Sembunyikan di desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 25px;
  height: 20px;
  position: relative;
  z-index: 1001; /* Harus lebih tinggi dari overlay menu */
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: all 0.3s ease-in-out;
  position: absolute;
  left: 0;
}
.menu-toggle .bar:nth-child(1) { top: 0; }
.menu-toggle .bar:nth-child(2) { top: 8px; }
.menu-toggle .bar:nth-child(3) { top: 16px; }


/* CSS from section:features */
.features-section {
  position: relative;
  padding-top: 24px;
  padding-bottom: 54px;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* Menggunakan vh agar background menutupi seluruh viewport */
  background-image: linear-gradient(135deg, rgba(25, 21, 242, 0.6) 0.68%, rgba(25, 176, 30, 0.6) 140.44%), url('../img/rectangle-4.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--background-light);
  margin-bottom: 24px;
}
.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 1;
  margin: 0;
}
.hero-content p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  margin: 10px 0 0 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 20px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--background-light);
  text-align: center;
  height: 240px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.feature-card img {
  width: 100%;
  max-width: 130px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}
.card-1 { background-color: #1e3a8a; }
.card-2 { background-color: #6d28d9; }
.card-3 { background-color: #991b1b; }
.card-4 { background-color: #065f46; }
.card-5 { background-color: #374151; }
.card-6 { background-color: #0f172a; }
.card-7 { background-color: #4b2e2e; }
.card-8 { background-color: #111827; }

/* CSS from section:footer */
.site-footer {
    background-color: #111827;
    color: var(--background-light);
    padding: 24px 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-top: auto;
}
.site-footer p {
    margin: 0;
}

/* =================================
   RESPONSIVE & MOBILE NAVIGATION
   ================================= */
@media (max-width: 1200px) {
  .main-nav ul {
    gap: 40px;
  }
  .logo-text {
    font-size: 20px;
  }
  .main-nav a {
    font-size: 18px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .logo-text {
    display: none; /* Sembunyikan teks logo di mobile */
  }
  
  /* Tampilkan tombol hamburger */
  .menu-toggle {
    display: block;
  }

  /* Animasi Tombol Hamburger menjadi "X" */
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Aturan untuk Navigasi Mobile */
  .main-nav {
    display: none; /* Sembunyikan nav secara default */
    position: fixed; /* Posisikan menutupi seluruh layar */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    opacity: 0; /* Mulai dengan transparan */
    visibility: hidden; /* Sembunyikan sepenuhnya */
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  
  /* Saat menu aktif, tampilkan */
  .main-nav.is-active {
    display: flex; /* Ubah ke flex untuk menengahkan */
    opacity: 1;
    visibility: visible;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .main-nav.is-active ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .main-nav.is-active a {
    font-size: 24px;
    font-weight: 700;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .features-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero-content h1 {
    font-size: 48px;
  }
  .hero-content p {
    font-size: 18px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-card {
    height: auto;
    padding: 32px;
  }
  .feature-card img {
    max-height: 150px;
  }
}