/* Reset Gaya Dasar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    /* Mengambil gambar latar belakang utama dari folder 'img' */
    background: url('../img/back.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    display: flex;
    justify-content: center;
    padding: 20px 15px;
}

.container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ==========================================================================
   TATA LETAK HEADER (Tetap Sama di Desktop & Mobile)
   ========================================================================== */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 0;
}

.logo img {
    max-height: 200px;
    display: block;
}

.auth-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    display: inline-block;
    padding: 20px 40px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border-radius: 9px;
    text-transform: uppercase;
    position: relative;
    color: #fff; /* Mengubah teks menjadi putih agar kontras dengan warna-warni */
    background-size: 400% 400%; /* Diperlukan agar animasi gradien dapat bergerak */
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-login {
    background: linear-gradient(45deg, #27e606, #00ff00, #d2c10a, #33ff00);
    background-size: 400% 400%;
    color: #000; /* Teks login tetap hitam agar mudah dibaca di warna terang */
    animation: glowAnimation 4s ease infinite;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6); /* Cahaya pendaran neon hijau */
}

.btn-register {
    background: linear-gradient(45deg, #27e606, #00ff26, #0ad26e, #07db39, #33ca0d);
    background-size: 400% 400%;
    color: #fff;
    animation: glowAnimation 4s ease infinite;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.6); /* Cahaya pendaran neon ungu */
}

.btn:hover {
    transform: scale(1.05);
}

.btn-login:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 1), 0 0 30px rgba(0, 255, 0, 0.5);
}

.btn-register:hover {
    box-shadow: 0 0 20px rgba(255, 0, 255, 1), 0 0 30px rgba(0, 0, 255, 0.5);
}

@keyframes glowAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================================================
   STRUKTUR HERO GRID BARIS UTAMA
   ========================================================================== */
.main-hero-grid {
    display: grid;
    grid-template-columns: 32% 66%; /* Membagi area kiri kecil, area kanan lebar slider */
    gap: 2%;
    width: 100%;
    align-items: stretch;
}

/* Kotak Teks Informasi Kiri */
.info-card-left {
    background-color: rgba(7, 34, 14, 0.9);
    border: 1px solid #00ff00;
    padding: 15px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.5;
    color: #ccc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    
    /* KUNCI UTAMA: Mengunci ukuran fisik kotak agar tidak ikut membesar */
    overflow-y: auto;           /* Memunculkan scrollbar otomatis jika tulisan kelebihan */
    height: 100%;               /* Mengikuti tinggi kontainer slider di sebelahnya */
    max-height: 100%;           /* Membatasi tinggi maksimal agar tidak jebol ke bawah */
    word-wrap: break-word;      /* Memaksa kata yang terlalu panjang otomatis patah ke baris baru */
}

.info-card-left h2 {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    border-bottom: 1px solid rgba(0, 255, 0, 0.4);
    padding-bottom: 5px;
}

/* Pengaturan Wadah Slider Kanan */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 1px;
    border: 1px solid #00ff00;
    width: 100%;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
}

.social-bar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Tetap 5 kolom sejajar */
    gap: 8px; /* Kerapatan jarak antar kotak */
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* Jarak antara karakter simbol bawaan dan teks */
    padding: 10px 5px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff !important; /* Warna teks dipaksa putih murni */
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    background-color: #0b110c; /* Latar belakang gelap agar pendaran neon kontras */
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.social-btn.whatsapp {
    border: 2px solid #25D366;
    text-shadow: 0 0 5px #25D366, 0 0 10px #25D366;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.4), inset 0 0 8px rgba(37, 211, 102, 0.2);
}
.social-btn.whatsapp:hover {
    background-color: #25D366;
    color: #000000 !important;
    text-shadow: none;
    box-shadow: 0 0 20px #25D366, 0 0 35px #25D366;
}

/* 2. NEON TELEGRAM (Biru Cerah Menyala) */
.social-btn.telegram {
    border: 2px solid #0088cc;
    text-shadow: 0 0 5px #0088cc, 0 0 10px #0088cc;
    box-shadow: 0 0 10px rgba(0, 136, 204, 0.4), inset 0 0 8px rgba(0, 136, 204, 0.2);
}
.social-btn.telegram:hover {
    background-color: #0088cc;
    color: #000000 !important;
    text-shadow: none;
    box-shadow: 0 0 20px #0088cc, 0 0 35px #0088cc;
}

/* 3. NEON LINE (Hijau Daun Menyala) */
.social-btn.line {
    border: 2px solid #06C755;
    text-shadow: 0 0 5px #06C755, 0 0 10px #06C755;
    box-shadow: 0 0 10px rgba(6, 199, 85, 0.4), inset 0 0 8px rgba(6, 199, 85, 0.2);
}
.social-btn.line:hover {
    background-color: #06C755;
    color: #000000 !important;
    text-shadow: none;
    box-shadow: 0 0 20px #06C755, 0 0 35px #06C755;
}

/* 4. NEON FACEBOOK (Biru Tua Menyala) */
.social-btn.facebook {
    border: 2px solid #1877F2;
    text-shadow: 0 0 5px #1877F2, 0 0 10px #1877F2;
    box-shadow: 0 0 10px rgba(24, 119, 242, 0.4), inset 0 0 8px rgba(24, 119, 242, 0.2);
}
.social-btn.facebook:hover {
    background-color: #1877F2;
    color: #000000 !important;
    text-shadow: none;
    box-shadow: 0 0 20px #1877F2, 0 0 35px #1877F2;
}

