
:root {
    --primary: #bc13fe; 
    --accent: #ccff00;  
    --bg: #050508;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(188, 19, 254, 0.3);
    --glow: 0 0 25px rgba(188, 19, 254, 0.5);
}

body {
    background-color: var(--bg);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

/* --- Background Animation --- */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

/* --- Attractive Navbar Dock --- */
.nav-cyber {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    width: fit-content;
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 12px 30px;
    z-index: 1000;
    display: flex; gap: 25px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
}
.nav-cyber a { 
    color: #fff; text-decoration: none; font-size: 1.3rem;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.5; position: relative;
}
.nav-cyber a:hover { opacity: 1; color: var(--accent); transform: translateY(-12px); }
.nav-cyber a span {
    position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
    font-size: 0.65rem; background: var(--primary); padding: 4px 10px;
    border-radius: 6px; opacity: 0; transition: 0.3s; pointer-events: none;
    text-transform: uppercase; font-weight: bold;
}
.nav-cyber a:hover span { opacity: 1; top: -50px; }

/* --- Slider / Carousel Hero --- */
.carousel-item {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* Dark overlay agar teks terbaca */
.carousel-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,8,0.3), var(--bg));
    z-index: 1;
}

.hero-content { 
    position: relative;
    z-index: 10; 
    padding: 20px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.5rem, 12vw, 8.5rem);
    font-weight: 700; line-height: 0.85;
    background: linear-gradient(180deg, #fff 40%, var(--primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(var(--glow));
    margin-bottom: 20px;
}

/* Navigasi Slider */
.carousel-control-prev, .carousel-control-next {
    z-index: 15;
    width: 5%;
    opacity: 0.2;
}
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1; }

/* --- Content Styling --- */
.section-padding { padding: 100px 0; }
.tag-line { color: var(--accent); font-weight: 700; letter-spacing: 5px; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 20px; display: block; }
h2.title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 60px; }
.glass-card { background: var(--glass); backdrop-filter: blur(15px); border: 1px solid var(--border); border-radius: 30px; padding: 40px; }

/* STRUCTUR */
/* Container Utama */
.cyber-bagan-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px;
    width: 100%;
}

/* Wrapper per Tingkatan */
.node-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Grid untuk Anak-anak (Horizontal) */
.node-grid {
    display: flex;
    justify-content: center;
    position: relative;
    /* padding-top: 40px; */
    gap: 10px;
}

/* Base Card Style */
.node-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 4px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    min-width: 180px;
    z-index: 2;
}

.node-item.highlight {
    border-color: #FFAD0F;
    box-shadow: 0 0 20px rgba(255, 173, 15, 0.2);
}

.node-item:hover {
    border-color: #009EF7;
    background: rgba(0, 158, 247, 0.1);
    box-shadow: 0 0 15px rgba(0, 158, 247, 0.3);
    transform: translateY(-5px);
}

.node-item .rank {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #009EF7;
    margin-bottom: 5px;
}

.node-item .name {
    display: block;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
}

/* --- LOGIKA GARIS (Sirkuit) --- */

/* Garis Vertikal Turun dari Atasan */
.v-line {
    width: 2px;
    height: 40px;
    background: #009EF7; /* Bisa ganti gradient jika mau */
    position: relative;
}

/* Garis Horizontal Penghubung Antar Anak */
.node-sub {
    position: relative;
    padding-top: 40px;
}

/* Garis Horizontal Utama */
.node-sub::before {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #009EF7;
    width: 50%;
    height: 40px;
}
.node-sub::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    border-top: 2px solid #009EF7;
    width: 50%;
    height: 40px;
}

/* Garis Vertikal Kecil ke Setiap Anak */
.node-sub .node-item::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: #009EF7;
    transform: translateX(-50%);
}

/* Hilangkan garis horizontal yang "off-side" (paling kiri & kanan) */
.node-sub:first-child::before,
.node-sub:last-child::after {
    border-top: none !important;
}

