@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

/* RESET & VARIABEL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --black: #0a0a0a;
    --dark-gray: #1f1f1f;
    --gray: #4e4e4e;
    --light-gray: #e0e0e0;
    --white: #ffffff;
}

body {
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: var(--dark-gray);
    border-bottom: 1px solid var(--gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    width: 150px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--white);
}

/* HAMBURGER MENU (Sembunyikan di Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* SYSTEM HALAMAN DINAMIS */
.page {
    display: block;
    min-height: 85vh;
    padding: 40px 5%;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.page-hero { padding: 0; }
.page-produk-container { padding: 0; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HERO SECTION (BERANDA) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    background: url("cek.jpeg") no-repeat center/cover;
    padding: 0 8% 80px 8%;
    margin-top: -85px; /* Mengkompensasi tinggi navbar */
}

.hero-content h1 {
    font-family: 'Permanent Marker', cursive;
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.05;
    text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.85), -1px -1px 0px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.0rem;
    color: var(--white);
    margin-bottom: 30px;
    max-width: 550px;
    font-weight: 500;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
}

/* TOMBOL & UTILITAS */
.btn {
    background: var(--white);
    color: var(--black);
    padding: 12px 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: var(--light-gray);
    transform: scale(1.05);
}

.btn-inline { text-decoration: none; display: inline-block; }
.btn-back {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray);
    padding: 8px 15px;
    cursor: pointer;
    margin-bottom: 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.text-center { text-align: center; }
.margin-top-20 { margin-top: 20px; }
.container { max-width: 1200px; margin: 0 auto; width: 100%; }

.divider {
    width: 60px;
    height: 4px;
    background: var(--white);
    margin: 20px auto 40px auto;
}

/* TENTANG KAMI */
.hero1 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("TENTANG-KAMI-1.jpg") no-repeat center/cover;
    border-radius: 15px;
    padding: 40px 8%;
}

.hero-content1 h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-content1 p {
    color: var(--light-gray);
    margin-bottom: 30px;
    max-width: 700px;
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: var(--dark-gray);
    border: 1px solid var(--gray);
    padding: 25px;
    border-radius: 10px;
}
.card h3 { margin-bottom: 10px; }

/* PRODUK */
.hero-produk {
    min-height: 40vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("23.jpg") no-repeat center/cover;
    padding: 40px 8%;
}

.hero-content-produk h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-content-produk p {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.background {
    position: relative;
    background: transparent;
    width: 100%;
    padding: 40px 5%;
}

.background::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('LOGO_LOGO BK PUTIH.png');
    background-size: 80px;
    background-repeat: repeat;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
}

.background .container {
    position: relative;
    z-index: 2;
}

.product-grid {
    display: grid;
    /* Mengubah auto-fit menjadi 3 kolom secara spesifik dan proporsional (1fr) */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.product-card-link { text-decoration: none; color: inherit; }

.product-card {
    background: var(--dark-gray);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    border-color: var(--white);
    transform: translateY(-5px);
}

.product-img {
    background-color: var(--gray);
    height: 200px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.product-card p { line-height: 1.6; color: var(--light-gray); }

/* DETAIL PRODUK */
#detail-produk {
    position: relative;
    background-color: var(--black);
    width: 100%;
    min-height: 100vh;
}

#detail-produk::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('LOGO_LOGO BK PUTIH.png');
    background-size: 100px;
    background-repeat: repeat;
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
}

#detail-produk .container {
    position: relative;
    z-index: 2;
}

