@media (max-width: 1399px) {
    .home-about-header h2 {
        /* padding-top: 18px; */
        font-size: 32px;
        margin-bottom: 5px;
    }
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 86%;
        }
        100% {
            width: 86%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 86%;
        }
        100% {
            width: 0;
        }
    }
}
   
@media (max-width: 1360px) {
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 87%;
        }
        100% {
            width: 87%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 87%;
        }
        100% {
            width: 0;
        }
    }
}

@media (max-width: 1200px) {
    /* .home-about-header {
        flex-direction: column;
        align-items: flex-start; 
        text-align: left; 
        gap: 5px;
    } */
    .home-about-header h4 {
        padding-top: 5px;
        /* margin-bottom: 5px; */
    }
    .home-about-header h2 {
        /* padding-top: 18px; */
        font-size: 28px;
        margin-bottom: 10px;
    }
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 91%;
        }
        100% {
            width: 91%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 91%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 1000px) {
    .home-about-header {
        flex-direction: row;
        align-items: center; /* Align items to the start of the flex container */
        text-align: left; /* Align text to the left */
        gap: 5px;
    }
    .home-about-header h4 {
        /* padding-top: 10px; */
        margin-bottom: 5px;
    }
    .home-about-header h2 {
        /* padding-top: 18px; */
        font-size: 28px;
        margin-bottom: 10px;
    }
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 92%;
        }
        100% {
            width: 92%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 92%;
        }
        100% {
            width: 0;
        }
    }
}

@media (max-width: 991.8px) {
    /* .home-about-header {
        flex-direction: column;
        align-items: flex-start; 
        text-align: left; 
        gap: 5px;
    }
    .home-about-header h4 {
        margin-top: 5px;
        padding-top: 0px;
    } */
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 59%;
        }
        100% {
            width: 59%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 59%;
        }
        100% {
            width: 0;
        }
    }
}

