/* ======================================================= */
/* === 1. PENGATURAN DASAR & FONT                      === */
/* ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;500;700&display=swap');

:root {
    --maroon-accent: #990000;
    --gold-accent: #D4AF37;
    --dark-bg: #000000;
    --dark-surface: #181818;
    --text-primary: #FFFFFF;
    --text-secondary: #C0C0C0;
    --border-color: rgba(255, 255, 255, 0.1);
    --maroon-glow: #330000; 
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    background-color: #000000;
    background-image:
        url("data:image/svg+xml,%3Csvg width='2000' height='2000' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CanimateTransform attributeName='transform' type='translate' from='0 0' to='0 -2000' dur='250s' repeatCount='indefinite'/%3E%3C/defs%3E%3Ccircle fill='%23fff' cx='250' cy='300' r='1'/%3E%3Ccircle fill='%23fff' cx='750' cy='100' r='1'/%3E%3Ccircle fill='%23fff' cx='1250' cy='800' r='1'/%3E%3Ccircle fill='%23fff' cx='1750' cy='400' r='1'/%3E%3Ccircle fill='%23fff' cx='500' cy='1200' r='1'/%3E%3Ccircle fill='%23fff' cx='1000' cy='1800' r='1'/%3E%3Ccircle fill='%23fff' cx='1500' cy='1400' r='1'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='2000' height='2000' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CanimateTransform attributeName='transform' type='translate' from='0 0' to='0 -2000' dur='350s' repeatCount='indefinite'/%3E%3C/defs%3E%3Ccircle fill='%23fff' cx='400' cy='600' r='1.5'/%3E%3Ccircle fill='%23fff' cx='900' cy='1100' r='1.5'/%3E%3Ccircle fill='%23fff' cx='1400' cy='200' r='1.5'/%3E%3Ccircle fill='%23fff' cx='1900' cy='1600' r='1.5'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='2000' height='2000' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CanimateTransform attributeName='transform' type='translate' from='0 0' to='0 -2000' dur='450s' repeatCount='indefinite'/%3E%3C/defs%3E%3Ccircle fill='%23fff' cx='100' cy='1500' r='2'/%3E%3Ccircle fill='%23fff' cx='600' cy='900' r='2'/%3E%3Ccircle fill='%23fff' cx='1100' cy='500' r='2'/%3E%3Ccircle fill='%23fff' cx='1600' cy='1900' r='2'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 50% 0%, var(--maroon-glow) 0%, transparent 60%);
    background-attachment: fixed;
    background-repeat: repeat-y;
    background-position: center 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
main { padding-top: 120px; }

/* --- 2. KOMPONEN UMUM (Tombol, Section, dll.) --- */
main { padding-top: 100px; }
.section-title { text-align: center; font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 15px; color: var(--text-primary); }
.section-subtitle { text-align: center; font-size: 1rem; color: var(--gold-accent); margin-bottom: 60px; text-transform: uppercase; letter-spacing: 2px; }

.btn {
    display: inline-block; background: var(--maroon-accent); color: var(--text-primary);
    border: 2px solid var(--maroon-accent); padding: 14px 40px; text-decoration: none;
    border-radius: 50px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 25px rgba(153, 0, 0, 0.5);
}
.btn:hover { background: transparent; color: var(--maroon-accent); box-shadow: none; transform: translateY(-3px); }
.btn.btn-secondary { background: transparent; color: var(--text-secondary); border-color: var(--border-color); box-shadow: none; }
.btn.btn-secondary:hover { background: var(--dark-surface); color: var(--text-primary); border-color: var(--text-secondary); }

/* --- 3. NAVIGASI --- */
.navbar {
    width: 100%; padding: 1.5rem 0; position: fixed; top: 0; z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar .logo { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--text-primary); text-decoration: none; z-index: 2001; }

