:root {
    --primary: #0F766E;      /* Hijau Emerald */
    --secondary: #064E3B;    /* Hijau Tua */
    --accent: #FBBF24;       /* Emas */
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ========================================================
   NAVBAR — efek mengecil & bayangan lembut saat discroll
   ======================================================== */
#mainNav {
    transition: padding 0.35s var(--ease-smooth), box-shadow 0.35s ease;
}
#mainNav.scrolled {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.12) !important;
}
.nav-link {
    position: relative;
    transition: color 0.25s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    background: var(--accent);
    bottom: -2px; left: 0;
    transition: width 0.3s var(--ease-smooth);
}
.nav-link:hover::after {
    width: 100%;
}

/* ========================================================
   HERO — bentuk dekoratif melayang, halus & tidak norak
   ======================================================== */
.hero-solid-green {
    overflow: hidden;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    animation: floatShape 8s ease-in-out infinite;
}
.hero-shape-1 {
    width: 260px; height: 260px;
    top: -80px; right: -60px;
    animation-delay: 0s;
}
.hero-shape-2 {
    width: 180px; height: 180px;
    bottom: -60px; left: -40px;
    animation-delay: 1.5s;
}
@keyframes floatShape {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-shape { animation: none; }
}

/* ========================================================
   KARTU — efek terangkat lembut saat hover (dipakai di
   kartu info PSB, persyaratan, alur, dan kontak)
   ======================================================== */
.card-hover-lift {
    transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s ease;
}
.card-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 118, 110, 0.15) !important;
}

/* ========================================================
   TOMBOL BACK TO TOP
   ======================================================== */
.back-to-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-smooth), background-color 0.25s ease, visibility 0.3s;
    z-index: 1000;
}
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

/* ========================================================
   AOS override — durasi & jarak default terasa lebih halus
   ======================================================== */
[data-aos] {
    transition-property: transform, opacity !important;
}


/* animasi backcdground index */
/* Warna dasar background hijau */
.hero-section {
    background-color: #128156; /* Sesuaikan dengan kode warna hijau Anda */
    position: relative;
    overflow: hidden;
    padding: 100px 0; /* Jarak atas bawah */
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Memastikan konten teks berada di atas animasi */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Bentuk lingkaran untuk animasi background */
/* Mengubah background menjadi gradasi bergerak */
.hero-solid-green {
    /* Menggunakan 4 titik warna hijau agar pergerakannya lebih dinamis */
    background: linear-gradient(135deg, #1da36d, #0f6c48, #128156, #0a4d33);
    background-size: 400% 400%; /* Diperbesar agar bisa digeser */
    animation: gradientMove 15s ease infinite; /* Durasi 15 detik, mengulang terus */
    overflow: hidden; 
}

/* Base style untuk lingkaran animasi (tetap dipertahankan) */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.07); /* Putih transparan */
    z-index: 0; 
}

/* Pastikan container teks berada di atas animasi */
.hero-solid-green .container {
    z-index: 2;
}

/* Lingkaran Kanan Atas */
.hero-shape-1 {
    width: 350px; 
    height: 350px;
    top: -100px;
    right: -100px;
    animation: floatShape1 10s infinite alternate ease-in-out;
}

/* Lingkaran Kiri Bawah */
.hero-shape-2 {
    width: 250px; 
    height: 250px;
    bottom: -80px;
    left: -80px;
    animation: floatShape2 12s infinite alternate ease-in-out;
}

/* --- Keyframes untuk Latar Belakang Gradasi --- */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Keyframes untuk Animasi Bergerak Mengambang --- */
@keyframes floatShape1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 35px) scale(1.05); }
    100% { transform: translate(15px, 15px) scale(0.95); }
}

@keyframes floatShape2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
    100% { transform: translate(-15px, -15px) scale(1); }
}

/* ======================================================== */
/* CUSTOM ACCORDION FAQ (Sesuai Referensi Gambar)           */
/* ======================================================== */
.custom-accordion .accordion-item {
    background-color: #f4f7f6; /* Warna latar kotak yang lembut */
    border: none;
    border-radius: 12px !important;
    margin-bottom: 16px;
    overflow: hidden;
}

.custom-accordion .accordion-button {
    background-color: transparent !important;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: none !important;
    padding: 20px 24px;
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: #0f766e; /* Berubah hijau saat dibuka */
}

/* Mengubah ikon panah (caret) menjadi chevron mengarah ke kanan */
.custom-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    transition: transform 0.3s ease;
}

/* Panah berputar ke bawah saat kotak dibuka */
.custom-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(90deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f766e'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.custom-accordion .accordion-body {
    padding: 0 24px 20px 24px;
    line-height: 1.8;
}