/* Global Styles */
body {
    font-family: "Barlow", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal overflow */
    max-width: 100vw; /* Prevent elements from expanding beyond the viewport width */
}

a {
    text-decoration: none;
    color: #333;
}

header {
    background: rgb(255, 255, 255);
    color: #fff;
    padding: .5rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
    overflow: hidden;
}

.logo {
   height: 70px;
}

.logo-container{
display: flex;
}

.logo-container>h1{
    margin-left: 5px;
    align-items: center;
color: #009444;
}

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

.nav-links li a {
    color: #009444;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #F9A645;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background: #070000;
    border-radius: 5px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {

    .logo-container>h1{
        margin-left: 5px;
        font-size: 1.4rem;
    }

    p {
        font-size: 1.3rem !important;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        background: #F9A645;
        width: 100%;
        height: 0;
        overflow: hidden;
        flex-direction: column;
        align-items: center;
        transition: height 0.3s ease;
    }

    .nav-links.active {
        height: 300px;
    }

    .burger {
        display: flex;
    }

    .about-text ul li {
        margin: 0.7rem 0;
        font-size: 2rem;
    }

    body {
        font-size: 1.2rem;
    }

    h1, h2, h3, h4 {
        font-size: 1.5em; /* Increase the font size of headers */
    }
}

section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: auto;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    /* opacity: 0; */
    transform: translateY(20px);
    overflow: hidden;
    width: 100%; /* Ensure sections do not overflow */
}

section.active {
    /* opacity: 1; */
    transform: translateY(0);
}

/* Smooth scrolling for links */
html {
    scroll-behavior: smooth;
}

.home {
    height: 100vh;
    width: 100vw;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hero-content {
    max-width: 600px;
    position: absolute;
    z-index: 10;
    width: 90%; /* Ensure hero content fits within viewport */
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    /* background-color: white; */
    display: inline-block;

    color: #e98616;
}

.hero-content p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    font-weight: 700;
    /* background-color: white; */
    color: #3ad884;
}

.btn {
    background: #fff;
    /* color: #F9A645; */
    font-weight: 700;
    color: #e98616;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #ddd;
}

.carousel {
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    overflow: hidden;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 0 0 100%; /* Ensure all images take full width of the container */
    transition: transform 1.5s ease-out; /* Smooth ease-out transition */
}

.about, .services, .contact {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 2rem;
    overflow: hidden; /* Prevent overflow */
    width: 100%; /* Ensure sections do not overflow */
    box-sizing: border-box;
}

.about h2, .services h2, .contact h2, .team h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #009444;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-text {
    flex: .5;
    min-width: 300px;
}

.about-text>h3 {
    color: #F9A645;
}

.about-text>h4 {
    color: #009444;
}

.about-images {
    flex: .4;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    box-sizing: border-box;
}

.about-images>img{
    margin-bottom: 15px;
}

.about-img {
    width: 80%;
    border-radius: 0 50px 0 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.about-text ul {
    list-style-type: disc;
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #333;
}

.about-text ul li {
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* Specialized Areas of Focus */
.focus-list {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0;
    width: 100%;
    box-sizing: border-box;
}

.focus-list li {
    display: flex;
    align-items: center;
    margin: 0.5rem;
    font-size: 1rem;
    flex-basis: calc(50% - 1rem); /* Adjusts the width of each item */
}

.focus-img {
    width: 140px;
    height: 140px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.service-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.service-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    max-width: 220px;
    text-align: center;
}

.service-box i {
    font-size: 2.5rem;
    color: #009444;
    margin-bottom: 0.5rem;
}

#services>h3{
    color: #009444;
    text-align: center;
}

.service-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #F9A645;
}

.service-box p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.4;
}

.team {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: auto;
    width: 100%; /* Ensure section does not overflow */
    box-sizing: border-box;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7rem;
}

.team-member {
    flex: 1 1 270px;
    text-align: center;
    width: 200px;
}

.team-member img {
    width: 150px;
    height: 180px;
    border-radius: 10%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.team-member img:hover {
    transform: scale(1.1);
}

.team-member h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
    color: #333;
}

.team-member h4 {
    color: #F9A645;
}

.team-member p {
    font-size: 1rem;
    color: #777;
    text-align: justify;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 50%;
}

.contact label {
    font-weight: bold;
    color: #F9A645;
}

.contact input, .contact textarea {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

.contact textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer styling */
footer {
    background-color: #F9A645;
    color: #fff;
    padding: 2rem 0;
    margin-top: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%; /* Ensure footer content does not overflow */
    box-sizing: border-box;
}

.footer-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-content p i {
    margin-right: 0.5rem;
    color: #009444; /* You can choose any color for the icons */
}

.footer-content .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-content .contact-info a {
    color: #fff;
    text-decoration: none;
    margin: 0.5rem 0;
}

.footer-content .contact-info a:hover {
    text-decoration: underline;
}

.contact-info>p {
    text-align: left;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .footer-content .contact-info {
        align-items: flex-start;
    }
    .footer-content iframe {
        margin: 0;
    }

    .contact-info>p {
        text-align: left;
    }
}

/* Additional styles for better responsiveness */
@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-text {
        text-align: center;
    }

    .about-text ul li {
        font-size: 1.2rem;
    }

    .about-img {
        width: 100%;
    }

    .service-box {
        max-width: 100%;
    }

    .service-box h3 {
        font-size: 1.1rem;
    }

    .service-box p {
        font-size: 0.9rem;
    }

    .team-member h3 {
        font-size: 1.1rem;
    }

    .team-member p {
        font-size: 0.9rem;
    }

    .contact form {
        width: 100%;
    }
}

/* .about-gallery {
    display: flex;
    gap: 1rem;
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.about-gallery-img{
    width: 40%;
    height: 15%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 auto; 
}
    */
