@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --bg-dark: #020b1a;
    --neon-blue: #00e1ff;
    --text-white: #ffffff;
    --text-light: #cce0ff;
    --glass-bg: rgba(2, 11, 26, 0.6);
    --glass-border: rgba(0, 225, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    color: var(--text-white);
    overflow-x: hidden;
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: 100vh;
    position: relative;
    background-color: var(--bg-dark);
}

    body.iframe-body {
        background: transparent !important;
        padding: 0 !important;
        overflow: hidden;
    }

/* ================= BACKGROUND ANIMASI ================= */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    overflow: hidden;
    background: var(--bg-dark);
}

.bg-image {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: url('../img/bg.png') no-repeat center center/cover;
    animation: panBackground 25s infinite alternate linear;
    /* Menggelapkan sedikit background utama dari 0.8 menjadi 0.6 agar teks lebih kontras */
    filter: brightness(0.6) contrast(1.1);
}

@keyframes panBackground {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.08) translate(-1%, -1%);
    }
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
    opacity: 0;
    animation: floatUp infinite ease-in;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }

    50% {
        opacity: 0.6;
        transform: translateY(-50px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

/* ================= HEADER & FOOTER IFRAME ================= */
.header-iframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    border: none;
    z-index: 1000;
}

.footer-iframe {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    border: none;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 50px;
    height: 80px;
    background: rgba(2, 11, 26, 0.4);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    margin-right: auto;
    margin-left: 50px;
}

    .nav-links li a {
        color: var(--text-light);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        transition: 0.3s;
        position: relative;
        padding-bottom: 5px;
    }

        .nav-links li a:hover, .nav-links li a.active {
            color: var(--text-white);
            font-weight: 700;
            text-shadow: 0 0 10px var(--neon-blue);
        }

            .nav-links li a.active::after {
                content: '';
                position: absolute;
                bottom: -2px;
                left: 0;
                width: 100%;
                height: 2px;
                background: var(--neon-blue);
                box-shadow: 0 0 10px var(--neon-blue);
            }

.btn-nav {
    background: rgba(0, 225, 255, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--text-white);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-nav:hover {
        background: var(--neon-blue);
        color: var(--bg-dark);
        box-shadow: 0 0 15px var(--neon-blue);
        transform: scale(1.05);
    }

.footer-content {
    width: 100%;
    height: 40px;
    background: rgba(2, 11, 26, 0.7);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ================= KONTEN HALAMAN ================= */
.page-wrapper {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(0,225,255,0.8);
}

.page-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Grid Cards (Diperbarui agar lebih gelap) */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin-top: 20px;
}

.glass-card {
    /* Mengubah warna kaca menjadi biru sangat gelap dengan opasitas 70% agar teks terbaca jelas */
    background: linear-gradient(135deg, rgba(2, 11, 26, 0.85), rgba(10, 53, 110, 0.6));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 225, 255, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    width: 280px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .glass-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(0, 225, 255, 0.1) 10%, transparent 40%);
        transform: scale(0);
        transition: transform 0.5s;
        z-index: 0;
        pointer-events: none;
    }

    .glass-card:hover::before {
        transform: scale(1);
    }

    .glass-card:hover {
        transform: translateY(-10px) scale(1.02);
        border-color: var(--neon-blue);
        box-shadow: 0 15px 40px rgba(0, 225, 255, 0.3);
    }

    .glass-card i, .glass-card h3, .glass-card p, .glass-card div {
        position: relative;
        z-index: 1;
    }

    .glass-card i {
        font-size: 3.5rem;
        margin-bottom: 15px;
        transition: 0.3s;
    }

    .glass-card:hover i {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px currentColor);
    }

    /* Menambahkan bayangan hitam pada teks agar lebih mencolok */
    .glass-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        font-weight: 700;
        text-shadow: 0 2px 5px rgba(0,0,0,0.9);
    }

    .glass-card p {
        font-size: 0.85rem;
        color: var(--text-light);
        text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    }

.card-green {
    border-top: 4px solid #2ecc71;
}

    .card-green i {
        color: #2ecc71;
    }

.card-blue {
    border-top: 4px solid #3498db;
}

    .card-blue i {
        color: #3498db;
    }

.card-purple {
    border-top: 4px solid #9b59b6;
}

    .card-purple i {
        color: #9b59b6;
    }

.card-teal {
    border-top: 4px solid #1abc9c;
}

    .card-teal i {
        color: #1abc9c;
    }

.card-orange {
    border-top: 4px solid #e67e22;
}

    .card-orange i {
        color: #e67e22;
    }

.btn-primary {
    background: linear-gradient(90deg, #004699, #0077ff);
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 119, 255, 0.6);
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
    cursor: pointer;
}

    .btn-primary:hover {
        transform: scale(1.1);
        box-shadow: 0 0 30px var(--neon-blue);
        background: linear-gradient(90deg, #0077ff, #00e1ff);
        color: var(--bg-dark);
    }

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--neon-blue);
    object-fit: cover;
}

.bottom-labels {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    padding-top: 30px;
}

.bottom-label {
    text-align: center;
    text-decoration: none;
    color: var(--text-white);
    cursor: pointer;
    transition: 0.3s;
    padding: 15px;
    border-radius: 15px;
}

    .bottom-label:hover {
        background: rgba(0,225,255,0.1);
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,225,255,0.2);
    }

    .bottom-label i {
        font-size: 2.5rem;
        color: var(--neon-blue);
        margin-bottom: 10px;
        transition: 0.3s;
    }

    .bottom-label:hover i {
        transform: scale(1.2);
        text-shadow: 0 0 15px var(--neon-blue);
    }

/* ================= MODAL (POPUP) STYLES ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

    .modal-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

.modal-content {
    background: linear-gradient(135deg, rgba(10, 53, 110, 0.9), rgba(2, 11, 26, 0.95));
    border: 1px solid var(--neon-blue);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 650px;
    text-align: center;
    transform: scale(0.8) translateY(20px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 225, 255, 0.2);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
    z-index: 10;
}

    .close-btn:hover {
        color: var(--neon-blue);
        transform: rotate(90deg);
    }

.modal-body {
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 20px;
    flex: 1;
    text-align: left;
}

    .modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .modal-body::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: var(--neon-blue);
        border-radius: 10px;
    }

#modal-img {
    display: none;
    width: 100%;
    height: auto; /* Biarkan tinggi menyesuaikan otomatis dengan lebar */
    max-height: none; /* KUNCI: Hapus batasan tinggi maksimal! */
    object-fit: unset; /* Pastikan tidak ada efek pemotongan (crop) */
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.1);
}

#modal-icon {
    font-size: 4rem;
    color: var(--neon-blue);
    margin-top: 10px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--neon-blue));
    text-align: center;
    display: block;
}

#modal-title {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-align: center;
}

#modal-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: justify;
}

.modal-btn {
    background: var(--neon-blue);
    color: var(--bg-dark);
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    align-self: center;
}

    .modal-btn:hover {
        box-shadow: 0 0 20px var(--neon-blue);
        transform: scale(1.05);
    }
