/* --- 1. PENGATURAN DASAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body, html {
    height: 100%;
    color: #333;
    background-color: #fdfdfd;
}

/* --- 2. NAVIGASI / NAVBAR (LATAR PUTIH, TEKS HITAM) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    height: 70px;
    z-index: 1000;
}

.navbar .logo img {
    height: 85px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.navbar .logo img:hover {
    transform: scale(1.05);
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    color: #111111;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s ease;
}

/* Efek Hover Menu Utama: Garis Strip Bawah */
.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #111111;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 70%;
}

#click { display: none; }
.menu-btn { display: none; cursor: pointer; }
.menu-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: #111111;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- 3. MULTIPLE SLIDE BANNER (HOME) --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Efek transisi memudar (fade) */
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

/* Kunci utama memunculkan slide yang aktif */
.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Overlay gelap tipis agar teks terbaca */
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.slide-content p {
    font-size: 20px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
    transition: background 0.3s;
}

.slide-btn:hover { background: rgba(255, 255, 255, 0.5); }
.prev { left: 20px; }
.next { right: 20px; }

.dots-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active, .dot:hover { background: #ffffff; }

/* --- 4. SEKSI PARALAKS STANDAR --- */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bg-parallax-1 { background-image: url('../img/BG Parallax.jpeg'); }
.bg-parallax-2 { background-image: url('../img/BG Parallax.jpeg'); }

.hero-text {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 40px;
    border-radius: 8px;
    color: #ffffff;
}
.hero-text h1 { font-size: 36px; }

/* --- 5. AREA KONTEN TEKS BIANSA --- */
.content {
    padding: 100px 10%;
    text-align: center;
    background: #fdfdfd;
    line-height: 1.8;
}
.content h2 { font-size: 32px; margin-bottom: 20px; }

/* --- 6. SEKSI PRODUK DENGAN GRID --- */
.product-section {
    background-color: #fdfdfd;
    padding: 60px 10%;
    text-align: center;
}

.section-subtitle { 
    color: #666; 
    margin-bottom: 40px; 
}

.product-grid {
    display: flex;
    flex-wrap: wrap; /* Otomatis turun ke bawah jika layar HP */
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    width: calc(33.333% - 20px); /* Membagi rata menjadi 3 produk per baris */
    min-width: 280px; /* Batas minimum lebar agar tidak kekecilan di HP */
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px); /* Efek naik sedikit saat disentuh kursor */
}

.product-img-box {
    width: 100%;
    height: 220px;
    background-color: #eaeaea; /* Warna abu-abu sebagai cadangan jika gambar belum ada */
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info { 
    padding: 20px; 
}

.product-info h3 { 
    font-size: 18px; 
    margin-bottom: 10px; 
    color: #111; 
}

.product-info p { 
    font-size: 14px; 
    color: #666; 
    line-height: 1.5; 
    margin-bottom: 20px; 
}

.detail-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #111111;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
}

.detail-btn:hover { 
    background-color: #444444; 
}

/* --- 7. DESAIN FOOTER (LATAR PUTIH, TEKS HITAM) --- */
.footer {
    background-color: #ffffff;
    color: #444444;
    padding: 60px 0 20px 0;
    font-size: 14px;
    border-top: 1px solid #eeeeee;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px;
    gap: 40px;
}
.footer-col { flex: 1; min-width: 250px; }
.footer-col h3 { color: #111111; font-size: 18px; margin-bottom: 20px; position: relative; }
.footer-col h3::after {
    content: ''; position: absolute; left: 0; bottom: -6px;
    background-color: #111111; height: 2px; width: 40px;
}
.footer-logo { height: 40px; width: auto; margin-bottom: 20px; display: block; }
.footer-col p { line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #444444; text-decoration: none; transition: all 0.3s ease; display: inline-block; }
.footer-col ul li a:hover { color: #111111; font-weight: bold; transform: translateX(5px); }

.social-links { margin-top: 20px; display: flex; gap: 10px; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 35px; height: 35px; background-color: #eeeeee; color: #111111;
    text-decoration: none; border-radius: 50%; transition: all 0.3s ease; font-size: 12px; font-weight: bold;
}
.social-links a:hover { background-color: #111111; color: #ffffff; }
.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #eeeeee; font-size: 13px; color: #888888; }

/* --- 8. RESPONSIF (HP / TABLET) --- */
@media (max-width: 768px) {
    .parallax { background-attachment: scroll; }
    .navbar { padding: 0 20px; }
    .menu-btn { display: block; }
    .navbar ul {
        position: fixed; top: 70px; left: -100%; background: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05); height: calc(100vh - 70px);
        width: 100%; text-align: center; display: block; transition: all 0.3s ease;
    }
    #click:checked ~ ul { left: 0; }
    .navbar ul li { width: 100%; margin: 40px 0; }
    .navbar ul li a { font-size: 20px; display: block; color: #111111; }
    .navbar ul li a::after { display: none; } /* Matikan strip di HP agar tidak rusak */
    .navbar ul li a:hover, .navbar ul li a.active { background: none; color: #888888; }

    .product-grid { grid-template-columns: 1fr; gap: 20px; }
    .product-section { padding: 60px 20px; }
    .slide-content h1 { font-size: 32px; }
    .slide-content p { font-size: 16px; }
    .slide-btn { padding: 10px 15px; font-size: 18px; }
    .footer-container { flex-direction: column; gap: 30px; }
    .footer-col { text-align: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .footer-col ul li a:hover { transform: scale(1.05); }
    .social-links { justify-content: center; }
}
