/* === PENGATURAN DASAR & VARIABEL === */
        :root {
            --primary-color: #0056b3; /* Biru Tua */
            --secondary-color: #007bff; /* Biru Cerah */
            --text-color: #333;
            --light-text-color: #f8f9fa;
            --background-color: #f4f7f6;
            --glass-bg: rgba(255, 255, 255, 0.15);
            --glass-border: 1px solid rgba(255, 255, 255, 0.2);
            --blur-effect: blur(12px);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--background-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        /* === CONTAINER & UTILITIES === */
        .container {
            max-width: 1100px;
            margin: auto;
            padding: 0 2rem;
        }

        h1, h2, h3 {
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .btn {
            display: inline-block;
            padding: 12px 28px;
            background: var(--primary-color);
            color: var(--light-text-color);
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
        }

        .btn:hover {
            background: var(--secondary-color);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
        }

        /* Efek untuk animasi saat scroll */
        .fade-in-section {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }

        .fade-in-section.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* === HEADER & NAVIGASI (EFEK KACA) === */
        .main-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            padding: 1rem 0;
            transition: all 0.4s ease;
        }

        .main-header.scrolled {
            background: var(--glass-bg);
            backdrop-filter: var(--blur-effect);
            -webkit-backdrop-filter: var(--blur-effect); /* Untuk Safari */
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .main-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--light-text-color);
            text-decoration: none;
        }

        .main-header.scrolled .logo {
            color: var(--primary-color);
        }

        .main-nav ul {
            display: flex;
            list-style: none;
        }

        .main-nav a {
            color: var(--light-text-color);
            text-decoration: none;
            padding: 0.5rem 1rem;
            font-weight: 400;
            transition: color 0.3s ease;
        }

        .main-header.scrolled .main-nav a {
            color: var(--text-color);
        }

        .main-nav a:hover {
            color: var(--secondary-color);
        }

        .main-header.scrolled .main-nav a:hover {
             color: var(--primary-color);
        }

        /* === HERO SECTION (DENGAN PARALLAX) === */
        .hero {
            height: 100vh;
            color: var(--light-text-color);
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            position: relative;
            overflow: hidden; /* Penting untuk parallax */
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5); /* Overlay gelap */
            z-index: 1;
        }

        .hero-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 115%; /* Sedikit lebih tinggi untuk efek parallax */
            background-image: url('../img/foto1.jpg');
            background-size: cover;
            background-position: center;
            z-index: -1;
            transition: transform 0.2s ease-out; /* Untuk JS parallax */
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            animation: fadeInHero 1.5s ease-in-out;
        }

        @keyframes fadeInHero {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 0.5rem;
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            font-weight: 300;
        }

        /* === SEKSI-SEKSI KONTEN === */
        .section {
            padding: 5rem 0;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            color: var(--primary-color);
        }

        /* Program Unggulan (dengan Efek Kaca) */
        .programs {
            background: url('../img/clouds.jpg');
            background-size: cover;
            background-attachment: fixed; /* Latar belakang diam */
        }

        .program-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        .program-card {
            background: var(--glass-bg);
            backdrop-filter: var(--blur-effect);
            -webkit-backdrop-filter: var(--blur-effect);
            border: var(--glass-border);
            border-radius: 15px;
            padding: 2rem;
            text-align: center;
            color: var(--light-text-color);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .program-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 8px 30px rgba(0,0,0,0.2);
        }

        .program-card .icon {
            font-size: 3rem;
            color: var(--light-text-color);
            margin-bottom: 1rem;
        }

        .program-card h3 {
            color: var(--light-text-color);
            margin-bottom: 0.5rem;
        }

        /* Tentang Kami */
        #about .container {
            display: flex;
            align-items: center;
            gap: 3rem;
        }

        #about .about-content, #about .about-image {
            flex: 1;
        }

        #about .about-image img {
            width: 100%;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        /* === FOOTER === */
        .footer {
            background-color: #222;
            color: var(--light-text-color);
            padding: 4rem 0 2rem;
            text-align: center;
        }

        .footer .container {
             border-bottom: 1px solid #444;
             padding-bottom: 2rem;
             margin-bottom: 2rem;
        }

        .footer p {
            font-size: 0.9rem;
        }

        .footer-bottom {
            font-size: 0.8rem;
            color: #aaa;
        }


        /* === SEKSI POSTER === */
        .poster-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            grid-auto-rows: 300px;
            gap: 1.5rem;
        }

        .poster-item{
            overflow: hidden; /* Untuk efek hover yang lebih baik */
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .poster-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease-in-out;
        }

        .poster-item img:hover {
            transform: scale(1.05);
        }

        /* === SEKSI GALERI === */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            grid-auto-rows: 300px;
        }

        .gallery-item {
            overflow: hidden; /* Untuk efek hover yang lebih baik */
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease-in-out;
        }

        .gallery-item img:hover {
            transform: scale(1.1);
        }

        .btn-secondary {
            background-color: #6c757d; /* Warna abu-abu Bootstrap */
        }

        .btn-secondary:hover {
            background-color: #5a6268;
        }
        /* Style untuk latar belakang modal */
        /* Latar belakang modal, dibuat flex untuk centering */
