* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

/* #NAVBAR */
#icon-responsivo {
    display: none;
}

#container {
    width: 100%;
    max-width: 1200px;
    margin: 12px auto;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 20px 0px;
}

#nav-list li {
    list-style: none;
}

#nav-list li a {
    text-decoration: none;
    color: #001AFF;
    padding: 20px;
    font-weight: 500;
    transition: 0.3s;
}

#nav-list li a:hover {
    color: black;
    transition: color 0.3s ease;
}

#logo img {
    width: 40px;
}

.menu-toggle { 
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.bar {
    background-color: #001AFF;
    height: 3px;
    width: 25px;
    margin: 4px 0;
}

/* #INICIO */
section {
    margin: 15% 10%;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
}

.select-left, .select-right {
    display: flex;
    flex-direction: column; 
}

.person {
    position: relative;
    width: 400px;
    height: 570px;
    margin-top: -140px;
    margin-left: 170px;
    z-index: 3; 
}

h1 {
    color: #020067;
    font-size: 40px;
    font-weight: 900;
}

span {
    color: #001AFF;
    font-weight: 700;
}

#texto {
    font-weight: 900;
}


p {
    color: #445964;
    font-size: 16px;
}

#buttons {
    margin: 40px 0px;
}

.contatos-responsivo {
    display: none;
}

.wrapper {
    width: 100%;
    display: flex;
}

.cta { 
    display: flex;
    margin: 20px 0px;
    padding: 8px 20px;
    text-decoration: none;
    font-size: 26px;
    background: #001AFF;
    transition: 0.5s;
    box-shadow: 6px 6px 0 black;
    transform: skewX(-15deg);
}

.cta:focus {
   outline: none; 
}

.cta:hover {
    transition: 0.5s;
    box-shadow: 10px 10px 0 #020067;
}

.cta span:nth-child(2) {
    transition: 0.5s;
    margin-right: 0px;
}

.cta:hover span:nth-child(2) {
    transition: 0.5s;
    margin-right: 10px;
}

.cta span {
    display: flex;
    font-weight: bold;
    color: white;
    transform: skewX(15deg) 
}

.cta span:nth-child(2) {
    width: 25px;
    margin-left: 15px;
    position: relative;
    top: 5%;
}

path.one {
    transition: 0.4s;
    transform: translateX(-60%);
}

path.two {
    transition: 0.5s;
    transform: translateX(-30%);
}

.cta:hover path.three {
    animation: color_anim 1s infinite 0.2s;
}

.cta:hover path.one {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.6s;
}

.cta:hover path.two {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.4s;
}

@keyframes color_anim {
    0% {
        fill: white;
    }
    50% {
        fill: #020067;
    }
    100% {
        fill: white;
    }
}

#icons {
    margin: 40px -3px;
    display: flex;
}

#icons button {
    border: none;
    padding: 0px 15px;
    background-color: transparent;
    cursor: pointer;
    transition: 0.3s;
}

#icons button:hover {
    transform: scale(1.15);
    transition: 0.3s;
}

.background {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 27%;
    height: 100%;
    background-color: #020067;
    z-index: 2;
}

/* #SOBREMIM */
main {
    margin: 15% 10%;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 60px;
}

#about-me {
    width: 37%;
    font-size: 42px;
    line-height: 0.9;
    margin-bottom: 30px;
}



/* #MINHASTECNOLOGIAS */


#minhas-tecnologias {
    font-size: 3.0rem;
    font-weight: 900;
    line-height: 0.9;
    color: #000066;

}

#minhas-tecnologias span {
    color: #0000FF;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 35px;
    max-width: 400px;
}

card {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0000FF;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 14px;
    cursor: default;
}

#text-low {
    margin-top: 30px;
}

#one-text {
    margin-bottom: 10px;
}

/* #MEUSPROJETOS E FOOTER*/

article {
    margin: 5% 10%;
}

#projetos {
    width: 37%;
    font-size: 42px;
    line-height: 0.9;
    margin-bottom: 30px;
}

#footer {
    width: 37%;
    font-size: 42px;
    line-height: 0.9;
    margin-bottom: 30px;
}

#text-projetos {
    margin-top: 10px;
    font-weight: 400;
}

#projetos-cards {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    justify-content: center;
    align-items: center;
    margin-left: 40px;
    gap: 30px;
}

.card {
    display: contents;
}

