/* ============================================================
   NUSANTARA BAJA - MAIN STYLESHEET
   Tema: Dark Blue (#1a2a3a) + Gold (#d4af37)
   Font: Playfair Display (heading) & Poppins (body)
   ============================================================ */

/* ---------- GLOBAL & RESET ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7fa;
    color: #333;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- WARNA TEMA ---------- */
.text-gold {
    color: #d4af37 !important;
}

.bg-gold {
    background-color: #d4af37;
}

.bg-dark-blue {
    background-color: #1a2a3a;
}

/* ---------- TOMBOL ---------- */
.btn-gold {
    background-color: #d4af37;
    color: #1a2a3a;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background-color: #b8960c;
    color: #fff;
}

.btn-outline-gold {
    border: 1px solid #d4af37;
    color: #d4af37;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-gold:hover {
    background-color: #d4af37;
    color: #1a2a3a;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #1a2a3a;
    font-weight: 600;
}
.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #1a2a3a;
}

.btn-outline-light:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #1a2a3a;
}

/* ---------- SECTION TITLE ---------- */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #d4af37;
    margin: 10px auto 0;
}

/* ---------- NAVBAR ---------- */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.navbar-brand {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-section h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.hero-section .btn-gold,
.hero-section .btn-outline-light {
    transition: transform 0.3s;
}
.hero-section .btn-gold:hover,
.hero-section .btn-outline-light:hover {
    transform: translateY(-2px);
}

/* ---------- SLIDER / CAROUSEL ---------- */
.carousel-item img {
    height: 500px;
    object-fit: cover;
}
.carousel-caption {
    background: rgba(0,0,0,0.5);
    border-radius: 6px;
    padding: 10px 20px;
}

/* ---------- FILTER KATEGORI ---------- */
.btn-outline-dark.active {
    background-color: #1a2a3a;
    color: #fff;
    border-color: #1a2a3a;
}

/* ---------- CARD PRODUK ---------- */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.card-img-wrapper {
    overflow: hidden;
}
.card-img-wrapper img {
    transition: transform 0.3s ease;
}
.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* ---------- PAGINATION ---------- */
.pagination .page-link {
    color: #1a2a3a;
    border-color: #dee2e6;
}
.pagination .page-item.active .page-link {
    background-color: #1a2a3a;
    border-color: #1a2a3a;
    color: #fff;
}
.pagination .page-link:hover {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #1a2a3a;
}

/* ---------- PREVIEW GAMBAR DI FORM PEMESANAN ---------- */
.preview-container {
    background-color: #2c3e50;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.preview-container img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 6px;
}

/* ---------- PORTOFOLIO ---------- */
.portfolio-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.portfolio-grid img:hover {
    transform: scale(1.03);
}

/* ---------- TESTIMONI ---------- */
.testimoni-card {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.testimoni-card:hover {
    transform: translateY(-3px);
}

/* ---------- ADMIN PANEL ---------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: linear-gradient(180deg, #1a2a3a, #2c3e50);
    color: #fff;
    z-index: 1000;
    transition: width 0.3s ease;
    overflow-x: hidden;
}
.sidebar.collapsed {
    width: 0;
}
.sidebar .logo {
    padding: 20px 25px;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 10px;
    color: #d4af37;
    white-space: nowrap;
}
.sidebar .nav-link {
    color: #ccc;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #d4af37;
    border-left: 4px solid #d4af37;
}
.main-content {
    margin-left: 250px;
    padding: 30px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}
.main-content.expanded {
    margin-left: 0;
}
.card-stat {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.topbar {
    background: #fff;
    padding: 12px 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-radius: 8px;
}

/* ---------- LIGHTBOX MODAL ---------- */
.modal-lightbox .modal-dialog {
    max-width: 80%;
}
.modal-lightbox img {
    width: 100%;
    border-radius: 10px;
}

/* ---------- FOOTER ---------- */
footer {
    background-color: #1a2a3a;
    color: #ccc;
    font-size: 0.9rem;
}

/* ---------- ANIMASI KEYFRAMES ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .carousel-item img {
        height: 350px;
    }
    .hero-section {
        min-height: 60vh;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
    }
    .sidebar.active {
        width: 250px;
    }
    .main-content {
        margin-left: 0;
    }
    .carousel-item img {
        height: 250px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
}