/* ===============================
   1. Variabel warna & Reset dasar
   =============================== */
:root {
    --green-polije: #103727;
    --green-darker: #082017;
    --orange-cta: #C25D3C;
    --white: #ffffff;
    --cream-bg: #f5f3ec;
    --text-dark: #263225;
    --text-muted: #e0e0e0;
    --text-gray: #666;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cream-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =======================================
   2. Header (Top Bar + Navbar utama)
   ======================================= */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Top Bar */
.top-bar {
    background-color: var(--green-darker);
    color: rgba(255,255,255,0.8);
    padding: 8px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    display: flex;
    gap: 20px;
}

.top-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-contact i {
    color: var(--orange-cta);
}

.top-socials {
    display: flex;
    gap: 15px;
}

.top-socials a {
    color: rgba(255,255,255,0.8);
    transition: 0.3s;
}

.top-socials a:hover {
    color: var(--orange-cta);
}

/* Navbar */
.navbar {
    background-color: var(--green-polije);
    padding: 15px 0;
    transition: 0.3s;
    position: relative;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1002;
}

.logo img {
    height: 48px;
    width: auto;
}

.brand {
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--white);
}

/* ===============================
   Hamburger menu (mobile)
   =============================== */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle i {
    color: var(--white);
    font-size: 1.8rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links > li > a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--white);
    font-weight: 600;
}

.nav-links > li > a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--white);
}

/* Dropdown menu */
.dropdown-menu {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropbtn {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    text-decoration: none;
}

.dropbtn i {
    font-size: 0.7rem;
    margin-left: 5px;
    color: var(--orange-cta);
    transition: 0.3s;
}

.dropdown-menu:hover .dropbtn i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px;
    background-color: var(--green-polije);
    min-width: 200px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.2);
    z-index: 999;
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-menu:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a {
    color: rgba(255,255,255,0.9);
    padding: 12px 25px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: 0.3s;
}

.dropdown-content a:hover {
    color: var(--orange-cta);
    background-color: rgba(255,255,255,0.05);
}

.user-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.user-btn:hover {
    background: var(--orange-cta);
    border-color: var(--orange-cta);
    transform: scale(1.05);
}

.user-btn i {
    color: var(--white);
    font-size: 16px;
}

/* ===============================
   3. Page Header Section
   =============================== */
.page-header {
    background-color: var(--green-polije);
    padding: 80px 0 120px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/ag-square.png');
    opacity: 0.05;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.breadcrumb {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s ease;
}

/* ===============================
   4. Gallery Section
   =============================== */
.gallery-section {
    padding: 80px 0;
    min-height: 800px;
}

/* Filter Button */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--green-polije);
    padding: 10px 25px;
    border-radius: 50px;
    color: var(--green-polije);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--green-polije);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(16, 55, 39, 0.2);
}

/* Grid Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Hover Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 55, 39, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s ease;
    color: var(--white);
    text-align: center;
    padding: 20px;
}

.overlay h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    transform: translateY(20px);
    transition: 0.4s;
}

.overlay p {
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: 0.4s;
    margin-top: 5px;
    color: var(--orange-cta);
    font-weight: 600;
}

.overlay i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transform: scale(0);
    transition: 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item:hover .overlay h4,
.gallery-item:hover .overlay p {
    transform: translateY(0);
}

.gallery-item:hover .overlay i {
    transform: scale(1);
}

/* ===============================
   Lightbox tampilan detail foto
   =============================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    text-align: center;
    color: white;
    max-width: 800px;
    width: 100%;
    position: relative;
}

.lightbox img {
    max-width: 100%;
    max-height: 65vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.lightbox-caption {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
    color: var(--orange-cta);
}

.lightbox-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    color: #ccc;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
    width: fit-content;
    margin: 0 auto 20px auto;
}

.lightbox-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox-meta i {
    color: var(--orange-cta);
}

.lightbox-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #eee;
    max-width: 700px;
    margin: 0 auto;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--orange-cta);
    transform: rotate(90deg);
}

/* ===============================
   Pagination gallery
   =============================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: 0.3s;
    background: var(--white);
    cursor: pointer;
}

.page-link:hover,
.page-link.active {
    background-color: var(--green-polije);
    color: var(--white);
    border-color: var(--green-polije);
    transform: scale(1.1);
}

/* ===============================
   5. Footer Section
   =============================== */
footer {
    background-color: var(--green-darker);
    color: var(--white);
    padding: 80px 0 30px 0;
    position: relative;
    overflow: hidden;
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.03;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.f-logo-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.f-logo-circle {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.f-logo-circle img {
    width: 40px;
    height: auto;
}

.f-brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
}

.f-desc {
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.8;
    margin-bottom: 30px;
}

.f-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--orange-cta);
    border-color: var(--orange-cta);
    transform: translateY(-3px);
}

.f-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.f-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--orange-cta);
}

.f-links ul,
.f-contact ul {
    list-style: none;
    padding: 0;
}

.f-links li {
    margin-bottom: 15px;
}

.f-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

.f-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.f-links a::before {
    content: '\203A';
    margin-right: 8px;
    color: var(--orange-cta);
    opacity: 0;
    transition: 0.3s;
    transform: translateX(-5px);
}

.f-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.f-contact li {
    margin-bottom: 25px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    transition: 0.3s;
}

.contact-row:hover {
    color: var(--orange-cta);
}

.contact-row i {
    font-size: 1.3rem;
    color: var(--orange-cta);
    margin-top: 3px;
}

.contact-text h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--white);
}

.contact-text span {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
    display: block;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.1);
    color: white;
    outline: none;
}

.newsletter-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    background: var(--orange-cta);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-btn:hover {
    background: #a84d31;
    transform: rotate(15deg);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ===============================
   Animasi & efek transisi
   =============================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-out {
    animation: fadeOut 0.4s ease forwards !important;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* ===============================
   6. Responsive Rules (Mobile)
   =============================== */
@media (max-width: 768px) {

    /* Tampilkan tombol hamburger saat mobile */
    .menu-toggle {
        display: block;
    }

    /* Sidebar menu mobile */
    .nav-right {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--green-polije);
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
        gap: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    /* Saat menu dibuka */
    .nav-right.active {
        max-height: 500px;
        opacity: 1;
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 15px;
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-links > li > a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    /* Dropdown mobile */
    .dropdown-menu {
        display: block;
        height: auto;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        margin-top: 0;
        background: rgba(0,0,0,0.1);
    }

    .dropdown-menu:hover .dropdown-content {
        display: block;
    }

    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .f-col {
        text-align: center;
    }

    .f-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .f-logo-flex,
    .f-socials,
    .contact-row,
    .f-links a {
        justify-content: center;
    }

    .lightbox-meta {
        flex-direction: column;
        gap: 5px;
    }
}