.navbar .nav-links ul { list-style: none; display: flex; gap: 15px; }
.navbar .nav-links ul li a {
    color: var(--text-secondary); text-decoration: none; font-weight: 500;
    padding: 10px 15px; border-radius: 8px; position: relative;
    transition: color 0.3s, background-color 0.3s;
}
.navbar .nav-links ul li a:hover { background-color: rgba(255, 255, 255, 0.05); color: var(--text-primary); }
.navbar .nav-links ul li a.active { color: var(--text-primary); font-weight: 700; }
.navbar .nav-links ul li a.active::after {
    content: ''; position: absolute; bottom: -5px;
    left: 15px; right: 15px; height: 2px;
    background-color: var(--maroon-accent);
}

.hamburger { display: none; }

/* --- 4. HERO SECTION --- */
.hero { min-height: 100vh; display: flex; justify-content: center; align-items: center; text-align: center; }
.hero-content {
    max-width: 850px; opacity: 0; transform: translateY(30px);
    animation: fadeInUp 1s ease 0.5s forwards;
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 6.5rem; margin-bottom: 1.5rem; line-height: 1.1; color: var(--text-primary); }
.hero p { font-size: 1.3rem; margin-bottom: 3rem; color: var(--text-secondary); }
.hero-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* --- 5. KARTU-KARTU (Kegiatan, Aspirasi, Eskul) --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.card-link { text-decoration: none; color: inherit; }
.card {
    background: rgba(24, 24, 24, 0.25); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-color);
    border-radius: 12px; overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    opacity: 0; transform: translateY(50px);
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); background: rgba(40, 40, 40, 0.4); }
.card.visible { opacity: 1; transform: translateY(0); }
.card-img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-img { transform: scale(1.05); }
.card-content { padding: 30px; flex-grow: 1; }
.card-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 10px; color: var(--text-primary); }
.card-meta { font-size: 0.8rem; color: var(--gold-accent); font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.card-text { color: var(--text-secondary); font-size: 0.95rem; }

/* Variasi Kartu Transparan untuk Eskul */
.card--transparent { background: transparent; border: none; box-shadow: none !important; text-align: center; }
.card--transparent:hover { background: transparent; transform: translateY(-10px); }
.card--transparent .card-img { height: 250px; object-fit: contain; padding: 20px; background-color: transparent; }
.card--transparent:hover .card-img { transform: scale(1.05); }
.card--transparent .card-content { border-top: 1px solid var(--border-color); }

/* --- 6. HALAMAN ANGGOTA & DETAIL --- */
.page-navigation-wrapper { padding-top: 120px; padding-bottom: 100px; }
.filter-container { text-align: center; margin-bottom: 40px; }
.filter-container select { background-color: var(--dark-surface); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 5px; padding: 10px 15px; font-family: 'Inter', sans-serif; font-size: 1rem; }
.tabs { display: flex; justify-content: center; margin-bottom: 50px; border: 1px solid var(--border-color); border-radius: 50px; padding: 5px; max-width: 400px; margin-left: auto; margin-right: auto; background-color: rgba(0,0,0,0.2); }
.tab-link { flex: 1; padding: 12px 20px; text-align: center; cursor: pointer; font-weight: 500; color: var(--text-secondary); border-radius: 50px; transition: all 0.3s ease; }
.tab-link:hover { background-color: var(--dark-surface); }
.tab-link.active { background-color: var(--maroon-accent); color: var(--text-primary); box-shadow: 0 0 15px rgba(153, 0, 0, 0.5); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeInSimple 0.4s ease; }
@keyframes fadeInSimple { from { opacity: 0; } to { opacity: 1; } }
.org-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--gold-accent); text-align: center; margin-top: 60px; margin-bottom: 40px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
.card-grid-anggota { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.card-anggota { background: var(--dark-surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-anggota:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.card-img-anggota { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; display: block; border-bottom: 1px solid var(--border-color); }
.card-anggota-content { padding: 25px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-grow: 1; }
.card-anggota-content h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--text-primary); margin: 0 0 15px 0; }
.card-anggota-content p { background-color: var(--gold-accent); color: var(--dark-bg); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin: 0 0 15px 0; }
.card-anggota-content .instagram-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.card-anggota-content .instagram-link:hover { color: var(--gold-accent); }
.card-anggota-content .instagram-link svg { width: 18px; height: 18px; }
.content-block { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.content-block .content-block__image { width: 100%; max-width: 400px; justify-self: center; margin: 0 auto; }
.content-block .content-block__image img { width: 100%; height: auto; display: block; border-radius: 8px; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
.master-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; padding: 15px; border-bottom: 1px solid var(--border-color); margin-bottom: 80px; }
.master-tab-link { color: var(--text-secondary); text-decoration: none; padding: 10px 25px; border-radius: 50px; font-weight: 500; transition: all 0.3s ease; border: 1px solid transparent; }
.master-tab-link:hover { color: var(--text-primary); border-color: var(--border-color); }
.master-tab-link.active { background-color: var(--maroon-accent); color: var(--text-primary); }

/* --- 7. HALAMAN GALERI --- */
.tab-content { margin-bottom: 100px; }
.galeri-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.galeri-item { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--border-color); aspect-ratio: 4 / 3; cursor: pointer; background-color: #000000; display: flex; align-items: center; justify-content: center; }
.galeri-item img, .galeri-item video { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.4s ease; }
.galeri-item:hover img { transform: scale(1.05); }
.media-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 40px 20px 20px; display: flex; justify-content: space-between; align-items: center; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none; }
.galeri-item:hover .media-overlay { opacity: 1; transform: translateY(0); }
.media-caption { color: var(--text-primary); font-weight: 500; font-size: 0.9rem; }
.btn-download { position: absolute; top: 15px; left: 15px; z-index: 5; background: var(--maroon-accent); color: white; padding: 8px 15px; text-decoration: none; border-radius: 5px; font-size: 0.8rem; font-weight: bold; transition: all 0.3s; opacity: 0; transform: translateY(-10px); }
.galeri-item:hover .btn-download { opacity: 1; transform: translateY(0); }
.btn-download:hover { background: var(--gold-accent); color: var(--dark-bg); }

/* --- 8. MODAL & LIGHTBOX (UNIVERSAL) --- */
.modal-overlay, .lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 9999; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.visible, .lightbox-overlay.visible { display: flex; opacity: 1; }
.modal-content { background: var(--dark-surface); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); text-align: center; width: 90%; max-width: 500px; position: relative; animation: fadeInModal 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
@keyframes fadeInModal { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-close { position: absolute; top: 10px; right: 20px; font-size: 2.5rem; color: var(--text-secondary); cursor: pointer; transition: color 0.3s, transform 0.3s; }
.modal-close:hover { color: var(--text-primary); transform: rotate(90deg); }
.modal-content h2 { font-family: 'Playfair Display', serif; color: var(--gold-accent); margin-bottom: 15px; }
.modal-content p { color: var(--text-secondary); line-height: 1.8; }
.lightbox-content { position: relative; max-width: 1000px; width: 90%; max-height: 85vh; }
.lightbox-content img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: -45px; right: 0; font-size: 2.5rem; color: #fff; cursor: pointer; text-decoration: none; }

/* --- 9. TOMBOL SCROLL TO TOP --- */
#scrollToTopBtn { position: fixed; bottom: 30px; right: 30px; z-index: 1000; width: 50px; height: 50px; background: rgba(40, 40, 40, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; color: var(--text-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
#scrollToTopBtn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollToTopBtn:hover { background: var(--gold-accent); color: var(--dark-bg); transform: translateY(-5px); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3); }

/* --- 10. FOOTER --- */
.footer { background-color: #000000; color: #888; text-align: center; padding: 3rem 0; border-top: 1px solid var(--border-color); }
.footer p { margin: 0; }


/* ======================================================= */
/* === 11. TAMPILAN MOBILE (RESPONSIVE)                === */
/* ======================================================= */

@media (max-width: 992px) { /* Breakpoint untuk Tablet */
    .card-grid-anggota { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) { /* Breakpoint untuk Mobile */
    
    /* Umum */
    .section { padding: 100px 0; }
    .hero h1 { font-size: 3.5rem; }
    .hero p { font-size: 1.1rem; }
    
    /* Navigasi Mobile */
    .navbar .container { padding: 0 25px; }
    .nav-links {
        position: fixed; top: 0; right: 0; z-index: 2000;
        width: 70%; height: 100vh; background-color: var(--dark-surface);
        display: flex; justify-content: center; align-items: center;
        transform: translateX(100%); transition: transform 0.5s ease-in-out;
    }
    .nav-links ul { display: none; } /* Sembunyikan menu desktop */
    .nav-links.open { transform: translateX(0%); }
    .nav-links.open ul {
        display: flex; flex-direction: column;
        align-items: center; gap: 30px;
    }
    .nav-links.open ul li a { font-size: 1.2rem; }
    .nav-links.open ul li a.active::after { bottom: 0; }
    
    .hamburger {
        display: flex; flex-direction: column; justify-content: space-around;
        width: 30px; height: 25px; cursor: pointer; z-index: 2001;
    }
    .hamburger span {
        display: block; width: 100%; height: 3px;
        background-color: var(--text-primary); border-radius: 3px;
        transition: all 0.3s ease;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

    /* Layout Grid di Mobile */
    .card-grid-anggota { grid-template-columns: repeat(2, 1fr); }
    .aspirasi-grid { grid-template-columns: 1fr; }
    .content-block { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 576px) { /* Breakpoint untuk Mobile Kecil */
    .card-grid-anggota { grid-template-columns: 1fr; }
}
/* --- MODERN DROPDOWN STYLE --- */

.filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

/* Wrapper biar label & select sejajar rapi */
.custom-select-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05); /* Background transparan */
    padding: 8px 25px 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* Efek Hover pada container */
.custom-select-wrapper:hover {
    border-color: var(--gold-accent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.filter-container label {
    font-family: 'Playfair Display', serif;
    color: var(--gold-accent);
    font-size: 1.1rem;
    white-space: nowrap;
}

.filter-container select {
    /* MEMATIKAN STYLE JADUL BAWAAN BROWSER */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding-right: 25px; /* Ruang untuk panah kustom */
    outline: none;

    /* Menambahkan panah kustom warna emas (SVG) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23D4AF37' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 12px;
}

/* Style untuk Pilihan (Dropdown List saat dibuka) */
.filter-container select option {
    background-color: #1a1a1a; /* Background hitam pas dibuka */
    color: #fff;
    padding: 10px;
}
/* --- CUSTOM DROPDOWN STYLE (PREMIUM) --- */

.filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 100; /* Supaya dropdown muncul di atas elemen lain */
}

.custom-dropdown-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dropdown-label {
    font-family: 'Playfair Display', serif;
    color: var(--gold-accent);
    font-size: 1.1rem;
}

.custom-dropdown {
    position: relative;
    width: 200px; /* Lebar dropdown */
    font-family: 'Inter', sans-serif;
}

/* Tombol Dropdown Utama */
.dropdown-selected {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-selected:hover {
    border-color: var(--gold-accent);
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: var(--gold-accent);
}

/* Kalau dropdown dibuka, panahnya muter */
.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* List Pilihan (Kotak Bawah) */
.dropdown-options {
    position: absolute;
    top: 110%; /* Muncul sedikit di bawah tombol */
    left: 0;
    width: 100%;
    background: #1a1a1a; /* Warna Hitam Elegan */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: none; /* Default sembunyi */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: fadeInDropdown 0.2s ease;
}

/* Animasi Muncul Halus */
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-dropdown.open .dropdown-options {
    display: block;
}

/* Item Pilihan */
.dropdown-item {
    padding: 12px 20px;
    color: #ccc;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Efek Hover Keren (Merah Maroon) */
.dropdown-item:hover {
    background: var(--maroon-accent);
    color: #fff;
    padding-left: 25px; /* Efek geser dikit pas di hover */
}

/* Item yang sedang aktif */
.dropdown-item.active {
    background: var(--gold-accent);
    color: #000;
    font-weight: bold;
}