/* Palet Warna: Terinspirasi Cahaya Bulan & Romansa */
:root {
    --primary-color: #4A148C; /* Ungu Gelap (Deep Violet) - Elegan, Malam */
    --secondary-color: #9C27B0; /* Ungu Medium - Romantis */
    --background-light: #F3E5F5; /* Ungu Sangat Muda/Lavender - Lembut */
    --text-dark: #333333;
    --accent-gold: #FFD700; /* Emas - Mewah */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
}

/* Typography & Global Styles */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    position: relative;
    /* Animasi Judul: Zoom In Ringan */
    animation: zoomIn 1s ease-out;
}

@keyframes zoomIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

section {
    padding: 80px 5%;
}

/* Header & Navigation (Navbar) */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 1px;
    /* Efek logo: Glowing text */
    text-shadow: 0 0 5px var(--accent-gold);
}

.nav-menu a {
    color: white;
    margin-left: 25px;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5% 50px;
    background-color: white;
    min-height: 80vh;
}

.hero-content {
    max-width: 50%;
    /* Animasi teks masuk dari kiri (dikontrol oleh keyframes di bawah) */
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInText 1s forwards;
    animation-delay: 0.5s;
}

@keyframes slideInText {
    to { opacity: 1; transform: translateX(0); }
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px); /* Efek melayang */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-image-container {
    max-width: 45%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Animasi gambar masuk dari kanan */
    opacity: 0;
    transform: translateX(50px);
    animation: slideInImage 1s forwards;
    animation-delay: 1s;
}

@keyframes slideInImage {
    to { opacity: 1; transform: translateX(0); }
}

.hero-image-container img {
    width: 100%;
    display: block;
    transition: transform 5s ease-out;
}

.hero-image-container img:hover {
    transform: scale(1.05); /* Zoom saat hover */
}

/* Product Section */
.produk-section {
    background-color: var(--background-light);
}

.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.produk-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produk-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.produk-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.produk-card .harga {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}

.buy-button {
    display: inline-block;
    background-color: #25d366; /* Warna WhatsApp */
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.buy-button:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

/* Animasi Scroll Reveal (JS akan menambahkan class 'visible') */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

/* Layanan Section */
.layanan-section {
    background-color: white;
    padding-bottom: 100px;
}

.layanan-grid {
    display: flex;
    justify-content: space-around;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.layanan-item {
    flex-basis: 30%;
    padding: 20px;
    /* Animasi masuk melayang */
    animation: floatIn 1.5s ease-out both;
}
.layanan-item:nth-child(1) { animation-delay: 0.2s; }
.layanan-item:nth-child(2) { animation-delay: 0.4s; }
.layanan-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes floatIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.layanan-item i {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    /* Animasi Ikon: Berputar saat hover */
    transition: transform 0.5s ease;
}

.layanan-item:hover i {
    transform: rotateY(180deg);
    color: var(--accent-gold);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 5%;
    text-align: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    margin-bottom: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.8em;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-gold);
    transform: scale(1.2);
}

footer a {
    color: var(--accent-gold);
}

/* Bottom Buy Button (Mobile Only) */
.bottom-buy-button {
    display: none; /* Sembunyikan secara default */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #25d366; 
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.2em;
    font-weight: 700;
    z-index: 1010;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    /* Animasi berdenyut */
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.9; }
    100% { opacity: 1; }
}

/* Sidebar (Mobile Menu) */
.sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--primary-color);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    padding-top: 80px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Animasi Elastis */
    z-index: 1020;
}

.sidebar.open {
    right: 0;
}

.sidebar a {
    display: block;
    color: white;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.sidebar a:hover {
    background-color: var(--secondary-color);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
}

/* Media Queries untuk Responsif */

/* Ukuran Tablet (max-width: 900px) */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        max-width: 90%;
        order: 2;
        margin-top: 30px;
    }

    .hero-image-container {
        max-width: 70%;
        order: 1;
    }

    .nav-menu a {
        display: none; /* Sembunyikan link menu di tablet */
    }

    .menu-toggle {
        display: block; /* Tampilkan tombol menu */
    }
}

/* Ukuran Mobile (max-width: 600px) */
@media (max-width: 600px) {
    h1 {
        font-size: 2.2em !important;
    }
    
    .hero-content h1 {
        font-size: 2.5em;
    }
    
    /* Tampilkan Bottom Button di Mobile */
    .bottom-buy-button {
        display: block;
    }
    
    .logo {
        font-size: 1.5em;
    }

    .layanan-grid {
        flex-direction: column;
    }
}