* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #e3a026;
    color: #fff;
    padding: 1rem;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    /* font-size: 1.5rem; */
    /* font-weight: bold; */
    /* background-color: aqua; */
    height: 60px;
    width: 75px;
}

.logo img{
    height: 100%;
    width: 100%;
}
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
}
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
}


/* Hero Section */
/* .hero {
    background-color: #f4f4f4;
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
} */

.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    height: 60vh; /* Set the height of the hero section */
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw; /* Set width to 100% of the viewport width */
    height: auto; /* Allow height to adjust automatically */
    min-height: 100%; /* Ensure the video covers the full height */
    z-index: -1; /* Ensure the video is behind other content */
    transform: translate(-50%, -50%); /* Center the video */
    object-fit: fill; /* Ensures the video fills the area without cropping */
}

.cta-button {
    display: inline-block;
    background-color: #2d2d70;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    margin-top: 1rem;
    border-radius: 5px;
}

/* About Section */
.about {
    padding: 4rem 2rem;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1;
    padding-right: 2rem;
    text-align: left;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    height: auto;
}

/* Services Section */
.services {
    background-color: #f4f4f4;
    padding: 4rem 2rem;
}

.service-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin: 1rem;
    flex: 1 1 calc(33.333% - 2rem);
    min-width: 250px;
    text-align: left; /* Default alignment */
}

.service-card img {
    max-width: 100%;
    height: auto;
}

.justify-text {
    text-align: justify;
}

.center-text {
    text-align: center;
}

.pad{
    padding-left: 10rem;
    padding-right: 10rem;
    padding-bottom: 3rem;
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

input, textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
}

button {
    background-color: #333;
    color: #fff;
    padding: 0.5rem;
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

.social-media {
    /* margin-top: 1rem; */
    border-top: 1px solid #efefef;

}

.social-media a {
    color: #fff; /* Icon color */
    margin: 0 10px; /* Spacing between icons */
    text-decoration: none; /* Remove underline */
    font-size: 1.5rem; /* Icon size */
    transition: color 0.3s ease; /* Transition effect */
}

.social-media a:hover {
    color: #e3a026; /* Change color on hover */
}

/* Back-to-top button*/
#back-to-top {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    bottom: 20px; /* Place it at the bottom */
    right: 20px; /* Place it 20px from the right */
    z-index: 1002; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #e3a026; /* Black background */
    color: white; /* White text */
    cursor: pointer; /* Pointer/hand icon */
    padding: 15px; /* Some padding */
    border-radius: 70px; /* Rounded corners */
    font-size: 15px; /* Increase font size */
}

#back-to-top:hover {
    background-color: #2c2d6f; /* Add a dark-grey background on hover */
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* body{
        overflow-x: hidden;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: #e3a026;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        row-gap: 20px;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 1;
    }

    .nav-links li {
        opacity: 0;
    }
    .burger {
        display: block;
        z-index: 10;
    } */

    html, body {
        overflow-x: hidden;
        max-width: 100%;
        position: relative;
    }

    body {
        overflow-y: auto;
    }

    header {
        position: relative;
        overflow: hidden;
    }

    .nav-links {
        position: fixed; /* Changed from absolute to fixed */
        right: 0;
        top: 0; /* Adjust to full height */
        margin-top: 15px;
        height: 100vh;
        width: 35%;
        background-color: #e3a026;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        row-gap: 25px;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 1000; /* High z-index to ensure it's on top */
        padding-top: 60px; /* Adjust for header height */
    }

    .nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
        cursor: pointer;
        z-index: 1001; /* Ensure burger is above menu */
        position: relative;
    }

    .hero {
        height: 60vh; /* Keep the height full on smaller screens */
    }

    .background-video {
        width: 100vw; /* Ensure the video covers the full width */
        height: auto; /* Allow height to adjust automatically */
        min-height: 100%; /* Ensure the video covers the full height */
        object-fit: cover;
    }

    .about-content {
        flex-direction: column;
    }

    .about-content {
        flex-direction: column; /* Stack the content vertically */
    }

    .about-text {
        text-align: center; /* Center alignment on small screens */
        padding-right: 0; /* Remove right padding */
        text-align: justify; /* Justify text on small screens */
    }

    .about-image {
        margin-top: 2rem; /* Add some space above the image */
    }

    /* .service-card {
        flex: 1 1 calc(50% - 2rem);
    } */

    .service-card {
        text-align: center; /* Center alignment on small screens */
    }

    .service-card p {
        text-align: justify; /* Justify text on small screens */
    }

    .contact-content {
        flex-direction: column;
    }

    .pad{
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media screen and (max-width: 480px) {
    body{
        overflow-x: hidden;
    }


    .service-card {
        flex: 1 1 100%;
    }


}

/* About Page */
.about-page {
    padding: 2rem;
}

.team-section {
    margin-top: 2rem;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.team-member {
    text-align: center;
    margin: 1rem;
    flex: 1 1 200px;
}

/* Services Page */
.services-page {
    padding: 2rem;
}

.service-button {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    margin-top: 1rem;
}

/* Contact page styles */
.contact-page {
    padding: 2rem;
}

.contact-content {
    display: block;
    /* flex-wrap: wrap; */
    gap: 2rem;
    background-color: #333; 
    /* Original color */
    background-color: #333; 
    /* Original color */
    background-color: #ffffff; 
    /* New color */
}

.contact-form,
.contact-info {
    flex: 1 1 300px;
    padding: 25px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #555;
}

.map-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-placeholder {
    flex: 1 1 300px;
}

.map-placeholder iframe {
    width: 100%;
    height: 300px;
    border: none;
}

.map-placeholder p {
    margin-top: 0.5rem;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }

    .map-container {
        flex-direction: column;
    }
}


/* Pop-up styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 5px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
}

#popup-close {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    cursor: pointer;
}

/* Update popup styles for gallery */
.popup-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

#popup-caption {
    text-align: center;
    margin-top: 1rem;
}
/* Hamburger menu styles */
.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Gallery styles */
.gallery-page {
    padding: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}