/* =========================================
   1. RESET & GLOBAL VARIABLES
   ========================================= */
:root {
    /* Warna diambil dari Logo Yayasan */
    --primary-green: #006a4e; /* Hijau Tua Logo */
    --secondary-green: #004d38;
    --accent-gold: #D4AF37;   /* Emas */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo-container a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 50px; /* Ukuran Logo Header */
}

.logo-text {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

/* =========================================
   3. HERO SECTION (Perbaikan Utama)
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh; /* Full layar */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Background Gradient Hijau Elegan */
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    overflow: hidden;
    padding-top: 80px; /* Kompensasi Header Fixed */
}

/* Background Particles (JS) */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 20px;
}

.tagline {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid var(--accent-gold);
}

.main-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.italic-text {
    font-family: 'Playfair Display', serif; /* Font Serif untuk kesan Islami/Klasik */
    font-style: italic;
    color: var(--accent-gold);
}

.description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tombol */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-gold {
    background: var(--accent-gold);
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
    transform: translateY(-3px);
    background: #c5a028;
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: white;
    color: var(--primary-green);
    border-color: white;
}

/* Floating Icons (Penyebab Masalah Sebelumnya) */
.float-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none; /* Agar tidak menghalangi klik */
}

.float-item {
    position: absolute;
    width: 60px;
    height: 60px;
    color: rgba(255,255,255,0.1); /* Transparan halus */
    animation: floatAnim 6s ease-in-out infinite;
}

.float-item svg { width: 100%; height: 100%; }

