/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /* Gradasi linear */
    background: linear-gradient(135deg, #7dd3fc 0%, #1e3a8a 50%, #15803d 100%);
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
    color: #f8fafc;
    
    /* Layout utama */
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    align-items: center;
    min-height: 100vh; /* Menggunakan 100vh memastikan tinggi penuh layar */
    overflow-x: hidden; 
    
    /* Mencegah seleksi teks */
    -webkit-user-select: none; 
    -ms-user-select: none; 
    user-select: none;

/* ... gaya lainnya ... */
    align-items: stretch; /* Ubah agar anak-anak memenuhi lebar, bukan berpusat */
 
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch; /* Pastikan anak-anak di dalamnya bisa meregang */
    margin-top: auto;
}

/* ==========================================================================
   HEADER & TOMBOL ATAS
   ========================================================================== */
.top-header {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: flex-start;
}

.top-left-buttons {
    display: flex;
    gap: 8px;
    z-index: 100;
}

.btn-mini {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 6px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-mini:hover {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   KONTEN UTAMA (DIDEKATKAN KE FOOTER)
   ========================================================================== */
.container {
    text-align: center;
    padding: 1rem 2rem;
    max-width: 600px;
    width: 100%;
    
    /* Kombinasi margin ini memaksa blok konten turun mendekati footer */
    margin-top: auto; 
    margin-bottom: 20px; 
}

/* ==========================================================================
   SLIDESHOW FOTO
   ========================================================================== */
.slideshow-wrapper {
    width: 100%;
    /* Kamu bisa menaikkan max-width jika ingin gambar lebih lebar dari 450px */
    max-width: 100%; 
    height: 66vh; /* Mengambil 1/3 bagian tinggi layar */
    margin: 0 auto 1.5rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    /* ... gaya lainnya ... */
    margin: 0 auto 20px auto; /* Margin auto akan memusatkannya kembali */
}

#slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
    opacity: 0.3; /* Mengatur opacity awal foto menjadi 30% */
}

/* ==========================================================================
   TEKS & BATERAI PROGRESS
   ========================================================================== */
h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f1f5f9;
}

h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #f1f5f9;
}

p {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.battery-wrapper {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 0.5rem auto;
}

.progress-bar-container {
    background-color: rgba(51, 65, 85, 0.4);
    border: 3px solid #334155;
    border-radius: 8px;
    height: 24px;
    width: calc(100% - 8px);
    position: relative;
    padding: 2px;
    display: flex;
    align-items: center;
}

.progress-bar-container::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 25%;
    height: 50%;
    width: 8px;
    background-color: #334155;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.progress-bar {
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    height: 100%;
    width: 0%;
    border-radius: 4px;
    position: relative;
    transition: width 0.1s linear; 
    animation: progress-glow 2s ease-in-out infinite;
}

.progress-text {
    font-size: 0.85rem;
    color: #38bdf8;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* --- KEYFRAMES --- */
@keyframes progress-glow {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   BUTTON GROUP
   ========================================================================== */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap; 
}

a {
    text-decoration: none;
}

.btn {
    min-width: 100px; 
    padding: 10px 15px; 
    font-size: 0.85rem; 
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px; 
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp, .btn-database, .btn-instagram {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-icon {
    width: 20px; 
    height: 20px;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
}

.btn-whatsapp:hover { background: linear-gradient(135deg, #25D366, #128C7E); }
.btn-database:hover { background: linear-gradient(135deg, #fbbf24, #ea580c); }
.btn-instagram:hover { background: linear-gradient(45deg, #ee861a 0%, #e45421 25%, #d41331 50%, #bc1756 75%, #a81077 100%); }

.btn:active {
    transform: translateY(0); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
}

/* ==========================================================================
   FOOTER / COPYRIGHT
   ========================================================================== */
.footer-copyright {
    width: 100%;
    padding: 15px 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.15); 
}

.footer-copyright p {
    margin: 0;
    font-size: 0.75rem;
    color: #f8fafc;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    p { font-size: 0.95rem; }
    
    .button-group {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .top-header { padding: 15px; }
    .container { padding: 0.5rem 1.5rem; }
    h1 { font-size: 1.5rem; }
    
    .button-group { flex-direction: row; }
    .btn {
        min-width: 80px;
        flex-basis: calc(33.33% - 10px); 
        padding: 10px;
        font-size: 0.75rem;
    }

    .footer-copyright { padding: 15px 5px; }
    .footer-copyright p { font-size: 0.7rem; }
}