@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    background-color: #1e90ff;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-behavior: smooth;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

nav ul li a {
    display: inline-flex;
    align-items: center;
    position: relative;
    text-decoration: none;
    color: #919191;
    font-weight: bold;
    padding: 0.2rem 0;
}

nav ul li a i {
    margin-right: 0.5rem;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    min-height: 65vh;
    gap: 1rem;
    background: linear-gradient(135deg, #1560aa, #1e90ff);
    padding-top: 4.5rem;
}

.profile {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    object-fit: cover;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

header .desc {
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
    color: white;
    padding: 0 1rem;
}

section {
    width: 100%;
    padding: 6rem 2rem;
    background-color: #fff;
    color: #111;
    text-align: center;
}

section .title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1560aa;
    position: relative;
}

section .title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #1560aa;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

section .desc {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    padding: 0 1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.skill {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    width: 220px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.skill i {
    font-size: 2rem;
    color: #1560aa;
    margin-bottom: 0.5rem;
}

.skill h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.skill p {
    font-size: 0.95rem;
    color: #555;
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.project {
    background-color: white;
    border-radius: 10px;
    width: 600px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.project img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.project h3 {
    margin: 0.8rem 0 0.5rem 0;
    color: #1560aa;
}

.project p {
    font-size: 0.95rem;
    color: #555;
    padding: 0 0.5rem 1rem 0.5rem;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

#contato {
    background-color: #1560aa;
    color: white;
}

.title-2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
}

.title-2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: white;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
}

.contact-form button {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: none;
    background-color: #1e90ff;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: #1560aa;
    transform: translateY(-3px);
}

footer {
    width: 100%;
    padding: 2rem 1rem;
    background-color: #222222;
    color: white;
    text-align: center;
}

footer p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-socials a {
    color: white;
    font-size: 1.3rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
    transform: translateY(-3px);
    color: #1e90ff;
}

@media (max-width: 768px) {
    header .name {
        font-size: 2rem;
    }
    header .desc {
        font-size: 1rem;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
    .skills {
        flex-direction: column;
        align-items: center;
    }
    .skill, .project {
        width: 90%;
    }
    footer {
        padding: 2rem 0.5rem;
    }
    .footer-socials {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    header .name {
        font-size: 1.7rem;
    }
    header .desc {
        font-size: 0.95rem;
    }
    section .title {
        font-size: 2rem;
    }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px);}
    100% { opacity: 1; transform: translateY(0);}
}
