/* --- style.css --- */
:root {
    --primary: #ff4500;   /* Oranye Racing */
    --dark: #121212;      /* Hitam Background */
    --card-bg: #1e1e1e;   /* Abu Gelap */
    --text: #f0f0f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body { background-color: var(--dark); color: var(--text); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }

/* HEADER & NAVIGASI */
header { background: #000; padding: 15px 5%; border-bottom: 3px solid var(--primary); display: flex; justify-content: space-between; align-items: center; }

/* --- UPDATE STYLE LOGO (Agar ada Icon) --- */

.logo {
    display: flex;          /* Agar gambar & teks sejajar kiri-kanan */
    align-items: center;    /* Agar vertikalnya pas di tengah */
    gap: 12px;              /* Jarak antara icon dan tulisan */
    text-decoration: none;  /* Hilangkan garis bawah */
    
    /* Font style dari sebelumnya */
    font-size: 1.8rem; 
    font-weight: 800; 
    color: #fff; 
    text-transform: uppercase; 
    letter-spacing: 2px;
}

.logo img {
    height: 60px; /* Atur tinggi logo agar pas di header */
    width: auto;  /* Lebar menyesuaikan otomatis */
}

.logo span { 
    color: var(--primary); /* Warna Oranye untuk angka 214 */
}

nav ul { list-style: none; display: flex; gap: 20px; }
nav a { color: #fff; text-decoration: none; font-weight: 500; transition: 0.3s; }
nav a:hover, nav a.active { color: var(--primary); }

/* CONTAINER UTAMA */
main { flex: 1; max-width: 1100px; margin: 0 auto; padding: 40px 20px; width: 100%; }

/* JUDUL HALAMAN */
h1.page-title { color: var(--primary); border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 30px; }

/* TOMBOL */
.btn { display: inline-block; background: var(--primary); color: #fff; padding: 10px 25px; text-decoration: none; border-radius: 5px; font-weight: bold; margin-top: 10px; transition: 0.3s; }
.btn:hover { background: #cc3700; }

/* GRID SYSTEM (Untuk Produk & Testimoni) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.card { background: var(--card-bg); padding: 25px; border-radius: 10px; border: 1px solid #333; transition: 0.3s; }
.card:hover { transform: translateY(-5px); border-color: var(--primary); }
.card h3 { color: var(--primary); margin-bottom: 10px; }

/* KHUSUS BERANDA */
.hero { text-align: center; padding: 80px 20px; background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1558981403-c5f9899a28bc?auto=format&fit=crop&w=1600&q=80'); background-size: cover; border-radius: 15px; margin-bottom: 40px; }
.hero h1 { font-size: 3rem; margin-bottom: 15px; text-shadow: 2px 2px 5px #000; }

/* KHUSUS KONTAK */
.contact-info { background: var(--card-bg); padding: 30px; border-radius: 10px; text-align: center; border: 1px solid var(--primary); }

/* FOOTER */
footer { background: #000; text-align: center; padding: 20px; margin-top: auto; border-top: 1px solid #333; color: #777; }

/* RESPONSIF HP */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; }
    nav ul { flex-wrap: wrap; justify-content: center; font-size: 0.9rem; }
    .hero h1 { font-size: 2rem; }
}

/* --- UPDATE TAMPILAN PRODUK (Compact List) --- */

.product-list-container {
    max-width: 800px; /* Lebar diperkecil biar fokus */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Jarak antar produk lebih rapat */
}

.product-row {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    padding: 10px; /* Padding diperkecil */
    border-radius: 8px;
    border: 1px solid #333;
    cursor: pointer; /* Menunjukkan bisa diklik */
    transition: 0.2s;
}

.product-row:hover {
    background-color: #2a2a2a;
    border-color: var(--primary);
}

.product-thumb {
    width: 70px; /* Gambar diperkecil (sebelumnya 100px) */
    height: 70px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
    border: 1px solid #444;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex-grow: 1;
}

.product-title {
    font-size: 1rem; /* Font judul lebih standar */
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.product-price {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: bold;
}

/* Tanda panah kecil di kanan biar tau bisa diklik */
.row-arrow {
    color: #555;
    font-size: 1.2rem;
    padding-left: 10px;
}

/* --- CSS UNTUK MODAL (POP-UP) --- */
.modal {
    display: none; /* Tersembunyi default */
    position: fixed;
    z-index: 2000; /* Di atas segalanya */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* Background gelap transparan */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* Efek blur background */
}

.modal-content {
    background-color: #1e1e1e;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px; /* Ukuran pop-up tidak terlalu lebar */
    position: relative;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover { color: #fff; }

/* Isi Modal */
.modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #333;
}

.modal-title { color: var(--primary); font-size: 1.4rem; margin-bottom: 5px; }
.modal-price { font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; display: block; }
.modal-desc { color: #ccc; font-size: 0.95rem; margin-bottom: 25px; line-height: 1.5; border-top: 1px solid #333; padding-top: 10px;}

.btn-modal-buy {
    display: block;
    width: 100%;
    background: #ff0055;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
}
.btn-modal-buy:hover { background: #d60045; }

/* --- TAMBAHAN: JAM DIGITAL & WELCOME MODAL --- */

/* 1. Style Jam Digital */
.clock-container {
    background: rgba(0, 0, 0, 0.6); /* Kotak transparan gelap */
    padding: 15px 30px;
    border-radius: 10px;
    border: 1px solid var(--primary);
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3); /* Efek cahaya oranye */
}

.clock-time {
    font-family: 'Courier New', Courier, monospace; /* Font gaya digital/hacker */
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--primary); /* Efek glowing */
}

.clock-date {
    font-size: 1rem;
    color: #ccc;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 2. Style Welcome Modal (Popup Awal) */
.welcome-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Gelap total */
    z-index: 9999; /* Paling depan */
    display: flex; /* Flex agar tengah */
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
}

/* Class agar muncul */
/* --- MODEN UI WELCOME MODAL --- */

/* Overlay Background (Gelap & Blur) */
.welcome-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Lebih gelap */
    backdrop-filter: blur(8px); /* Efek kaca buram (Glassmorphism) */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

.welcome-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Kotak Utama (Split Layout) */
.welcome-ui-box {
    display: flex; /* Kiri Gambar, Kanan Teks */
    width: 850px;
    max-width: 90%;
    background: linear-gradient(145deg, #1e1e1e, #121212);
    border-radius: 20px;
    overflow: hidden; /* Agar gambar tidak keluar dari sudut bulat */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    transform: translateY(30px);
    transition: 0.5s;
}

.welcome-overlay.show .welcome-ui-box {
    transform: translateY(0); /* Efek naik ke atas saat muncul */
}

/* Bagian Kiri: Gambar */
.welcome-visual {
    flex: 1; /* Lebar 50% */
    background: url('https://images.unsplash.com/photo-1558981403-c5f9899a28bc?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
    position: relative;
}

/* Overlay warna di atas gambar agar teks (jika ada) terbaca, atau sekadar estetika */
.welcome-visual::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(18,18,18,1) 100%);
}

/* Bagian Kanan: Konten */
.welcome-content {
    flex: 1; /* Lebar 50% */
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    position: relative;
}

.welcome-tag {
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.welcome-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 15px;
}

.welcome-content p {
    color: #a0a0a0;
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Tombol Keren */
.btn-welcome {
    background: var(--primary);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    align-self: flex-start; /* Tombol di kiri */
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.3);
}

.btn-welcome:hover {
    background: #ff6a33;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 69, 0, 0.5);
}

/* Responsif HP (Gambar Hilang/Jadi Kecil) */
@media (max-width: 768px) {
    .welcome-ui-box {
        flex-direction: column; /* Tumpuk ke bawah */
        width: 90%;
    }
    .welcome-visual {
        height: 150px; /* Gambar jadi banner kecil di atas */
        flex: none;
    }
    .welcome-visual::after {
        background: linear-gradient(to bottom, rgba(0,0,0,0), #121212);
    }
    .welcome-content {
        padding: 30px;
        text-align: center;
    }
    .btn-welcome {
        align-self: center; /* Tombol di tengah */
        width: 100%;
    }
}
