/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 20px;
    text-align: center;
}

.gallery-title {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Gallery Container */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Gallery Items */
.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Effects */
.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox Popup */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    animation: fadeInLightbox 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
}

.lightbox-close:hover {
    color: #f44336;
    /* Red on hover */
}

.hero {
    background: url('../images/hero1.png') center/cover no-repeat;
    height: 90vh;
    display: flex;
    align-items: flex-end;
    /* Align content to the bottom initially */
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 0 20px;
    overflow: hidden;
    /* Prevents any overflow when the hero text moves */
}

.hero-text {
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px 40px;
    border-radius: 5px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    margin-bottom: 20px;
    transition: transform 0.5s ease-out;
    /* Smooth transition for the movement */
}

/* Additional styling for when the hero text is centered */
.hero-text.scrolled {
    transform: translateX(-50%) translateY(-50%);
    /* Moves the text to the center */
}

label {
    color: #43a047 !important;

}

.hero h1 {
    font-size: 3rem;
    margin: 0;
}

.hero p {
    font-size: 1.5rem;
}





/* Lightbox Fade Animation */
@keyframes fadeInLightbox {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 2rem;
    }
}