/* CONFIGURAÇÕES GERAIS E RESETS MODERNOS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #0b0c10;
    --second-bg-color: #1f2833;
    --text-color: #ffffff;
    --text-muted: #a9b3c4;
    --main-color: #45f3ff;
    --main-color-rgb: 69, 243, 255;
    --dark-blue: #1f4068;
    --card-gradient: linear-gradient(135deg, #11141a 0%, #1f2833 100%);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

/* ACESSIBILIDADE: Indicador de foco intuitivo para usuários de teclado */
input:focus-visible,
textarea:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 3px;
}

section {
    min-height: 100vh;
    padding: 12rem 9% 6rem; /* Mais espaçamento para respirar */
}

/* CABEÇALHO (NAVBAR) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(11, 12, 16, 0.9); /* Maior opacidade melhora contraste sobre textos */
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 0.1rem solid rgba(69, 243, 255, 0.1);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.logo span {
    color: var(--main-color);
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

/* Linha sutil indicadora de página ativa/hover */
.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--main-color);
    transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

/* SEÇÃO HOME */
.home {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(135deg, #0b0c10 0%, #11141a 100%);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.5rem 0 1.5rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.text-blue {
    color: var(--main-color);
    text-shadow: 0 0 15px rgba(69, 243, 255, 0.4);
}

.home-content p {
    font-size: 1.6rem;
    margin-bottom: 4rem;
    max-width: 60ch; /* Limita largura para leitura confortável */
    color: var(--text-muted);
    line-height: 1.7;
}

/* Redes Sociais */
.social-media {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 2.4rem;
    background: rgba(69, 243, 255, 0.03);
    border: .15rem solid rgba(69, 243, 255, 0.4);
    border-radius: .8rem;
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 600;
    transition: all .3s ease;
    cursor: pointer;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    border-color: var(--main-color);
    box-shadow: 0 0 2rem rgba(69, 243, 255, 0.3);
    transform: translateY(-3px); /* Feedback visual de clique */
}

/* Botão Principal */
.btn {
    display: inline-block;
    padding: 1.2rem 3.2rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 4px 15px rgba(69, 243, 255, 0.25);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: .05rem;
    font-weight: 600;
    transition: all .3s ease;
    cursor: pointer;
}

.btn:hover {
    box-shadow: none;
    background: transparent;
    color: var(--main-color);
    transform: translateY(-2px);
}

/* SEÇÃO SOBRE */
.sobre {
    background: var(--second-bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.heading {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 6rem;
    font-weight: 700;
}

.heading span {
    color: var(--main-color);
}

.sobre-content {
    text-align: center;
    max-width: 80rem;
}

.sobre-content h3 {
    font-size: 2.6rem;
    margin-bottom: 2rem;
}

.sobre-content p {
    font-size: 1.6rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 4rem;
}

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

.skill-badge {
    padding: 0.8rem 2.2rem;
    background: var(--bg-color);
    border: 1px solid rgba(69, 243, 255, 0.2);
    border-radius: 5rem;
    font-size: 1.4rem;
    color: var(--main-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    border-color: var(--main-color);
    background: rgba(69, 243, 255, 0.05);
}

/* SEÇÃO PROJETOS */
.projetos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr)); /* Correção: 1fr distribui caixas proporcionalmente */
    gap: 3rem;
}

.projeto-box {
    position: relative;
    min-height: 28rem;
    border-radius: 1.6rem;
    background: var(--card-gradient);
    border: 1px solid rgba(69, 243, 255, 0.1);
    overflow: hidden;
    display: flex;
    transition: all .3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.projeto-box:hover {
    border-color: rgba(69, 243, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.projeto-layer {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Mantém os textos no topo e o link/botão na base */
    align-items: flex-start;
    width: 100%;
}

.projeto-layer .info-top {
    width: 100%;
}

.projeto-layer h4 {
    font-size: 2.2rem;
    color: var(--main-color);
    margin-bottom: 1.2rem;
}

.projeto-layer p {
    font-size: 1.4rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.projeto-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: var(--main-color);
    border-radius: 50%;
    margin-top: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.projeto-layer a:hover {
    background: var(--text-color);
    transform: scale(1.1);
}

.projeto-layer a i {
    font-size: 1.8rem;
    color: var(--bg-color);
}

/* SEÇÃO CONTATO */
.contato {
    background: var(--second-bg-color);
}

.contato form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.contato form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem; /* Remove margens negativas com gap */
}

.contato form .input-box input,
.contato form textarea {
    width: 100%;
    padding: 1.6rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: .8rem;
    border: 1px solid rgba(69, 243, 255, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contato form .input-box input:focus,
.contato form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(69, 243, 255, 0.1);
}

.contato form .input-box input {
    width: calc(50% - 0.75rem); /* Divide perfeitamente com o espaço do gap */
}

.contato form textarea {
    resize: vertical; /* Permite esticar apenas para baixo, não quebrando o layout */
    min-height: 15rem;
    margin-top: 1.5rem;
}

.contato form .btn {
    margin-top: 3rem;
}

/* RODAPÉ */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 3rem 9%;
    background: var(--bg-color);
    border-top: 0.1rem solid rgba(69, 243, 255, 0.05);
}

.footer-text p {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: rgba(69, 243, 255, 0.1);
    border-radius: .8rem;
    transition: all .3s ease;
}

.footer-iconTop a:hover {
    background: var(--main-color);
    box-shadow: 0 0 1.5rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2rem;
    color: var(--main-color);
    transition: color 0.3s ease;
}

.footer-iconTop a:hover i {
    color: var(--bg-color);
}

/* RESPONSIVIDADE (MOBILE) */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    section {
        padding: 10rem 4% 4rem;
    }
    .header {
        padding: 2rem 4%;
    }
    .navbar {
        display: none; /* Ideal adicionar um menu sanduíche dinâmico aqui futuramente */
    }
    .home-content h1 {
        font-size: 4.2rem;
    }
    .home-content h3 {
        font-size: 2.6rem;
    }
    .social-media {
        flex-direction: column;
        gap: 1rem;
    }
    .social-media a {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    .contato form .input-box input {
        width: 100%;
    }
    .footer {
        padding: 3rem 4%;
        flex-direction: column-reverse;
        gap: 2.5rem;
        text-align: center;
    }
}
