/* 1. RESET & BASE */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    /* Menambahkan Overlay Gelap agar background tidak terlalu terang */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('images/mahjong-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100dvh;
    font-family: 'Inter', sans-serif;
    color: white;
    overflow-x: hidden;
}

/* 2. LAYOUT SPLIT (KIRI & KANAN) */
.split-layout { 
    display: flex; 
    width: 100%; 
    min-height: 100dvh; 
    align-items: stretch;
}

/* Sisi Kiri: Slideshow & Banner Promo */
.left-side { 
    flex: 1.6; 
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    /* Padding ditingkatkan menjadi 100px agar posisi turun ke bawah */
    padding: 100px 30px 50px 30px; 
    z-index: 5;
}

/* Sisi Kanan: Tempat Glass Card / Tombol Link */
.right-side {
    flex: 1; 
    display: flex;
    justify-content: center;
    /* Mulai dari atas agar sejajar dengan kiri */
    align-items: flex-start; 
    /* Padding atas disamakan (100px) agar sejajar dengan slideshow */
    padding: 100px 20px 50px 20px; 
    z-index: 10;
}

/* 3. GLASS CARD (MENU UTAMA) */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 30px;
    padding: 30px 20px; 
    width: 100%;
    max-width: 370px; 
    text-align: center;
    box-shadow:  0 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.title { 
    font-family: 'Orbitron', sans-serif; 
    color: #d4af37;
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.subtitle { font-size: 0.8rem; margin-bottom: 25px; opacity: 0.7; }

/* 4. BUTTONS */
.link-group { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    margin: 15px 0; 
}

.custom-btn {
    padding: 12px; 
    text-decoration: none; 
    color: #fff; 
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase; 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(0, 0, 0, 0.8);
    border-radius: 50px; 
    transition: 0.3s ease;
    text-align: center;
}

.custom-btn:hover { 
    background: #f1c40f;
    color: #000; 
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.2);
}

/* 5. SLIDESHOW (UKURAN SEDANG) */
.mobile-slider { 
    width: 100%; 
    max-width: 750px; 
    border-radius: 20px; 
    overflow: hidden;
    border: 2px solid rgba(241, 196, 15, 0.2);
    margin-bottom: 25px; 
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
}

.swiper-slide img { width: 100%; display: block; border-radius: 15px; }

/* 6. PROMO GRID (3 KOLOM, 2 BARIS) */
.promo-grid {
    display: none; 
}

@media (min-width: 769px) {
    .promo-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        gap: 12px;
        width: 100%;
        max-width: 750px; 
    }

    .grid-item {
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
        transition: transform 0.3s ease;
    }

    .grid-item img { width: 100%; height: auto; display: block; }
}

/* 7. FOOTER LOGO */
.footer-inside {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-row img {
    height: 32px; 
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin: 5px 8px;
}

.second-row img {
    height: 26px; 
    filter: brightness(0) invert(1);
    opacity: 0.7;
    margin: 5px 8px;
}

.copy-text { 
    /* Menurunkan teks dengan menambah margin atas */
    margin-top: 25px; 
    
    /* Pengaturan gaya teks agar tetap elegan */
    font-size: 0.65rem; 
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.5; /* Memberikan efek agak transparan */
    letter-spacing: 1.5px;
    display: block; /* Memastikan margin bekerja dengan baik */
}

/* 8. RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .split-layout { flex-direction: column; }
    
    .left-side { 
        width: 100%; 
        padding: 40px 15px 10px 15px; /* Padding mobile disesuaikan */
        flex: none; 
    }
    
    .right-side { 
        width: 100%; 
        padding: 10px 15px 30px 15px; 
        flex: none; 
        align-items: center; 
    }
}

/* 9. SNOWFALL */
.snow-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.snow { position: absolute; top: -10px; background: white; border-radius: 50%; opacity: 0.8; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(105dvh); } }