body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #333;
    background-color: #fff;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 { font-weight: 700; }

.teks-tengah {
    text-align: center;
}

/* Navbar */
/* Keadaan awal (saat diam di paling atas) */
nav {
    background-color: transparent; /* Awalnya transparan */
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: none; /* Hilangkan bayangan saat transparan (opsional) */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Efek perubahan warna yang halus */
    box-sizing: border-box;
}

/* Keadaan saat di-scroll ke bawah */
nav.nav-scrolled {
    background-color: #fff; /* Berubah jadi putih */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Munculkan bayangan agar terlihat timbul */
}

.logo {
    font-size: 1.5rem;
    color: #ec4899;
    text-decoration: none;
    font-weight: 700;
}

.desktop-menu {
    display: flex;
    gap: 2rem;
}

.desktop-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-menu a:hover { color: #ec4899; }

/* Mobile Menu Button & Dropdown */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ec4899;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: fixed;
    top: 65px; 
    left: 0;
    width: 100%;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    z-index: 999;
    padding: 1rem 5%;
    box-sizing: border-box;
    border-top: 1px solid #fdf2f8;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid #fdf2f8;
}

/* Mengatur wrapper agar konten di dalamnya menyamping */
.services-content {
    display: flex;
    gap: 40px; /* Jarak antara kalkulator dan teks, sesuaikan dengan desain */
    align-items: flex-start; /* Membuat bagian atas kalkulator dan teks sejajar */
}

/* Membagi ruang agar proporsional */
.calculator-card {
    flex: 1; /* Mengambil 1 bagian ruang */
}

.about-text {
    flex: 1; /* Mengambil 1 bagian ruang, jadinya seimbang 50:50 */
    /* Opsional: Jika ingin teksnya lebih sempit, ubah flex menjadi 0.5 atau ukuran pastinya */
}

/* --- RESPONSIF UNTUK LAYAR HP --- */
/* Jika dibuka di layar kecil (HP), susunannya kembali menjadi atas-bawah */
@media (max-width: 768px) {
    .services-content {
        flex-direction: column;
    }
}

/* Sections (Hero, About, Services) ... [Sama dengan sebelumnya, dipersingkat di sini agar fokus pada perubahan utama] */
.hero { padding: 10rem 5% 5rem; display: flex; align-items: center; justify-content: space-between; background-image: url('img/background-zoey-web.jpg'); 
    background-repeat: no-repeat;
    background-size: cover; 
    background-position: center; }
.hero-content { flex: 1; padding-right: 5%; }
.hero h1 { font-size: 3rem; color: #ec4899; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; color: #666; margin-bottom: 2rem; }
.hero-image { flex: 1; }
.hero-image img { width: 100%; }
.about { padding: 5rem 5%; text-align: center; }
.about-content { display: flex; gap: 3rem; max-width: 1000px; margin: 0 auto; }
.about-image { flex: 1; border-radius: 2rem; overflow: hidden; }
.about-image img { width: 100%; display: block; }
.about-text { flex: 1; text-align: left; }
.services { padding: 5rem 5%; background-color: #fdf2f8; }
.calculator-card { background-color: #e0f2fe; padding: 3rem; border-radius: 2rem; max-width: 600px; margin: 0 auto; }
.calculator-card select, .calculator-card input[type="range"] { width: 100%; padding: 1rem; border: none; border-radius: 1rem; margin-bottom: 1.5rem; }
.booking-btn { display: block; width: 100%; padding: 1rem; background-color: #ec4899; color: #fff; text-align: center; text-decoration: none; border-radius: 1rem; font-weight: 600; font-size: 1.1rem; box-sizing: border-box; }

/* Gallery & Video Portrait */
.gallery { padding: 5rem 5%; }
.gallery h2 { font-size: 2.5rem; text-align: center; color: #ec4899; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 3rem auto 0; }

.gallery-item {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 300px; 
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Styling Khusus YouTube Shorts (Portrait) */
.gallery-item.video-portrait {
    position: relative;
    padding-bottom: 177.78%; /* Magic number untuk rasio 9:16 */
    height: 0;
    grid-row: span 2; 
}

.gallery-item.video-portrait iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Testimoni Section --- */
.testimonials {
    padding: 4rem 5%;
    background-color: #fcfcfc;
}
.testimonials h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.testimoni-card {
    background: #ffffff;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}
.testimoni-card .review-text {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-style: italic;
    flex-grow: 1; /* Mendorong nama & tanggal ke bawah agar sejajar */
}
.testimoni-card .author-wrapper {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: auto;
}
.testimoni-card .author {
    font-weight: 600;
    color: #333;
    display: block;
}
.testimoni-card .date {
    font-size: 0.8rem;
    color: #888;
}
.testimoni-action {
    text-align: center;
    margin-top: 2rem;
}

/* Spinner untuk Lazy Loading */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Footer & Icons ... [Sama dengan sebelumnya] */
footer { background-color: #0c4a6e; padding: 5rem 5% 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; color: #f0f9ff;}
footer a { color: #bae6fd; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.contact-icon { fill: #bae6fd; width: 20px; height: 20px; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a svg { fill: #bae6fd; width: 24px; height: 24px; }
.copyright { grid-column: span 3; text-align: center; color: #7dd3fc; margin-top: 3rem; font-size: 0.9rem; }


/* RESPONSIVE DESIGN UNTUK SMARTPHONE */
@media (max-width: 768px) {
    /* Header & Navigasi */
    .desktop-menu { display: none; }
    .mobile-menu-btn { display: block; }
    
    /* Layout Sections */
    .hero, .about-content { flex-direction: column; text-align: center; }
    .hero-content, .about-text { padding-right: 0; margin-bottom: 3rem; }
    .hero h1 { font-size: 2.2rem; }
    
    /* Galeri Responsif */
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.video-portrait { 
        grid-row: span 1; /* Di mobile, tidak perlu span 2 row karena jadi 1 kolom */
        padding-bottom: 177.78%; /* Tetap pertahankan rasio 9:16 */
    }
    .gallery-item { height: 250px; }
    
    /* Footer */
    footer { grid-template-columns: 1fr; }
    .copyright { grid-column: span 1; }
}