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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0f172a;
    color: #f8f1fc;
    line-height: 1.6;
}

header {
    width: 100%;
    padding: 20px 8%;
    background-color: #020617;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header h1 {
    color: #38bdf8;
    font-size: 28px;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

nav a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

section {
    padding: 80px 8%;
}

section h1,
section h2 {
    color: #38bdf8;
    margin-bottom: 25px;
}

.home {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.home-texto {
    max-width: 600px;
}

.home-texto h1 {
    font-size: 48px;
    margin-bottom: 5px;
}

.home-texto h3 {
    font-size: 24px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.home-texto p {
    color: #cbd5e1;
    margin-bottom: 25px;
}

.home img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    background-color: #38bdf8;
    color: #020617;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background-color: #0ea5e9;
    transform: translateY(-3px);
}

.sobre {
    background-color: #111827;
}

.sobre-texto {
    max-width: 900px;
    margin: 0 auto;
}

.sobre-texto p {
    color: #cbd5e1;
    text-align: justify;
}

.skills {
    text-align: center;
}

.skills article {
    margin-top: 30px;
}

.skills h3 {
    margin-bottom: 15px;
    color: #e2e8f0;
}

.cards-skills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cards-skills span {
    background-color: #1e293b;
    color: #38bdf8;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: bold;
    border: 1px solid #334155;
    transition: 0.3s;
}

.cards-skills span:hover {
    background-color: #38bdf8;
    color: #020617;
}

.projetos{
    background-color: #111827;
    text-align: center;
}

.cards-projetos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.cards-projetos > div {
    background-color: #1e293b;
    width: 280px;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #334155;
    transition: 0.3s;
}

.cards-projetos > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.cards-projetos img {
    width: 100%;
    height: 160px;
    background-color: #334155;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
}

.cards-projetos h3 {
    color: #38bdf8;
    margin-bottom: 10px;
}

.cards-projetos p {
    color: #cbd5e1;
}

.contato {
    max-width: 800px;
    margin: auto;
}

.contato h2 {
    text-align: center;
}

form {
    background-color: #1e293b;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #334155;
}

form div {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e2e8f0;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    outline: none;
    background-color: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
}

input:focus,
textarea:focus {
    border-color: #38bdf8;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #38bdf8;
    color: #020617;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #0ea5e9;
}

footer {
    background-color: #020617;
    text-align: center;
    padding: 20px;
    color: #94a3b8;
}


@media (max-width: 780px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
    }

    .home-texto h1 {
        font-size: 36px;
    }

    .home img {
        width: 240px;
        height: 240px;
    }

    .social-links {
        justify-content: center;
    }

    section {
        padding: 60px 6%;
    }
}