@media (max-width: 767px) {
    .home-awesome{
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }
    .home-about-header {
        flex-direction: column;
        align-items: flex-start; /* Align items to the start of the flex container */
        text-align: left; /* Align text to the left */
        gap: 5px;
    }

    .home-about-header h2 {
        font-size: 1.8rem; /* Adjust font size for better visibility on smaller screens */
    }
    .dynamic-text {
        display: inline-block; /* Ensure span only takes the space of the text */
        width: 0;
        white-space: nowrap;
        overflow: hidden;
        background-color: #ebf3f2;
        border-right: 5px solid #FF5C00;
        animation: animate 20s steps(30, end) forwards, pause-animation 7s steps(30) infinite;
        box-sizing: border-box; /* Include border in width calculation */
    }
    .home-about-header h4 {
        margin-top: 5px;
        padding-top: 0px;
    }
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 82%;
        }
        100% {
            width: 82%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 82%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 580px) {
    
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 86%;
        }
        100% {
            width: 86%;
        }
    }
    
    
    @keyframes pause-animation {
        0%,65% {
            width: 86%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 565px) {
    
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 87%;
        }
        100% {
            width: 87%;
        }
    }
    
    
    @keyframes pause-animation {
        0%,65% {
            width: 87%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 559px) {
    
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 89%;
        }
        100% {
            width: 89%;
        }
    }
    
    
    @keyframes pause-animation {
        0%,65% {
            width: 89%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 547px) {
    
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 91%;
        }
        100% {
            width: 91%;
        }
    }
    
    
    @keyframes pause-animation {
        0%,65% {
            width: 91%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 537px) {
    
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 93%;
        }
        100% {
            width: 93%;
        }
    }
    
    
    @keyframes pause-animation {
        0%,65% {
            width: 93%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 528px) {
    
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 95%;
        }
        100% {
            width: 95%;
        }
    }
    
    
    @keyframes pause-animation {
        0%,65% {
            width: 95%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 520px) {
    .section-title{
        font-size: 16px;
    }
    .home-about-header h2 {
        font-size: 1.6rem; 
    }
    .home-about-header h4 {
        margin-top: 5px;
        padding-top: 0px;
        font-size: 17px;
    }
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 86%;
        }
        100% {
            width: 86%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 86%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 513px) {
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 88%;
        }
        100% {
            width: 88%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 88%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 502px) {
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 90%;
        }
        100% {
            width: 90%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 90%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 494px) {
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 92%;
        }
        100% {
            width: 92%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 92%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 486px) {
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 94%;
        }
        100% {
            width: 94%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 94%;
        }
        100% {
            width: 0;
        }
    }
}
/* @media (max-width: 485px) {
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 79%;
        }
        100% {
            width: 79%;
        }
    }
    @keyframes pause-animation {
        0%,65% {
            width: 79%;
        }
        100% {
            width: 0;
        }
    }
} */
@media (max-width: 480px) {
    .section-title{
        font-size: 14px;
    }
    .home-about-header h2 {
        font-size: 1.4rem; 
    }
    .home-about-header h4 {
        margin-top: 5px;
        padding-top: 0px;
        font-size: 16px;
    }
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 86%;
        }
        100% {
            width: 86%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 86%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 470px) {
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 87%;
        }
        100% {
            width: 87%;
        }
    }
    @keyframes pause-animation {
        0%,65% {
            width: 87%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 458px) {
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 90%;
        }
        100% {
            width: 90%;
        }
    }
    @keyframes pause-animation {
        0%,65% {
            width: 90%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 450px) {
    .section-title{
        font-size: 14px;
    }
    .home-about-header h2 {
        font-size: 1.3rem; 
    }
    .home-about-header h4 {
        margin-top: 5px;
        padding-top: 0px;
        font-size: 16px;
    }
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 86%;
        }
        100% {
            width: 86%;
        }
    }
    @keyframes pause-animation {
        0%,65% {
            width: 86%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 437px) {
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 88%;
        }
        100% {
            width: 88%;
        }
    }
    @keyframes pause-animation {
        0%,65% {
            width: 88%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 428px) {
    .home-about-header h4 {
        margin-top: 5px;
        padding-top: 0px;
    }
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 90%;
        }
        100% {
            width: 90%;
        }
    }
    @keyframes pause-animation {
        0%,65% {
            width: 90%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 420px) {
    .home-about-header h4 {
        margin-top: 5px;
        padding-top: 0px;
    }
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 92%;
        }
        100% {
            width: 92%;
        }
    }
    @keyframes pause-animation {
        0%,65% {
            width: 92%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 412px) {
    .home-about-header h4 {
        margin-top: 5px;
        padding-top: 0px;
    }
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 94%;
        }
        100% {
            width: 94%;
        }
    }
    @keyframes pause-animation {
        0%,65% {
            width: 94%;
        }
        100% {
            width: 0;
        }
    }
}
/* @media (max-width: 430px){

    .home-about-header h4 {
        margin-top: 5px;
        padding-top: 0px;
    }
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 85%;
        }
        100% {
            width: 85%;
        }
    }
    
   
    @keyframes pause-animation {
        0%,65% {
            width: 85%;
        }
        100% {
            width: 0;
        }
    }
} */
@media (max-width: 407px) {
    .home-about-header h2 {
        font-size: 1.1rem;
    }
    .home-about-header h4 {
        font-size: 14px;
        margin-top: 5px;
        padding-top: 0px;
    }
    .section-title{
        font-size: 12px;
    }
    /* .home-about-header h4 {
        margin-top: 5px;
        padding-top: 0px;
    } */
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 84%;
        }
        100% {
            width: 84%;
        }
    }
    @keyframes pause-animation {
        0%,65% {
            width: 84%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 396px) {
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 86%;
        }
        100% {
            width: 86%;
        }
    }
    @keyframes pause-animation {
        0%,65% {
            width: 86%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 388px) {
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 88%;
        }
        100% {
            width: 88%;
        }
    }
    @keyframes pause-animation {
        0%,65% {
            width: 88%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 380px) {
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 90%;
        }
        100% {
            width: 90%;
        }
    }
    @keyframes pause-animation {
        0%,65% {
            width: 90%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 372px) {
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 92%;
        }
        100% {
            width: 92%;
        }
    }
    @keyframes pause-animation {
        0%,65% {
            width: 92%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 365px) {
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 94%;
        }
        100% {
            width: 94%;
        }
    }
    @keyframes pause-animation {
        0%,65% {
            width: 94%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 360px){
    .home-about-header h2 {
        font-size: 1rem;
    }
    .home-about-header h4 {
        font-size: 14px;
        margin-top: 5px;
        padding-top: 0px;
    }
    .section-title{
        font-size: 12px;
    }
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 89%;
        }
        100% {
            width: 89%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 89%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 351px){
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 91%;
        }
        100% {
            width: 91%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 91%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 344px){
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 93%;
        }
        100% {
            width: 93%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 93%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 340px){
    
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 95%;
        }
        100% {
            width: 95%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 95%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 333px){
    .home-about-header h2 {
        font-size: 14px;
    }
    .home-about-header h4 {
        font-size: 12px;
        margin-top: 5px;
        padding-top: 0px;
    }
    .section-title{
        font-size: 11px;
    }
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 90%;
        }
        100% {
            width: 90%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 90%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 321px){
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 92%;
        }
        100% {
            width: 92%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 92%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 316px){
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 95%;
        }
        100% {
            width: 95%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 95%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 309px){
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 97%;
        }
        100% {
            width: 97%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 97%;
        }
        100% {
            width: 0;
        }
    }
}
@media (max-width: 304px){
    @keyframes animate {
        0% {
            width: 0;
        }
        50% {
            width: 100%;
        }
        100% {
            width: 100%;
        }
    }
    
    /* Pause for 5 seconds before resetting */
    @keyframes pause-animation {
        0%,65% {
            width: 100%;
        }
        100% {
            width: 0;
        }
    }
}