.card-image {
    width: 420px;
    height: 200px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.card-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

footer {
    margin: 15% 10%;
}

.botao-footer {
    width: 110px;
    height: 50px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #001AFF !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: bold;
    border-radius: 6px;
    transition: width 0.3s ease;
    overflow: hidden;
    margin: 5px;
    position: relative;
  }
  .botao-footer:hover {
    width: 160px;
    text-align: start;
  }
  .botao-footer span {
    display: inline-flex !important;
    align-items: center !important;
    transition: padding-right 0.3s ease;
  }

  #redes {
    margin: 16px -5px;
  }

/* #RESPONSIVIDADE */
@media (max-width: 768px) {
    #icon-responsivo { 
        display: block;
        margin: 10px 0px;
        position: absolute;
        left: 25px;
        top: 13px;
    }

    .menu-toggle {
        display: flex;
    }

    #nav-list {
        display: none;
        flex-direction: column;
        background: white;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
    }

    #nav-list.show {
        display: flex;
    }

    #nav-list li {
        padding: 15px 0;
    }

    #logo {
        display: none;
    }

    .cta {
        border: 1px solid #001AFF;
    }

    .contatos-responsivo {
        display: block;
        margin: 0px 32%;
        padding: 10px 23px;
        text-decoration: none;
        background: #001AFF;
        transition: 1s;
        border: 1px solid #001AFF;
        border-radius: 5px;
        height: 40px;
        width: 120px;
    }

    .contatos-responsivo a {
        display: flex;
        font-weight: bolder;
        text-decoration: none;
        font-size: 12px;
        color: white;
    }

    .cta { 
        display: none;
    }
}

@media (max-width: 480px) {
    section {
        margin: 45% 0px;
    }

    h1 {
        text-align: center;
        margin: 0px 70px;
        font-size: 24px;
    }

    p {
        text-align: center;
        margin: 9px 70px;
        font-size: 10px;
    }

    #download-cv {
        font-size: 3px;
        align-items: center;
        justify-content: center;
        margin: 2px 95px;
    }

    #download-cv a {
        font-size: 12px;
    }

    #icons {
        margin: 20px 0px;
        display: flex;
        justify-content: center;
    }

    .select-right {
        display: none;
    }

    .background {
        display: none;
    }

    .person {
        display: none;
    }
}

  @media (max-width: 768px) {
    section, main {
        margin: 30% 5%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }


    #icons i {
        font-size: 18px;
    }

    #about-me, #minhas-tecnologias, #contato #text-projetos  {
        font-size: 28px;
        text-align: left;
        width: 100%;
        margin-left: 10px;
    }

     #footer {
        font-size: 28px;
        text-align: left;
        width: 100%;
        margin-left: 10px;
    }

    #projetos {
        font-size: 28px;
        text-align: left;
        width: 100%;
        margin-left: 0px;
        margin-bottom: 0px;
    }


    .cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        max-width: 100%;
    }

    #projetos-cards {
        grid-template-columns: 1fr;
        margin: 20px 0;
        gap: 20px;
    }

    .card-image {
        width: 100%;
        height: 180px;
    }

    /* Redes no rodapé em linha */
    footer {
        margin: 20% 5%;
    }

    footer #icons {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-direction: row;
    }

    #text-projetos {
        text-align: left;
        margin-left: 0%;
    }

    #text-footer {
        text-align: start;
        margin-left: 4%;
    }
    .botao-footer {
        width: 100px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 22px;
        margin: 0 20px;
    }

    p {
        font-size: 12px;
        margin: 10px 20px;
    }

    .cta {
        font-size: 18px;
        padding: 12px 22px;
    }

    #icons i {
        font-size: 16px;
    }

    #about-me, #minhas-tecnologias, #contato {
        text-align: left;
        margin-left: 10px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    #text-footer, #text-projetos {
        text-align: start;
    }
    #redes {
        margin: 16px 7px;
    }
    .botao-footer {
        width: 80px;
        height: 40px;
        font-size: 10px;
    }

 }

 @media (max-width: 1024px) {
    section, main, article, footer {
        grid-template-columns: 1fr; /* Coloca uma coluna só */
    }

    .person {
    display: none;
    }
    
    .background {
        display: none;
    }

    #nav-list {
        gap: 15px;
        margin: 10px 0;
    }

    #minhas-tecnologias {
        font-size: 2.5rem;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    #projetos-cards {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .card-image {
        width: 100%;
    }

    .contatos-responsivo {
        margin: 20px auto;
    }

    #logo {
        display: none;
    }
}

@media (max-width: 1200px) {
    .background {
        display: none;
    }
    #select-left h1 {
        font-size: 20px;
    }
}