/* Posisi Ikon Melayang */
.item-1 { top: 20%; left: 10%; animation-delay: 0s; }
.item-2 { top: 60%; left: 5%; animation-delay: 1s; width: 80px; height: 80px; }
.item-3 { top: 15%; right: 15%; animation-delay: 2s; }
.item-4 { bottom: 20%; right: 10%; animation-delay: 3s; width: 70px; height: 70px; }
.item-5 { bottom: 10%; left: 20%; animation-delay: 4s; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* =========================================
   4. ABOUT SECTION
   ========================================= */
.section-padding { padding: 100px 5%; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.small-heading {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.section-heading {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.section-text {
    color: #666;
    margin-bottom: 30px;
}

.stats-mini-grid {
    display: flex;
    gap: 30px;
}

.mini-stat strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-green);
    font-weight: 800;
}

.mini-stat span {
    font-size: 0.9rem;
    color: #888;
}

.img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.img-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.img-wrapper:hover img { transform: scale(1.05); }

/* =========================================
   5. TEAM SECTION
   ========================================= */
.dark-bg {
    background-color: var(--primary-green);
    color: white;
}

.text-white { color: white !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: rgba(255,255,255,0.05); /* Glass effect subtle */
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    background: white;
    transform: translateY(-10px);
}

/* Efek Hover untuk teks di kartu tim */
.team-card:hover h3 { color: var(--primary-green); }
.team-card:hover p { color: #666; }
.team-card:hover .team-role { background: var(--primary-green); color: white; }

.team-role {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: var(--accent-gold);
    font-weight: 600;
}

.team-card h3 { font-size: 1.2rem; margin-bottom: 5px; }
.team-card p { font-size: 0.9rem; opacity: 0.8; }

/* =========================================
   6. FOOTER STYLES (Agar Footer Rapi)
   ========================================= */
.footer-section {
    background-color: #0b2e25; /* Lebih gelap dari primary */
    color: #ccc;
    padding: 60px 0 20px;
    position: relative;
    font-size: 0.9rem;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img { width: 50px; height: auto; }

.brand-text h3 { color: var(--accent-gold); font-size: 1.4rem; margin-bottom: 0; }
.tagline-small { font-size: 0.8rem; color: #fff; opacity: 0.7; }

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: #fff;
}

.footer-heading {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 2px;
    background: var(--accent-gold);
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #bbb;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover { color: var(--accent-gold); padding-left: 5px; }

.footer-schedule li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 5px;
}

.time-badge { color: #fff; font-weight: 600; }
.closed-badge { color: #ff6b6b; font-weight: 600; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.85rem;
}

/* =========================================
   7. RESPONSIVE MOBILE
   ========================================= */
@media (max-width: 768px) {
    header { padding: 15px; }
    .nav-links { display: none; } /* Perlu burger menu untuk mobile nanti */
    
    .hero-section { height: auto; min-height: 100vh; padding-top: 100px; padding-bottom: 50px; }
    .main-title { font-size: 2.2rem; }
    
    .grid-2, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .image-col { order: -1; } /* Gambar about di atas pada mobile */
    
    .float-item { transform: scale(0.6); opacity: 0.3; }
}

/* =========================================
   8. MOBILE RESPONSIVE FIX (ANTI-GESER & FULLSCREEN)
   ========================================= */

/* Kunci Layar agar tidak geser kanan-kiri */
html, body {
    overflow-x: hidden; /* Sembunyikan luapan horizontal */
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    
    /* --- HEADER FIX --- */
    header {
        padding: 12px 20px;
        flex-direction: column; /* Logo di atas */
        gap: 10px;
        background: rgba(255, 255, 255, 0.98); /* Background solid agar tulisan jelas */
    }

    .logo-container a {
        justify-content: center; /* Logo tengah */
    }

    .logo-container img {
        height: 40px; /* Perkecil logo sedikit */
    }

    .logo-text {
        font-size: 0.9rem; /* Kecilkan teks yayasan */
        white-space: nowrap; /* Jangan turun baris */
    }

    /* Sembunyikan menu desktop sementara (nanti bisa dibuat burger menu) */
    .nav-links {
        display: none; 
    }

    /* --- HERO SECTION FULLSCREEN FIX --- */
    .hero-section {
        /* Gunakan dvh (dynamic viewport height) agar pas di layar HP modern */
        min-height: 100dvh; 
        padding-top: 130px; /* Beri jarak karena header menumpuk */
        padding-bottom: 50px;
        display: flex;
        align-items: center;
    }

    .main-title {
        font-size: 2.2rem; /* Kecilkan judul utama */
        line-height: 1.3;
        padding: 0 10px; /* Jarak aman dari pinggir layar */
    }

    .description {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    /* Perbaiki Tombol agar tidak dempet */
    .btn-group {
        flex-direction: column; /* Tombol jadi atas-bawah */
        width: 100%;
        padding: 0 40px;
    }

    .btn-gold, .btn-outline {
        width: 100%; /* Tombol lebar penuh */
        padding: 12px 0;
    }

    /* --- FIX IKON MELAYANG (Penyebab utama geser layar) --- */
    .float-item {
        transform: scale(0.6); /* Perkecil ikon */
        opacity: 0.15; /* Lebih transparan agar tidak ganggu teks */
    }
    
    /* Paksa posisi ikon masuk ke dalam layar */
    .item-1 { left: 5px; top: 15%; } 
    .item-2 { display: none; } /* Hilangkan beberapa ikon agar tidak penuh */
    .item-3 { right: 5px; top: 20%; }
    .item-4 { right: 10px; bottom: 20%; }
    .item-5 { display: none; }

    /* --- CONTENT SECTIONS --- */
    .section-padding {
        padding: 60px 20px; /* Kurangi padding samping */
    }

    .grid-2 {
        grid-template-columns: 1fr; /* Stack vertikal (atas-bawah) */
        gap: 40px;
    }

    /* Gambar About di atas teks */
    .image-col {
        order: -1; 
        margin-bottom: 20px;
    }
    
    .section-heading {
        font-size: 1.8rem; /* Kecilkan judul seksi */
    }

    /* --- TEAM & FOOTER --- */
    .team-grid {
        grid-template-columns: 1fr; /* Satu kartu per baris */
        padding: 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center; /* Footer rata tengah di HP */
        gap: 40px;
    }

    .footer-brand {
        justify-content: center; /* Logo footer tengah */
    }

    .contact-row {
        justify-content: center;
    }
    
    .footer-heading::after {
        left: 50%; /* Garis bawah judul footer di tengah */
        transform: translateX(-50%);
    }
    
    .footer-links a {
        justify-content: center;
    }
}