/* Reset Dasar */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #333; line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

html {
    scroll-behavior: smooth; /* INI KUNCINYA */
}

/* Navbar */

/* Efek Hover Ganti Warna Hitam */
.nav-links a:hover {
    color: #000; /* Berubah jadi hitam pekat */
    text-decoration: none; /* Pastikan tetap hilang saat hover */
}

/* Bonus: Tambah garis bawah tipis pas di-hover biar makin cakep */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}
.navbar { padding: 20px 0; background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 4rem; list-style: none; }
.nav-links a { 
    font-size: 0.95rem;
    font-weight: 500;
    color: #777; /* Warna awal agak abu supaya pas hover hitamnya 'nendang' */
    text-decoration: none !important; /* INI KUNCINYA: Menghilangkan garis bawah bawaan browser */
    transition: all 0.3s ease; /* Biar transisi warnanya halus */
    position: relative; }

/* Styling Dasar Tombol Menu */
.mobile-menu-btn {
    display: none; /* Sembunyi secara default (di layar besar) */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Pastikan di atas navbar */
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: #333; /* Warna garis menu */
    transition: 0.3s ease;
}

/* Munculkan Tombol hanya di Layar Kecil (HP/Tablet) */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex; /* Tampilkan di HP */
    }

    .nav-links {
        position: fixed;
        /* Mengatur jarak dari atas dan kanan agar terlihat melayang */
        top: 80px; 
        right: -100%; 
        
        /* Lebar seperempat layar */
        width: 45%; 
        
        /* TINGGI OTOMATIS: Mengikuti jumlah menu */
        height: auto; 
        
        /* Padding agar ada ruang di dalam kotak menu */
        padding: 30px 0; 
        
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        
        /* Membuat sudut melengkung agar lebih estetik */
        border-radius: 20px 0 0 20px; 
        
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: -10px 10px 30px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links.active {
        right: 0; /* Muncul saat tombol diklik */
    }

    /* Animasi Tombol Berubah Jadi Silang (X) saat aktif */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* -------------------Mengatur ukuran logo di navbar---------------- */
.nav-logo {
    height: 80px; /* Atur tinggi logo sesuai selera (biasanya 40-50px) */
    width: auto;  /* Lebar otomatis menyesuaikan agar tidak gepeng */
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover .nav-logo {
    transform: scale(1.05); /* Sedikit efek zoom saat logo di-hover */
}

/* Update sedikit bagian .logo di CSS lama agar tidak ada border/box yang ganggu */
.logo {
    display: flex;
    align-items: center;
    padding: 0;
    border: none !important; /* Menghilangkan kotak hitam jika masih ada */
    background: none !important;
}
/* ----------------------------------- */


/* Hero */
.hero {
    position: relative;
    min-height: 85vh; /* Tinggi container */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
    
    /* MODAL UTAMA: Overlay Hitam 70% + Background Image */
    /* Ganti 'images/hero-background.webp' dengan nama file gambarmu */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                      url('images/hero-background.webp');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Bikin efek paralaks pas di-scroll */
    color: #ffffff; /* Pastikan semua teks di dalam hero jadi putih */
}

.hero h1 {
    font-size: 3.5rem; /* Ukuran besar biar mantap */
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}
.hero p { 
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9); /* Putih agak transparan biar elegan */
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
/* Wrapper Tombol */
.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn { 
display: inline-block;
    padding: 14px 32px;
    background-color: #ffffff; /* Tombol jadi putih */
    color: #000000; /* Tulisan di dalam tombol jadi hitam */
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;    
}

.btn:hover {
    background-color: #eeeeee;
    transform: translateY(-3px); /* Efek melayang dikit pas di-hover */
}

.btn-outline { 
    background-color: transparent;
    color: #ffffff; /* Tulisan putih */
    border: 2px solid #ffffff; /* Garis pinggir putih */
}
.btn-outline:hover {
    background-color: #ffffff;
    color: #000000; /* Pas di-hover tulisan jadi hitam */
}

/* Responsif buat HP */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-btns {
        flex-direction: column; /* Tombol tumpuk ke bawah di HP */
        align-items: center;
    }
}

/* Portfolio - RASIO 3:4 */
.portfolio { padding: 80px 0; }
.portfolio h2 { text-align: center; margin-bottom: 40px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.portfolio-item { 
    position: relative; 
    aspect-ratio: 3 / 4; 
    border-radius: 15px; 
    overflow: hidden; 
    background: #e0e0e0; /* Warna kotak jika gambar belum ada */
}

.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }

.portfolio-overlay { 
    position: absolute; inset: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 25px; opacity: 0; transition: 0.4s; color: #fff;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover img { transform: scale(1.1); }

/* ===== Products Section ===== */
.products {
    padding: 80px 0;
    background: #fafafa; /* Latar belakang beda dikit biar ada pemisah */
}

.section-title {
    text-align: center;
    margin-bottom: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-image {
    aspect-ratio: 1 / 1; /* Produk biasanya kotak (1:1) agar rapi */
    background: #eee;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #000;
}

.product-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #EE4D2D; /* Orange Shopee */
}
/* Wrapper untuk membungkus kedua harga */
.price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak antara harga lama dan baru */
    margin-bottom: 10px;
}

/* Wrapper untuk harga */
.price-wrapper {
    display: flex;
    flex-direction: column; /* KUNCINYA: Menumpuk elemen ke bawah */
    align-items: flex-start; /* Biar teksnya rata kiri */
    gap: 2px; /* Jarak tipis antara harga atas dan bawah */
    margin-bottom: 15px;
}

/* Harga lama (atas) */
.price-old {
    font-size: 0.8rem; /* Ukurannya diperkecil sedikit agar tidak mendominasi */
    color: #999;
    text-decoration: line-through;
}

/* Harga baru (bawah) */
.price-now {
    font-size: 1.3rem; /* Dibuat lebih besar supaya paling terlihat */
    font-weight: 700;
    color: #EE4D2D; /* Warna Orange Shopee */
    line-height: 1; /* Biar nggak terlalu jauh jaraknya */
}

/* Sesuaikan footer agar tombol tetap rapi */
.product-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    justify-content: flex-end; /* Tombol geser ke kanan */
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background: #fff;
    text-align: center;
}

.contact h2 {
    margin-bottom: 10px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Supaya rapi saat dibuka di HP (numpuk ke bawah) */
    margin-top: 40px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 50px; /* Bentuk kapsul yang modern */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-btn svg {
    width: 24px;
    height: 24px;
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Warna Spesifik Tombol */
.contact-btn.shopee {
    background: #EE4D2D;
    color: #fff;
}

.contact-btn.whatsapp {
    background: #25D366;
    color: #fff;
}

.contact-btn.email {
    background: #000;
    color: #fff;
}

/* Responsif untuk HP */
@media (max-width: 576px) {
    .contact-links {
        flex-direction: column;
        padding: 0 40px;
    }
    .contact-btn {
        justify-content: center;
    }
}


/* Styling awal sebelum konten muncul */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform; /* Membantu performa browser */
}

/* Munculkan konten saat class 'is-visible' ditambahkan oleh JS */
.reveal-item.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* Footer */
.footer { padding: 40px 0; text-align: center; border-top: 1px solid #eee; color: #999; }
