
.about-us {
    padding: 50px 10%;
    height: 55vh;
    animation: fadeIn 2s ease-in;
    background: url('https://img.tepcdn.com/img-style/simplecrop_article/75832806.jpg') no-repeat center center/cover;
    animation: backgroundSlideIn 1s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent black */
    z-index: 1;
}

.about-container {
    display: flex;                /* Flexbox layout */
    flex-direction: row;       /* Place content side by side */
    justify-content: space-between;
    align-items: center;          /* Center content vertically */
    max-width: 1200px;
    width: 100%;
    position: relative;           /* Ensure proper layering */
}

.about-header {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    max-width: 50%;               /* Limit the width of the text container */
    padding: 30px;
    transform: translateX(-100%);
    animation: textSlideIn 1.2s ease-out 0.5s forwards;
    border-radius: 10px;
}

.about-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 4px 4px 8px black; /* Stronger, more noticeable shadow */
}

.about-header p {
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 20px;
    color: white;
    line-height: 1.6;
    max-width: 600px;
    text-shadow: 4px 4px 8px black; /* Stronger, more noticeable shadow */
}

.about-image img {
    position:relative;
   
    @REM  max-width: 80%; /* Image takes up 50% of the container's width */
    margin-left:-70px;
    height: 19rem;
    width:40rem;
    border-radius: 10px;  /* Optional: rounded corners for the image */
}
.about-image {
    max-width: 50%; /* Image container takes up 50% of the width */
    opacity: 0;     /* Start with opacity 0 */
    transform: translateX(-100%); /* Start off-screen to the left */
    animation: imageSlideIn 1.2s ease-out forwards; /* Animate from left */
}

.about-image img {
    max-width: 100%; /* Image takes up the full width of its container */
    height: auto;
    border-radius: 10px;  /* Optional: rounded corners for the image */
}

@keyframes backgroundSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textSlideIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes imageSlideIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes backgroundSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textSlideIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}



.intro {
    background-color:#e6e4df;
    color: black;
    padding: 60px 20px;
    text-align: center;
}

.intro-text p {
    font-size: 2em;
    line-height: 1.6;
    margin-bottom: 40px;
    color: black;
}


.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    
}

.stat {
    text-align: center;
   
}

.stat h3 {
    font-size: 2em;
    color: black;
    margin-bottom: 10px;
}
.stat h3:hover{
    color:#10786a;
}
.stat p {
    
    font-size:1em;
    color: black;
}

/* Responsive design */
@media (max-width: 768px) {
    .stats {
        flex-direction: column;
        align-items: center;
    }

}

/*2nd section*/
/* Philosophy Section */
.philosophy-section {
    text-align: center;
    padding: 60px 10%;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
}

/* Section Header */
.section-header h4 {
    font-size: 2rem;
    letter-spacing: 2px;
    color: black;
    margin-bottom: 10px;
    text-transform: uppercase;
}


/* Philosophy Content */
.philosophy-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image Section */
.image-container {
    flex: 1;
    animation: fadeInLeft 1.2s ease-out;
    transition: transform 0.3s ease-in-out;
}

.image-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    

}
.image-container img:hover{
    transform: scale(1.1);
}
/* Text Content Section */
.text-content {
    flex: 1;
    text-align: left;
    animation: fadeInRight 1.2s ease-out;
}

.text-content h2 {
    font-size: 1.2em;
    color: #178778;
    margin-bottom: 15px;
}
.text{
     font-size: 1.2em;
    color: #178778;
    margin-bottom: 15px;
}

.text-content p {
    font-size: 1.1em;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .philosophy-content {
        flex-direction: column;
        text-align: center;
    }

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

/*next div */
/* Vision Content Container */
.vision-content {
    text-align: center;
    padding: 60px 10%;
    background-color: #ffffff;
    font-family: Arial, sans-serif;
}

/* Content Body for Vision Section */
.vision-content .content-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image Section for Vision */
.vision-content .image-container {
    flex: 1;
    animation: fadeInRight 1.2s ease-out;
}

.vision-content .image-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Text Content Section for Vision */
.vision-content .text-content {
    flex: 1;
    text-align: left;
    animation: fadeInLeft 1.2s ease-out;
}

.vision-content .text-content h2 {
    font-size: 2em;
    color: #34495e;
    margin-bottom: 15px;
}

.vision-content .text-content p {
    font-size: 1.1em;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Responsive Design for Vision Section */
@media (max-width: 768px) {
    .vision-content .content-body {
        flex-direction: column;
        text-align: center;
    }

    .vision-content .text-content {
        text-align: center;
    }
    .about-header p{
      display:none;
    }
}


/* Add styling for the section heading */

.service h2{
    text-align:center;
    margin:auto;
}
.section-heading1 {
    text-align: center;  /* This centers the text horizontally */
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
    animation: fadeIn 1.5s ease-out;
    width: 100%;  /* Ensure it takes up the full width */
    margin-left: auto;  /* Automatically adjust left margin */
    margin-right: auto;  /* Automatically adjust right margin */
}



/* Team section styles */
.team {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    animation: fadeInUp 2s ease-out;
    flex-wrap: wrap; /* Allow wrapping to handle smaller screens */
}

/* Individual team member styling */
.team-member {
    text-align: center;
    animation: zoomIn 1s ease-in-out;
    flex: 1 1 22%; /* Allows 4 items per row on larger screens */
    margin: 10px;
    box-sizing: border-box;
}

.team-member img {
    border-radius: 10px;
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}
.team-member img:hover{
     border-radius:30%;
     transform: scale(1.1);
}

.team-member h3 {
    font-size: 1.5em;
    color: #333;
}

.team-member p {
    font-size: 1.1em;
    color: #555;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .team {
        flex-direction: column;
        align-items: center;
    }

    .team-member img {
        width: 120px;
        height: 120px;
    }

    .team-member h3 {
        font-size: 1.2em;
    }

    .team-member p {
        font-size: 1em;
    }

    .team-member {
        flex: 1 1 100%; /* Stack members in single column on smaller screens */
    }
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideIn {
    0% { transform: translateX(-50%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
