/* ============================================================
   THE ENTITAS — PREMIUM DESIGN SYSTEM
   Palet Warna Logo:
   - Hijau Zamrud  : #0e8b44 / #095a2b / #12b45b
   - Emas / Kuning : #ffa90b / #ffe082
   - Merah Bata    : #c0392b / #e74c3c
   ============================================================ */

:root {
  --green-dark:   #095a2b;
  --green-main:   #0e8b44;
  --green-light:  #12b45b;
  --gold-main:    #ffa90b;
  --gold-light:   #ffe082;
  --red-main:     #c0392b;
  --white:        #ffffff;
  --bg-soft:      #f4fcf7;
}

/* ===== BASE ===== */
body {
  font-family: "Nunito Sans", sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(160deg, #f4fcf7 0%, #edfdf4 40%, #d9f6e6 100%);
  background-attachment: fixed;
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: var(--white) !important;
  box-shadow: 0 2px 16px rgba(9, 90, 43, 0.08);
  z-index: 2000 !important;
  overflow: visible !important;
}

.navbar .container,
.navbar-collapse {
  overflow: visible !important;
}

/* Dropdown Layout & Transition */
.dropdown-menu {
  z-index: 3000 !important;
}

@media (min-width: 992px) {
  .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .dropdown-menu {
    position: static !important;
    display: block !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background-color: rgba(9, 90, 43, 0.03) !important;
  }
  .dropdown-menu.show {
    opacity: 1;
    max-height: 400px;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-top: 5px;
    margin-bottom: 5px;
  }
}

.navbar-brand span {
  background: linear-gradient(135deg, var(--green-main), var(--gold-main));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.navbar-nav .nav-link {
  color: #2d2d2d;
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--green-main) !important;
}

.custom-login-btn {
  border: 2px solid var(--green-main);
  color: var(--green-main);
  transition: all 0.3s ease;
  background-color: transparent;
}

.custom-login-btn:hover {
  background: linear-gradient(135deg, var(--green-main), var(--green-light));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(14, 139, 68, 0.35);
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background: url("../img/bg.png") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(9, 90, 43, 0.88) 0%,
    rgba(14, 139, 68, 0.75) 55%,
    rgba(255, 169, 11, 0.18) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
}

.hero h1 span {
  color: var(--gold-main);
}

.hero p {
  font-family: "Nunito Sans", sans-serif;
  font-style: italic;
  font-weight: 700;
}

/* ===== HERO TAG ===== */
.hero-tag {
  background: rgba(255, 169, 11, 0.13);
  border: 1px solid rgba(255, 169, 11, 0.28);
  color: var(--gold-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  backdrop-filter: blur(5px);
  animation: pulseTag 2.5s infinite ease-in-out;
}

@keyframes pulseTag {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 169, 11, 0); }
  50%       { box-shadow: 0 0 14px rgba(255, 169, 11, 0.28); }
}

/* ===== HERO TYPOGRAPHY ===== */
.hero-heading {
  font-family: "Montserrat", sans-serif;
  font-size: 3.8rem;
  line-height: 1.15;
}

