/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', sans-serif;
}

body{
    background: linear-gradient(to bottom,#0ea5e9,#67e8f9,#a5f3fc);
    overflow-x:hidden;
    color:white;
}

/* ================= BACKGROUND DONGENG ================= */

/* LANGIT */
body::before{
    content:"";
    position:fixed;
    width:100%;
    height:100%;
    background: radial-gradient(circle at top,#38bdf8,#0ea5e9,#0284c7);
    z-index:-3;
}

/* AWAN */
.awan{
    position:fixed;
    top:50px;
    width:200px;
    opacity:0.8;
    animation:awan 60s linear infinite;
}
@keyframes awan{
    from{transform:translateX(-200px);}
    to{transform:translateX(120vw);}
}

/* HUJAN */
.hujan{
    position:fixed;
    width:2px;
    height:20px;
    background:white;
    opacity:0.3;
    top:-20px;
    animation:hujan 5s linear infinite;
}
@keyframes hujan{
    to{transform:translateY(110vh);}
}

/* LAUT */
.laut{
    position:fixed;
    bottom:0;
    width:100%;
    height:120px;
    background:linear-gradient(to top,#0369a1,#38bdf8);
    border-radius:50% 50% 0 0;
    animation:gelombang 4s ease-in-out infinite alternate;
}
@keyframes gelombang{
    from{transform:translateY(0);}
    to{transform:translateY(15px);}
}

/* ================= HEADER ================= */
header{
    text-align:center;
    padding:120px 20px 80px;
}

header h1{
    font-size:40px;
    text-shadow:0 0 20px rgba(255,255,255,0.6);
}

header p{
    margin-top:10px;
    opacity:0.9;
}

/* ================= NAV ================= */
nav ul{
    display:flex;
    justify-content:center;
    gap:25px;
    list-style:none;
    background:rgba(255,255,255,0.2);
    backdrop-filter:blur(10px);
    padding:12px 25px;
    border-radius:50px;
    width:fit-content;
    margin:auto;
}

nav a{
    text-decoration:none;
    color:white;
    font-weight:bold;
}

/* ================= MAIN ================= */
main{
    width:85%;
    margin:60px auto;
}

/* GRID */
.fitur{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

/* CARD */
.kotak{
    background:rgba(255,255,255,0.15);
    backdrop-filter:blur(15px);
    border-radius:20px;
    padding:25px;
    transition:0.4s;
    cursor:pointer;
    text-align:center;
    position:relative;
}

/* efek glow */
.kotak::before{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    background:linear-gradient(45deg,transparent,rgba(255,255,255,0.3),transparent);
    opacity:0;
    transition:0.4s;
}

.kotak:hover::before{
    opacity:1;
}

/* hover */
.kotak:hover{
    transform:translateY(-12px) scale(1.05);
    box-shadow:0 0 30px rgba(255,255,255,0.4);
}

/* gambar */
.gambar{
    width:100px;
    margin-bottom:10px;
}

/* BUTTON */
.btn{
    display:inline-block;
    margin-top:10px;
    padding:8px 15px;
    background:white;
    color:#0284c7;
    border-radius:20px;
    text-decoration:none;
    font-size:13px;
}

/* BACK */
.back{
    text-align:center;
    margin:40px;
}

.back a{
    color:white;
    text-decoration:none;
}

/* FOOTER */
footer{
    text-align:center;
    padding:20px;
    margin-top:60px;
}
/* POPUP FULLSCREEN */
.popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    justify-content:center;
    align-items:center;
    backdrop-filter:blur(6px);
}

/* BOX */
.popup-content{
    background:linear-gradient(135deg,#4a7fb9,#f1f5f9);
    padding:25px;
    border-radius:15px;
    width:320px;
    text-align:center;
    animation:zoom 0.3s ease;
}

/* ANIMASI MASUK */
@keyframes zoom{
    from{
        transform:scale(0.7);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

/* CLOSE */
.close{
    position:absolute;
    top:10px;
    right:15px;
    font-size:22px;
    cursor:pointer;
}

/* LIST */
.popup-content ul{
    text-align:left;
    margin-top:10px;
}
/* ===== FIX TOTAL AGAR SEMUA BISA DIKLIK ===== */

/* hilangkan gangguan pseudo element */
.kotak::before,
.kotak::after{
    pointer-events: none !important;
}

/* pastikan card tidak nutup */
.kotak{
    position: relative;
    z-index: 1;
}

/* tombol HARUS di atas */
.btn{
    position: relative;
    z-index: 9999;
    pointer-events: auto;
}

/* link juga */
a{
    pointer-events: auto;
}

/* iframe jangan ganggu klik */
iframe{
    pointer-events: auto;
}
.video-box{
    position:relative;
    width:100%;
    height:200px;
    margin-bottom:10px;
}

.video-box iframe{
    width:100%;
    height:100%;
    border:none;
}
a {
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.kotak {
    pointer-events: auto;
}
/* ================= FIX POPUP ================= */

/* BIKIN POPUP SELALU DI ATAS */
.popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    justify-content:center;
    align-items:center;
    z-index:9999; /* INI KUNCINYA */
}

/* ISI POPUP */
.popup-content{
    background:linear-gradient(135deg,#1e3a8a,#2563eb,#0ea5e9);
    color:white; /* INI PENTING */
    padding:25px;
    border-radius:20px;
    width:90%;
    max-width:400px;
    text-align:left;
    position:relative;
    animation:muncul 0.3s ease;
    box-shadow:0 20px 50px rgba(0,0,0,0.3);
}

/* ANIMASI */
@keyframes muncul{
    from{
        transform:translateY(50px) scale(0.9);
        opacity:0;
    }
    to{
        transform:translateY(0) scale(1);
        opacity:1;
    }
}

/* TOMBOL CLOSE */
.close{
    position:absolute;
    top:10px;
    right:15px;
    font-size:22px;
    cursor:pointer;
    color:#1e3a8a;
}

/* BIAR BACKGROUND NGGAK KEKLIK */
body.popup-active{
    overflow:hidden;
}