/* General Reset */
body, h1, h2, p, form, img {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f4f9;
    line-height: 1.7;
}

/* Hero Section Gradient Enhancement */
.hero {
    background: linear-gradient(
        rgba(0, 0, 0, 0.8), 
        rgba(0, 0, 0, 0.4)
    ), 
    url('../assets/container1.jpg') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    padding-top: 0;
}


.overlay {
    margin-top: -30px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4rem;
    border-radius: 8px;
    width: 95%;  /* Ensure overlay doesn't overflow */
    max-width: 1200px;
    position: relative;
}

.logo {
    width: 800px;
    max-width: 100%;  /* Scale down on smaller screens */
    background-color: rgba(255, 255, 255, 0.85); 
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
}

.section-divider {
    width: 80%;
    margin: 0 auto; /* Match section spacing */
    border-top: 2px solid #ccc;
    opacity: 0.6;
}


.hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);  /* Fluid scaling */
    margin-top: 1rem;
    color: #628f5c;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;  /* Wrap buttons on smaller screens */
}

.cta-btn {
    background-color: #dddddd;
    color: rgb(0, 0, 0);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    min-width: 160px;
}

.cta-btn:hover {
    background-color: #628f5c;
}

/* About Section */
.about {
    padding: 2rem 1.5rem;
    text-align: center;
    background-color: #ffffff;
}

.about h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.about p {
    max-width: 850px;
    margin: 1rem auto;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery {
    padding: 2rem 1.5rem;
    background-color: #f0f0f0;
    text-align: center;
    margin-bottom: 0;
}

.gallery h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* Grid Layout for Gallery */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));  /* Dynamic columns */
    gap: 1.5rem;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
}

/* Uniform Image Size for Gallery */
.gallery-container img {
    width: 100%;
    height: 250px;  /* Fixed height for uniformity */
    object-fit: cover;  /* Ensures cropping without distortion */
    max-width: 350px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 90%;
    display: block;
    margin: auto;
    position: relative;
    object-fit: contain;
}

/* Contact Section */
.contact {
    justify-content: flex-start;
    padding: 4rem 1.5rem;
    background-color: #eaeaea;
    text-align: center;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.contact h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}
/* Center Contact Form Properly */
.contact form {
    max-width: 600px;
    width: 90%;
    margin: 2rem auto; /* Center it */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between fields */
    padding: 2rem;
    background-color: white; /* Clean background for form */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* Elevated look */
    border-radius: 12px;
}

.contact input:focus, 
.contact textarea:focus {
    border-color: #007bff; /* Highlight on focus */
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.5);
    outline: none;
}

.contact input, 
.contact textarea,
.contact button{
    width: 100%;
    padding: 0.9rem; /* Ensure consistent padding */
    font-size: 1rem;
    font-family: 'Arial', sans-serif;
    line-height: 1.5; /* Match text height */
    background-color: #fff;
    border: 1px solid gray;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding in size */
    vertical-align: middle;
}

.contact textarea {
    height: auto; /* Let the content height adjust naturally */
    min-height: 200px; /* Set a minimum height */
    padding: 0.9rem; /* Same as input padding */
    line-height: 1.5; /* Match line height with input */
    resize: none; /* Prevent resizing (optional) */
}

.contact button {
    width: 100%; /* Match input width */
    background-color: #007bff; /* Vibrant button color */
    color: white;
    font-size: 1.2rem;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact input::placeholder,
.contact textarea::placeholder {
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #aaa;
}

.contact button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-3px); /* Lift effect */
}

.contact button:active {
    transform: translateY(0); /* Reset on click */
}

/* Add subtle animations */
.contact form {
    animation: fadeInUp 0.8s ease;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 1rem;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
    }

    .contact form {
        width: 90%;
        max-width: 500px;
        margin: 2rem auto;
        padding: 1rem;
        position: static;
        transform: none;
    }

    .contact h2 {
        font-size: 2rem;
    }

     .overlay {
        padding: 2rem;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 0;
    
     }
    .cta-btn {
        width: 100%;
    }

    .logo{
        width: 300px;
    }
}

 
    

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .contact form {
        width: 95%;
        max-width: 100%;
        margin: 2rem auto;
        padding: 1.2rem;
        position: static;
        transform: none;
    }

    .contact h2 {
        font-size: 1.8rem;
    }

    .contact button {
        padding: 0.8rem;
    }

    .logo {
        width: 350px;
    }
    
    .overlay{
        width: 95%;
        padding: 1.5rem;
    }

}