/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Montserrat:wght@400;500&display=swap');

/* Variabel Warna */
:root {
    --primary-color: #8B5E34;
    --secondary-color: #F0EAD6;
    --accent-color: #D4A373;
    --text-color: #333;
    --white-color: #FFFFFF;
    --wa-green: #25D366;
}

/* Reset Dasar */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

/* Tombol CTA (Umum) dengan Animasi */
.cta-button, .cta-button-nav, #load-more-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-out, box-shadow 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover, .cta-button-nav:hover, #load-more-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}


/* =========================== */
/* HEADER & NAVIGASI (MOBILE)  */
/* =========================== */
header {
    background: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}
.nav-desktop {
    display: none;
}
.menu-toggle-button {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.menu-toggle-button span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}
.nav-mobile {
    display: none;
    background: var(--white-color);
    box-shadow: 0 4px 5px rgba(0,0,0,0.1);
}
.nav-mobile.active {
    display: block;
}
.nav-mobile ul {
    list-style: none;
}
.nav-mobile li {
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.nav-mobile a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}
.nav-mobile a.cta-button-mobile {
    background: var(--primary-color);
    color: var(--white-color);
    margin: 10px;
    border-radius: 5px;
}
.nav-mobile a.cta-button-mobile:hover {
    background: var(--accent-color);
}

/* =========================== */
/* KONTEN HALAMAN (MOBILE)     */
/* =========================== */
section {
    padding: 40px 0;
}
.hero {
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/hero-bg.jpg') no-repeat center center/cover;
    filter: blur(5px);
    transform: scale(1.05);
    z-index: -1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-size: 2.2rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.page-title {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 30px 0;
}
.page-title h1 {
    font-size: 2rem;
}
.featured-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    margin-top: 30px;
}
.featured-items .item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Gallery Grid */
.gallery-grid .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}
.gallery-item img:hover { transform: scale(1.05); }

/* --- KODE BARU UNTUK LIGHTBOX DENGAN ANIMASI --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.0);
    justify-content: center;
    align-items: center;
    transition: background-color 0.4s ease;
}
.lightbox.active {
    display: flex;
    background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.lightbox.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}
.close-button {
    position: absolute;
    top: 20px; right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.close-button:hover {
    opacity: 1;
}
/* --- AKHIR KODE BARU LIGHTBOX --- */


/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}
.social-media-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.social-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--white-color);
}
.social-icon[aria-label="Instagram"] {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-icon[aria-label="Instagram"]:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.social-icon[aria-label="TikTok"] {
    background: #000;
}
.social-icon[aria-label="TikTok"]:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.admin-login-link {
    margin-top: 15px;
}
.admin-login-link a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}
.admin-login-link a:hover {
    color: rgba(255, 255, 255, 1);
}

/* TOMBOL WA MELAYANG dengan Animasi */
.floating-wa-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--wa-green);
    color: var(--white-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.floating-wa-button:hover {
    background-color: #1EBE56;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transform: scale(1.1);
    animation-play-state: paused;
}
.floating-wa-button svg {
    width: 32px;
    height: 32px;
}

/* KATEGORI GALERI dengan Animasi */
.gallery-category .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 20px;
}
.category-card {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.category-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.category-card:hover img {
    transform: scale(1.05);
}
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
}
.card-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--white-color);
    margin: 0;
    transition: transform 0.4s ease;
}
.category-card:hover .card-overlay h3 {
    transform: translateY(-10px);
}

/* LOAD MORE BUTTON & SPINNER */
.load-more-container {
    text-align: center;
    padding: 40px 0;
}
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* =========================== */
/* HALAMAN TENTANG KAMI (BARU) */
/* =========================== */
.about-us-content .container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.about-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.about-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}
.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.why-us-section {
    text-align: center;
}
.why-us-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
.feature-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.location-section {
    text-align: center;
}
.location-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.location-section p {
    margin-bottom: 30px;
}
.map-container {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================== */
/* HALAMAN ADMIN (DIPERBAIKI)  */
/* =========================== */
.login-page {
    background: #f4f7f6;
    padding: 40px 20px;
    border: 1px solid #e0e0e0;
}
.login-page h1 {
    text-align: center;
    margin-bottom: 25px;
}
.admin-form label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}
.admin-form input, .admin-form select {
    background-color: #fff;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.admin-form input:focus, .admin-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 94, 52, 0.2);
}
.admin-form button {
    margin-top: 10px;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-out, box-shadow 0.3s ease, background-color 0.3s ease;
}
.admin-form button:hover {
    background: var(--accent-color);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.error, .success {
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    border-left: 5px solid;
}
.error {
    background-color: #f8d7da;
    border-color: #d9534f;
    color: #721c24;
}
.success {
    background-color: #d4edda;
    border-color: #5cb85c;
    color: #155724;
}
.admin-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}
.admin-nav a:hover {
    opacity: 0.7;
}

/* =========================== */
/* MEDIA QUERY (DESKTOP)       */
/* =========================== */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    .nav-desktop ul {
        list-style: none;
        display: flex;
        gap: 2rem;
    }
    .nav-desktop a {
        text-decoration: none;
        color: var(--text-color);
        font-weight: 500;
        transition: color 0.3s;
    }
    .nav-desktop a:hover, .nav-desktop a.active {
        color: var(--primary-color);
    }
    .menu-toggle-button, .nav-mobile {
        display: none;
    }
    header .logo {
        font-size: 1.8rem;
    }
    section {
        padding: 60px 0;
    }
    .hero { height: 80vh; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 1.2rem; }
    .page-title h1 { font-size: 2.8rem; }
    .featured-items {
        flex-direction: row;
        gap: 20px;
    }
    .gallery-category .container {
        grid-template-columns: 1fr 1fr;
    }
    .about-section {
        grid-template-columns: 1fr 1fr;
    }
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .map-container {
        padding-bottom: 40%;
    }
}
@media (min-width: 992px) {
    .gallery-grid .container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================== */
/* ANIMASI KEYFRAMES           */
/* =========================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =========================== */
/* DAFTAR FOTO ADMIN (BARU)    */
/* =========================== */
.daftar-foto {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}
.daftar-foto h2 {
    text-align: center;
    margin-bottom: 20px;
}
.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom di HP */
    gap: 15px;
}
.gallery-admin-item {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.gallery-admin-item img {
    display: block;
    width: 100%;
    height: 150px; /* Sesuaikan tinggi preview */
    object-fit: cover;
}
.hapus-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(217, 83, 79, 0.9); /* Merah dengan transparansi */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.hapus-btn:hover {
    background-color: #d9534f; /* Merah solid saat hover */
}

/* Tampilan di desktop */
@media (min-width: 768px) {
    .gallery-admin-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 kolom di tablet/desktop kecil */
    }
}
@media (min-width: 992px) {
    .gallery-admin-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 kolom di desktop besar */
    }
}
