@media (max-width:1350px) {
    header {
        padding: 0.5rem 8rem;
    }

    main {
        padding: 9rem 8rem;
    }

    /* section icons */

    .background-section {
        padding: 3rem 8rem;
    }

    .section-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .text-section h2 {
        font-size: 35px;
    }

   .description-section:nth-child(2)::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 1px;
        height: 100%;
        background: linear-gradient(to bottom, transparent );
        z-index: 1;
    }


    .description-section:nth-child(3)::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent 5%, #2f2d3b 100%);
        z-index: 1;
    }

    .description-section:nth-child(3)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, #2f2d3b 100%);
    z-index: 1;
}

    .description-section:nth-child(4)::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, #2f2d3b 100%);
        z-index: 1;
    }

    .description-section:nth-child(4)::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 1px;
        height: 100%;
        background: linear-gradient(to bottom, transparent );
        z-index: 1;
    }

    /* section tech */

    .technologies {
        padding: 1rem 8rem;
    }

    .back{
        flex-direction: column;
        gap: 10px;
        padding: 2.5rem 1rem;
    }

    .text-description {
        gap: 20px;
        margin-bottom: 30px;
        padding: 0;
        text-align: center;
    }
}

@media (max-width:999px){

    .description-section::before,
  .description-section::after {
    content: none !important;
    display: none !important;
  }

  .description-section{
    border-radius: 20px;
    border: 1px solid #cacaca30;
  }

    header {
        padding: 0.5rem 5rem;
    }

    main {
        padding: 9rem 5rem;
    }

    .container-text h1 {
        font-size: 3rem;
        font-weight: 600;
    }

    .background-section {
        padding: 3rem 5rem;
    }

    .section-row {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        place-items: center;
        gap: 100px;
    }

    .description-section {
        gap: 10px;
        width: 80%;
    }

    

    .text-section h2 {
        text-align: center;
    }


    /* section tech */

     .technologies {
        padding: 1rem 5rem;
    }

    .container-cards {
        grid-template-columns: repeat(1, 1fr);
        align-items: center;
        gap: 50px;
    }

     .card {
        width: 100%;        /* usa porcentagem da tela */
        max-width: 600px;  /* limite máximo */
        height: auto;
    }
}

@media (max-width: 800px){
    header {
        padding: 0.5rem 2.5rem;
        justify-content: space-between;
    }

    nav{
        display: none;
    }

    .nav--mobile{
        position: fixed;
        width: calc(100% - 5rem); /* Ex: 2.5rem de cada lado */
        left: 50%;
        transform: translateX(-50%);
        top: 73px;
        background-color: #030014;
        border-radius: .5rem;
        z-index: 200;
        padding: 0rem 2.5rem;
    }

    .menu-principal{
        flex-direction: column;
        align-items:end;
        padding: 2rem 0;
    }

    .iconMenu{
        display: block;
    }

     .technologies {
        padding: 6rem 2.5rem;
    }
    .card {
        width: 100%;
        max-width: 480px;
    }
}

@media (max-width: 600px){

    main {
        padding: 9rem 1.5rem;
    }

    .container-text h1 {
        font-size: 1.8rem;
        font-weight: 600;
    }

    .container-text p {
        font-size: 1rem;
        margin-bottom: 50px;
    }

    .container-button button {
        padding: 8px 20px;
        border-radius: 0.5rem;
        font-size: 1rem;
        font-weight: 500;
    }

    .background-section {
        padding: 3rem 1.5rem;
    }

    .description-section {
        width: 300px;
    }

    .text-section h2 {
        font-size: 25px;
        text-align: center;
    }

    /* section tech */


    .technologies {
        padding: 1rem 1.5rem;
    }

    .card {
        width: 100%;
        max-width: 320px;
    }
}