/* --- Tambahkan ini di bagian paling atas CSS Anda --- */
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Mencegah halaman bisa digeser ke kanan */
    position: relative;
}

@font-face {
    font-family: 'FontHero'; 
    src: url('font/Berliana\ Lovely\ Freebies.otf') format('truetype'); /* Arahkan ke lokasi file font */
    font-weight: bold;
    font-style: normal;
}

:root {
    --primary: #1F79AE; /* Sage Green */
    --secondary: #2D3436; /* Soft Accent */
    --accent: #D4AF37;
    --bg-light: #F0EDE5;
    --text-dark: #1A1A1A;
    --text-gray: #636E72;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
    -webkit-tap-highlight-color: transparent; /* Hilangkan highlight biru di mobile */
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* NAVBAR UPGRADE */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Efek Kaca */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    /* font-family: 'Poppins', sans-serif; */
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li {
    cursor: pointer;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links li::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    transition: 0.3s;
}

.nav-links li:hover::after, .nav-links li.active::after {
    width: 100%;
}

.nav-links li.active {
    color: var(--primary);
    font-weight: 700;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Page Transitions */
.page {
    display: none;
    padding-top: 2rem;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    min-height: 80vh;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-family: 'FontHero', Times, serif;
    font-size: 3.5rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}
/* test */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(31, 121, 174, 0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--primary);
    border: 1px solid var(--primary);
    margin-left: 10px;
}

.btn-primary:active { transform: scale(0.95); }

/* FEATURES CARDS */
.features-preview {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 5% 4rem 5%;
    margin-top: -30px;
    flex-wrap: wrap;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

/* SHOP & FILTERS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.section-title {
    font-family: 'Times New Roman', Times, serif;
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 20px;
    border: 1px solid #eee;
    background: var(--bg-light);
    border-radius: 50px;
    outline: none;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group select {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #eee;
    background: var(--white);
    cursor: pointer;
}

/* PRODUCT GRID - RESPONSIVE */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid #eee;
}

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

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

.product-info {
    padding: 1rem;
}

.tag-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

.p-name {
    font-weight: 600;
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.4;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
}

.p-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* --- ABOUT US RE-DESIGN (REPLACEMENT) --- */
#about {
    background-color: #fcfbf9; 
    padding: 100px 0;
}

/* Update pada bagian CSS yang sudah ada */
.meta-info-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.meta-item {
    background: rgba(31, 121, 174, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(31, 121, 174, 0.1);
}

/* Pastikan section impact-card memiliki background krem poster */
.impact-card {
    background: #F0EDE5; 
    transition: 0.3s ease;
}

.impact-card:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(31, 121, 174, 0.2);
}

/* Header Section */
.about-header {
    text-align: center;
    margin-bottom: 80px;
}

.about-header h2 {
    font-size: 3rem;
    color: var(--primary);
    text-transform: uppercase;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 20px auto;
}

/* Row Layout */
.about-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.about-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-content {
    flex: 1;
}

.category-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.about-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-content p {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Visual Elements ala Poster */
.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.visual-box {
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-size: 5rem;
    transition: 0.5s ease;
}

.outline-style {
    border: 3px solid var(--primary);
    color: var(--primary);
}

.solid-style {
    background: var(--primary);
    color: var(--white);
    transform: rotate(-5deg); /* Efek miring vintage */
}

/* Impact Section */
.impact-grid-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.impact-card {
    background: #F0EDE5; /* Warna Krem dari Poster */
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(31, 121, 174, 0.1);
}

.impact-card i {
    font-size: 2.5rem;
    color: var(--primary); /* Warna awal biru */
    margin-bottom: 20px;
    transition: color 0.3s ease; /* Transisi halus untuk warna icon */
}

/* RESPONSIVE: Penting agar tidak berantakan di HP */
@media (max-width: 768px) {
    .about-row {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
    }
    
    .vision-row {
        flex-direction: column-reverse !important; /* Gambar tetap di atas teks saat di HP */
    }

    .impact-grid-full {
        grid-template-columns: 1fr;
    }
}

/* CONTACT SECTION */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

/* MODAL UPGRADE */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: var(--white);
    width: 100%;
    max-width: 900px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    animation: zoomIn 0.3s;
    display: flex;
    flex-direction: row;
    max-height: 90vh; /* Agar scrollable di layar kecil */
    overflow-y: auto;
}

