@media (max-width: 576px) {
    /* general */
    * {
        margin: 0;
        padding: 0;
    }

    body {
        background-color: rgb(0, 0, 33);
        color: white;
        font-family: 'Poppins', sans-serif;
    }

    p {
        font-family: 'Futura PT', sans-serif;
        font-weight: 400;
        font-size: 15px;
    }

    main hr {
        margin: 30px 25px;
        border-color: rgb(157, 157, 157);
    }

    /* header */
    nav {
        display: none;
    }

    .top_nav {
        display: block;
        overflow: hidden;
        background-color: rgba(10, 19, 48, 0.7);
        border-bottom: solid 1px rgba(157, 157, 157, 0.2);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 99;
        backdrop-filter: blur(10px);
    }

    .top_nav #myLinks {
        display: none;
    }

    .top_nav a {
        color: white;
        padding: 16px 25px;
        text-decoration: none;
        font-size: 18px;
        display: block;
    }

    .top_nav a.icon {
        background: transparent;
        display: block;
        position: absolute;
        right: 0;
        top: 0;
    }

    /* 1st Section */
    .first-Section {
        display: flex;
        flex-direction: column;
        margin: 90px 25px 0 25px;
    }

    .first-Section > div {
        width: 100%;
        padding-left: 0px;
    }

    .leftSection {
        width: 100%;
        font-size: 7.5vw;
        order: 2;
        margin-left: 30px;
    }

    .leftSection .buttons {
        padding: 10px 0;
    }

    .leftSection .btn {
        padding: 8px;
        background-color: #1e2167;
        color: white;
        border: 1px solid rgba(157, 157, 157, 0.4);
        border-radius: 3px;
        font-size: 4.5vw;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .btn-link {
        text-decoration: none;
        color: white;
    }

    .rightSection {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: -50px;
    }

    .rightSection img {
        width: 70%;
        margin: 0 0 25px 50px;
        border-radius: 50%;
    }

    .purple {
        color: rgb(173, 38, 173);
    }

    .text-gray {
        color: grey;
    }

    #element {
        color: rgb(173, 38, 173);
    }

    /* 2nd Section */
    .second-Section {
        max-width: 80vw;
        margin: auto;
        height: auto;
    }

    .second-container {
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .second-Section h1 {
        font-size: 2rem;
    }

    .second-container img {
        display: none;
    }

    /* 3rd Section */
    .third-Section {
        max-width: 80vw;
        margin: auto;
    }

    .third-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin-top: 30px;
    }

    .third-Section h1 {
        font-size: 2rem;
    }

    .skills_img img {
        display: none;
    }

    .skills__container {
        row-gap: 2rem;
        text-align: center;
    }

    .skills__text {
        margin-bottom: 2rem;
    }

    .skills__data {
        width: 70vw;
        display: flex;
        align-items: center;
        position: relative;
        background-color: rgba(160, 160, 160, 0.1);
        font-weight: 500;
        padding: .5rem 1rem;
        margin-bottom: 2rem;
        border-radius: .5rem;
        box-shadow: 5px 5px 0 rgba(255, 255, 255, 0.15);
    }

    .skills__icon {
        font-size: 2rem;
        margin-right: 1rem;
        color: #aebbff;
    }

    .skills__names {
        display: flex;
        align-items: center;
    }

    .skills__bar {
        position: absolute;
        left: 0;
        bottom: 0;
        background-color: white;
        height: .25rem;
        border-radius: .5rem;
        z-index: -10;
    }

    .skills__names img {
        width: 2rem;
        margin-right: 1rem;
    }

    /* 4th Section */
    .forth-Section {
        max-width: 80vw;
        margin: auto;
    }

    .forth-container {
        margin-top: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .forth-Section h1 {
        font-size: 2rem;
    }

    .forth-container {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 3rem;
        column-gap: 0;
    }

    .card {
        height: 100%;
        width: 100%;
        border-radius: 10px;
        background-size: cover;
        background-position: center;
        overflow: hidden;
        border: 1px solid rgba(204, 204, 204, 0.3);
    }

    .overlay {
        height: 100%;
        width: 100%;
        text-align: left;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(4px);
        border-radius: 10px;
    }

    .overlay h4 {
        margin-left: 25px;
        padding-top: 10px;
        font-size: 20px;
        text-transform: uppercase;
        font-weight: 800;
        color: #000021;
    }

    .overlay p {
        padding: 10px 25px 20px 25px;
        color: #000021;
        line-height: 20px;
        font-size: 15px;
    }

    .fa-brands {
        font-size: 1.5em;
    }

    .fa-solid {
        font-size: 1.5em;
    }

    .overlay__btn {
        padding: 10px 0 10px 0;
        margin-bottom: 15px;
        background: #10102E;
        width: 83%;
        border-radius: 50px;
        cursor: pointer;
        color: #e1e1e1;
        font-weight: 600;
        border: none;
        margin-left: 25px;
        transition: all ease 0.3s;
    }

    .overlay__btn:hover {
        background-color: #272768;
        border: none;
    }

    .overlay__img {
        width: 100%;
    }

    .overlay__container a {
        text-decoration: none;
    }

    /* 5th Section */
    .fifth-Section {
        max-width: 80vw;
        margin: auto;
    }

    .fifth-Section {
        margin-top: 30px;
    }

    .fifth-Section h1 {
        font-size: 2rem;
    }

    .services {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 2rem;
        column-gap: 1rem;
    }

    .service_container {
        height: 100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.4);
        border: 1px solid rgba(204, 204, 204, 0.3);
        border-radius: 10px;
        overflow: hidden;
    }

    .services_icon {
        padding-left: 25px;
        padding-top: 25px;
        padding-bottom: 10px;
        font-size: 40px;
        color: #000021;
    }

    .service_container h4 {
        padding-left: 25px;
        font-size: 25px;
        text-transform: uppercase;
        font-weight: 800;
        color: #000021;
    }

    .service_container p {
        padding: 10px 20px 25px 25px;
        color: #000021;
        line-height: 20px;
    }

    /* 6th Section */
    .sixth-Section {
        max-width: 80vw;
        margin: auto auto 40px;
    }

    .sixth-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 30px;
    }

    .sixth-Section h1 {
        font-size: 2rem;
    }

    .contact-col {
        flex-basis: 95%;
        margin-bottom: 30px;
    }

    .contact-col div {
        display: flex;
        align-items: center;
        margin-bottom: 40px;
    }

    .contact-col div p {
        padding: 0;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .contact-col div h5 {
        font-size: 20px;
        margin-bottom: 5px;
        color: #555;
        font-weight: 400;
        font-family: Arial, Helvetica, sans-serif;
    }

    .contact-col input,
    .contact-col textarea {
        background-color: transparent;
        color: #d8d8d8;
        width: 100%;
        border-radius: 5px;
        padding: 15px;
        margin-bottom: 17px;
        outline: none;
        border: 1px solid rgba(204, 204, 204, 0.3);
        box-sizing: border-box;
    }

    .contact-col input:focus,
    .contact-col textarea:focus {
        background-color: #E8F0FE;
        color: #000000;
    }

    .submit-btn {
        width: 100%;
        padding: 12px;
        background-color: #1e2167;
        color: white;
        border: 1px solid rgba(157, 157, 157, 0.4);
        border-radius: 6px;
        font-size: 20px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .submit-btn:hover {
        background-color: #5053ab;
        border: 1px solid white;
    }
}
