* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    position: fixed; /* Header tetap di atas */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 1); /* Awalnya solid */
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Agar di atas konten lain */
    transition: background-color 0.3s ease; /* Animasi perubahan warna */
}

header.scrolled {
    background-color: rgba(51, 51, 51, 0.8); /* Jadi transparan saat scroll */
    backdrop-filter: blur(5px); /* Efek blur supaya lebih elegan */
}

header .logo-container {
    display: flex;
    align-items: center;
}

header .logo-container img {
    margin-right: 50px;
}

header h1 {
    font-size: 24px;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f39c12;
}

#home {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding: 50px;
    background: #f5f5f5;
    animation: fadeIn 1.5s ease-in-out;
    min-height: 100vh;
}

#home .content {
    max-width: auto;
}

#home h1 {
    font-size: 55px;
    margin-bottom: 5px;
}

#home p {
    font-size: 25px;
    margin-bottom: 15px;
}

#home button {
    padding: 20px 30px;
    background-color: #570b96;
    border: none;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#home button:hover {
    background-color: #2e2c2b;
}

#about {
    padding: 60px 40px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
}

#about h2 {
    font-size: 70px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 30px;
}

#about h2::after {
    content: "";
    width: 170px;
    height: 3px;
    background: white;
    display: block;
    margin: 5px auto;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-img {
    width: 180px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateX(-20px); /* Memindahkan gambar sedikit ke kiri */
}

.about-text {
    text-align: left;
    font-size: 18px;
    line-height: 1.8;
    max-width: 600px;
}

#about p {
    font-size: 17px; /* Sesuaikan ukuran sesuai kebutuhan */
    line-height: 2; /* Agar lebih nyaman dibaca */
}

.about-footer {
    font-style: italic;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 1s ease-in;
    font-size: 20px;
    font-weight: bold;
}

/* Efek animasi saat di-scroll */
.show {
    opacity: 1;
    transform: translateY(0);
}

#about, #produk, #contact {
    padding: 40px;
    text-align: center;
}

#produk .product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Membuat kolom otomatis */
    gap: 20px;
    justify-items: center;
    margin-top: 20px;
    width: 100%;
    min-height: 100vh;
}

#produk .product {
    text-align: center;
    position: relative;
}

#produk img {
    max-width: 300px;
    height: auto;
    transition: transform 0.3s ease;
}

#produk img:hover {
    transform: scale(1.1);
}

#produk h1 {
    font-size: 50px; /* Ubah angka sesuai kebutuhan */
    font-weight: bold;
    text-transform: uppercase; /* Biar teks kapital semua */
    text-align: center;
    color: #333; /* Sesuaikan warna teks */
    margin-bottom: 20px;
}

.buy-btn {
    padding: 10px 20px;
    background-color: #25D366;;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;display: inline-block;
    text-align: center;
    text-decoration: none;  /* Hilangkan garis bawah link */
    width: 100px; /* Lebar tetap tombol 250px */
}

.buy-btn:hover {
    background-color: #128C7E;  /* Warna hijau gelap saat hover */
    transform: translateY(-5px); /* Animasi tombol sedikit terangkat */
}

#contact {
    padding: 60px 40px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    text-align: center;
    width:100%;
    min-height: 100vh;
}

#contact h1 {
    font-size: 70px;
    margin-bottom: 30px;
}

form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input, form textarea {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

form button {
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #2980b9;
}

footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsif untuk layar dengan lebar maksimal 768px (HP & Tablet) */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 10px 15px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
    }

    #home {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    #home img {
        width: 250px; /* Ukuran gambar lebih kecil */
        height: auto;
    }

    #about, #produk, #contact {
        padding: 20px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-img {
        width: 150px;
    }

    #produk .product-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    #produk img {
        max-width: 200px;
    }

    #contact iframe {
        width: 100%;
        height: 300px;
    }
}

/* Style tombol hamburger */
.hamburger {
    display: none; /* Default: tidak tampil di desktop */
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Style navigasi di mobile */
@media screen and (max-width: 768px) {
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(51, 51, 51, 0.9);
        display: none;
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
    }

    nav.show {
        display: flex;
    }
}

