/* =========================================
   BAGIAN HERO (HERO SECTION)
   ========================================= */
.beranda-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #333333;
    /* Abu-abu gelap agar teks tetap terbaca */
    background-image: url('../../img/MKgedung.JPEG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    /* Tata Letak: Menarik konten ke Tengah-Kiri */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Tarik ke Kiri */
    padding-left: 8%;
    /* Jarak bernapas dari layar kiri */
}

/* Lapisan gelap (Overlay) seimbang agar gedung tetap terlihat jelas dan teks terbaca */
.hero-lapisan-gelap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.45) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

/* Canvas Partikel Animasi Jaringan Data (Constellation) */
.hero-canvas-partikel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* =========================================
   TIPOGRAFI KONTEN HERO
   ========================================= */
.hero-teks-tengah {
    position: absolute;
    top: 11%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.hero-subjudul {
    font-family: var(--font-judul), 'Playfair Display', serif !important;
    font-size: 50px !important;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    white-space: nowrap;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-konten {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    left: 8%;
    z-index: 4;
    max-width: 650px;
    text-align: justify;
}

.hero-deskripsi {
    font-family: var(--font-utama);
    font-size: 1.3rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 40px;
    color: #f1f1f1;
}

/* Tombol Jelajahi */
.tombol-jelajahi {
    font-family: var(--font-utama);
    display: inline-block;
    background-color: var(--warna-utama);
    color: var(--warna-teks-putih);
    padding: 16px 56px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(179, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.tombol-jelajahi:hover {
    background-color: var(--warna-utama-gelap);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(179, 0, 0, 0.5);
}

/* =========================================
   WADAH DATA KACA CERAH (GLASSSMORPHISM)
   ========================================= */
.beranda-data-kaca {
    position: absolute;
    bottom: 30px;
    /* Mepet ke bawah layar */
    left: 50%;
    transform: translateX(-50%);
    /* Sentralisasi kotak secara horizontal */
    width: 95%;
    /* Melebar ke samping */
    z-index: 10;
}

.wadah-kaca {
    /* Efek Kaca Transparan ala iOS */
    background: rgba(255, 255, 255, 0.08);
    /* Sangat transparan */
    backdrop-filter: blur(25px);
    /* Efek buram yang sangat kuat */
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    /* Garis tepi putih tipis */
    border-radius: 24px;
    /* Sudut lebih melengkung */

    max-width: 900px;
    /* Dibuat sedikit lebih ringkas agar rapi */
    margin: 0 auto;
    padding: 25px 40px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    /* Bayangan halus */
}

/* Elemen Internal Statistik */
.item-statistik {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ikon-statistik {
    background-color: rgba(255, 255, 255, 0.2);
    /* Latar ikon transparan */
    color: var(--warna-teks-putih);
    /* Ikon menjadi putih agar serasi */
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.teks-statistik h3 {
    font-family: var(--font-utama);
    color: var(--warna-teks-putih);
    /* Angka putih bersih */
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.teks-statistik p {
    font-family: var(--font-utama);
    color: #f8f9fa;
    /* Teks deskripsi putih terang */
    font-size: 0.95rem;
    font-weight: 400;
    margin: 5px 0 0 0;
}

/* Garis Pemisah Antar Item */
.pemisah-garis {
    height: 50px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    /* Garis pemisah transparan */
}

/* =========================================
   KONTEN SOLID BAWAH
   ========================================= */
.beranda-konten-solid {
    position: relative;
    background-color: #f8f9fa;
    z-index: 5;
    padding: 0;
    min-height: 50vh;
}

/* =========================================
   RESPONSIVITAS LAYAR (MEDIA QUERIES)
   ========================================= */

/* Untuk Layar Menengah / Tablet (Maksimal Lebar 992px) */
@media screen and (max-width: 992px) {
    .hero-judul {
        font-size: 3.2rem;
        /* Mengecilkan sedikit */
    }

    .wadah-kaca {
        padding: 20px;
        gap: 15px;
    }

    .teks-statistik h3 {
        font-size: 1.8rem;
    }

    .ikon-statistik {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Untuk Layar Kecil / Smartphone (Maksimal Lebar 768px) */
/* =========================================
   SMARTPHONE
   ========================================= */
@media screen and (max-width: 768px) {
    /* =====================================
       HERO
       ===================================== */
    .beranda-hero {
        position: relative;

        width: 100%;

        /* JANGAN height: 100vh di mobile */
        height: auto;
        min-height: 100svh;

        /* Ubah layout desktop menjadi vertikal */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        padding: 0 16px 30px;
        box-sizing: border-box;

        background-attachment: scroll;
        background-position: center center;
        background-size: cover;

        overflow: hidden;
    }

    /* =====================================
       OVERLAY
       ===================================== */
    .hero-lapisan-gelap {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        background: rgba(0, 0, 0, 0.55);

        z-index: 1;
    }

    /* =====================================
       CANVAS PARTIKEL
       ===================================== */
    .hero-canvas-partikel {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        z-index: 2;
        pointer-events: none;
    }

    /* =====================================
       TEKS "PORTAL SATU DATA..."
       BAGIAN ATAS
       ===================================== */
    .hero-teks-tengah {
        position: relative;

        /* RESET STYLE DESKTOP */
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;

        transform: none;

        width: 100%;
        max-width: 600px;

        margin: 180px auto 0;

        padding: 0 10px;
        box-sizing: border-box;

        text-align: center;

        z-index: 4;
    }

    .hero-subjudul {
        font-size: clamp(24px, 7vw, 34px) !important;

        line-height: 1.15;

        letter-spacing: 1px;

        white-space: normal;

        text-align: center;

        margin: 0;
    }

    /* =====================================
       KONTEN UTAMA HERO
       ===================================== */
    .hero-konten {
        position: relative;

        /* WAJIB RESET PROPERTY DESKTOP */
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;

        transform: none;

        width: 100%;
        max-width: 560px;

        margin: 40px auto 0;

        padding: 0 10px;
        box-sizing: border-box;

        text-align: center;

        z-index: 4;
    }

    /* =====================================
       JUDUL BESAR
       ===================================== */
    .hero-judul {
        width: 100%;

        font-size: clamp(2rem, 10vw, 3rem);

        line-height: 1.05;

        letter-spacing: 1px;

        text-align: center;

        margin: 0 auto 20px;

        overflow-wrap: normal;
        word-break: normal;
    }

    /* =====================================
       DESKRIPSI
       ===================================== */
    .hero-deskripsi {
        width: 100%;
        max-width: 520px;

        font-size: 0.95rem;

        line-height: 1.6;

        text-align: center;

        margin: 0 auto 25px;

        padding: 0;

        box-sizing: border-box;
    }

    /* =====================================
       TOMBOL
       ===================================== */
    .tombol-jelajahi {
        display: inline-block;

        padding: 13px 35px;

        font-size: 0.9rem;

        margin: 0 auto;
    }

    /* =====================================
       WRAPPER STATISTIK
       ===================================== */
    .beranda-data-kaca {
        /*
         * JANGAN ABSOLUTE DI MOBILE
         * supaya tidak menindih deskripsi
         */
        position: relative;

        /* RESET DESKTOP */
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;

        transform: none;

        width: 100%;
        max-width: 600px;

        height: auto;

        margin: 35px auto 0;

        padding: 0;

        box-sizing: border-box;

        z-index: 4;
    }

    /* =====================================
       KACA STATISTIK
       ===================================== */
    .wadah-kaca {
        width: 100%;

        max-width: none;

        margin: 0;

        padding: 18px 8px;

        box-sizing: border-box;

        display: flex;

        /* TIGA STATISTIK SEJAJAR */
        flex-direction: row;

        align-items: stretch;

        justify-content: space-between;

        gap: 0;

        background: rgba(255, 255, 255, 0.12);

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

        border: 1px solid rgba(255, 255, 255, 0.3);

        border-radius: 18px;
    }

    /* =====================================
       ITEM STATISTIK
       ===================================== */
    .item-statistik {
        flex: 1 1 0;

        min-width: 0;

        display: flex;

        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 9px;

        padding: 4px 5px;

        box-sizing: border-box;

        text-align: center;
    }

    /* =====================================
       ICON STATISTIK
       selector aslinya adalah
       .ikon-statistik
       ===================================== */
    .ikon-statistik {
        width: 52px;
        height: 52px;

        min-width: 52px;
        min-height: 52px;

        font-size: 1.25rem;

        margin: 0 auto;

        display: flex;

        align-items: center;
        justify-content: center;
    }

    /* =====================================
       ANGKA
       ===================================== */
    .teks-statistik {
        width: 100%;

        text-align: center;
    }

    .teks-statistik h3 {
        font-size: 1.8rem;

        line-height: 1;

        margin: 3px 0 7px;
    }

    /* =====================================
       LABEL STATISTIK
       ===================================== */
    .teks-statistik p {
        font-size: 0.72rem;

        line-height: 1.25;

        margin: 0;

        text-align: center;

        white-space: normal;
    }

    /* =====================================
       PEMISAH VERTIKAL
       ===================================== */
    .pemisah-garis {
        flex: 0 0 1px;

        width: 1px;
        height: auto;

        min-height: 100px;

        margin: 0 3px;

        background-color:
            rgba(255, 255, 255, 0.3);
    }
}