/* =========================================
   1. VARIABLES & GLOBAL
   ========================================= */
:root {
    --bg-color: #0f0c29;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-sec: #a0a0a0;
    --wa-color: #25D366;
    --accent-gold: #f1c40f;
    --accent-blue: #3498db;
    --nav-bg: rgba(15, 12, 41, 0.95);
}

body {
    margin: 0; padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    color: var(--text-main);
    overflow-x: hidden;
    padding-bottom: 100px;
}

/* Background Particles */
body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.2) 0%, transparent 25%), 
                      radial-gradient(circle at 85% 30%, rgba(41, 128, 185, 0.2) 0%, transparent 25%);
    z-index: -1; pointer-events: none;
}

/* =========================================
   2. HEADER (LAYOUT HORIZONTAL RAPI)
   ========================================= */
header {
    width: 100%; padding: 25px 20px 10px 20px; /* Padding bawah dikurangi */
    box-sizing: border-box; animation: fadeInDown 1s ease-out;
}

.header-container {
    display: flex; flex-direction: row; 
    align-items: center; justify-content: center;
    gap: 15px; max-width: 800px; margin: 0 auto;
}

.main-logo {
    width: 55px; height: auto; flex-shrink: 0; display: block;
    filter: drop-shadow(0 5px 10px rgba(0, 198, 255, 0.3));
    animation: floatLogo 5s ease-in-out infinite;
}

.header-text {
    display: flex; flex-direction: column; text-align: left;
}

.header-text h1 {
    margin: 0; line-height: 1; font-size: 1.6rem; font-weight: 800;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.header-text .subtitle {
    margin: 4px 0 0 0; text-align: left; font-size: 0.85rem; color: var(--text-sec);
}

/* =========================================
   3. MENU GRID (COMPACT & RAPI)
   ========================================= */
.container {
    width: 100%; max-width: 1000px; padding: 15px; /* Padding dikurangi */
    box-sizing: border-box; display: block;
}

.section-label {
    color: white; margin: 25px 0 10px 0; /* Jarak atas label ditambah agar tidak menumpuk */
    border-left: 3px solid #fff;
    padding-left: 10px; font-weight: 600; 
    letter-spacing: 1px; font-size: 0.9rem;
}

/* Grid Layout: Default Mobile 2 Kolom */
.app-grid {
    display: grid;
    /* PENTING: Menggunakan repeat(2, 1fr) memaksa 2 kolom di semua layar kecil */
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; /* Jarak antar kartu dirapatkan */
}

/* Untuk Tablet/Desktop: Bisa lebih dari 2 kolom */
@media (min-width: 600px) {
    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
}

/* KARTU MENU (COMPACT) */
.card {
    background: var(--card-bg); 
    border: 1px solid var(--card-border);
    border-radius: 12px; 
    padding: 15px 10px; /* Padding Atas-Bawah 15px, Kiri-Kanan 10px */
    text-decoration: none; color: white;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: transform 0.2s ease, background 0.2s;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    position: relative; overflow: hidden;
    animation: fadeInUp 0.6s backwards;
    /* Menghapus height:100% dan min-height agar kartu memadat (fit content) */
    height: auto; 
}

.card:hover { 
    transform: translateY(-3px); 
    background: rgba(255, 255, 255, 0.1); 
    border-color: var(--accent-blue);
}

/* Icon Box (Diperkecil) */
.icon-box { 
    width: 45px; height: 45px; /* Ukuran icon diperkecil */
    border-radius: 50%; 
    display: flex; justify-content: center; align-items: center; 
    margin-bottom: 10px; /* Jarak ke teks diperkecil */
    background: rgba(255,255,255,0.05); 
    box-shadow: inset 1px 1px 3px rgba(255,255,255,0.1);
}

.icon-box svg { 
    width: 24px; height: 24px; /* Icon SVG diperkecil */
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3)); 
}

.card-title { 
    font-size: 0.75rem; /* Font diperkecil agar muat 1 baris */
    font-weight: 600; 
    margin: 0; 
    line-height: 1.2;
    text-transform: uppercase; /* Huruf Besar Semua */
    letter-spacing: 0.5px;
}

/* Menghapus Efek Shine yang bikin error tampilan */
.card::after { display: none; }

/* =========================================
   4. LAIN-LAIN (Nav, Profil, Gallery)
   ========================================= */
