html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Josefin Sans', sans-serif;
}

.caixa-principal {
    height: 100vh;
    width: 100%;
    background-image: url(./img/fotos/fundo.png);
    background-color: #191919;
    background-size: cover;
    background-position: center;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 25px;
}

.portifolio {
    color: #ffffff;
    font-size: 40px;
    font-weight: 500;
}

.portifolio span {
    color: #f9004d;
}

li {
    color: white;
    list-style: none;
    display: inline-block;
    font-size: 15px;
    margin-right: 30px;
    cursor: pointer;
}

li:hover {
    color: #f9004d;
    transition: 0.5s;
}

.link-menu {
    text-decoration: none;
    color: white;
}

.meu-nome {
    position: absolute;
    top: 50%;
    left: 7%;
}

h1 {
   /* color: white; */ /* Comentado para não anular a animação */
    font-size: 75px;
}

h1 span {
    color: #f9004d;
}

.meu-nome h3 {
    color: white;
    font-size: 25px;
}

section {
    display: flex;
    align-items: center;
    padding: 60px 15%;
    background-color: #000000;
}

section img {
  width: 200px;              /* Garante que fique quadrado */
  height: 200px;
  border-radius: 50%;        /* 50% é o ideal para deixar redondo */
  border: 2px solid #f9004d;
  object-fit: cover;         /* Garante que a imagem preencha o espaço */
  margin-right: 30px;
}

section div h2 {
    color: white;
    font-size: 75px;
}

section div p {
    color: #e2b9c6;
    font-size: 24px;
    margin-top: 15px;
    margin-bottom: 60px;
}

section div button {
    color: white;
    background: #f9004d;
    height: 50px;
    width: 180px;
    font-size: 18px;
    border: none;
    border-radius: 26px;
    cursor: pointer;
    transform: scale(1.3);
    transition: 0.5s;
}

section div button:hover {
    background-color: black;
    border: 3px solid #f9004d;
    margin-bottom: 30px;
    transform: scale(1.3);
    transition: 0.5s;
}

.projectos {
    background-color: #191919;
    padding-top: 50px;
    padding-bottom: 100px;
}

.projectos h2 {
    color: white;
    font-size: 75px;
    text-align: center;
}

.card {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    color: #000000;
    height: 365px;
    width: 335px;
    border-radius: 20px;
    padding: 20px 35px;
    text-align: center;
}

.card img {
    height: 100px;
    border-radius: 25px;
}

.card h5 {
    color: white;
    font-size: 24px;
}

.card p {
    color: #e2b9c6;
    margin-top: 20px;
    margin-bottom: 40px;
}

.card a {
    background-color: #f9004d;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.5s;
    text-decoration: none;
}

.card a:hover {
    background-color: transparent;
    border: 2px solid #f9004d;
    transform: scale(1.3);
    transition: 0.5s;
}

.card-projetos {
    display: flex;
    justify-content: space-around;
    margin-top: 100px;
}

footer {
    background-color: #000;
    padding-top: 100px;
    padding-bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer h5 {
    color: white;
    font-size: 30px;
}

footer p {
    color: white;
    font-size: 18px;
    margin-top: 14px;
    margin-bottom: 30px;
}

.social {
    display: flex;
    gap: 20px;
}

.social img {
    height: 24px;
    border-radius: 50%;
}

.social a {
    background-color: #f9004d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    cursor: pointer;
}

.social a:hover {
    transform: scale(1.3);
    transition: 0.5s;
}

/* Animação de mudança de cor contínua */
@keyframes colorChange {
    0% { color: #070707; }
    25% { color: #00ff00; }
    50% { color: #6d6db4; }
    75% { color: #001eff; }
    100% { color: #902d2d; }
}

.meu-nome h1 {
    font-size: 2.5em;
    font-weight: bold;
    animation: colorChange 4s infinite;
}


/* =====================
   MEDIA QUERIES PARA RESPONSIVIDADE
====================== */

/* Para tablets e dispositivos com largura até 1024px */
@media (max-width: 1024px) {
    h1 {
        font-size: 50px;
    }

    section {
        padding: 40px 10%;
        flex-direction: column;
        text-align: center;
    }

    section img {
        height: 250px;
        margin: 0 0 30px 0;
    }

    section div h2 {
        font-size: 40px;
    }

    section div p {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .meu-nome {
        left: 10%;
        top: 45%;
    }

    .card-projetos {
        flex-direction: column;
        gap: 50px;
        margin-top: 50px;
    }

    .card {
        width: 90%;
        height: auto;
        padding: 20px;
    }

    .projectos h2 {
        font-size: 45px;
    }
}

/* Para smartphones e dispositivos com largura até 600px */
@media (max-width: 600px) {
    nav {
        padding-left: 15px;
        padding-right: 15px;
    }

    .portifolio {
        font-size: 30px;
    }

    li {
        font-size: 13px;
        margin-right: 15px;
    }

    .meu-nome {
        position: static;
        text-align: center;
        margin-top: 50px;
    }

    h1 {
        font-size: 36px;
    }

    .meu-nome h3 {
        font-size: 18px;
    }

    section {
        padding: 30px 5%;
        flex-direction: column;
        text-align: center;
    }

    section img {
        height: 180px;
        margin: 0 auto 20px auto;
    }

    section div h2 {
        font-size: 30px;
    }

    section div p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    section div button {
        width: 100%;
        max-width: 220px;
        font-size: 16px;
        transform: scale(1);
    }

    .card-projetos {
        flex-direction: column;
        gap: 30px;
        margin-top: 50px;
    }

    .card {
        width: 100%;
        height: auto;
        padding: 15px 20px;
    }

    .projectos h2 {
        font-size: 36px;
    }

    footer {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    footer h5 {
        font-size: 24px;
    }

    footer p {
        font-size: 16px;
    }

    .social img {
        height: 20px;
    }

    .social a {
        height: 40px;
        width: 40px;
    }
}

