.about-us-title-text {
    text-align: center;
    padding-top: 5%;
}

.about-us-title-text h1 {
    font-size: 3em;
    color: #666;
    position: relative;
}

.about-us-title-text h1::after {
    content: '';
    position: absolute;
    height: 3px;
    background-color: #666;
    bottom: -3px;
    left: 50%;
    width: 0%;
    animation: expandBar 1s ease-in-out forwards;
}
.navbar {
    background-color: #4b4a475b; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Rubik', sans-serif;
    padding: 2%;
    margin-top: 0;
    width: 100%;
    height: 6%;
    position: fixed; 
    z-index: 2; 
    backdrop-filter: blur(4px);
  }

@keyframes expandBar {
    0% {
        width: 0%;
        left: 50%;
    }
    100% {
        width: 50%;
        left: 25%;
    }
}

.about-us-section {
    background-color: #ffffff;
    padding-top: 2.5%;
    padding-bottom: 2.5%;
}

.about-us-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 90%; /* Adjusted from 1200px */
    margin: 0 auto;
    flex-wrap: wrap; /* Added for responsiveness */
}

.about-us-image {
    flex: 1;
    padding-right: 5%; /* Adjusted padding */
    opacity: 0;
    animation: flyInLeft 1s ease forwards;
    min-width: 300px; /* Ensures minimum size */
}

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

.about-us-image img {
    max-width: 100%; /* Adjusted from 650px */
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.5s ease;
    box-shadow: 2.5px 5px 12px #0f0f0f90;
}

.about-us-image img:hover {
    transform: scale(1.05);
    transition: transform 0.75s ease, box-shadow 0.75s ease;
    box-shadow: 5px 10px 25px #0f0f0f90;
}

.about-us-text {
    flex: 1;
    color: #666666;
    opacity: 0;
    animation: flyInRight 1s ease forwards;
    min-width: 300px; /* Ensures minimum size */
}

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

.about-us-text p {
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: 15px;
}

button {
    border: none;
    outline: 0;
    padding: 5%;
    margin: 2rem;
    font-size: 1rem;
    color: white;
    background-color: #40b736;
    text-align: center;
    cursor: pointer;
    width: 15rem;
    border-radius: 4px;
}

button:hover {
    background-color: #1f9405;
}

.team {
    padding: 10px 0;
    text-align: center;
}

.team h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #666;
}

.team-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.card {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 18rem;
    height: auto;
    margin-top: 10px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

.card-img {
    width: 100%; /* Adjusted from 18rem */
    height: auto; /* Adjusted from 12rem */
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.card-info {
    padding-bottom: 20px;
}

.card-info button {
    margin: 1rem 1rem;
}

.card-name {
    color: #666;
    font-size: 2rem;
    margin: 10px 0;
}

.card-email {
    font-size: 1rem;
    color: #555;
}

@media screen and (max-width: 768px) {
    .about-us-title-text h1 {
        font-size: 2em;
    }

    .about-us-content {
        flex-direction: column; /* Stack elements vertically */
        padding: 0 5%; /* Adjust padding for smaller screens */
    }

    .about-us-image,
    .about-us-text {
        padding: 0;
        min-width: 100%; /* Ensures elements take full width */
    }

    .card {
        max-width: 100%; /* Ensures cards take full width */
    }
}
