:root {
  --accent: #e53935;
  --muted: rgba(255, 255, 255, 0.85);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family:
    Poppins,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "Helvetica Neue",
    Arial;
}
body {
  color: #fff;
  background: #fff; /* supaya area bawah setelah footer putih, bukan hitam */
  overflow-x: hidden;
  overflow-y: auto;
}

/* stage */
.stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transform: scale(1); /* scale in, sedikit lebih kecil */
  opacity: 0.7; /* 50% opacity */
}
.overlay {
  position: relative;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  pointer-events: none;
  min-height: 100vh;
  min-height: 100dvh; /* fix 100vh bug di mobile browser */
}

/* hero */
.hero {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh; /* pastikan penuh di viewport dinamis */
  padding: 48px;
  text-align: center;
}
.hero h2,
.hero h1,
.hero h4,
.hero-cta {
  opacity: 0;
  transform: translateY(32px);
}
.hero h2 {
  font-size: 3rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  animation: heroFadeUp 0.7s ease-out forwards 0s;
}
.hero h1 {
  font-size: 5rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  animation: heroFadeUp 0.7s ease-out forwards 0.15s;
}
.hero h4 {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
  font-size: 1.2rem;
  font-weight: 500;
  animation: heroFadeUp 0.7s ease-out forwards 0.3s;
}

.hero-cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 2.5rem;
  border-radius: 999px;
  background: #f3d64e;
  color: #0b2648;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    background 0.2s ease-out;
  animation: heroFadeUp 0.7s ease-out forwards 1s; /* delay 1 detik setelah load */
}
.hero-cta i {
  width: 5px;
  height: 5px;
}
.hero-cta:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
  background: #b69609;
}
.hero-cta:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* social */
.social {
  background: #ffffff;
  padding: 3.5rem 3rem;
  color: #0b2648;
}
.social-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(10, 30, 60, 0.12);
  border: 1px solid rgba(15, 40, 80, 0.08);
}
.social-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.social-actions {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  will-change: transform;
}
.social-btn i,
.social-icon {
  width: 20px;
  height: 20px;
}
.social-instagram {
  color: #ffffff;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}
.social-tiktok {
  color: #ffffff;
  background: #101114;
}
.social .social-inner .social-actions .social-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
  background: #ffffff;
  color: #000000;
  filter: none;
  opacity: 0.8; /* fade lebih terasa saat hover */
}
.social-btn:active {
  transform: translateY(0) scale(1);
}
.social-btn:focus-visible {
  outline: 3px solid rgba(81, 130, 205, 0.45);
  outline-offset: 4px;
}

/* animasi masuk social (stagger) */
.social.fade-section {
  opacity: 1;
  transform: none;
}
.social.fade-section .social-inner {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.social.fade-section.is-visible .social-inner {
  opacity: 1;
  transform: translateY(0);
}
.social.fade-section .social-title,
.social.fade-section .social-actions {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.social.fade-section.is-visible .social-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
}
.social.fade-section.is-visible .social-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 200ms;
}
.social.fade-section .social-btn {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.social.fade-section.is-visible .social-btn {
  opacity: 1;
  transform: translateY(0);
}
.social.fade-section.is-visible .social-btn.social-instagram {
  transition-delay: 280ms;
}
.social.fade-section.is-visible .social-btn.social-tiktok {
  transition-delay: 360ms;
}

@media (max-width: 768px) {
  .social {
    padding: 2.5rem 1.5rem;
  }
  .social-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .social-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}
/* about */
.about {
  background: linear-gradient(270deg, #b9e3f3, #ffffff);
  /* background-color: rgb(255, 255, 255); */
  padding: 5rem 5rem;
}
.about .about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  gap: 8rem;
  padding: 3rem 9rem;
}
.about-logo img {
  height: 30rem;
}
.about-content .about-text h1 {
  font-weight: 400;
}
.about-content .about-text p {
  margin-bottom: 2rem;
  text-align: justify;
}
.about .about-content .about-text .about-link {
  display: inline-flex;
  gap: 0.7rem;
  justify-content: center;
  align-items: center;
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 1px solid black;
  border-radius: 3rem;
  transition: all 0.3s ease;
}
.about .about-content .about-text .about-link:hover {
  /* background-color: black;
  color: #fff; */
  background-color: #dcc146;
  color: black;
  border-color: #c6ac37;
}
/* scroll fade-in animation sections */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* khusus section about: jangan ikut fade, cuma anak-anaknya */
.about.fade-section {
  opacity: 1;
  transform: none;
}

/* khusus section counter: jangan ikut fade, cuma angkanya */
.counter.fade-section {
  opacity: 1;
  transform: none;
}

/* detail animasi elemen di dalam about */
.about.fade-section .about-logo,
.about.fade-section .about-text,
.about.fade-section .about-link {
  opacity: 0;
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

/* logo: dari kiri ke kanan */
.about.fade-section .about-logo {
  transform: translateX(-60px);
}
.about.fade-section.is-visible .about-logo {
  opacity: 1;
  transform: translateX(0);
}

/* text: dari kanan ke kiri */
.about.fade-section .about-text {
  transform: translateX(60px);
}
.about.fade-section.is-visible .about-text {
  opacity: 1;
  transform: translateX(0);
}

/* link: dari bawah ke atas */
.about.fade-section .about-link {
  transform: translateY(40px);
}
.about.fade-section.is-visible .about-link {
  opacity: 1;
  transform: translateY(0);
}

/* counter section */
.counter {
  background: linear-gradient(45deg, #092751, #3885c9);
  padding: 2.5rem 3rem;
}
.counter-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}
.counter-item {
  flex: 1;
  text-align: center;
}
.counter-number {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #f3d64e;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}
.counter-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: #ffffff;
}

/* aktif saat terlihat */
.counter.fade-section.is-visible .counter-number {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .counter {
    padding: 2rem 1.5rem;
  }
  .counter-inner {
    gap: 1.5rem;
  }
  .counter-number {
    font-size: 2.1rem;
    letter-spacing: 0.18em;
  }
  .counter-label {
    font-size: 0.85rem;
  }
}

/* Media Queries */

/* Laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .stage {
    max-height: 100vh;
  }
  .hero {
    padding: 24px;
  }
  .hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
  .hero h4 {
    font-size: 1.1rem;
    max-width: 90%;
  }
  .about {
    padding-top: 0rem;
    padding-bottom: 2rem;
    padding: 5rem 2rem 5rem 2rem;
  }
  .about .about-content {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    text-align: start;
  }
  .about-text {
    margin-top: 0rem;
  }
  .about-logo img {
    height: 20rem;
    width: auto;
  }
  .about-content .about-text p {
    text-align: justify;
    font-size: 1.1rem;
  }
  .about-link {
    margin-top: 0.5rem;
  }
}

/* Mobile Phone (max-width: 450px) */
@media (max-width: 450px) {
  .hero {
    padding: 15px;
  }
  .hero h1 {
    font-size: 2.8rem;
    margin-top: 0.5rem;
  }
  .hero h2 {
    font-size: 1.4rem;
  }
  .hero h4 {
    font-size: 1rem;
    line-height: 1.4;
  }
}
