:root {
    --gold: #d4a373;
    --dark: #121212;
    --white: #ffffff;
    --grey: #f8f8f8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background-color: var(--white); color: var(--dark); overflow-x: hidden; }
h1, h2, h3 { font-family: 'Playfair Display', serif; }
.container { padding: 0 5%; }
.center { text-align: center; }

/* Navbar Tetap */
.navbar {
    padding: 30px 5%; display: flex; justify-content: space-between; align-items: center;
    position: absolute; width: 100%; z-index: 100;
}
.logo { font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.logo span { color: var(--gold); }
.nav-links { display: flex; list-style: none; }
.nav-links a { 
    text-decoration: none; color: var(--dark); margin-left: 30px; 
    font-size: 13px; font-weight: 500; text-transform: uppercase;
}

/* Hero Split Tetap */
.hero-split { display: flex; height: 100vh; align-items: center; }
.hero-image {
    flex: 1.2; height: 100%;
    background: url('https://images.unsplash.com/photo-1582576192532-06353147fcbf?q=80&w=800&auto=format&fit=crop') center/cover;
}
.hero-text { flex: 1; padding: 0 5%; }
.badge { color: var(--gold); text-transform: uppercase; font-size: 12px; letter-spacing: 3px; font-weight: 600; }
.hero-text h1 { font-size: 4.5rem; line-height: 1; margin: 20px 0; }
.hero-text p { color: #666; margin-bottom: 40px; max-width: 400px; }
.btn-main {
    padding: 15px 40px; background: var(--dark); color: white;
    text-decoration: none; font-size: 14px; transition: 0.3s;
}
.btn-main:hover { background: var(--gold); }

/* Showcase Grid */
.work-showcase { padding: 100px 5%; background: var(--grey); }
.header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }
.showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 350px; gap: 20px; }
.showcase-card { position: relative; overflow: hidden; border-radius: 4px; }
.showcase-card.large { grid-row: span 2; }

.service-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: 0.6s; }
.service-img.img1 { background-image: url('https://images.unsplash.com/photo-1582576192532-06353147fcbf?q=80&w=800'); }
.service-img.img2 { background-image: url('https://plus.unsplash.com/premium_photo-1703761300549-8a3895d4cf1e?q=80&w=870'); }
.service-img.img3 { background-image: url('https://plus.unsplash.com/premium_photo-1670002278045-51f2c6c4ef01?q=80&w=870'); }

.overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; color: white; opacity: 0; transition: 0.4s;
}
.showcase-card:hover .overlay { opacity: 1; }
.showcase-card:hover .service-img { transform: scale(1.05); }

/* Before & After */
.comparison { padding: 100px 5%; background: var(--white); }
.comparison-flex { display: flex; align-items: center; gap: 60px; }
.comparison-text { flex: 1; }
.comparison-box { flex: 1.5; }
.compare-card { display: flex; gap: 10px; height: 450px; }
.img-box { flex: 1; position: relative; background-size: cover; background-position: center; border-radius: 8px; overflow: hidden; }
.img-box.before { background-image: url('https://plus.unsplash.com/premium_photo-1670002278045-51f2c6c4ef01?q=80&w=400'); filter: grayscale(50%); }
.img-box.after { background-image: url('https://images.unsplash.com/photo-1582576192532-06353147fcbf?q=80&w=400'); }
.img-box span { position: absolute; bottom: 15px; left: 15px; background: rgba(0,0,0,0.5); color: #fff; padding: 5px 12px; font-size: 12px; border-radius: 4px; }

/* Packages */
.packages { padding: 100px 5%; background: var(--grey); }
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.package-card { padding: 40px; background: white; border-radius: 20px; border: 1px solid #eee; transition: 0.3s; }
.package-card.featured { border: 2px solid var(--gold); transform: scale(1.05); position: relative; }
.best-seller { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--gold); color: white; padding: 5px 15px; border-radius: 20px; font-size: 12px; }
.price { font-size: 1.8rem; font-weight: 600; color: var(--gold); margin: 15px 0; }

/* Footer */
footer { padding: 100px 5% 50px; text-align: center; }
.footer-content h2 { font-size: 3.5rem; margin-bottom: 20px; }
.btn-contact {
    display: inline-block; padding: 20px 50px; border: 2px solid var(--dark); color: var(--dark);
    text-decoration: none; font-weight: 600; transition: 0.3s;
}
.copy { margin-top: 50px; font-size: 12px; color: #999; }

/* Responsive */
/* --- Perbaikan Responsive Mobile --- */
@media (max-width: 800px) {
    /* Navbar: Kita buat jadi sticky bottom agar jempol gampang menjangkau */
    .navbar {
        padding: 15px 5%;
        position: fixed;
        bottom: 0;
        top: auto;
        background: rgba(255, 255, 255, 0.95);
        border-top: 1px solid #eee;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-around;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 11px;
    }

    .logo { font-size: 18px; display: none; } /* Sembunyikan logo di nav bawah agar rapi */

    /* Hero Section */
    .hero-split {
        flex-direction: column;
        height: auto;
        text-align: center;
        padding-top: 0;
    }

    .hero-image {
        width: 100%;
        height: 400px; /* Foto tetap menonjol */
        order: 1;
    }

    .hero-text {
        width: 100%;
        padding: 50px 8%;
        order: 2;
    }

    .hero-text h1 {
        font-size: 2.8rem;
        margin: 15px 0;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    /* Showcase & Grid */
    .header-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .showcase-grid {
        grid-template-columns: 1fr; /* Jadi 1 kolom di HP */
        grid-auto-rows: 300px;
    }

    .showcase-card.large {
        grid-row: span 1;
    }

    /* FIX BEFORE AFTER MOBILE */
    .comparison-flex { 
        display: block; /* Mengubah flex menjadi block agar tumpuk vertikal */
        width: 100%;
    }
    .comparison-text {
        text-align: center;
        margin-bottom: 30px;
    }
    .comparison-box {
        width: 100%;
    }
    .compare-card {
        display: flex; /* Tetap flex ke samping agar Before & After berjejer */
        flex-direction: row; 
        height: 300px; /* Tinggi disesuaikan untuk HP */
        gap: 8px;
    }
    .img-box {
        flex: 1;
        height: 100%;
    }

    /* Packages */
    .package-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .package-card.featured {
        transform: scale(1); /* Hilangkan efek scale agar tidak keluar layar */
    }

    /* Footer */
    footer {
        padding-bottom: 120px; /* Beri space agar tidak tertutup navbar bawah */
    }

    .footer-content h2 {
        font-size: 2.5rem;
    }
}


/* Tombol WhatsApp Melayang */
.wa-float {
    position: fixed;
    bottom: 80px; /* Di atas navbar mobile */
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    font-size: 30px;
}