/* ===== CSS VARIABLES ===== */
:root {
    --primary: #2a7a3c;
    --primary-dark: #1f5c2c;
    --primary-light: #d4edda;
    --secondary: #f36f21;
    --secondary-dark: #d45a17;
    --accent: #06d6a0;
    --light: #f8f9fa;
    --dark: #212529;
    --dark-gray: #495057;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ===== CSS RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY STYLES ===== */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f9fafc;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Disable body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 104, 55, 0.1);
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    margin-left: 10px;
}

/* ===== DESKTOP NAVIGATION ===== */
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ===== GALLERY CONTAINER ===== */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
    padding: 0 20px;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== GALLERY ITEM ===== */
.gallery-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border: 1px solid var(--light-gray);
    position: relative;
    height: 320px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.gallery-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* ===== FULL WIDTH CONTAINER ===== */
.full-width-container {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* ===== PAGE TYPOGRAPHY ===== */
.page-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin: 60px 0 10px;
    color: var(--dark);
    text-align: center;
}

.page-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* ===== GALLERY ITEM ANIMATION DELAYS ===== */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }

/* ===== RESPONSIVE STYLES - LARGE DESKTOP ===== */
@media (min-width: 1400px) {
    .gallery-container {
        padding: 0 40px;
        gap: 30px;
    }
    
    .gallery-item {
        height: 350px;
    }
}

/* ===== RESPONSIVE STYLES - LARGE TABLET ===== */
@media (max-width: 1200px) {
    .gallery-container {
        gap: 20px;
        padding: 0 30px;
    }
    
    .gallery-item {
        height: 300px;
    }
}

/* ===== RESPONSIVE STYLES - TABLET ===== */
@media (max-width: 992px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 25px;
    }
    
    .gallery-item {
        height: 280px;
    }
}

/* =========================================== */
/* 1️⃣ MOBILE BREAKPOINT WHERE NAVIGATION CHANGES */
/* =========================================== */
@media (max-width: 768px) {
    
    /* 2️⃣ MOBILE MENU BUTTON (HAMBURGER) */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 3️⃣ MAIN MOBILE NAVIGATION MENU */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        max-height: 60vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 999;
        overflow-y: auto;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        gap: 5px;
        margin: 0;
    }
    
    /* 4️⃣ WHEN MOBILE MENU IS OPENED */
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* 5️⃣ MOBILE NAV LINKS STYLING */
    .nav-menu li {
        width: 100%;
        list-style: none;
    }
    
    .nav-menu li a {
        padding: 15px 20px;
        display: block;
        width: 100%;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--dark);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-align: center;
        border-radius: var(--border-radius);
        margin: 4px 0;
        text-decoration: none;
        transition: var(--transition);
    }
    
    .nav-menu li a:hover {
        background-color: rgba(42, 122, 60, 0.05);
        color: var(--primary);
    }
    
    .nav-menu li a.active {
        background-color: rgba(42, 122, 60, 0.1);
        color: var(--primary);
        font-weight: 600;
    }
    
    /* GALLERY MOBILE STYLES */
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .gallery-item {
        height: 220px;
        width: 100%;
        max-width: 100%;
    }
}

/* ===== RESPONSIVE STYLES - SMALL MOBILE ===== */
@media (max-width: 576px) {
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .gallery-item {
        height: 280px;
        max-width: 100%;
    }
    
    .page-title {
        margin: 40px 0 10px;
    }
    
    .page-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

/* ===== RESPONSIVE STYLES - VERY SMALL MOBILE ===== */
@media (max-width: 360px) {
    .gallery-container {
        gap: 15px;
        padding: 0 15px;
    }
    
    .gallery-item {
        height: 250px;
    }
}

/* ===== LIGHTBOX STYLES ===== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.lightbox-overlay.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    cursor: default;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.1rem;
    padding: 10px 0;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* ===== HIDE MOBILE MENU BUTTON ON DESKTOP ===== */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}