/***********************************
     ABOUT US SECTION
***********************************/
/* about us cards */
.about-us .about-us-card {
    height: 350px;
    background-color: var(--bs-bg-dark);
    border-color: var(--bs-border-gray) !important;
}

.about-us .about-us-card h3 {
    font-size: 6rem;
    text-shadow: 0 0 14px var(--bs-text-shadow);
}

.about-us .about-us-card .badge {
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 12px 12px 0 0;
    font-size: 0.8rem;
}

.about-us .about-us-card .badge-green {
    background-color: #1db954;
}

.about-us .about-us-card .badge-red {
    background-color: #e63946;
}

/* about us sliders */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.about-us .slider .slide-track {
    animation: scroll 60s linear infinite;
}

.about-us .slider .slide {
    width: 1100px;
}

.about-us .slider .slide h6 {
    color: rgba(251, 243, 222, 0.2);
    transition-duration: 0.5s;
    transition-property: all;
    font-size: 16rem;
    font-weight: 900;
}

.about-us .slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5), transparent);
    z-index: 2;
    pointer-events: none; /* Ensure it doesn't block interactions with content */
}

.about-us .slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Adjust the height to control the coverage */
    background: rgba(255, 255, 255, 1); /* Semi-transparent white */
    z-index: 3; /* Ensure it overlays the text but stays above other elements */
    pointer-events: none; /* Avoid blocking interactions */
}


/***********************************
     OUR MISSION SECTION
***********************************/
/* typewriter frame */
.our-mission .border-wrapper {
    position: relative;
    display: inline-block;
    border: 2px solid #007bff;
    max-width: fit-content;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.our-mission .border-wrapper .corner-square-top-left,
.our-mission .border-wrapper .corner-square-top-right,
.our-mission .border-wrapper .corner-square-bottom-left,
.our-mission .border-wrapper .corner-square-bottom-right {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #007bff;
}

.our-mission .border-wrapper .corner-square-top-left {
    top: -6px;
    left: -6px;
}

.our-mission .border-wrapper .corner-square-top-right {
    top: -6px;
    right: -6px;
}

.our-mission .border-wrapper .corner-square-bottom-left {
    bottom: -6px;
    left: -6px;
}

.our-mission .border-wrapper .corner-square-bottom-right {
    bottom: -6px;
    right: -6px;
}

.our-mission .typewriter-margin-left:nth-child(1) {margin-left: 30%;}
.our-mission .typewriter-margin-left:nth-child(2) {margin-left: 26%;}
.our-mission .typewriter-margin-left:nth-child(3) {margin-left: 40%;}
.our-mission .typewriter-margin-left:nth-child(4) {margin-left: 36%;}

/* Base Styling for the Animated Text */
.our-mission .cursor {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    font-size: 3rem;
    white-space: nowrap;
    overflow: hidden;
    color: rgba(17, 17, 17, 0.7);
    border-right: 2px solid #0a53be;
}

/* Animation for the text */
.our-mission .typewriter-animation {
    max-width: 0;
    overflow: hidden;
    animation: none; /* Do not start the animation by default */
}

/* Sequential animation delays for each line */
.our-mission .typewriter-animation-1 {
    animation-delay: 0s, 2s;
}

.our-mission .typewriter-animation-2 {
    animation-delay: 2s, 4s;
}

.our-mission .typewriter-animation-3 {
    animation-delay: 4s, 6s;
}

.our-mission .typewriter-animation-4 {
    animation-delay: 6s, 8s;
}

/* Keyframes for typewriter effect */
@keyframes typewriter {
    from {
        max-width: 0;
    }
    to {
        max-width: 100%;
    }
}

@keyframes blinkingCursor {
    from {
        border-right-color: #007bff;;
    }
    to {
        border-right-color: transparent;
    }
}

/* Show the element when it comes into view */
.our-mission .border-wrapper.active {
    opacity: 1;
    visibility: visible; /* Make it visible when it comes into view */
}

/* Trigger the typewriter animation when the element is visible */
.our-mission .border-wrapper.active .typewriter-animation {
    animation: typewriter 5s steps(50) 1 normal both, blinkingCursor 500ms steps(50) infinite normal;
}


/***********************************
     TEAM SECTION
***********************************/
.team .team1-img,
.team .team2-img {
    height: 600px;
}

.team .team1-img {
    transform: rotate(15deg)
}

.team .team2-img {
    transform: rotate(-15deg);
    margin-top: -150px;
}

.team .team1-img, .team .team2-img {
    width: 60%;
    border: 5px solid var(--bs-primary);
}

.team .team3-img,
.team .team4-img,
.team .team5-img {
    height: 400px;
    border: 5px solid rgba(251, 243, 222, 0.1);
}

.team .team3-img {
    width: 60%;
}

.team .team4-img {
    width: 60%;
    margin-top: -100px;
    margin-left: -100px;
}

.team .team5-img {
    width: 80%;
    margin-top: -100px;
}