.hero-brand-text {
  background: linear-gradient(135deg, #ffa90b, #ffe082);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.35rem;
  font-weight: 500;
  max-width: 750px;
}

/* ===== MEDIA QUERIES ANDROID / MOBILE ===== */
@media (max-width: 576px) {
  /* Navbar */
  .navbar-brand img { width: 32px; }
  .navbar-brand span { font-size: 1rem; }
  body { padding-top: 60px; }

  /* Hero */
  .hero { min-height: 100svh; padding-top: 80px; }
  .hero-heading { font-size: 2rem !important; line-height: 1.2; }
  .hero-subtext { font-size: 1rem !important; padding: 0 8px; }
  .hero-tag { font-size: 0.65rem; padding: 6px 12px; letter-spacing: 1px; }
  .hero-content { padding: 0 12px; }

  /* Bubble dikecilkan biar tidak berat di HP */
  .bubble-1 { width: 180px; height: 180px; }
  .bubble-2 { width: 220px; height: 220px; }
  .bubble-3 { width: 140px; height: 140px; }

  /* Tombol hero full width di HP */
  .hero .btn {
    width: 100%;
    font-size: 0.95rem;
    padding: 12px 16px !important;
  }

  /* Tentang section */
  .about { padding: 60px 16px; }
  .about-title { font-size: 1.6rem; }
  .about-img { max-width: 100%; }

  /* Growup / Kelas section */
  .growup-section { padding-bottom: 60px; }
  .kelas-card { padding: 1.2rem !important; }
  .kelas-card h5 { font-size: 1rem; }
  .kelas-card p { font-size: 0.85rem; }

  /* Fitur section */
  .fitur-title { font-size: 1.6rem; }

  /* Cards */
  .card { padding: 1.2rem; border-radius: 14px; }

  /* Stat cards */
  .stat-card { margin-bottom: 1rem; }

  /* Testimoni */
  .foto-wrapper { width: 110px; height: 110px; }
}

@media (min-width: 577px) and (max-width: 768px) {
  .hero-heading { font-size: 2.6rem !important; }
  .hero-subtext { font-size: 1.1rem !important; }
  .hero { padding-top: 70px; }
}

@media (max-width: 768px) {
  /* Navbar padding bawah biar konten tidak ketutup */
  body { padding-top: 65px; }

  /* Tombol di section tentang */
  .about .btn { width: 100%; text-align: center; margin-left: 0 !important; }

  /* Fitur card kolom penuh */
  .fitur-card { margin-bottom: 1rem; }

  /* Wave lebih kecil */
  .wave svg { height: 60px; }

  /* Growup section */
  .growup-section h2 { font-size: 1.5rem; }
  .about-title { font-size: 1.8rem; }
}

/* ===== FLOATING BUBBLES ===== */
.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  animation: floatBubble 18s infinite ease-in-out;
  will-change: transform;
}

.bubble-1 {
  width: 340px; height: 340px;
  background: var(--gold-main);
  top: 8%; left: 4%;
}

.bubble-2 {
  width: 440px; height: 440px;
  background: var(--green-light);
  bottom: 10%; right: 4%;
  animation-delay: -5s;
}

.bubble-3 {
  width: 260px; height: 260px;
  background: var(--red-main);
  top: 40%; left: 48%;
  animation-delay: -10s;
  opacity: 0.12;
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-45px) scale(1.12); }
}

/* ===== WAVE ===== */
.wave {
  position: absolute;
  bottom: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}
.wave svg { display: block; width: 100%; height: auto; }

/* ===== TOMBOL ===== */
.btn-warning {
  background: linear-gradient(135deg, var(--gold-main), #e8960a);
  border: none;
  color: #1a1a1a;
  font-weight: 700;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #e8960a, var(--gold-main));
  color: #000;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, var(--green-main), var(--green-light));
  border: none;
  box-shadow: 0 4px 14px rgba(14, 139, 68, 0.3);
  transition: all 0.3s ease;
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--green-light), var(--gold-main));
  box-shadow: 0 6px 20px rgba(255, 169, 11, 0.35);
  transform: translateY(-2px);
}

.btn-glow {
  box-shadow: 0 6px 22px rgba(255, 169, 11, 0.38);
  transition: all 0.3s ease;
}
.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 169, 11, 0.55);
  background: linear-gradient(135deg, #e8960a, var(--gold-main)) !important;
  color: #000 !important;
}

/* ===== TENTANG SECTION ===== */
.about {
  background: var(--white);
  padding: 100px 20px;
  position: relative;
  z-index: 3;
}

.about-title {
  color: var(--green-main);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  border-left: 6px solid var(--gold-main);
  padding-left: 12px;
  text-transform: uppercase;
}

.about-title span {
  color: var(--gold-main);
}

.about p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
}

.about-img {
  max-width: 650px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(14, 139, 68, 0.15);
}

