/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #fff;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: green;
    color: white;
    padding: 15px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 50px;
    margin-right: 10px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    margin-right: 15px; /* Space between image and text */
}

.logo .text-container {
    display: flex;
    flex-direction: column;
}

.logo h2, .logo h3 {
    margin: 0; /* Removes default margins */
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

header nav ul li a:hover {
    opacity: 0.8;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
}

/* Slider */
.slider-container {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Add space for fixed header */
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1s ease;
}

.slide {
    min-width: 100%;
    aspect-ratio: 16 / 9; 
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: white; 
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    opacity: 1 !important;
    transition: opacity 0.5s ease;
}

/* About Us */
#about {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

#about h2 {
    color: green;
}

/* Gallery */
#gallery {
    padding: 40px 20px;
    margin-top: 30px;
}

#gallery h2 {
    text-align: center;
    color: green;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Gallery Overlay Button */
.gallery-item {
    position: relative;
}

.gallery-overlay-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    z-index: 5;
}


.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: #bbb;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Contact Us */
#contact {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

#contact h2 {
    color: green;
    margin-bottom: 20px;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#contact label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

#contact button {
    background-color: green;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#contact button:hover {
    background-color: darkgreen;
}

/* Footer */
footer {
    background-color: green;
    color: white;
    text-align: center;
    padding: 10px 20px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 10px 15px;
    }
    
    .logo {
        flex: 1;
    }
    
    .logo .text-container h2 {
        font-size: 1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    header nav {
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        width: 100%;
    }
    
    header nav.active {
        max-height: 200px;
    }
    
    header nav ul {
        flex-direction: column;
        padding: 10px 0;
    }
    
    header nav ul li {
        margin: 8px 0;
        margin-left: 0;
    }
    
    .slider-container {
        height: 300px;
        margin-top: 70px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .gallery-img {
        height: 150px;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .prev, .next {
        padding: 12px;
        font-size: 24px;
    }
    
    #contact form {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .logo img {
        height: 40px;
        margin-right: 8px;
    }
    
    .slider-container {
        height: 250px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .gallery-img {
        height: 120px;
    }
    
    #about, #gallery, #contact {
        padding: 30px 15px;
    }

}