.product-detail-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.detail-img-container {
    flex: 1;
    min-width: 280px;
    background: linear-gradient(to bottom, var(--dark-gray), var(--black));
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--gray);
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.detail-info { flex: 1; min-width: 280px; }
.detail-info h2 { font-size: 2.5rem; margin-bottom: 15px; }
.detail-info h4 { font-size: 1.5rem; color: var(--light-gray); margin-bottom: 20px; }
.detail-info p { margin-bottom: 30px; line-height: 1.6; color: #b3b3b3; }

/* KONTAK */
/* KONFIGURASI LAYOUT KONTAK DI KANAN */
.right-align-container {
    max-width: 500px; /* Batasi lebar agar tidak menyentuh sisi kiri (gambar HP) */
    margin-left: auto; /* Dorong seluruh kontainer ke kanan */
    margin-right: 5%; /* Beri sedikit jarak aman dari tepi kanan layar */
    text-align: right; /* Atur teks rata kanan */
}

.right-divider {
    margin: 20px 0 40px auto; /* Tarik garis pembatas (divider) ke kanan */
}

.right-grid {
    flex-direction: column; /* Ubah susunan kartu kontak menjadi atas-bawah */
    align-items: flex-end; /* Rapatkan kartu ke kanan */
    gap: 20px;
}

/* Penyesuaian lebar kartu kontak agar pas di sisi kanan */
.right-grid .contact-card {
    width: 100%;
    max-width: 380px; 
    align-items: flex-end; /* Ikon dan teks di dalam kartu rata kanan (opsional, hapus jika ingin tetap di tengah kartu) */
    text-align: right;
}

.background2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('Kontak.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 5%;
    border-radius: 15px;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.kontak-title { font-size: 2.5rem; letter-spacing: 2px; margin-bottom: 5px; }
.kontak-subtitle { max-width: 600px; margin: 0 auto 40px auto; color: #b3b3b3; line-height: 1.6; }

.contact-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.contact-card {
    background: rgba(31, 31, 31, 0.7);
    border: 1px solid rgba(78, 78, 78, 0.5);
    border-radius: 12px;
    padding: 30px 25px;
    width: 300px;
    text-decoration: none;
    color: var(--white);
    transition: 0.4s;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card.no-link { cursor: default; }
.contact-card:hover {
    transform: translateY(-8px);
    background: rgba(78, 78, 78, 0.8);
    border-color: var(--light-gray);
}

.card-icon-wrapper {
    width: 70px; height: 70px;
    background: var(--dark-gray);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 20px; border: 1px solid var(--gray);
    transition: 0.3s;
}

.contact-card:hover .card-icon-wrapper { background: var(--white); }
.contact-card-icon { width: 35px; height: 35px; object-fit: contain; transition: 0.3s; }
.contact-card:hover .contact-card-icon { filter: brightness(0); }
.location-badge { font-size: 2rem; transition: 0.3s; }
.contact-card:hover .location-badge { transform: scale(1.1); }

.contact-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.contact-card p { font-size: 0.95rem; color: #b3b3b3; margin-bottom: 20px; line-height: 1.5; flex-grow: 1; }

.btn-contact-action {
    font-size: 0.9rem; font-weight: bold; color: var(--light-gray);
    border-bottom: 2px solid transparent; padding-bottom: 4px; transition: 0.3s;
}
.contact-card:hover .btn-contact-action { color: var(--white); border-color: var(--white); }
.btn-contact-action.map-btn {
    background: var(--gray); padding: 8px 16px; border-radius: 20px;
    border: none; margin-top: 10px; text-decoration: none;
}
.btn-contact-action.map-btn:hover { background: var(--white); color: var(--black); }

/* FOOTER */
footer {
    text-align: center;
    padding: 30px 20px;
    background: var(--dark-gray);
    border-top: 1px solid #2a2a2a;
    color: var(--white);
    font-size: 14px;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE KHUSUS MOBILE) 
   ========================================= */

/* TABLET & MOBILE LANDSCAPE */
@media screen and (max-width: 992px) {
    .hero-content h1 { font-size: 4rem; }
    .hero-content-produk h1 { font-size: 2.5rem; }
    .detail-info h2 { font-size: 2rem; }
}

/* SMARTPHONE PORTRAIT */
@media screen and (max-width: 768px) {
    .right-align-container {
        margin: 0 auto;
        text-align: center;
        max-width: 100%;
    }
    
    .right-divider {
        margin: 20px auto 40px auto; /* Kembalikan divider ke tengah */
    }
    
    .right-grid {
        align-items: center; /* Kembalikan grid kontak ke tengah */
    }
    
    .right-grid .contact-card {
        align-items: center; /* Kembalikan isi kartu ke tengah */
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    /* Navbar menyesuaikan dengan Hamburger Menu */
    .navbar { padding: 15px 5%; }
    .logo img { width: 120px; }
    
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-gray);
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        border-bottom: 1px solid var(--gray);
    }

    .nav-links.active {
        max-height: 300px; /* Buka menu navigasi */
        padding: 20px 0;
    }

    .nav-links li { margin: 15px 0; }
    
    /* Animasi Hamburger Icon saat diklik (X) */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Pengaturan Ukuran Teks untuk Layar Kecil */
    .hero { padding: 0 5% 60px 5%; }
    .hero-content h1 { font-size: 3rem; }
    
    .hero1, .hero-produk { padding: 40px 5%; }
    .hero-content1 h1, .kontak-title { font-size: 2rem; }

    /* Layout Card & Produk menyesuaikan */
    .product-grid { grid-template-columns: 1fr; } /* Produk 1 Kolom ke bawah */
    .contact-grid { flex-direction: column; align-items: center; }
    .contact-card { width: 100%; max-width: 350px; }
    
    .product-detail-wrapper { gap: 20px; }
    .detail-img-container { padding: 20px; }
}

/* SMARTPHONE KECIL (Dibawah 480px) */
@media screen and (max-width: 480px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 0.9rem; }
    .btn { width: 100%; text-align: center; } /* Tombol jadi full width di HP */
    .features { grid-template-columns: 1fr; }
    
    .detail-info h2 { font-size: 1.8rem; }
    .detail-info h4 { font-size: 1.2rem; }
}