/* =========================================
   GLOBAL VARIABLES
========================================= */
:root { 
  /* Original Variables */
  --background-color: #ffffff; 
  --default-color: #212529; 
  --heading-color: #37373f; 
  --accent-color: #ce1212; 
  --surface-color: #063c25; 
  --contrast-color: #063c25; 
  --nav-color: #7f7f90;  
  --nav-hover-color: #ce1212; 
  --nav-mobile-background-color: #ffffff; 
  --nav-dropdown-background-color: #ffffff; 
  --nav-dropdown-color: #7f7f90; 
  --nav-dropdown-hover-color: #ce1212; 
  scroll-behavior: smooth;

  /* New Theme Variables */
  --primary-color: #063c25;
  --secondary-color: #0b3d2c;
  --bg-light: #fdf6ec;
  --bg-cream: #F6EFE6;
  --accent: #c0392b;

  /* PERBAIKAN: Definisi font agar tipografi tidak kaku */
  --font-body: 'Poppins', sans-serif;
  --font-heading: 'The Seasons', 'Playfair Display', serif;
}

.dark-background {
  --background-color: #1f1f24;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #37373f;
  --contrast-color: #ffffff;
}

/* =========================================
   GENERAL STYLES
========================================= */
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--font-body); /* PERBAIKAN: Mengaktifkan font Poppins */
  overflow-x: hidden;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: inherit; /* PERBAIKAN: Mencegah font footer berubah menjadi gelap */
  font-family: var(--font-heading); /* PERBAIKAN: Mengaktifkan font Heading */
  letter-spacing: 1px;
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================================
   NEW HEADER & NAVIGATION STYLES
========================================= */
.header {
  background: var(--bg-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  z-index: 999;
  height: 90px;
}

.navmenu ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.navmenu ul li a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
}

.navmenu ul li a:hover,
.navmenu ul li a.active {
  color: var(--accent);
}

.btn-getstarted {
  background: var(--primary-color);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.3s;
  color: #fff !important;
  text-decoration: none;
}

.btn-getstarted:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.mobile-nav-toggle {
  font-size: 32px;
  cursor: pointer;
  color: var(--primary-color);
  display: none;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  
  .navmenu {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: var(--bg-light);
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none;
    transition: 0.3s;
    z-index: 9998;
  }
  
  .navmenu.active {
    display: block;
  }
  
  .navmenu ul {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* =========================================
   NEW FOOTER STYLES
========================================= */
.transition-hover {
  transition: opacity 0.3s ease;
}

.transition-hover:hover {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .footer-container h4 {
    font-size: 14px !important;
  } 
  .footer-container p {
    font-size: 12px !important;
  } 
}

/* =========================================
   COMPONENTS (Pulsating Button, Preloader)
========================================= */
.pulsating-play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(var(--accent-color) 50%, color-mix(in srgb, var(--accent-color), transparent 75%) 52%);
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}

.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-play-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.pulsating-play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

.pulsating-play-btn:hover:after {
  border-left: 15px solid var(--accent-color);
  transform: scale(20);
}

@keyframes pulsate-play-btn {
  0% { transform: scale(0.6, 0.6); opacity: 1; }
  100% { transform: scale(1, 1); opacity: 0; }
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
  width: 100%;
  height: 100vh;
}

#preloader:before,
#preloader:after {
  content: "";
  position: absolute;
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

#preloader:after { animation-delay: -0.5s; }

@keyframes animate-preloader {
  0% { width: 10px; height: 10px; top: calc(50% - 5px); left: calc(50% - 5px); opacity: 1; }
  100% { width: 72px; height: 72px; top: calc(50% - 36px); left: calc(50% - 36px); opacity: 0; }
}

.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/* =========================================
   FORMS & EMAIL
========================================= */
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =========================================
   SECTIONS (Hero, About, Menu, etc.)
========================================= */
section, .section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 80px 0;
  scroll-margin-top: 92px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section, .section { scroll-margin-top: 56px; }
}

.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 400;
  padding: 0;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  display: inline-block;
  text-transform: uppercase;
  font-family: var(--default-font);
}

.section-title p {
  color: var(--heading-color);
  margin: 10px 0 0 0;
  font-size: 48px;
  font-weight: 500;
  font-family: var(--heading-font);
}

.section-title p .description-title {
  color: var(--accent-color);
}

/* Original Hero (Backup for other pages) */
.hero {
  position: relative;
}

.hero-typography {
  z-index: 3;
  padding: 20px;
}

.hero-typography h1 {
  font-size: 56px;
  font-family: 'Ma Shan Zheng', cursive;
  margin-bottom: 20px;
}

.hero-typography .pinyin-text {
  font-size: 18px;
  letter-spacing: 3px;
  opacity: 0.9;
}

.hero-typography .indo-text {
  font-size: 24px;
  font-weight: 500;
}

#hero-2 .hero-typography {
  position: relative;
  z-index: 2;
}

.side-img {
  width: 160px;
  transition: 0.3s;
}

@media (max-width: 992px) {
  .side-img { width: 100px; opacity: 0.7; }
}
@media (max-width: 768px) {
  .side-img { display: none; }
  .hero-typography h1 { font-size: 32px; }
  .hero-typography .pinyin-text { font-size: 14px; }
  .hero-typography .indo-text { font-size: 18px; }
  #hero, #hero-2 { min-height: 70vh !important; }
}

/* About Section */
.about-img-wrapper {
  position: relative;
  max-width: 420px;   
  margin: auto;
}
.about-img { border-radius: 20px; }

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: 0.3s;
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }

.circle-cn {
  background-color: #c32d2d;
  color: white;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Why Us Section */
.why-us .why-box {
  color: var(--contrast-color);
  background: var(--accent-color);
  padding: 30px;
}
.why-us .icon-box {
  background-color: var(--surface-color);
  text-align: center;
  padding: 40px 30px;
  width: 100%;
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

/* Stats Section */
.stats {
  position: relative;
  padding: 120px 0;
}
.stats img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.stats:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 40%);
  position: absolute;
  inset: 0;
  z-index: 2;
}
.stats .container { position: relative; z-index: 3; }

/* Menu Nav Tabs (Original Fallback) */
.menu .nav-tabs { border: 0; }
.menu .nav-link {
  background-color: var(--background-color);
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0 15px;
  padding: 10px 5px;
  transition: 0.3s;
  border-radius: 0;
  cursor: pointer;
  height: 100%;
  border: 0;
  border-bottom: 2px solid color-mix(in srgb, var(--default-color), transparent 80%);
}
.menu .nav-link:hover, .menu .nav-link.active {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Miscellaneous */
.text_poppins {
  font-size: 5px; /* Sesuaikan jika perlu */
  font-family: "Poppins", sans-serif; 
}
.review-box {
  width: 100%;
}
@media (max-width: 600px) {
  .review-box {
    width: 95%;
  }
}