/* ==============================
   CSS Variables & Reset
   ============================== */

:root {
  --color-primary: #0d47a1;
  --color-primary-light: #1565c0;
  --color-primary-dark: #082b66;
  --color-accent: #2196f3;
  --color-accent-dark: #1565c0;
  --color-secondary: #ff9800;
  --color-secondary-dark: #e68900;
  --color-nav-link: #0E1DAB;
  --color-body-bg: #f5f7fb;
  --color-text: #333;
  --color-white: #fff;
  --font-family: 'Poppins', sans-serif;
  --max-width: 1200px;
  --border-radius: 12px;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  --shadow-light: 0 8px 20px rgba(0, 0, 0, 0.08);
  --section-padding: 90px 8%;
  --section-padding-sm: 60px 8%;
  --navbar-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-body-bg), 
    linear-gradient(
    180deg,
    #ffffff,
    #f6faff
);
  
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



body.menu-open {
  overflow: hidden;
}

/* ==============================
   Progress Bar
   ============================== */

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--color-accent);
  z-index: 9999;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ==============================
   Modal
   ============================== */

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-white);
  padding: 35px 30px;
  border-radius: 16px;
  text-align: center;
  width: 300px;
  max-width: 90vw;
  -webkit-transform: translateY(30px);
  transform: translateY(30px);
  -webkit-transition: -webkit-transform 0.4s ease;
  transition: transform 0.4s ease;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}


.modal.show .modal-content {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.modal-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
}

.modal h3 {
  margin: 10px 0 5px;
  color: var(--color-primary);
}

.modal p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.modal-btn {
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.modal-btn:hover {
  background: var(--color-accent-dark);
  transform: scale(1.05);
}

/* ==============================
   Navbar / Header
   ============================== */

header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8%;
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.logo {
  color: var(--color-nav-link);
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
}

.logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.menu {
  display: flex;
  list-style: none;
  gap: 40px;
  flex-shrink: 0;
}

.menu a {
  color: var(--color-nav-link);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #90caf9;
}

/* ==============================
   Hamburger Menu
   ============================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1004;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-nav-link);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ==============================
   Menu Overlay (mobile)
   ============================== */

.menu-overlay {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--navbar-height));
  height: calc(100dvh - var(--navbar-height));
  background: rgba(0, 0, 0, 0.5);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==============================
   Hero
   ============================== */

.hero {
  margin-top: var(--navbar-height);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.slides {
  width: 100%;
  height: 100%;
  position: absolute;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  color: white;
  text-align: center;
  width: 700px;
  max-width: 90vw;
  z-index: 2;
}

.hero h1 {
  font-size: 50px;
  margin-bottom: 20px;
  min-height: 1.2em;
}

.hero p {
  font-size: 18px;
  line-height: 30px;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 40px;
  font-weight: 600;
  transition: background 0.3s ease, -webkit-transform 0.2s ease, box-shadow 0.3s ease;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.35);
}

.btn-secondary {
  background: var(--color-secondary);
  font-weight: 500;
}

.btn-secondary:hover {
  background: var(--color-secondary-dark);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.35);
}

.icon {
  font-size: 18px;
}

/* ==============================
   Section Base
   ============================== */

section {
  padding: var(--section-padding);
}

.container {
  max-width: var(--max-width);
  margin: auto;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-primary);
  font-size: 36px;
}

/* ==============================
   About
   ============================== */

.about p {
  text-align: center;
  max-width: 800px;
  margin: auto;
  line-height: 30px;
}

/* ==============================
   Alur Layanan
   ============================== */

.alur {
  background: var(--color-white);
}

