/* --- Global Styles & Greenery Color Palette --- */
:root {
    --color-dark-primary: #0d1117; /* Deep Charcoal Background */
    --color-dark-secondary: #161b22; /* Slightly Lighter Section Background */
    --color-accent-green: #238636; /* Dominant Nature Green (Greenery Effect) */
    --color-text-light: #f0f6fc; /* White/Light Grey Text */
    --color-text-subtle: #a8b3cf; /* Subtle Grey Text */
    --font-heading: 'Cinzel', serif; /* Elegant Heading Font */
    --font-body: 'Montserrat', sans-serif; /* Clean Body Font */
}

/* Keyframes for Pulsing Glow on Website Name */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px var(--color-accent-green); }
    50% { box-shadow: 0 0 15px var(--color-accent-green); }
    100% { box-shadow: 0 0 5px var(--color-accent-green); }
}
/* style.css me add kro */
main > section {
    display: none; /* initially hide all sections */
    padding: 50px 20px;
}

main > section.active {
    display: block; /* show section when active */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark-primary);
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Attractive Fonts and Styling for Headings */
h1, h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    /* Attractive text shadow for pop */
    text-shadow: 0 0 5px rgba(35, 134, 54, 0.5); 
}

h1 { font-size: 3rem; color: var(--color-text-light); }
h2 { font-size: 2.5rem; color: var(--color-accent-green); }

section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- STICKY NAVIGATION BAR (Interactivity) --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: transparent;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Sticky effect on scroll */
#navbar.sticky {
    background-color: rgba(13, 17, 23, 0.95); /* Semi-transparent dark background */
    box-shadow: 0 2px 10px rgba(35, 134, 54, 0.3); /* Green glow shadow */
}

/* Highlighting the Website Name (Nav Brand) */
.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-accent-green);
    letter-spacing: 2px;
    padding: 5px 10px; 
    border-radius: 5px;
    /* Pulsing Glow Effect for highlighting */
    animation: pulseGlow 3s infinite alternate ease-in-out; 
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-light);
    padding: 10px 15px;
    margin: 0 5px;
    transition: color 0.3s, background-color 0.3s, border-radius 0.3s; 
    font-weight: 600;
    border: 1px solid transparent; 
}

/* Navigation Links Highlight */
.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text-light); 
    background-color: var(--color-accent-green); 
    border: 1px solid var(--color-text-light);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--color-accent-green); 
}

/* --- HERO/CAROUSEL SECTION --- */
.hero-carousel {
    padding: 0; 
    max-width: none;
    text-align: center;
    margin-top: 0; 
    position: relative;
    overflow: hidden;
    height: 100vh; 
    background-color: var(--color-dark-secondary);
}

.main-heading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: 4.5vw; 
    text-shadow: 0 0 15px rgba(35, 134, 54, 1); 
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    border-radius: 15px;
    animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.0s ease; 
}

.carousel-slide.active {
    display: block;
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); 
}

.carousel-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(35, 134, 54, 0.8); 
    color: var(--color-text-light);
    padding: 10px 25px;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 0 10px var(--color-accent-green);
}

.prev-slide, .next-slide {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(35, 134, 54, 0.5); 
    z-index: 20;
    border-radius: 50%;
}

.next-slide {
    right: 20px;
}

.prev-slide {
    left: 20px;
}

.prev-slide:hover, .next-slide:hover {
    background-color: rgba(35, 134, 54, 0.8);
    transform: translateY(-50%) scale(1.1); 
}
/* --- END HERO/CAROUSEL SECTION --- */


/* --- ABOUT SECTION --- */
.about-section {
    background-color: var(--color-dark-secondary);
    border-top: 1px solid var(--color-accent-green);
    border-bottom: 1px solid var(--color-accent-green);
    padding: 80px 20px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(22, 27, 34, 0.9);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--color-accent-green);
    box-shadow: 0 0 10px rgba(35, 134, 54, 0.4);
}

.about-content h2 { color: var(--color-accent-green); }
.about-content p { color: var(--color-text-subtle); text-align: center; font-size: 1.1rem; }
/* --- END ABOUT SECTION --- */


/* --- GALLERY TABS AND CONTROLS --- */
.gallery-main-section {
    padding-top: 80px;
}

.tab-controls {
    text-align: center;
    margin: 30px 0;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--color-accent-green);
    color: var(--color-text-subtle);
    padding: 10px 20px;
    margin: 0 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    font-weight: 600;
    border-radius: 5px;
}

.tab-btn:hover {
    background: rgba(35, 134, 54, 0.2);
    color: var(--color-accent-green);
}

