* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}

body {
    color: gray;
    background: #040404;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: #040404;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 25px;
    color: gray;
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight .1s ease forwards;

}

.navbar a {
    display: inline-block;
    font-size: 25px;
    color: gray;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: 0.3s;
    opacity: 0;
    animation: slideRight .5s ease forwards;
    animation-delay: calc(.2s * var(--i));

}

.navbar a:hover {
    color: rgb(255, 254, 254);
}

.home {
    position: relative;
    width: 100%;
    justify-content: space-between;
    height: 100vh;
    background: url("siteimagem.png") no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 70px 10% 0;
}

.home-content {
    max-width: 600px;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
    animation: slideTop .1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom .1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 span {
    color: white
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight .1s ease forwards;
    animation-delay: .1s;
}

.home-content p {
    font-size: 20px;
    opacity: 0;
    animation: slideLeft .1s ease forwards;
    animation-delay: .1s;

}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid;
    color: gray;
    border-radius: 50%;
    font-size: 20px;
    color: gray;
    text-decoration: none;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft .1s ease forwards;
    animation-delay: calc(.2s * var(--i));

    margin: 30px 15px 30px 0;
}

.home-sci a:hover {
    color: rgb(255, 254, 254);
    border-color: rgb(255, 254, 254);
}

.sobre-mim {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.sobre-img img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
}

.sobre-texto {
    max-width: 600px;
    text-align: justify;

}

.sobre-texto h2 {
    font-size: 60px;
}

.sobre-texto h4 {
    font-size: 20px;
    font-weight: 600;
    color: gray;
    line-height: 1.7;
    margin: 15px 0 30px;
}

.sobre-texto p {
    color: white;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 4rem;
}

.sobre-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.habilidades {
    background: white;
    padding: 80px 20px;
    text-align: center;
}

.habilidades h2 {
    color: #040404;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.linha {
    display: block;
    width: 50px;
    height: 3px;
    background: grey;
    margin: 0 auto 40px;
    border-radius: 2px;
}

.skills {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.skill {
    background: #ffffff;
    padding: 28px 34px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill img {
    width: 80px;
    height: 80px;
    display: block;
}

.skill:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 15px #040404;
}

.projetos {
    background: #0b0b0b;
    padding: 90px 20px;
    text-align: center;
}

.projetos h2 {
    color: white;
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.cards-projetos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-projeto {
    background: #111;
    border-radius: 16px;
    padding: 20px;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(107, 106, 110, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    text-align: justify;

}

.card-projeto img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    text-align: justify;

}

.card-projeto p {
    color: #e5e5e5;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: justify;

}

.card-projeto:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(91, 90, 92, 0.6);
}

.btn-projeto {
    display: inline-block;
    background: grey;
    color: black;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-projeto:hover {
    background: white;
    transform: scale(1.05);
}

.card-projeto {
    display: flex;
    flex-direction: column;
}

.btn-projeto {
    align-self: center;
    margin-top: 20px;
}

.contato {
    background: #040404;
    padding: 100px 20px 80px;
    text-align: center;
}

.contato h2 {
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.contato .linha {
    margin-bottom: 40px;
}

.form-contato {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-contato label {
    text-align: left;
    font-size: 0.9rem;
    color: #ccc;
}

.form-contato input,
.form-contato textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 0.9rem;
}

.form-contato textarea {
    resize: none;
    height: 120px;
}

.form-contato .btn-whatsapp {
    margin-top: 20px;
    background: grey;
    color: black;
    padding: 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.form-contato .btn-whatsapp:hover {
    background: white;
    transform: scale(1.05);
}
#sobre-mim,
#habilidades,
#projetos,
#contato {
  scroll-margin-top: 120px;
}


@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideTop {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideBottom {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== RESPONSIVO ===== */

@media (max-width: 992px) {
  .sobre-mim {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sobre-texto {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 15px 5%;
  }

  .navbar a {
    font-size: 18px;
    margin-left: 20px;
  }

  .home-content h1 {
    font-size: 42px;
  }

  .home-content h3 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .home {
    padding: 120px 5% 0;
  }

  .home-content h1 {
    font-size: 34px;
  }

  .home-content h3 {
    font-size: 22px;
  }

  .form-contato {
    width: 100%;
  }

  .btn-whatsapp {
    width: 100%;
  }
}