.alur-image {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.alur-image a {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.alur-image img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* ==============================
   Konselor
   ============================== */

.konselor {
  background: var(--color-body-bg);
}

.konselor-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.konselor-image img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.konselor-text {
  max-width: 400px;
}

.konselor-text h3 {
  margin-bottom: 10px;
  color: var(--color-primary);
}

.konselor-text p {
  line-height: 28px;
  color: var(--color-text);
}

/* ==============================
   Judol (Judi Online)
   ============================== */

.judol {
  padding: var(--section-padding-sm);
  background: #f9fbff;
}

.judol-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.judol-image img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.judol-text {
  max-width: 400px;
}

.judol-text h3 {
  margin-bottom: 10px;
  color: var(--color-primary);
}

.judol-text p {
  line-height: 28px;
  color: var(--color-text);
}

/* ==============================
   Services / Cards
   ============================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--color-primary-light);
  margin-bottom: 15px;
}

/* ==============================
   Gallery
   ============================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.box {
  height: 220px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.box:hover img {
  transform: scale(1.08);
}

/* ==============================
   Donasi
   ============================== */

.donasi {
  text-align: center;
}

.rekening {
  display: inline-block;
  text-align: center;
  margin-top: 20px;
  padding: 20px 40px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.rekening p {
  margin: 6px 0;
}

/* ==============================
   Contact
   ============================== */

.contact {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.contact h2 {
  color: var(--color-white);
}

.contact p {
  margin: 15px 0;
  font-size: 17px;
}

.map-container {
  margin: 30px auto 0;
  max-width: 700px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  -webkit-overflow-scrolling: touch;
}

.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==============================
   Footer
   ============================== */

.footer-pro {
  position: relative;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 8% 0;
  background-image: none;
}

.footer-pro::before,
.footer-pro::after {
  display: none !important;
  content: none !important;
}

.footer-pro-container {
  max-width: var(--max-width);
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.footer-pro-brand,
.footer-pro-col,
.footer-pro-contact {
  text-align: left;
}

.footer-pro-brand h3 {
  font-size: 18px;
  color: #fff;
  margin: 12px 0 8px;
}

.footer-pro-brand p {
  font-size: 14px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.7);
}


.footer-pro-col h4,
.footer-pro-contact h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-pro-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-pro-col a:hover {
  color: #fff;
}

.contact-item {
  font-size: 14px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-pro-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.footer-pro-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
}

.footer-pro-bottom {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ==============================
   Floating WhatsApp
   ============================== */

.wa-float {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 9998;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: wa-pulse 2s infinite;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  animation: none;
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.25);
  animation: wa-ring 3s infinite;
}

@keyframes wa-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.55);
  }
}

@keyframes wa-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

.wa-tooltip {
  position: absolute;
  right: 64px;
  background: #333;
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.wa-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid #333;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ==============================
   Typing Animation
   ============================== */

.typing-text::after {
    content: " ❤️";
    display: inline-block;
    animation: blink 0.8s infinite;
}

.typing-text.done::after {
    content: " ❤️";
    display: inline-block;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ==============================
   Responsive - Small Laptop / Large Tablet
   ============================== */

@media (min-width: 769px) and (max-width: 1100px) {
  .navbar {
    padding: 10px 4%;
  }

  .logo:last-of-type {
    font-size: 15px;
  }

  .menu {
    gap: 20px;
  }
}

/* ==============================
   Responsive - Tablet & Mobile
   ============================== */

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 5%;
    --section-padding-sm: 40px 5%;
  }

  .hamburger {
    display: flex;
  }

  .menu {
    position: fixed;
    top: var(--navbar-height);
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: calc(100vh - var(--navbar-height));
    height: calc(100dvh - var(--navbar-height));
    background: var(--color-white);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    z-index: 1003;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    will-change: transform;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
  }

  .menu.active {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  .menu a {
    font-size: 16px;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .menu a:hover {
    color: var(--color-accent);
  }

  .hero {
    min-height: 90vh;
    min-height: 90dvh;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  h2 {
    font-size: 30px;
  }

  .cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
  }

  .gallery-grid {
    gap: 14px;
  }

  .box {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .contact p {
    font-size: 15px;
    word-break: break-word;
  }

  .footer-pro-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-pro-brand,
  .footer-pro-col,
  .footer-pro-contact {
    text-align: left;
  }

  .wa-float {
    width: 50px;
    height: 50px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: calc(18px + env(safe-area-inset-right, 0px));
  }

  .wa-float svg {
    width: 24px;
    height: 24px;
  }

  .wa-tooltip {
    display: none;
  }

  .map-container {
    padding-bottom: 75%;
  }
}

/* ==============================
   Responsive - Small Mobile
   ============================== */

@media (max-width: 480px) {
  .logo:last-of-type {
    font-size: 15px;
  }

  .hero {
    min-height: 85vh;
    min-height: 85dvh;
    margin-top: 70px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 25px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  h2 {
    font-size: 24px;
    margin-bottom: 28px;
  }

  .card {
    padding: 22px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .box {
    aspect-ratio: 1;
  }

  .konselor-wrapper {
    gap: 24px;
  }

  .judol-wrapper {
    gap: 24px;
  }

  .rekening {
    padding: 16px 24px;
    width: 100%;
  }

  .footer-pro {
    padding: 40px 5% 0;
  }

  .footer-pro-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-pro-brand,
  .footer-pro-col,
  .footer-pro-contact {
    text-align: left;
  }
}

/* ==========================
   Premium Navbar
========================== */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:9999;
}

.navbar{

    padding:12px 8%;

    background:transparent;

    transition:
        background .4s ease,
        box-shadow .4s ease,
        padding .4s ease,
        backdrop-filter .4s ease;

}

.navbar.scrolled{

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(16px);

    -webkit-backdrop-filter:blur(16px);

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    padding:10px 8%;
}

.navbar.scrolled .menu a{

    color:#0d47a1;

}

.navbar.scrolled .logo{

    color:#0d47a1;

}

.navbar.scrolled .hamburger span{

    background:#0d47a1;

}

.statistics{

padding:90px 8%;

background:#f8fbff;

}

.statistics{

position:relative;

overflow:hidden;

}

.statistics::before{

content:"";

position:absolute;

width:550px;

height:550px;

border-radius:50%;

background:#1976d220;

filter:blur(120px);

left:-150px;

top:-150px;

}

.statistics::after{

content:"";

position:absolute;

width:450px;

height:450px;

border-radius:50%;

background:#42a5f520;

filter:blur(120px);

right:-120px;

bottom:-120px;

}

.section-title{

text-align:center;

margin-bottom:60px;

}

.badge{

display:inline-block;

background:#dbeafe;

color:#1565c0;

padding:8px 18px;

border-radius:50px;

font-size:13px;

font-weight:700;

margin-bottom:15px;

}

.section-title h2{

font-size:40px;

margin-bottom:20px;

color:#0E3A8A;

}

.section-title p{

max-width:700px;

margin:auto;

line-height:30px;

color:#666;

}

.stats-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:25px;

margin-bottom:60px;

}

.stats-card{


padding:40px;

border-radius:18px;

text-align:center;



transition:.35s;


background:

rgba(255,255,255,.82);


backdrop-filter:blur(20px);
border:1px solid rgba(255,255,255,.5);

box-shadow:

0 20px 45px rgba(0,0,0,.06);
}

.stats-card:hover{

transform:translateY(-10px);

}

.stats-icon{

font-size:45px;

margin-bottom:20px;

}

.counter{

display:block;

font-size:48px;

font-weight:800;

color:#1976D2;

}

.stats-card small{

font-size:18px;

color:#1976D2;

font-weight:700;

}

.stats-card h4{

margin-top:15px;

font-size:18px;

}

.progress-section{

margin-top:40px;

}

.progress-item{

margin-bottom:30px;

}

.progress-top{

display:flex;

justify-content:space-between;

margin-bottom:10px;

font-weight:600;

}

.progress-bar{

height:12px;

background:#e5e7eb;

border-radius:20px;

overflow:hidden;

}

.progress-fill{

height:100%;

background:linear-gradient(90deg,#1976D2,#42A5F5);

border-radius:20px;

}

.quote-box{

margin-top:70px;

padding:60px;

background:#0E3A8A;

border-radius:20px;

text-align:center;

color:white;

}

.quote-box h3{

font-size:30px;

margin-bottom:20px;

}

.quote-box p{

margin-bottom:30px;

line-height:30px;

}

.stats-source{

margin-top:30px;

text-align:center;

font-size:14px;

color:#777;

}
