:root {
  --primary-color: #357575;
  --secondary-color: #ed1c24;
  --text-dark: #252628;
  --text-gray: #65676b;
  --bg-light: #f5f6f8;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: transform, opacity;
}

/* Saat aktif */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Optional delay utilities */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0;
  line-height: 1.6;
}

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

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: block;
}

.section-heading {
  font-size: 36px;
  color: var(--text-dark);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .section-heading {
    font-size: 28px;
  }
}

/* =========================
   HERO
========================= */

/* =========================
   NAVBAR (DESKTOP BASE)
========================= */
.navbar-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Container untuk membatasi lebar konten (sesuaikan dengan grid Anda) */
.navbar.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 5%;
  /* Beri padding proporsional */
  max-width: 1400px;
  margin: 0 auto;
}

/* LOGO */
.logo {
  z-index: 10002;
  /* Pastikan logo tetap di atas overlay */
  position: relative;
}

.logo img {
  height: 40px;
  /* Sedikit dirapikan untuk kesan elegan */
  transition: 0.3s ease;
}

.logo-dark {
  display: none;
}

/* NAV LINKS (DESKTOP) */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  /* SaaS modern biasanya pakai font sedikit lebih kecil tapi bold */
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* HAMBURGER TOGGLE (HIDDEN ON DESKTOP) */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 10002;
  /* Harus di atas segalanya saat mobile */
  width: 30px;
  height: 24px;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 0px;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 10px;
  width: 70%;
  right: 0;
  left: auto;
}

/* Asimetris agar terlihat modern */
.mobile-menu-toggle span:nth-child(3) {
  top: 20px;
}

/* =========================
   SCROLLED NAVBAR
========================= */
.navbar-wrapper.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  /* Efek blur ala Apple/SaaS */
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar-wrapper.scrolled .nav-links a {
  color: #1a1a1a;
}

.navbar-wrapper.scrolled .nav-links a:hover {
  color: #555;
  opacity: 1;
}

.navbar-wrapper.scrolled .logo-light {
  display: none;
}

.navbar-wrapper.scrolled .logo-dark {
  display: block;
}

/* Warna hamburger berubah saat scroll */
.navbar-wrapper.scrolled .mobile-menu-toggle span {
  background: #1a1a1a;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 1024px) {

  /* 2. NAVBAR MOBILE (SAAS ELEGANT) */
  .mobile-menu-toggle {
    display: block;
  }

  /* SIDE DRAWER MENU */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Sembunyikan di luar layar kanan */
    width: 300px; /* Lebar panel */
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10001;
    gap: 25px;
  }

  .nav-links.active {
    right: 0; /* Tarik panel masuk */
  }

  .nav-links a {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 500;
    width: 100%;
    display: block;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
  }

  /* Animasi stagger (muncul bergantian) untuk link saat menu dibuka */
  .nav-links.active a {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active a:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.active a:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.active a:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.active a:nth-child(5) { transition-delay: 0.3s; }
  .nav-links.active a:nth-child(6) { transition-delay: 0.35s; }
  .nav-links.active a:nth-child(7) { transition-delay: 0.4s; }
  .nav-links.active a:nth-child(8) { transition-delay: 0.45s; }
  .nav-links.active a:nth-child(9) { transition-delay: 0.5s; }

  /* HAMBURGER TO 'X' ANIMATION */
  .mobile-menu-toggle.active span {
    background: #1a1a1a;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
  }
}