/* 5. NEON INSTAGRAM (Merah Muda/Pink Menyala) */
.social-btn.instagram {
    border: 2px solid #E1306C;
    text-shadow: 0 0 5px #E1306C, 0 0 10px #E1306C;
    box-shadow: 0 0 10px rgba(225, 48, 108, 0.4), inset 0 0 8px rgba(225, 48, 108, 0.2);
}
.social-btn.instagram:hover {
    background-color: #E1306C;
    color: #000000 !important;
    text-shadow: none;
    box-shadow: 0 0 20px #E1306C, 0 0 35px #E1306C;
}

/* ==========================================================================
   TIGA KOTAK KONTEN BAWAH (Grid 3 Kolom Sejajar)
   ========================================================================== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
}

.card {
    border: 1px solid #00ff00; /* Bingkai kustom Anda */
    border-radius: 4px;
    overflow: hidden; /* Memotong bagian gambar yang keluar dari sudut melengkung boks */
    position: relative;
    background-color: #07220e;
    width: 100%; /* Memastikan lebar boks mengikuti grid */
    aspect-ratio: 1.15 / 1; /* Mengunci rasio bentuk boks */
    display: flex; /* Membantu menyelaraskan konten di dalamnya */
    align-items: center;
    justify-content: center;
}

.slider-container {
        width: 100% !important;
        aspect-ratio: 16 / 7 !important; /* Mengunci bentuk proporsi spanduk agar tidak berubah melonjong */
        border-width: 1px !important; /* Ketebalan garis disesuaikan tipis di HP */
}

.card img {
    width: 100% !important; /* Memaksa lebar gambar penuh mengikuti lebar boks */
    height: 100% !important; /* Memaksa tinggi gambar penuh mengikuti tinggi boks */
    object-fit: fill; /* Mengisi seluruh ruang boks secara presisi sesuai bentuk kotak */
    display: block;
}

.card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.95) 75%);
    padding: 15px 5px 8px 5px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-box {
    width: 100%;
    background-color: rgba(7, 34, 14, 0.9); /* Transparansi disamakan dengan kotak kiri atas */
    border: 1px solid #00ff00; /* Garis bingkai hijau neon 1px disamakan dengan kotak lainnya */
    border-radius: 4px; /* Kelengkungan sudut disamakan */
    padding: 20px;
    font-size: 11px;
    color: #ccc;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    flex: 2;
}

.footer-brand img {
    max-height: 45px;
    margin-bottom: 8px;
    display: block;
}

.footer-brand p {
    line-height: 1.5;
    text-align: justify;
}

.footer-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links h4 {
    color: #00ff00;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #00ff00; /* Menyala hijau neon saat diarahkan kursor mouse */
}

.footer-copyright {
    border-top: 1px solid rgba(0, 255, 0, 0.2);
    padding-top: 10px;
    text-align: center;
    font-size: 10px;
    color: #666;
}

/* ==========================================================================
   KODE KHUSUS MOBILE RESPONSIVE (MEMAKSA SAMA DENGAN WEB)
   ========================================================================== */
@media screen and (max-width: 768px) {
    body {
        padding: 10px 6px;
    }
    
    .container {
        gap: 10px;
    }

    /* Mencegah logo & tombol turun atau menumpuk di HP */
    .header-section {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .logo img {
        max-height: 50px !important;
    }

    .btn {
        padding: 6px 16px !important;
        font-size: 11px !important;
    }

    /* Memaksa grid hero atas tetap berdampingan lurus lurus ke samping (tidak patah ke bawah) */
    .main-hero-grid {
        display: grid !important;
        grid-template-columns: 32% 67.5% !important; /* Rasio pembagian kolom dikunci persis seperti web */
        gap: 0.5% !important; /* Jarak kerapatan antar kotak dikunci rapat */
        width: 100% !important;
        align-items: stretch !important;
    }

    .slides img {
        width: 100% !important;        /* Memaksa lebar gambar penuh mengikuti boks mobile */
        height: 100% !important;       /* Memaksa tinggi gambar penuh mengikuti boks mobile */
        object-fit: fill !important;   /* Mengisi dan menyesuaikan bentuk penuh ke dalam boks */
        display: block !important;
    }

    social-bar {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 6px !important; /* Celah dirapatkan di HP agar pas */
    }

    .social-btn {
        padding: 8px 2px !important;
        font-size: 8px !important; /* Ukuran teks mengecil di HP agar tidak keluar kotak */
        border-width: 1px !important; /* Garis bingkai neon disesuaikan tipis di HP */
    }

    .info-card-left {
        padding: 8px !important;
        font-size: 6px !important; /* Mengurangi font teks deskripsi secara drastis agar pas di HP */
        line-height: 1.3 !important;
        gap: 4px !important;
        overflow-y: auto !important; /* Tetap mengaktifkan fungsi scroll internal di HP */
        height: 100% !important;
    }

    .info-card-left h2 {
        font-size: 7px !important; /* Mengurangi font judul boks kiri di HP */
    }

    /* Memaksa tiga kotak bawah tetap berjejer 3 kolom di HP */
    .content-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 3px !important;
    }

    .card-title {
        font-size: 8px !important; /* Menyesuaikan ukuran font judul kotak bawah agar rapi di HP */
        padding: 8px 2px 4px 2px !important;
    }
    .footer-box {
        padding: 10px !important;
        font-size: 8px !important;
        gap: 10px !important;
    }

    .footer-inner {
        display: flex !important;
        flex-direction: row !important; /* Dipaksa tetap sejajar kesamping di HP */
        gap: 10px !important;
    }

    .footer-brand img {
        max-height: 25px !important;
    }

    .footer-links h4 {
        font-size: 9px !important;
    }

    .footer-copyright {
        font-size: 7px !important;
    }
}