/* ===== GROWUP / KELAS SECTION ===== */
.growup-section {
  background: linear-gradient(160deg, var(--green-dark) 0%, #0a6e32 50%, #0e8b44 100%);
  padding-bottom: 100px;
  position: relative;
}

.growup-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

.growup-section .container { position: relative; z-index: 2; }

.growup-section h2, .growup-section h3 {
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.growup-section .card {
  border: none;
  border-radius: 16px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.growup-section .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(255, 169, 11, 0.18);
}

.kelas-card {
  background: rgba(255,255,255,0.07);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.35s ease;
}
.kelas-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 10px 25px rgba(255, 169, 11, 0.2);
  border-color: rgba(255, 169, 11, 0.3);
}

/* ===== FITUR SECTION ===== */
.fitur-title {
  font-size: 2.3rem;
  background: linear-gradient(90deg, var(--gold-main), var(--green-main));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  position: relative;
}

.fitur-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-main), var(--green-main));
}

.pulse-icon {
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 169, 11, 0.7));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 18px rgba(255, 169, 11, 0.95));
  }
}

.fitur-card { transition: all 0.3s ease; }
.fitur-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(14, 139, 68, 0.14);
}
.fitur-card:hover i {
  color: var(--gold-main);
  transition: color 0.3s ease;
}

/* ===== TESTIMONI SECTION ===== */
#testimoni {
  background: linear-gradient(160deg, #f4fcf7 0%, #edfdf4 100%);
  padding: 60px 0 80px;
}

.foto-wrapper {
  width: 150px; height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold-main);
  box-shadow: 0 6px 18px rgba(14, 139, 68, 0.18);
  transition: transform 0.3s ease;
}
.foto-wrapper:hover { transform: scale(1.06); }

.foto-testimoni {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center top;
}

.carousel-item {
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

/* ===== STAT CARDS ===== */
.stat-card {
  transition: 0.3s ease;
  background: #ffffff;
  border-radius: 16px;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(14, 139, 68, 0.13);
}
.stat-card h3, .stat-card p { color: #111; }

.icon-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-main), var(--gold-main));
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(14, 139, 68, 0.3);
}

/* ===== GLASSMORPHISM ===== */
.glass-mockup {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.15) !important;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4) !important;
  max-width: 460px;
  z-index: 5;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.glass-mockup:hover {
  transform: translateY(-12px) rotate(1deg) scale(1.02);
  border-color: rgba(255,255,255,0.28) !important;
  box-shadow: 0 35px 60px -10px rgba(0,0,0,0.5) !important;
}
.glass-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}
.glass-item:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(6px);
  border-color: rgba(255, 169, 11, 0.25);
}

/* ===== CARD GLOBAL ===== */
.card {
  border-radius: 20px;
  background-color: #fff;
  padding: 2rem;
}
.card:hover {
  transform: translateY(-6px);
  transition: 0.3s ease;
  box-shadow: 0 10px 24px rgba(14, 139, 68, 0.12);
}

/* ===== FOOTER (Landing Page) ===== */
footer {
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}

/* ===== FOOTER ADMIN ===== */
.footer-admin {
  background: linear-gradient(135deg, var(--green-main) 0%, #0a6e32 100%);
  color: white;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 2;
  box-shadow: 0 -2px 10px rgba(9, 90, 43, 0.15);
}
.footer-admin a:hover { color: var(--gold-light); }
.footer-admin .container { max-width: 600px; }

/* ===== CUSTOM BUTTONS ===== */
.custom-btn {
  background-color: transparent !important;
  border: 2px solid var(--green-light) !important;
  color: var(--green-light) !important;
  transition: all 0.3s ease;
}
.custom-btn:hover {
  background: linear-gradient(135deg, var(--green-main), var(--green-light)) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(14, 139, 68, 0.35);
}

/* ===== CAROUSEL ===== */
.carousel-control-prev, .carousel-control-next { width: 5%; }

/* ===== TEKS HEADING ===== */
h1, h2, h3, h4, h5, h6 { text-transform: none !important; }
.xs-text { font-size: 0.75rem; }

/* ===== RESPONSIVE ===== */
html, body {
  overflow-x: hidden !important;
  width: 100%;
}

body {
  box-sizing: border-box;
}

.navbar-collapse {
  width: 100% !important;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    max-height: 80vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  .navbar-brand span { font-size: 1.1rem; }
}

