@media (max-width: 576px) {
    .container {
        max-width: 576px;
    }

    .img1 {
        position: absolute;
        width: 170px;
        left: auto;
        top: 100px;
    }

    .img2 {
        position: absolute;
        width: 170px;
        right: auto;
        top: 380px;
    }

    marquee {
        font-size: 1rem;
    }

    /* typewriter */
    .typewriter {
        width: 100%;
        height: 200px;
        margin-top: 150px;
        flex-direction: column;
        margin-inline: auto;
        align-items: center;
        justify-content: center;
        /* border:2px solid #AF33F7; */
    }

    .typewriter h1 {
        font-family: Montserrat;
        letter-spacing: 0.2rem;
        font-size: 3rem;
    }

    .typewriter .text {
        position: relative;
        color: #AF33F7;
        font-size: 25px;
        font-weight: 600;
        font-family: poppins;
    }

    .typewriter .text.first-text {
        color: #002244;
    }

    .text.sec-text:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: #fff;
        border-left: 1px solid #002244;
        animation: animate 4s steps(12) infinite;
    }

    @keyframes animate {

        40%,
        60% {
            left: calc(100% + 4px);
            border-left: 1px solid #fff;
        }

        100% {
            left: 0%;
        }
    }

    /* service images */
    .service-images {
        width: 100%;
        margin-top: 150px;
        margin-inline: auto;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 2px;
        flex-wrap: wrap;
        border-top: 2px solid #AF33F7;
        border-bottom: 2px solid #AF33F7;
        padding: 15px 0;
        background-image: none;
    }

    .service-images img {
        width: 90px;
        border-radius: 45px;
        padding: 5px;
        opacity: 70%;
        transition: 0.3s;
    }

    .service-images img:hover {
        opacity: 100%;
        /* transform: rotate(360deg); */
        transform: scale(0.95);
        box-shadow: 1px 1px 5px #000;
        border: none;
    }

    /* nav section */
    nav {
        justify-content: center;
        width: 100%;
        background-color: #fff;
        height: 50px;
        padding: 5px 2px;
        margin: 2px 0;
        background: url(images/splash2.webp);
        background-size: 130%;
        background-position: top;
        background-repeat: no-repeat;
    }

    .rightside-nav img {
        width: 40px;
    }

    .rightside-nav {
        width: 30%;
        justify-content: flex-start;
        align-items: center;
    }

    .rightside-nav a {
        transition: 0.3s;
        font-weight: 500;
        font-size: 0.9rem;
    }

    .rightside-nav a:hover {
        color: #002244;
        transform: translatey(-5px);
    }

    .leftside-nav {
        width: 70%;
        gap: 10px;
        justify-content: flex-end;
        align-items: center;
    }

    .leftside-nav a {
        /* border: 1px solid #AF33F7; */
        padding: 3px;
        transition: 0.3s;
        font-weight: 500;
        font-size: 0.7rem;
    }

    .leftside-nav a:hover {
        box-shadow: 5px 5px 0px #AF33F7;
        transform: translatey(-5px);
        background-color: #fff;
        border-top: 1px solid #AF33F7;
        border-left: 1px solid #AF33F7;
    }

    /* desc section */
    .desc-sec {
        width: 100%;
        flex-direction: column;
        margin-top: 50px;
        justify-content: center;
        height: auto;
        align-items: center;
        gap: 20px;
        padding: 10px;
    }

    .company-desc {
        width: 100%;
        height: auto;
        overflow: hidden;
        line-height: 2rem;
        text-align: center;
        /* border:2px solid red; */
    }

    .company-desc p {
        font-size: 1rem;
    }

    .company-logo {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .company-logo img {
        height: 300px;
        width: 300px;
        border-radius: 150px;
        border: 2px solid #AF33F7;
    }

    /* services-section */
    .services-sec {
        flex-direction: column;
        align-items: center;
        margin-top: 100px;
        justify-content: center;

    }

    .services-sec h2 {
        background: -webkit-radial-gradient(#AF33F7, #002244);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 3rem;
        font-family: Montserrat;
        text-align: center;
        letter-spacing: 0.1rem;
        width: 100%;
    }

    /* service 1 */
    .service1 {
        margin-top: 50px;
        flex-direction: column-reverse;
    }

    .serv1-desc {
        width: 90%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-inline: auto;
        padding-inline: 20px;
    }

    .serv1-desc h3 {
        color: #AF33F7;
        font-family: poppins;
        font-size: 1.5rem;
        text-align: center;
    }

    .serv1-desc p {
        text-align: center;
        font-size: 1rem;
    }

    .serv1-desc span {
        color: #AF33F7;
        margin-top: 10px;
        font-size: 20px;
    }

    .serv1-desc a {
        letter-spacing: 0.1rem;
        font-weight: 600;
        transition: 0.3s;
    }

    .serv1-desc a:hover {
        color: black;
    }

    .serv1-img {
        width: 100%;
        text-align: center;
    }

    .serv1-img img {
        height: 200px;
    }

    /* service 2 */
    .service2 {
        margin-top: 50px;
        flex-direction: column;
    }

    .serv2-desc {
        width: 90%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-inline: auto;
        padding-inline: 20px;
    }

    .serv2-desc h3 {
        color: #AF33F7;
        font-family: poppins;
        font-size: 1.5rem;
        text-align: center;
    }

    .serv2-desc p {
        text-align: center;
        font-size: 1rem;
    }

    .serv2-desc span {
        color: #AF33F7;
        margin-top: 10px;
        font-size: 20px;
    }

    .serv2-desc a {
        letter-spacing: 0.1rem;
        font-weight: 600;
        transition: 0.3s;
    }

    .serv2-desc a:hover {
        color: black;
    }

    .serv2-img {
        width: 100%;
        text-align: center;
    }

    .serv2-img img {
        height: 200px;
    }

    /* service 1 */
    .service3 {
        margin-top: 50px;
        flex-direction: column-reverse;
    }

    .serv3-desc {
        width: 90%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-inline: auto;
        padding-inline: 20px;
    }

    .serv3-desc h3 {
        color: #AF33F7;
        font-family: poppins;
        font-size: 1.5rem;
        text-align: center;
    }

    .serv3-desc p {
        text-align: center;
        font-size: 1rem;
    }

    .serv3-desc span {
        color: #AF33F7;
        margin-top: 10px;
        font-size: 20px;
    }

    .serv3-desc a {
        letter-spacing: 0.1rem;
        font-weight: 600;
        transition: 0.3s;
    }

    .serv3-desc a:hover {
        color: black;
    }

    .serv3-img {
        width: 100%;
        text-align: center;
    }

    .serv3-img img {
        height: 200px;
    }

    /* service 4 */
    .service4 {
        margin-top: 50px;
        flex-direction: column;
    }

    .serv4-desc {
        width: 90%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-inline: auto;
        padding-inline: 20px;
    }

    .serv4-desc h3 {
        color: #AF33F7;
        font-family: poppins;
        font-size: 1.5rem;
        text-align: center;
    }

    .serv4-desc p {
        text-align: center;
        font-size: 1rem;
    }

    .serv4-desc span {
        color: #AF33F7;
        margin-top: 10px;
        font-size: 20px;
    }

    .serv4-desc a {
        letter-spacing: 0.1rem;
        font-weight: 600;
        transition: 0.3s;
    }

    .serv4-desc a:hover {
        color: black;
    }

    .serv4-img {
        width: 100%;
        text-align: center;
    }

    .serv4-img img {
        height: 200px;
    }
}

@media (min-width: 577px) and (max-width:768px) {
    .img1 {
        position: absolute;
        width: 180px;
        left: auto;
        top: 90px;
    }

    .img2 {
        position: absolute;
        width: 170px;
        right: auto;
        top: 410px;
    }

    /* hover effect */
    .hover-1 {
        background: linear-gradient(#AF33F7 0 0) left / var(--p, 0) no-repeat;
        transition: .4s, background-position 0s;
    }

    .hover-1:hover {
        --p: 100%;
        color: #fff;
        /* background-position: right; */
    }

    /* typewriter */
    .typewriter {
        width: 100%;
        height: 200px;
        margin-top: 150px;
        flex-direction: column;
        margin-inline: auto;
        align-items: center;
        justify-content: center;
        /* border:2px solid #AF33F7; */
    }

    .typewriter h1 {
        font-family: Montserrat;
        letter-spacing: 0.2rem;
        font-size: 5rem;
    }

    .typewriter .text {
        position: relative;
        color: #AF33F7;
        font-size: 30px;
        font-weight: 600;
        font-family: poppins;
    }

    .typewriter .text.first-text {
        color: #002244;
    }

    .text.sec-text:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: #fff;
        border-left: 1px solid #002244;
        animation: animate 4s steps(12) infinite;
    }

    @keyframes animate {

        40%,
        60% {
            left: calc(100% + 4px);
            border-left: 1px solid #fff;
        }

        100% {
            left: 0%;
        }
    }

    /* service images */
    .service-images {
        width: 100%;
        margin-top: 160px;
        margin-inline: auto;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 25px;
        flex-wrap: wrap;
        border-top: 2px solid #AF33F7;
        border-bottom: 2px solid #AF33F7;
        padding: 20px 0;
        background-image: none;
    }

    .service-images img {
        width: 120px;
        border-radius: 60px;
        padding: 2px;
        opacity: 70%;
        transition: 0.3s;
    }

    .service-images img:hover {
        opacity: 100%;
        /* transform: rotate(360deg); */
        transform: scale(0.95);
        box-shadow: 1px 1px 5px #000;
        border: none;
    }


    .container {
        max-width: 768px;
        height: auto;
        /* background-color: #002244; */
    }

    /* nav section */
    nav {
        justify-content: center;
        width: 100%;
        background-color: #fff;
        height: 50px;
        padding: 10px 10px;
        margin: 10px 0;
        background: url(images/splash2.webp);
        background-size: 130%;
        background-position: top;
        background-repeat: no-repeat;
    }

    .rightside-nav {
        width: 30%;
        justify-content: flex-start;
    }

    .rightside-nav a {
        /* border: 1px solid #AF33F7; */
        padding: 3px;
        transition: 0.3s;
        font-weight: 500;
        font-size: 1.4rem;
    }

    .rightside-nav a:hover {
        color: #002244;
        transform: translatey(-5px);
    }

    .leftside-nav {
        width: 70%;
        gap: 50px;
        justify-content: flex-end;
    }

    .leftside-nav a {
        /* border: 1px solid #AF33F7; */
        padding: 5px;
        transition: 0.3s;
        font-weight: 500;
        font-size: 1rem;
    }

    .leftside-nav a:hover {
        box-shadow: 5px 5px 0px #AF33F7;
        transform: translatey(-5px);
        background-color: #fff;
        border-top: 1px solid #AF33F7;
        border-left: 1px solid #AF33F7;
    }

    /* desc section */
    .desc-sec {
        width: 100%;
        flex-direction: column;
        margin-top: 50px;
        height: auto;
    }

    .company-desc {
        width: 100%;
        padding-inline: 30px;
        line-height: 2.8rem;
        text-align: center;
    }

    .company-logo {
        width: 100%;
        justify-content: center;
        align-items: center;
        margin-bottom: 30px;
    }

    .company-logo img {
        height: 300px;
        width: 300px;
        border-radius: 150px;
        border: 2px solid #AF33F7;
    }

    /* services-section */
    .services-sec {
        flex-direction: column;
        align-items: center;
        margin-top: 100px;

    }

    .services-sec h2 {
        background: -webkit-radial-gradient(#AF33F7, #002244);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 3.5rem;
        text-align: center;
        font-family: Montserrat;
        letter-spacing: 0.2rem;
    }

    /* service 1 */
    .service1 {
        margin-top: 50px;
        flex-direction: column-reverse;
    }

    .serv1-desc {
        width: 90%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-inline: auto;
        padding-inline: 10px;
    }

    .serv1-desc h3 {
        color: #AF33F7;
        font-family: poppins;
        font-size: 2.2rem;
        text-align: center;
    }

    .serv1-desc p {
        text-align: center;
        font-size: 1.3rem;
    }

    .serv1-desc span {
        color: #AF33F7;
        margin-top: 10px;
        font-size: 20px;
    }

    .serv1-desc a {
        letter-spacing: 0.1rem;
        font-weight: 600;
        transition: 0.3s;
    }

    .serv1-desc a:hover {
        color: black;
    }

    .serv1-img {
        width: 100%;
        text-align: center;
    }

    .serv1-img img {
        height: 300px;
    }

    /* service 2 */
    .service2 {
        margin-top: 50px;
        flex-direction: column;
    }

    .serv2-desc {
        width: 90%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-inline: auto;
        padding-inline: 10px;
    }

    .serv2-desc h3 {
        color: #AF33F7;
        font-family: poppins;
        font-size: 2.2rem;
        text-align: center;
    }

    .serv2-desc p {
        text-align: center;
        font-size: 1.3rem;
    }

    .serv2-desc span {
        color: #AF33F7;
        margin-top: 10px;
        font-size: 20px;
    }

    .serv2-desc a {
        letter-spacing: 0.1rem;
        font-weight: 600;
        transition: 0.3s;
    }

    .serv2-desc a:hover {
        color: black;
    }

    .serv2-img {
        width: 100%;
        text-align: center;
    }

    .serv2-img img {
        height: 300px;
    }

    /* service 3 */
    .service3 {
        margin-top: 50px;
        flex-direction: column-reverse;
    }

    .serv3-desc {
        width: 90%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-inline: auto;
        padding-inline: 10px;
    }

    .serv3-desc h3 {
        color: #AF33F7;
        font-family: poppins;
        font-size: 2.2rem;
        text-align: center;
    }

    .serv3-desc p {
        text-align: center;
        font-size: 1.3rem;
    }

    .serv3-desc span {
        color: #AF33F7;
        margin-top: 10px;
        font-size: 20px;
    }

    .serv3-desc a {
        letter-spacing: 0.1rem;
        font-weight: 600;
        transition: 0.3s;
    }

    .serv3-desc a:hover {
        color: black;
    }

    .serv3-img {
        width: 100%;
        text-align: center;
    }

    .serv3-img img {
        height: 300px;
    }

    /* service 1 */
    .service4 {
        margin-top: 50px;
        flex-direction: column;
    }

    .serv4-desc {
        width: 90%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-inline: auto;
        padding-inline: 10px;
    }

    .serv4-desc h3 {
        color: #AF33F7;
        font-family: poppins;
        font-size: 2.2rem;
        text-align: center;
    }

    .serv4-desc p {
        text-align: center;
        font-size: 1.3rem;
    }

    .serv4-desc span {
        color: #AF33F7;
        margin-top: 10px;
        font-size: 20px;
    }

    .serv4-desc a {
        letter-spacing: 0.1rem;
        font-weight: 600;
        transition: 0.3s;
    }

    .serv4-desc a:hover {
        color: black;
    }

    .serv4-img {
        width: 100%;
        text-align: center;
    }

    .serv4-img img {
        height: 300px;
    }
}

@media (min-width:769px) and (max-width:1024px) {
    .img1 {
        position: absolute;
        width: 230px;
        left: 40px;
        top: 110px;
    }

    .img2 {
        position: absolute;
        width: 250px;
        top: 380px;
        right: 40px;
    }

    nav {
        justify-content: center;
        width: 100%;
        background-color: #fff;
        height: 50px;
        padding: 10px 10px;
        margin: 10px 0;
        background: url(images/splash2.webp);
        background-size: 130%;
        background-position: top;
        background-repeat: no-repeat;
    }

    .rightside-nav {
        width: 30%;
        justify-content: flex-start;
    }

    .rightside-nav a {
        /* border: 1px solid #AF33F7; */
        color: white;
        transition: 0.3s;
        font-weight: 500;
        font-size: 1.5rem;
    }

    .rightside-nav a:hover {
        color: #002244;
    }

    .leftside-nav {
        width: 70%;
        gap: 50px;
        justify-content: flex-end;
    }

    .leftside-nav a {
        /* border: 1px solid #AF33F7; */
        color: #fff;
        padding: 3px;
        transition: 0.3s;
        font-weight: 500;
        font-size: 1.2rem;

    }

    .leftside-nav a:hover {
        box-shadow: 5px 5px 0px #AF33F7;
        transform: translatey(-5px);
        background-color: #fff;
        color: #AF33F7;
        border-top: 1px solid #AF33F7;
        border-left: 1px solid #AF33F7;
    }

    /* typewriter */
    .typewriter {
        width: 100%;
        height: 200px;
        margin-top: 150px;
        flex-direction: column;
        margin-inline: auto;
        align-items: center;
        justify-content: center;
        /* border:2px solid #AF33F7; */
    }

    .typewriter h1 {
        font-family: Montserrat;
        letter-spacing: 0.2rem;
        font-size: 5rem;
        z-index: 2;
    }

    .typewriter .auto-type {
        position: relative;
        color: #AF33F7;
        font-size: 25px;
        font-weight: 600;
        font-family: poppins;
    }

   
    /* service images */
    .service-images {
        width: 100%;
        margin-top: 200px;
        margin-inline: auto;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        /* border-top: 2px solid #AF33F7;
        border-bottom: 2px solid #AF33F7; */
    }

    .service-images img {
        width: 175px;
        border-radius: 87.5px;
        padding: 5px;
        opacity: 70%;
        transition: 0.3s;
    }

    .service-images img:hover {
        opacity: 100%;
        /* transform: rotate(360deg); */
        transform: scale(0.95);
        box-shadow: 1px 1px 5px #000;
        border: none;
    }


    .container {
        max-width: 1024px;
        height: auto;
        /* background-color: #002244; */
    }

    /* desc section */
    .desc-sec {
        width: 100%;
        flex-direction: column;
        margin-top: 0px;
        height: auto;
        align-items: center;
    }

    .company-desc {
        margin-top: 30px;
        width: 90%;
        padding-left: 10px;
        line-height: 2.7rem;
        text-align: center;
    }

    .company-logo {
        width: 30%;
        justify-content: center;
        align-items: center;
    }

    .company-logo img {
        height: 300px;
        width: 300px;
        border-radius: 150px;
        border: 2px solid #AF33F7;
    }

    /* services-section */
    .services-sec {
        flex-direction: column;
        align-items: center;
        margin-top: 150px;

    }

    .services-sec h2 {
        background: -webkit-radial-gradient(#AF33F7, #002244);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 3.5rem;
        text-align: center;
        font-family: Montserrat;
        letter-spacing: 0.2rem;
    }

    /* service 1 */
    .service1 {
        margin-top: 50px;
        flex-direction: column-reverse;
    }

    .serv1-desc {
        width: 90%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-inline: auto;
        padding-inline: 10px;
    }

    .serv1-desc h3 {
        color: #AF33F7;
        font-family: poppins;
        font-size: 2.2rem;
        text-align: center;
    }

    .serv1-desc p {
        text-align: center;
        font-size: 1.3rem;
    }

    .serv1-desc span {
        color: #AF33F7;
        margin-top: 10px;
        font-size: 20px;
    }

    .serv1-desc a {
        letter-spacing: 0.1rem;
        font-weight: 600;
        transition: 0.3s;
    }

    .serv1-desc a:hover {
        color: black;
    }

    .serv1-img {
        width: 100%;
        text-align: center;
    }

    .serv1-img img {
        height: 300px;
    }

    /* service 2 */
    .service2 {
        margin-top: 50px;
        flex-direction: column;
    }

    .serv2-desc {
        width: 90%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-inline: auto;
        padding-inline: 10px;
    }

    .serv2-desc h3 {
        color: #AF33F7;
        font-family: poppins;
        font-size: 2.2rem;
        text-align: center;
    }

    .serv2-desc p {
        text-align: center;
        font-size: 1.3rem;
    }

    .serv2-desc span {
        color: #AF33F7;
        margin-top: 10px;
        font-size: 20px;
    }

    .serv2-desc a {
        letter-spacing: 0.1rem;
        font-weight: 600;
        transition: 0.3s;
    }

    .serv2-desc a:hover {
        color: black;
    }

    .serv2-img {
        width: 100%;
        text-align: center;
    }

    .serv2-img img {
        height: 300px;
    }

    /* service 3 */
    .service3 {
        margin-top: 50px;
        flex-direction: column-reverse;
    }

    .serv3-desc {
        width: 90%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-inline: auto;
        padding-inline: 10px;
    }

    .serv3-desc h3 {
        color: #AF33F7;
        font-family: poppins;
        font-size: 2.2rem;
        text-align: center;
    }

    .serv3-desc p {
        text-align: center;
        font-size: 1.3rem;
    }

    .serv3-desc span {
        color: #AF33F7;
        margin-top: 10px;
        font-size: 20px;
    }

    .serv3-desc a {
        letter-spacing: 0.1rem;
        font-weight: 600;
        transition: 0.3s;
    }

    .serv3-desc a:hover {
        color: black;
    }

    .serv3-img {
        width: 100%;
        text-align: center;
    }

    .serv3-img img {
        height: 300px;
    }

    /* service 4 */
    .service4 {
        margin-top: 50px;
        flex-direction: column;
    }

    .serv4-desc {
        width: 90%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-inline: auto;
        padding-inline: 10px;
    }

    .serv4-desc h4 {
        color: #AF44F7;
        font-family: poppins;
        font-size: 2.2rem;
        text-align: center;
    }

    .serv4-desc p {
        text-align: center;
        font-size: 1.4rem;
    }

    .serv4-desc span {
        color: #AF44F7;
        margin-top: 10px;
        font-size: 20px;
    }

    .serv4-desc a {
        letter-spacing: 0.1rem;
        font-weight: 600;
        transition: 0.4s;
    }

    .serv4-desc a:hover {
        color: black;
    }

    .serv4-img {
        width: 100%;
        text-align: center;
    }

    .serv4-img img {
        height: 400px;
    }
}

@media (min-width:1025px) and (max-width:1440px) {

    /* typewriter */
    .typewriter {
        width: 100%;
        height: 300px;
        margin-top: 150px;
        flex-direction: column;
        margin-inline: auto;
        align-items: center;
        justify-content: center;
        /* border:2px solid #AF33F7; */
    }

    .img1 {
        position: absolute;
        width: 250px;
        left: 10px;
    }

    .img2 {
        position: absolute;
        width: 250px;
        right: 10px;
        z-index: 2;
    }

    .typewriter h1 {
        font-family: Montserrat;
        letter-spacing: 0.2rem;
        font-size: 6rem;
        color: #002244;
        z-index: 2;
    }

    .typewriter .text {
        position: relative;
        color: #AF33F7;
        font-size: 30px;
        font-weight: 600;
        font-family: poppins;
        z-index: 0;
    }

    .typewriter .text.first-text {
        color: #002244;
    }
}