.modal-body {
    display: flex;
    width: 100%;
}

.modal-img {
    flex: 1;
    background: #f0f0f0;
}

.modal-details {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    color: var(--text-dark);
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   MOBILE RESPONSIVENESS (BREAKPOINTS)
   ========================================= */

@media (max-width: 768px) {
    .navbar {
        z-index: 10000 !important; /* Angka sangat tinggi */
        padding: 0.8rem 5%; /* Sedikit lebih ramping di HP */
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Sembunyikan total di luar layar kanan */
        height: 100vh;
        width: 280px; /* Lebar menu mobile yang ideal */
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px; /* Beri ruang agar tidak tertutup header */
        align-items: center;
        transition: 0.3s ease-in-out;
        box-shadow: -10px 0 20px rgba(0,0,0,0.1);
        z-index: 1050; /* Layer tengah (di atas overlay) */
        display: flex; /* Pastikan tetap flex namun kolom */
        visibility: hidden; 
        opacity: 0;
    }

    .nav-links.nav-active {
        right: 0;
        visibility: visible;
        opacity: 1;
    }

    .nav-links li {
        margin: 1.5rem 0;
        font-size: 1.2rem;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(2px);
        z-index: 1000;
        /* opacity: 0; */
        transition: 0.3s;
    }

    .nav-overlay.active {
        display: block; 
        /* opacity: 1; */
    }

    /* Navbar Mobile Slide-in */
    .menu-toggle {
        display: block;
        z-index: 1100;
        position: pointer;
    }

    /* Perbaikan Hero Section agar tidak berantakan */
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 1rem 5% 3rem 5%;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-top: 1.5rem;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-image img {
        max-width: 80%; /* Gambar tidak memenuhi layar */
        margin: 0 auto;
    }

    .features-preview {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card {
        width: 100%;
        max-width: 100%;
    }

    /* Shop Section Mobile */
    .filter-container {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select {
        flex: 1;
    }

    .product-grid {
        /* Layout 2 Kolom Khas Mobile App (Shopee Style) */
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px;
    }

    .product-img {
        height: 160px; /* Lebih pendek untuk mobile */
    }

    .p-name {
        font-size: 0.9rem;
    }

    .p-price {
        font-size: 1rem;
    }

    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
    }

    /* Modal Mobile */
    .modal-content {
        flex-direction: column;
        width: 95%;
        max-height: 85vh;
        border-radius: 12px;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-img {
        height: 250px;
    }

    .modal-details {
        padding: 1.5rem;
    }
}

/* --- Tambahan untuk Tablet (769px - 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- FOOTER RAMPING (30% Lebih Kecil) --- */
.main-footer {
    background-color: var(--primary); /* Sage Green */
    padding: 40px 5% 15px 5%; /* Dikurangi dari 80px ke 40px */
    margin-top: 40px;
    color: var(--white);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Proporsi kolom lebih rapat */
    gap: 30px; /* Jarak antar kolom diperkecil */
    max-width: 1100px;
    margin: 0 auto;
}

/* Logo di footer */
.main-footer .logo {
    color: var(--white);
    font-size: 1.3rem; /* Sedikit dikecilkan */
}

.main-footer .logo span {
    color: var(--accent);
}

.footer-column h3 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.95rem; /* Dari 1.1rem ke 0.95rem */
    margin-bottom: 15px; /* Jarak dirapatkan */
    color: var(--white);
    position: relative;
    padding-bottom: 8px;
}

/* Garis dekorasi judul kolom */
.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 20px; /* Garis lebih pendek */
    height: 2px;
    background-color: var(--accent);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6; /* Spasi antar baris lebih rapat */
    margin: 12px 0;
    font-size: 0.85rem; /* Font diperkecil */
    max-width: 250px;
}

.footer-column ul li {
    margin-bottom: 8px; /* Jarak antar list lebih rapat */
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem; /* Font diperkecil */
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hover effect */
.footer-column ul li:hover {
    color: var(--white);
    transform: translateX(5px);
}

/* Sosmed Icons Compact */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    width: 32px; /* Dari 38px ke 32px */
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px; /* Padding dikurangi */
    margin-top: 30px; /* Margin dikurangi */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem; /* Copywright lebih kecil */
}

/* Penyesuaian Mobile */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    .footer-desc {
        margin: 10px auto;
    }
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links, .footer-column ul li {
        justify-content: center;
    }
}