/* ========================================= */
/* PENGATURAN DASAR & VARIABEL WARNA         */
/* ========================================= */
:root {
    --bg-dark: #0F172A;
    --sidebar-bg: rgba(15, 23, 42, 0.8);
    --header-bg: rgba(15, 23, 42, 0.9);
    --accent-gold: #D4AF37;
    --text-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-secondary: #94A3B8;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}


/* ========================================= */
/* SIDEBAR NAVIGASI (DESKTOP)                */
/* ========================================= */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-light);
}

.menu {
    list-style: none;
    flex-grow: 1;
}

.menu li {
    margin-bottom: 1.5rem;
}

.menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding-left: 10px;
}

.menu a:hover {
    color: var(--text-light);
    padding-left: 20px;
}

.menu a.active {
    color: var(--accent-gold);
    font-weight: 600;
}

.menu a.active::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-gold);
    border-radius: 0 5px 5px 0;
}

.login-button {
    text-decoration: none;
    text-align: center;
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-button:hover {
    background-color: var(--accent-gold);
    color: var(--text-dark);
}


/* ========================================= */
/* KONTEN UTAMA                              */
/* ========================================= */
.main-content {
    flex-grow: 1;
    padding: 4rem;
    display: grid;
    place-items: center;
    background-color: #ffffff;
    overflow-y: auto;
}

.page-section {
    width: 100%;
    max-width: 1100px;
    color: var(--text-dark);
    display: none; /* Sembunyikan semua halaman */
}

.page-section.page-active {
    display: block; /* Tampilkan halaman yang aktif */
    animation: fadeIn 0.8s ease;
}

.hero-section.page-active {
    display: flex; /* Khusus untuk Beranda agar layoutnya benar */
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Section --- */
.hero-section {
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1 1 50%;
    max-width: 550px;
}

.hero-text h2 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2.5rem;
}

.hero-image {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background-color: var(--text-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* --- Halaman Lainnya --- */
.page-section h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-dark);
}

.subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.8;
    color: #555;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card h3 {
    font-family: var(--font-heading);
    margin: 1.5rem 0 0.5rem;
    color: var(--text-dark);
}

.product-card p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.contact-form .cta-button {
    align-self: center;
    border: none;
    cursor: pointer;
}


/* ========================================= */
/* MODAL LOGIN & OVERLAY                     */
/* ========================================= */
.modal {
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    color: var(--text-dark);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content label {
    font-weight: 600;
}

.modal-content input {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}


/* ========================================= */
/* RESPONSIVE (MOBILE & TABLET)              */
/* ========================================= */
.mobile-header {
    display: none;
}

@media (max-width: 992px) {
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open .overlay { opacity: 1; visibility: visible; }
    
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1.5rem;
        height: 70px;
        background-color: var(--header-bg);
        backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .mobile-logo {
        font-family: var(--font-heading);
        font-size: 1.8rem;
        color: var(--text-light);
    }
    .hamburger-menu {
        background: none; border: none; width: 30px; height: 22px; cursor: pointer; z-index: 1001;
    }
    .hamburger-menu span {
        display: block; width: 100%; height: 3px; background-color: var(--text-light); margin-bottom: 5px; border-radius: 3px; transition: all 0.3s ease-in-out;
    }

    .sidebar {
        position: fixed; top: 0; left: 0; height: 100vh; z-index: 1000; padding-top: 5rem; align-items: center; transform: translateX(-100%);
    }
    .sidebar .logo { display: none; }
    .sidebar .menu { flex-grow: 0; text-align: center; }
    .sidebar .login-button { margin-top: 2rem; }
    .menu a.active::before { display: none; }
    
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .hamburger-menu span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    body.sidebar-open .hamburger-menu span:nth-child(2) { opacity: 0; }
    body.sidebar-open .hamburger-menu span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    
    .main-content {
        margin-top: 70px;
        padding: 2rem;
    }
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    .hero-text h2 { font-size: 2.8rem; }
    .hero-text p { font-size: 1rem; }
    .hero-image img { max-width: 80%; animation: none; }
}

@media (max-width: 480px) {
    .hero-text h2 { font-size: 2.2rem; }
    .page-section h2 { font-size: 2rem; }
    .main-content { padding: 1.5rem; }
}