.modal {
    display: flex; /* Menggunakan flexbox untuk centering */
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

/* KONTEN MODAL DENGAN EFEK KACA (GLASSMORPHISM) */
.modal-content {
    width: 90%;
    max-width: 500px;
    border-radius: 16px; /* Sudut lebih bulat untuk efek kaca */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s;
    overflow: hidden; /* Penting agar header tidak keluar dari radius */

    /* Efek Kaca */
    background: rgba(255, 255, 255, 0.25); /* Warna dasar semi-transparan */
    backdrop-filter: blur(10px); /* Efek blur pada background di belakang modal */
    -webkit-backdrop-filter: blur(10px); /* Untuk support Safari */
    border: 1px solid rgba(255, 255, 255, 0.4); /* Border tipis transparan */
}

/* Header diatur dengan flexbox untuk menata judul dan tombol */
.modal-header {
    display: flex;
    justify-content: space-between; /* Mendorong judul dan tombol ke sisi berlawanan */
    align-items: center;
    padding: 15px 20px;
    color: white;
}
.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

/* Warna header tetap sama */
.modal-header.penting {
    background-color: rgba(226, 114, 101, 0.8); /* Merah dengan transparansi */
}
.modal-header.biasa {
    background-color: rgba(52, 152, 219, 0.8); /* Biru dengan transparansi */
}

/* Isi Modal */
.modal-body {
    padding: 20px;
    color: #333; /* Warna teks agar mudah dibaca */
    background: rgba(255, 255, 255, 0.4); /* Latar body modal sedikit berbeda */
}

/* Tombol Tutup (X) yang posisinya sudah pas */
.close-button {
    color: #f1f1f1;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.close-button:hover {
    color: #fff;
}
.program-card {
    /* Pengaturan dasar dan background */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: white; /* Ubah warna teks menjadi putih */
    position: relative; /* Diperlukan untuk overlay */
    overflow: hidden; /* Agar overlay tidak keluar dari border-radius */
    transition: transform 0.3s ease;
    min-height: 250px; /* Beri tinggi minimal */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Posisikan konten di bawah */
}

.program-card:hover {
    transform: translateY(-10px);
}

/* LAPISAN OVERLAY GELAP */
.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2)); /* Gradient gelap dari bawah ke atas */
    z-index: 1; /* Posisikan overlay di belakang konten */
    border-radius: 10px; /* Samakan dengan parent */
}

/* Konten diletakkan di atas overlay */
.program-card .program-content {
    position: relative;
    z-index: 2;
}

.program-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.program-card p {
    font-size: 1rem;
    margin-bottom: 0;
}
/* === PENGATURAN HAMBURGER & NAVIGASI MOBILE === */

/* Tombol Hamburger */
.hamburger-menu {
    display: none; /* Sembunyi di desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Pastikan di atas konten lain */
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light-text-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Warna bar saat header di-scroll */
.main-header.scrolled .hamburger-menu .bar {
    background-color: var(--primary-color);
}


/* Tampilan saat di layar mobile (lebar maks 768px) */
@media(max-width: 768px) {
    /* Tampilkan tombol hamburger */
    .hamburger-menu {
        display: flex;
    }

    /* Atur menu navigasi utama untuk mobile */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Sembunyikan di luar layar kanan */
        width: 60%;
        height: 100vh;
        padding-top: 5rem;
        transition: right 0.4s ease-in-out;

        /* Efek kaca untuk menu mobile */
        background: var(--glass-bg);
        backdrop-filter: var(--blur-effect);
        -webkit-backdrop-filter: var(--blur-effect);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    /* Tampilkan menu saat aktif */
    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column; /* Susun link ke bawah */
        align-items: center;
        width: 100%;
    }

    .main-nav li {
        margin: 1rem 0;
    }

    .main-nav a {
        font-size: 1.2rem;
        color: var(--text-color); /* Warna teks di menu mobile */
    }

    /* Animasi tombol hamburger menjadi 'X' saat aktif */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    /* Ubah warna bar menjadi gelap saat menu aktif, agar kontras */
    .hamburger-menu.active .bar {
        background-color: var(--text-color);
    }
}