.tab-btn.active {
    color: var(--color-text-light);
    background: var(--color-accent-green);
    box-shadow: 0 0 10px rgba(35, 134, 54, 0.8);
    transform: scale(1.05);
}


/* *** MASONRY GALLERY STRUCTURE *** */
.gallery-content {
    display: none;
    column-count: 3; 
    column-gap: 15px;
    padding: 15px;
    animation: tabFadeIn 0.8s ease-out; 
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-content.active {
    display: block;
}

/* --- GALLERY ITEM HOVER EFFECTS & TRANSITIONS --- */
.gallery-item {
    break-inside: avoid; /* Essential for Masonry layout */
    margin-bottom: 15px;
    overflow: hidden; 
    cursor: pointer;
    position: relative;
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease; 
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    /* Transition for zoom and filter */
    transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
}

/* Hover Effect: Zoom and Filter */
.gallery-item:hover img {
    transform: scale(1.05); 
    filter: brightness(1.1); 
}

/* Hover Glow Effect */
.gallery-item:hover {
    box-shadow: 0 0 15px var(--color-accent-green); 
}

/* Caption Fade-in on Hover */
.gallery-item .item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-text-light);
    padding: 10px 15px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0; 
    transition: opacity 0.3s ease;
}

.gallery-item:hover .item-caption {
    opacity: 1; 
}


/* --- LIGHTBOX/MODAL STYLES --- */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); 
    z-index: 100;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.lightbox-hidden {
    opacity: 0;
    visibility: hidden;
}

.lightbox-shown {
    opacity: 1;
    visibility: visible;
}

#lightbox-image {
    max-width: 90vw;
    max-height: 80vh; 
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border: 3px solid var(--color-accent-green);
    box-shadow: 0 0 20px rgba(35, 134, 54, 0.8);
    transition: transform 0.3s ease;
}

#lightbox-caption {
    color: var(--color-accent-green);
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 15px;
    text-shadow: 0 0 5px rgba(35, 134, 54, 0.5);
}

.lightbox-actions {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 15px;
    z-index: 101;
}

.action-btn {
    background: var(--color-accent-green);
    color: var(--color-text-light);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.action-btn:hover {
    background: #1a6f2b; /* Slightly darker green */
    transform: translateY(-2px);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    z-index: 101;
}

.lightbox-close:hover {
    color: var(--color-accent-green);
    transform: rotate(90deg);
}

/* --- Navigation Button Styling --- */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(35, 134, 54, 0.6); 
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
    z-index: 100; 
}

#prev-btn {
    left: 30px;
}

#next-btn {
    right: 30px;
}

.lightbox-nav-btn:hover {
    background: var(--color-accent-green); 
    transform: translateY(-50%) scale(1.1);
}

/* --- FOOTER --- */
footer {
    background-color: var(--color-dark-secondary);
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(35, 134, 54, 0.5);
    color: var(--color-text-subtle);
    font-size: 0.9rem;
}

.social-links a {
    color: var(--color-text-subtle);
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-accent-green);
}


/* --- RESPONSIVE DESIGN (BREAKPOINTS) --- */

@media (max-width: 1024px) {
    /* Adjust Main Heading Size */
    .main-heading {
        font-size: 5vw; 
        padding: 15px 30px;
    }
    
    /* Adjust Masonry Column Count for tablets */
    .gallery-content {
        column-count: 2; /* Two columns wide for tablets */
        column-gap: 10px;
    }

    /* Reduce Padding on Buttons */
    .tab-btn {
        padding: 8px 15px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Stack Navigation Links */
    #navbar {
        flex-direction: column;
        padding: 15px 20px;
        align-items: flex-start;
    }

    .nav-links {
        display: flex; 
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .nav-links li {
        margin: 5px 0;
    }

    .nav-links a {
        padding: 10px;
        display: block; 
        text-align: center;
    }
    
    /* Adjust Main Heading Size for phones */
    .main-heading {
        font-size: 7vw;
        padding: 10px 20px;
        width: 90%;
        top: 45%;
    }

    /* Single Column for Gallery on Phones */
    .gallery-content {
        column-count: 1; 
        column-gap: 0;
        padding: 10px;
    }

    .gallery-item {
        margin-bottom: 10px;
    }

    /* Simplify tab controls on mobile */
    .tab-controls {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-btn {
        margin: 5px;
        flex: 1 1 40%; /* Allows 2 buttons per row */
    }

    /* Lightbox Navigation Position Adjustments */
    .lightbox-nav-btn {
        top: auto;
        bottom: 20px; 
    }

    #prev-btn { left: 20px; transform: translateY(0); }
    #next-btn { right: 20px; transform: translateY(0); }
    
    .lightbox-actions {
        bottom: 70px;
    }
}