/*
    -------------------------------------------------
    1. Pengaturan Dasar (Berlaku untuk Light & Dark Mode)
    -------------------------------------------------
*/
:root {
    --font-family: 'Inter', sans-serif;
    --primary-color: #007bff; /* Warna Aksen Biru */
    --max-width: 600px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    /* PENTING: Untuk animasi latar belakang */
    position: relative; 
    overflow: hidden; /* Pastikan bola tidak menyebabkan scrollbar */
}

.container {
    max-width: var(--max-width);
    padding: 40px 20px;
    text-align: center;
    /* PENTING: Untuk memastikan konten utama berada di atas animasi */
    position: relative; 
    z-index: 10;
    background-color: transparent; /* Pastikan latar belakang container transparan */
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.85;
}

.estimate {
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact p {
    margin: 10px 0;
    font-size: 0.95rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/*
    -------------------------------------------------
    2. Tema Terang (Default)
    -------------------------------------------------
*/
body {
    /* Hapus background-color agar animasi yang baru bisa terlihat */
    background-color: transparent; 
    color: #343a40; /* Teks Gelap */
}

/*
    -------------------------------------------------
    3. Tema Gelap (Dark Mode)
    -------------------------------------------------
*/
@media (prefers-color-scheme: dark) {
    body {
        /* Hapus background-color agar animasi yang baru bisa terlihat */
        background-color: transparent; 
        color: #e0e0e0; /* Teks Sangat Terang */
    }

    h1 {
        color: #ffffff;
    }
    
    .subtitle, .estimate {
        color: #b0b0b0;
    }

    /* Memastikan ikon dan link tetap menonjol */
    .icon {
        color: #7b9cff; /* Warna aksen yang sedikit lebih terang untuk dark mode */
    }

    a {
        color: #90b3ff;
    }
}

/*
    -------------------------------------------------
    4. Animasi Latar Belakang (Moving Bubbles)
    -------------------------------------------------
*/

/* Container Utama Animasi */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Memberikan warna dasar untuk latar belakang */
    background: linear-gradient(to bottom right, #f8f9fa, #e9ecef); 
    z-index: 0; /* Pastikan berada di lapisan paling bawah */
}

/* Penyesuaian Dark Mode untuk latar belakang animasi */
@media (prefers-color-scheme: dark) {
    .background-animation {
        background: linear-gradient(to bottom right, #121212, #000000);
    }
}


/* Gaya Dasar Bola */
.background-animation li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(0, 123, 255, 0.15); /* Warna aksen dengan sedikit transparansi */
    animation: animate 25s linear infinite;
    bottom: -150px; /* Mulai dari bawah layar */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
}

/* Mengatur ukuran, posisi, dan kecepatan animasi yang berbeda untuk setiap bola */
.background-animation li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.background-animation li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.background-animation li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.background-animation li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.background-animation li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.background-animation li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.background-animation li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.background-animation li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.background-animation li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.background-animation li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 11s;
}

/* Keyframes untuk Animasi Naik dan Memudar */
@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg); /* Naik 1000px dan berputar */
        opacity: 0; /* Memudar saat mencapai atas */
        border-radius: 50%;
    }
}