:root {
    --primary: #00ffcc;
    --secondary: #00a8ff;
    --dark: #0a0e14;
    --glass: rgba(255, 255, 255, 0.1);
}

/* 1. Reset & Base Styles */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background: radial-gradient(circle at center, #1a2a3a, var(--dark));
    font-family: 'Roboto', sans-serif;
    color: white;
    min-height: 100vh;
    /* overflow-x dihapus agar bisa scroll di HP saat konten memanjang ke bawah */
    overflow-x: hidden; 
}

h1, .logo { font-family: 'Orbitron', sans-serif; }
.logo span { color: var(--primary); }

/* 2. Layout & Glassmorphism */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
}

nav {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    margin: 20px auto;
    width: 90%;
    padding: 1rem 3rem;
    z-index: 100;
}

nav ul { display: flex; list-style: none; gap: 30px; }
nav a { color: white; text-decoration: none; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; transition: 0.3s; }
nav a:hover { color: var(--primary); }

/* 3. Hero Section (Desktop Default) */
.hero { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    min-height: 80vh; 
    padding: 0 10%;
    gap: 50px;
}

.content.glass-card {
    flex: 1;
    max-width: 600px;
}

.content h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.content p { margin-bottom: 30px; opacity: 0.8; }

.beaker-group {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex: 1;
    justify-content: center;
}

/* 4. Beaker & Animation */
.beaker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.beaker {
    position: relative;
    width: 50px;
    height: 180px;
    border: 4px solid #fff;
    border-top: none;
    border-radius: 0 0 25px 25px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.liquid {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70%;
    background: var(--warna-cair, #00ffcc); 
    box-shadow: 0 0 40px var(--warna-cair, #00ffcc);
    animation: wave 3s infinite ease-in-out;
}

@keyframes wave {
    0%, 100% { height: 60%; transform: scaleY(1); }
    50% { height: 85%; transform: scaleY(1.05); }
}

/* Variasi Animasi */
.beaker-container:nth-of-type(1) .liquid { animation-duration: 3s; }
.beaker-container:nth-of-type(2) .liquid { animation-duration: 4s; animation-delay: -1.5s; }
.beaker-container:nth-of-type(3) .liquid { animation-duration: 2.5s; animation-delay: -0.5s; }
.beaker-container:nth-of-type(4) .liquid { animation-duration: 3.5s; animation-delay: -2s; }
.beaker-container:nth-of-type(5) .liquid { animation-duration: 2.8s; animation-delay: -0.8s; }

/* 5. Buttons */
button {
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: 'Orbitron';
    transition: 0.3s;
}

.btn-primary { background: var(--primary); color: var(--dark); margin-right: 15px; }
.btn-primary:hover { box-shadow: 0 0 20px var(--primary); transform: translateY(-3px); }
.btn-secondary { background: transparent; border: 1px solid white; color: white; }
.btn-secondary:hover { background: white; color: var(--dark); }

/* 6. MEDIA QUERY (PENGATURAN HP) */
@media (max-width: 768px) {
    body {
        overflow-y: auto; /* Memungkinkan scroll ke bawah */
    }

    nav {
        flex-direction: column;
        padding: 1rem;
        width: 95%;
    }

    nav ul {
        display: flex; /* Menu disembunyikan di HP untuk kerapian, atau bisa diatur wrap */
        flex-direction: column;
    }

    .hero {
        flex-direction: column; /* ISI UTAMA MENJADI ATAS-BAWAH */
        padding: 120px 20px 50px 20px;
        height: auto;
        text-align: center;
    }

    .content.glass-card {
        width: 100%;
        margin-bottom: 40px; /* Memberi jarak ke beaker di bawahnya */
    }

    .content h1 {
        font-size: 2.2rem;
    }

    .beaker-group {
        width: 100%;
        flex-wrap: wrap; /* Agar botol turun ke bawah jika layar terlalu sempit */
        gap: 10px;
        padding-bottom: 20px;
    }

    .beaker {
        width: 45px; /* Sedikit mengecilkan botol di HP */
        height: 150px;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary {
        margin-right: 0;
    }
}