.accordion-section { width: 100%; max-width: 1000px; padding: 15px; box-sizing: border-box; animation: fadeInUp 1s ease-out; }
.accordion { background: rgba(255,255,255,0.08); color: white; cursor: pointer; padding: 15px 20px; width: 100%; border: 1px solid var(--card-border); text-align: left; outline: none; font-size: 1rem; transition: 0.4s; border-radius: 10px; margin-bottom: 8px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(5px); }
.accordion.active, .accordion:hover { background: rgba(52, 152, 219, 0.15); border-color: var(--accent-blue); }
.accordion:after { content: '+'; font-size: 1.2rem; color: var(--accent-blue); transition: transform 0.3s; }
.accordion.active:after { transform: rotate(45deg); }
.panel { padding: 0 15px; background-color: transparent; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; margin-bottom: 10px; color: #dcdcdc; font-size: 0.9rem; line-height: 1.6; }

/* Org Chart */
.org-container { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 20px 0; }
.org-row { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.org-box { background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); padding: 15px; border-radius: 10px; text-align: center; min-width: 200px; backdrop-filter: blur(5px); }
.role { font-size: 0.7rem; text-transform: uppercase; color: var(--accent-gold); display: block; margin-bottom: 5px; }
.name { font-size: 0.9rem; font-weight: 600; color: white; }

/* Gallery & Lightbox */
.gallery-container { max-width: 1000px; margin: 0 auto; padding: 15px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-item { background: var(--card-bg); border-radius: 10px; overflow: hidden; position: relative; height: 180px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.caption-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); padding: 8px; color: white; font-size: 0.8rem; font-weight: 600; }
.lightbox { display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); justify-content: center; align-items: center; flex-direction: column; backdrop-filter: blur(5px); }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 80vh; border-radius: 10px; }
.close-lightbox { position: absolute; top: 20px; right: 20px; color: white; font-size: 2rem; cursor: pointer; }

/* Bottom Nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; height: 65px; background: var(--nav-bg); backdrop-filter: blur(15px); border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-around; align-items: center; z-index: 900; border-top-left-radius: 20px; border-top-right-radius: 20px; box-shadow: 0 -5px 20px rgba(0,0,0,0.5); }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-sec); cursor: pointer; width: 60px; text-decoration: none; }
.nav-item span { font-size: 0.6rem; margin-top: 4px; }
.nav-item svg { width: 20px; height: 20px; fill: var(--text-sec); }
.nav-item:hover, .nav-item.active { color: white; }
.nav-item:hover svg, .nav-item.active svg { fill: white; }
.nav-item.center-btn { position: relative; top: -20px; }
.nav-item.center-btn .circle-btn { width: 50px; height: 50px; background: linear-gradient(135deg, #00c6ff, #0072ff); border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 4px solid var(--bg-color); box-shadow: 0 5px 15px rgba(0,114,255,0.4); }
.nav-item.center-btn svg { fill: white; width: 24px; height: 24px; }

/* Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 1000; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; }
.modal-box { background: rgba(30, 30, 40, 0.95); border: 1px solid rgba(255,255,255,0.1); width: 100%; max-width: 350px; border-radius: 15px; padding: 25px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.modal-overlay.active { display: flex; }
.input-group { margin-bottom: 15px; text-align: left; }
.input-group label { display: block; font-size: 0.8rem; color: #ccc; margin-bottom: 5px; }
.input-group input, .input-group textarea { width: 100%; padding: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; color: white; box-sizing: border-box; }
.btn-send { width: 100%; padding: 12px; background: var(--wa-color); color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }
.close-modal { position: absolute; top: 15px; right: 20px; cursor: pointer; font-size: 1.5rem; color: #aaa; }

/* Animations */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatLogo { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
/* =========================
   STYLE TAMBAHAN MODAL KONTAK
   ========================= */

.modal-info-box {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-logo-small {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.modal-address {
    font-size: 0.85rem;
    color: #ccc;
    margin: 5px 0;
    line-height: 1.4;
}

.modal-email {
    font-size: 0.9rem;
    color: var(--accent-blue); /* Warna Biru sesuai tema */
    font-weight: bold;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* =========================
   FOTO FRAME 3D REALISTIK
   ========================= */
.photo-frame-3d {
    position: relative;
    border-radius: 15px;
    margin: 30px 0;
    /* Efek Layering Shadow untuk kedalaman 3D */
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.5),        /* Bayangan utama */
        0 5px 15px rgba(0,0,0,0.3),         /* Bayangan sekunder */
        inset 0 0 0 1px rgba(255,255,255,0.1), /* Border tipis */
        inset 0 0 20px rgba(255,255,255,0.05); /* Inner Glow */
    background: rgba(255,255,255,0.02);
    padding: 10px; /* Jarak antara foto dan bingkai luar */
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: hidden;
}

.photo-frame-3d:hover {
    transform: translateY(-10px) rotateX(2deg); /* Efek angkat saat hover */
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.6),
        0 10px 30px rgba(52, 152, 219, 0.2), /* Glow biru tipis saat hover */
        inset 0 0 0 1px rgba(255,255,255,0.2);
}

.photo-frame-3d img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    filter: contrast(1.1) saturate(1.1); /* Sedikit pop-up warna foto */
}

/* Label Caption pada Foto (Opsional, agar terlihat pro) */
.frame-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(5px);
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(100px); /* Sembunyi dulu */
    opacity: 0;
    transition: all 0.4s ease;
}

.photo-frame-3d:hover .frame-caption {
    transform: translateY(0); /* Muncul saat hover */
    opacity: 1;
}