/* Responsif Mobile */
@media (max-width: 992px) {
    .node-grid {
        flex-direction: column;
        align-items: center;
        padding-top: 0;
    }

    .node-grid::before, 
    .node-sub::before, 
    .node-sub::after,
    .node-sub .node-item::before {
        display: none; /* Matikan garis rumit di mobile */
    }

    .node-sub {
        padding-top: 20px;
    }

    /* Garis vertikal sederhana untuk mobile */
    .node-sub::before {
        content: "";
        display: block !important;
        position: absolute;
        top: -20px;
        left: 50%;
        width: 2px;
        height: 20px;
        background: #009EF7;
        border: none !important;
    }
}
/* --- Member Grid --- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 25px; }
.member-card { 
    background: var(--glass); border: 1px solid var(--border); 
    border-radius: 25px; padding: 25px; text-align: center; cursor: pointer; transition: 0.4s; 
}
.member-card:hover { border-color: var(--accent); transform: translateY(-15px); background: rgba(204, 255, 0, 0.05); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.member-card img { width: 100px; height: 100px; border-radius: 20px; object-fit: cover; border: 2px solid var(--primary); margin-bottom: 15px; }

/* --- Piket List Vertical --- */
.piket-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.piket-box { background: rgba(188, 19, 254, 0.03); border: 1px solid var(--border); border-radius: 24px; padding: 30px; border-top: 5px solid var(--primary); transition: 0.3s; }
.piket-box:hover { border-top-color: var(--accent); transform: scale(1.02); background: rgba(188, 19, 254, 0.06); }
.piket-box h4 { font-family: 'Space Grotesk', sans-serif; color: var(--accent); margin-bottom: 25px; font-weight: 700; }
.piket-list { list-style: none; padding: 0; margin: 0; }
.piket-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.piket-list li i { font-size: 0.7rem; color: var(--primary); }

/* --- Modal Custom --- */
.modal-content { background: #0c0b12; border: 1px solid var(--primary); border-radius: 35px; color: #fff; box-shadow: var(--glow); }
.m-profile-img { width: 140px; height: 140px; border-radius: 30px; object-fit: cover; border: 3px solid var(--accent); margin-bottom: 25px; }
.sosmed-box a { width: 45px; height: 45px; display: inline-flex; align-items: center; justify-content: center; background: var(--glass); border-radius: 12px; color: #fff; margin: 0 8px; transition: 0.3s; text-decoration: none; font-size: 1.3rem; }
.sosmed-box a:hover { background: var(--primary); transform: translateY(-5px); }

footer { padding: 80px 0; border-top: 1px solid var(--border); text-align: center; opacity: 0.5; }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3.8rem; }
    .nav-cyber { padding: 10px 20px; gap: 18px; }
    .section-padding { padding: 70px 0; }
}


.btn-cyber {
    position: relative;
    display: inline-block;
    padding: 12px 30px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* Efek kaca tipis */
}

/* Garis Neon di Samping pas Hover */
.btn-cyber:hover {
    color: #fff;
    border-color: #009EF7; /* Warna Biru Metronic */
    background: rgba(0, 158, 247, 0.1);
    box-shadow: 0 0 15px rgba(0, 158, 247, 0.4);
    transform: translateY(-3px);
}

/* Efek "Cutting" Pojok (Cyberpunk look) */
.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-cyber:hover::before {
    left: 100%;
}

/* Styling Responsive */
@media (max-width: 768px) {
    .btn-cyber {
        padding: 10px 20px;
        font-size: 12px;
    }
}


:root {
    --primary: #bc13fe;
    --bg-dark: #050508;
    --glass: rgba(255, 255, 255, 0.08);
}

/* FIX: Min-height agar saat ganti page, footer/pagination tidak melompat ke atas */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    min-height: 600px; 
}

.gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--glass);
    transition: 0.3s;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 10px 25px rgba(188, 19, 254, 0.3); }

/* FIX: Pagination Jarak Lebih Lega */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 60px 0 100px 0; /* Jarak atas bawah ditambah */
}

.pagination button, .page-num {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.page-num.active, .pagination button:hover:not(:disabled) {
    background: var(--primary);
    border-color: transparent;
    box-shadow: 0 0 15px var(--primary);
}

.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

/* Modal tetap sama */
.modal {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px); z-index: 1000; justify-content: center; align-items: center;
}
.modal-content { max-width: 600px; width: 90%; background: #111; border-radius: 20px; overflow: hidden; border: 1px solid var(--primary); }
.modal-content img { width: 100%; display: block; }
.modal-info { padding: 20px; text-align: center; }
.close-btn { position: absolute; top: 20px; right: 30px; font-size: 40px; cursor: pointer; color: white; }