/* Reset CSS Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    width: 100%;
    overflow: hidden; /* Mencegah scroll pada desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4;
}

/* Background Image & Overlay Hijau Kebiruan */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Ganti URL di bawah dengan foto sekolah asli */
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1...'); 
    background-size: cover;
    background-position: center;
}

.bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* PENGATURAN WARNA & TRANSPARANSI ADA DI BAWAH INI */
    
    /* Format: rgba(Merah, Hijau, Biru, TRANSPARANSI) */
    background: linear-gradient(135deg, 
        rgba(0, 100, 100, 0.7),  /* Warna 1 (Atas Kiri) */
        rgba(0, 50, 80, 0.8)     /* Warna 2 (Bawah Kanan) */
    );
}

/* Container Utama */
.container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Bagian Kiri (Teks & Menu) */
.main-content {
    flex: 2;
    color: white;
}

header {
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

header .subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    border-left: 4px solid #ffd700; /* Aksen kuning emas */
    padding-left: 10px;
}

/* Grid Menu Tombol */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Kolom */
    gap: 15px;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 15px 20px;
    border-radius: 50px; /* Rounded pill shape */
    font-size: 0.95rem;
    font-weight: 600;
    color: #004d40;
    cursor: pointer;
    text-align: left;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Efek Hover Halus */
.menu-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: #ffffff;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    color: #00796b;
}

.menu-btn:active {
    transform: translateY(1px);
}

/* Bagian Kanan (Panel Logo) */
.side-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.main-logo img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid white;
}

.ekskul-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ekskul-item {
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: 0.3s;
    cursor: default;
}

.ekskul-item:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* Modal Popup Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.6); 
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 15% auto; 
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 5px;
}

.close-btn:hover { color: #000; }

@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes slideIn { from {transform: translateY(-20px);} to {transform: translateY(0);} }

/* Responsiveness (Mobile) */
@media screen and (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 20px 0;
    }

    .container {
        flex-direction: column;
        width: 95%;
    }

    .main-content {
        order: 2;
        width: 100%;
    }

    .side-panel {
        order: 1;
        margin-bottom: 20px;
    }

    .logo-wrapper {
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 20px;
    }
    
    .ekskul-grid { display: none; /* Sembunyikan ikon ekskul di HP agar rapi */ }
    .main-logo img { width: 80px; height: 80px; margin-bottom: 0; }

    header h1 { font-size: 1.5rem; text-align: center; }
    header .subtitle { text-align: center; border: none; }
    
    .menu-grid {
        grid-template-columns: 1fr; /* 1 Kolom di HP */
    }
}