/* ================================================= */
/* 0. VARIÁVEIS GLOBAIS E ESTILOS BASE */
/* ================================================= */

:root {
    /* Cores */
    --primary-color: #00FFFF;
    /* Aqua / Ciano (Cor principal) */
    --primary-color-hover: #00A3A6;
    /* Hover mais escuro */
    --background-dark: #131313;
    /* Fundo principal escuro (Header, Hero, Geral) */
    --card-dark: #1a1a1a;
    /* Fundo de cards, forms, footer */
    --text-light: #e0e0e0;
    /* Texto claro principal */
    --text-muted: #a0a0a0;
    /* Texto secundário/descrições */
    --border-color-dark: #3c3c3c;
    /* Borda sutil em elementos escuros */
    --skill-card-bg: #0816196d;
    /* Fundo do card de habilidade */

    /* Tipografia e Layout */
    --header-height: 70px;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition-speed: 0.3s;
    --border-radius-main: 8px;
    --transition-speed-bar: 1.5s;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    z-index: 10;
}

.whatzapp_flutuante_icon {
    position: fixed;
    z-index: 100;
    top: 90%;
    right: 2%;
    cursor: pointer;
    animation: anin 1s ease-in-out infinite;
}

.whatzapp_flutuante_icon i {
    background-color: #00e21e;
    border-radius: 50%;
    display: inline-block;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 24px;
    color: #ffffff;
    font-size: 2.5rem;
    padding-top: 13px;
}


.borr {
    width: 20px;
    height: 20px;
    background-color: #00e21e;
    margin-top: -21px;
    border-radius: 2px;
    margin-left: 1px;
}

@media (max-width: 768px) {
    .whatzapp_flutuante_icon {
        position: fixed;
        z-index: 100;
        top: 93%;
        right: 5%;
        cursor: pointer;
        animation: anin 1s ease-in-out infinite;
    }

    .whatzapp_flutuante_icon i {
        background-color: #00e21e;
        border-radius: 50%;
        display: inline-block;
        width: 40px;
        height: 40px;
        text-align: center;
        line-height: 24px;
        color: #ffffff;
        font-size: 2rem;
        padding-top: 8px;
    }
}

@keyframes anin {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
        scale: 1.1;
    }

    90% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(0px);
    }
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

section {
    width: 100%;
    padding: 0 5%;
}

/* ================================================= */
/* 1. HEADER (TOPO) */
/* ================================================= */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background-color: var(--background-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.header_titulo a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1em;
    font-weight: bold;
}

.header_titulo span {
    color: var(--primary-color);
}

/* NAVEGAÇÃO DESKTOP */
.main-header .navbar {
    display: flex;
    margin-left: auto;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.main-header .navbar a {
    color: var(--text-light);
    margin-left: 25px;
    font-weight: 500;
    transition: color var(--transition-speed);
    padding-bottom: 5px;
}

.main-header .navbar a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.main-header .navbar a.active {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* BOTÃO HAMBURGUER (MOBILE) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    margin-left: auto;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* RESPONSIVIDADE HEADER */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-header .navbar {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--background-dark);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
    }

    .main-header .navbar.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-header .navbar a {
        margin: 15px 0;
        font-size: 1.5rem;
        width: fit-content;
    }
}


/* ================================================= */
/* 2. HERO SECTION (HOME) */
/* ================================================= */

.hero-section {
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding-top: var(--header-height);
    padding-bottom: 40px;
    padding: 0 10%;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1;
}

.section-content {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    position: relative;
}

.hero_apresentacao {
    flex: 1.5;
    text-align: left;
}

.hero_image {
    flex: 0.8;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
}

/* Títulos e Parágrafos */
.titulo_ap {
    text-align: left;
    font-size: 3rem;
    line-height: 1.2;
    margin: 0;
}

#nome {
    font-size: 5rem;
    margin-bottom: 0.1em;
}

.titulo_ap span {
    color: var(--primary-color);
}

.hero_paragrafo {
    font-size: 1.5rem;
    width: 90%;
    text-align: left;
    opacity: 0.85;
    line-height: 1.6;
    margin-top: 15px;
    margin-bottom: 25px;
}

.profile-photo {
    width: min(400px, 30vw);
    height: min(400px, 30vw);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.4);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero_buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.example-2 {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
}

/* Wrapper do Ícone */
.example-2 .icon-content {
    position: relative;
    /* CRÍTICO: Pai para posicionar o tooltip */
    display: flex;
    justify-content: center;
}

.example-2 .icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #e2e2e2;
    background-color: #272626;
    transition: all 0.3s ease-in-out;
}

/* Ícones SVG e I (Font Awesome/Bootstrap Icons) - CORREÇÃO DE ALINHAMENTO */
.example-2 .icon-content a svg,
.example-2 .icon-content a i {
    position: relative;
    z-index: 1;
    /* Usa Flexbox para garantir que o ícone esteja centralizado em seu wrapper <a> */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    font-size: 25px;
    color: inherit;
    margin: 0;
    transform: none;
}

/* Tooltip - CORREÇÃO CRÍTICA DO POSICIONAMENTO */
.example-2 .icon-content .tooltip {
    position: absolute;
    top: 100%;
    /* Inicia logo abaixo do ícone */
    margin-top: 10px;
    /* Espaço entre o ícone e o tooltip */
    opacity: 0;
    left: 50%;
    /* Posição horizontal no centro do pai */
    transform: translateX(-50%);
    /* Ajusta o centro do elemento para o centro do pai */
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    visibility: hidden;
    font-size: 14px;
    display: flex;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 20;
    /* Garante que fique acima de outros elementos */
}

.example-2 .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: 100%;
    /* Mantém a posição após o hover */
}

/* Animação de Preenchimento (Mantida) */
.example-2 .icon-content a .filled {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover .filled {
    height: 100%;
}

/* Cores de Preenchimento (Mantidas) */
.example-2 .icon-content a[data-social="linkedin"] .filled,
.example-2 .icon-content a[data-social="linkedin"]~.tooltip {
    background-color: #0274b3;
}

.example-2 .icon-content a[data-social="github"] .filled,
.example-2 .icon-content a[data-social="github"]~.tooltip {
    background-color: #24262a;
}

.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"]~.tooltip {
    background: linear-gradient(45deg, #405de6, #5b51db, #b33ab4, #c135b4, #e1306c, #fd1f1f);
}

.example-2 .icon-content a[data-social="whatsapp"] .filled,
.example-2 .icon-content a[data-social="whatsapp"]~.tooltip {
    background-color: #25d366;
}

.example-2 .icon-content a[data-social="tiktok"] .filled,
.example-2 .icon-content a[data-social="tiktok"]~.tooltip {
    background-color: #000000;
}

#whatzapp_id_icon {
    font-size: 1.9rem !important;
}


/* Botões Download/Sobre (mantidos) */
.button_sobre {
    color: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--background-dark);
    font-weight: 500;
    font-size: 17px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.Download-button {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 17px;
    padding: 12px 20px;
    color: white;
    background: #252525;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

/* RESPONSIVIDADE HERO SECTION */
@media (max-width: 1300px) {
    .hero-section {
        min-height: auto;
        margin-top: 20%;
    }

    .section-content {
        flex-direction: column;
        text-align: center;
    }

    .hero_apresentacao {
        padding-right: 0;
        margin-bottom: 40px;
        order: 2;
        max-width: 700px;
    }

    .hero_image {
        justify-content: center;
        order: 1;
        margin-bottom: 40px;
    }

    .titulo_ap,
    .hero_paragrafo {
        text-align: center;
        width: 100%;
    }

    .hero_paragrafo {
        font-size: 1rem;
    }

    .titulo_ap {
        font-size: 1.5rem;
    }

    #nome {
        font-size: 3rem;
    }

    .hero_buttons {
        width: 100%;
        display: flex;
        flex-direction: row !important;
        justify-content: center;
    }

    .button_sobre {

        font-size: 14px;
        padding: 10px 16px;
        align-items: center;
        text-align: center;
    }

    .Download-button {

        font-size: 14px;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .example-2 {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    #whatzapp_id_icon {
        font-size: 1.9rem !important;
    }
}

@media (max-width: 600px) {
    #whatzapp_id_icon {
        font-size: 1.5rem !important;
        top: -0.5px;
    }

    .hero-section {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .titulo_ap {
        font-size: 1.6rem;
    }

    #nome {
        font-size: 2.5rem;
    }

    .hero_buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .Download-button,
    .button_sobre {
        width: 100%;
        padding: 12px 0;
        font-size: 15px;
    }

    .example-2 .icon-content a {
        width: 38px;
        height: 38px;
    }

    .example-2 .icon-content a svg,
    .example-2 .icon-content a i {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }
}


/* ================================================= */
/* 3. ABOUT ME (SOBRE MIM) */
/* ================================================= */

.about-me-section {
    background-color: var(--background-dark);
    padding: 0 10%;
    margin-top: 10%;
}

.section-content-aboutMe {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1600px;

    margin: 0 auto;
    gap: 100px;
}

/* IMAGEM E EFEITO NEON */
.div_img {
    position: relative;
    width: 350px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.div_img:hover {
    transform: translateY(-5px);
}

.div_img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    filter: brightness(0.9);
    z-index: 2;
    position: relative;
}

.div_img:before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--primary-color);
    z-index: 1;
    transition: all 0.3s ease;
}

.div_img:hover:before {
    top: 15px;
    left: 15px;
    box-shadow: 0 0 20px var(--primary-color);
}

/* TEXTO "SOBRE MIM" */
.skills-list {
    flex-grow: 1;
}

.skills-list h3 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
}

.skills-list h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
}

.skills-list p {
    font-size: 1.15em;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
}

/* BOTÃO DE CONTATO */
.buttons {
    margin-top: 40px;
}

.contactButton {
    background: var(--primary-color);
    color: var(--background-dark);
    font-family: inherit;
    padding: 0.45em;
    padding-left: 1em;
    font-size: 17px;
    font-weight: 500;
    border-radius: 0.9em;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 1.6em -0.6em var(--primary-color);
    overflow: hidden;
    position: relative;
    height: 2.8em;
    padding-right: 3em;
}

.iconButton {
    margin-left: 1em;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
    width: 2.2em;
    border-radius: 0.7em;
    box-shadow: 0.1em 0.1em 0.6em 0.2em #0597c4;
    right: 0.3em;
    transition: all 0.3s;
}

.iconButton svg {
    fill: var(--background-dark);
}

.contactButton:hover {
    transform: translate(-0.05em, -0.05em);
    box-shadow: 0.15em 0.15em #0597c4;
}

.contactButton:active {
    transform: translate(0.05em, 0.05em);
    box-shadow: 0.05em 0.05em #0597c4;
}

/* RESPONSIVIDADE ABOUT ME */
@media (max-width: 900px) {
    .about-me-section {
        padding: 80px 0;
    }

    .section-content-aboutMe {
        flex-direction: column;
        gap: 40px;
        max-width: 700px;
        width: 90%;
        margin: 0 auto;
    }

    .div_img {
        width: 280px;
        margin: 0 auto;
        padding-right: 25px;
    }

    .div_img:before {
        top: 15px;
        left: 15px;
    }

    .skills-list {
        padding: 0 10px;
        text-align: left;
    }

    .buttons {
        text-align: center;
    }

    .contactButton {
        margin: 0 auto;
    }
}

@media (max-width: 500px) {
    .about-me-section {
        padding: 60px 0;
    }

    .skills-list h3 {
        font-size: 2em;
    }

    .skills-list p {
        font-size: 1em;
    }

    .div_img {
        width: 220px;
    }

    .div_img:before {
        top: 10px;
        left: 10px;
        border: 1px solid var(--primary-color);
    }
}


/* ================================================= */
/* 4. SKILLS (HABILIDADES) - CORREÇÃO DE ÍCONES */
/* ================================================= */

.skills-section {
    margin-top: 10%;
    margin-bottom: 100px;
    padding: 0 10%;
    text-align: center;
}

.section-header {
    margin-bottom: 60px;

}

.skills-section h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.skills-section p {
    font-size: 1.1em;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.skills-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

.skill-card {
    background: var(--skill-card-bg);
    padding: 25px;
    border-radius: var(--border-radius-main);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    text-align: left;
    display: flex;
    align-items: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}


/* ÍCONE DA HABILIDADE - CORREÇÃO CRÍTICA AQUI */
.skill-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.skill-icon-wrapper i {
    /* CORREÇÃO: Garante que o ícone do Font Awesome seja grande o suficiente */
    font-size: 2.5em;
    line-height: 1;
    display: block;
}

.skill-content {
    flex-grow: 1;
}

.skill-title {
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-light);
    display: block;
    margin-bottom: 8px;
}

/* BARRA DE PROGRESSO E TOOLTIP */
.skill-bar-wrapper {
    position: relative;
    width: 100%;
    height: 10px;
}

.skill-bar-bg {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress-bar {
    position: relative;
    display: block;
    height: 100%;
    border-radius: 5px;
    transition: width var(--transition-speed-bar) ease-out;
    white-space: nowrap;
}

.skill-tooltip {
    position: absolute;
    right: 0;
    top: -28px;
    transform: translateX(50%);
    font-size: 0.7em;
    font-weight: 500;
    color: #333333;
    padding: 2px 6px;
    border-radius: 3px;
    background: #f0f0f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 10;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.skill-card:hover .skill-progress-bar .skill-tooltip {
    opacity: 1;
}

.skill-tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    height: 6px;
    width: 6px;
    z-index: -1;
    background-color: #f0f0f0;
    transform: translateX(-50%) rotate(45deg);
}

@media (max-width: 600px) {
    .skills-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0;
    }

    .skill-card {
        padding: 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: 160px;
        justify-content: center;
    }


    .skill-icon-wrapper {
        width: 40px;
        height: 40px;
        margin: 0 auto 5px auto;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .skill-icon-wrapper i {
        font-size: 1.8em;
        line-height: 1;
        display: block;
        width: 100%;
        text-align: center;
    }

    .skill-content {
        width: 100%;
        display: flex; 
        flex-direction: column;
        align-items: center;
    }
    
    .skill-title {
        font-size: 0.95em;
        margin-bottom: 5px;
    }

    .skill-bar-wrapper {
        width: 95%;
        margin-top: 5px;
    }
}


/* ================================================= */
/* 5. PROJECTS (PROJETOS) */
/* ================================================= */

.projects-section {
    color: var(--text-light);
    padding: 0 10%;
    display: flex;
    flex-direction: column;
    grid-template-columns: 250px 1fr;
    gap: 50px;
    margin: 0 auto;
}

/* TÍTULO DA SEÇÃO FIXO/POSICIONADO */
.projects-section .section-title-container {
    grid-column: 1 / 2;
    top: 100px;
    margin-bottom: 0;
}

.projects-section h2 {
    margin-top: 0;
    margin-left: 0;
    padding: 0;
    position: static;
    background-color: transparent;
    font-size: 2em;
    color: var(--primary-color);
}

.sublinhado_line_project {
    width: 100%;
    max-width: 250px;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 10px;
    position: static;
}

.section-content-cards {
    grid-column: 2 / 3;
    padding-top: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

/* PROJECT CARD */
.project-card {
    background-color: var(--card-dark);
    padding: 25px;
    border-radius: var(--border-radius-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color-dark);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.project-image-placeholder {
    height: 180px;
    width: 100%;
    background-color: #0d0d0d;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color-dark);
    overflow: hidden;
}

.project-card p {
    color: var(--text-muted);
    flex-grow: 1;
}

/* TAGS E LINKS */
.tech-tags {
    margin: 15px 0 20px 0;
    display: flex;
    /* 1. Transforma em um container flexível */
    flex-wrap: wrap;
}

.tag {
    background-color: #333;
    color: #bbb;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-right: 8px;
    font-weight: 500;
    margin-bottom: 5px;
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.project-links a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: bold;
    flex-grow: 1;
    white-space: nowrap;
}

.project-links .demo-link {
    background-color: var(--primary-color);
    color: var(--background-dark);
    border: 2px solid var(--primary-color);
}

.project-links .demo-link:hover {
    background-color: var(--primary-color-hover);
}

.project-links a:not(.demo-link) {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.project-links a:not(.demo-link):hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
}

/* RESPONSIVIDADE PROJECTS */
@media (max-width: 1024px) {
    .projects-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 7%;
    }

    .projects-section .section-title-container {
        position: static;
        top: 0;
        text-align: center;
        margin-bottom: 20px;
    }

    .projects-section h2 {
        margin-top: 0;
        position: static;
    }

    .sublinhado_line_project {
        margin: 10px auto;
        width: 80px;
    }

    .section-content-cards {
        grid-column: 1 / -1;
        padding-top: 0;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 600px) {
    .project-links {
        flex-direction: column;
        gap: 10px;
        height: auto;
    }

    .project-links a {
        width: 100%;
    }
}


/* ================================================= */
/* 6. CONTACT SECTION (CONTATO) */
/* ================================================= */

.contact-section {
    padding: 0 10%;
    margin-top: 10%;
    margin-bottom: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-content-wrapper {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

/* TÍTULO E SUBTÍTULO */
.contact-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.contact-title .title-traco {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-right: 10px;
    font-weight: 100;
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 1.1em;
    margin-bottom: 50px;
    line-height: 1.6;
}

/* FORMULÁRIO (NEON BOX) */
.form-container {
    width: 100%;
    max-width: 650px;
    background: var(--card-dark);
    background: linear-gradient(var(--card-dark), var(--card-dark)) padding-box,
        linear-gradient(145deg, transparent 35%, var(--primary-color), #00ffff) border-box;
    border: 2px solid transparent;
    padding: 40px;
    color: white;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    margin: 0 auto;
}

.form-container .form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-container .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-container .form-group label {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9em;
    text-align: left;
}

/* INPUTS E TEXTAREA */
.form-container .form-group input,
.form-container .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    background-color: #212121;
    border: 1px solid #414141;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 1em;
}

.form-container .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-container .form-group input:focus,
.form-container .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

/* BOTÃO DE ENVIO */
.form-container .form-submit-btn {
    align-self: flex-start;
    color: var(--background-dark);
    font-weight: 700;
    width: 200px;
    background: var(--primary-color);
    border: none;
    padding: 14px 16px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.form-container .form-submit-btn:hover {
    background-color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
}

/* RESPONSIVIDADE CONTACT */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2em;
    }

    .form-container {
        padding: 25px;
    }

    .form-container .form-submit-btn {
        width: 100%;
        align-self: center;
    }
}


/* ================================================= */
/* 7. FOOTER */
/* ================================================= */

.main-footer {
    background-color: #0f0f0f;
    padding: 60px 0 20px 0;
    color: var(--text-light);
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;

    flex-wrap: wrap;
    gap: 30px;
    text-align: left;
}

/* BLOCOS */
.footer-brand h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links-group h4,
.footer-social-group h4 {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 5px;
}

.footer-links-group ul {
    list-style: none;
    padding: 0;
}

.footer-links-group a {
    color: var(--text-muted);
    font-size: 0.95em;
    line-height: 2;
    transition: color 0.3s, transform 0.3s;
    display: block;
}

.footer-links-group a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ÍCONES SOCIAIS */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-icons a {
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
    line-height: 0;
}

.social-icons a svg {
    width: 24px;
    height: 24px;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* COPYRIGHT */
.footer-bottom {
    text-align: center;
    padding: 20px 5% 0 5%;
}

.footer-separator {
    height: 1px;
    background-color: rgba(0, 255, 255, 0.3);
    margin: 0 auto 20px auto;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85em;
}

/* RESPONSIVIDADE FOOTER */
@media (max-width: 768px) {
    .footer-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 30px;
        gap: 40px;
        padding: 0 10%;
    }

    .footer-brand,
    .footer-links-group,
    .footer-social-group {
        min-width: 100%;
        text-align: left;
        max-width: none;
    }
}

/* Estilos para a Div de Status (JS usa estas classes) */
#message-status {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 500;
    display: none;
    /* Inicia escondido */
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.section-animada-entrada {
    opacity: 0;
    transform: translateY(50px);
    /* Move 50px para baixo (efeito de subir) */
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    /* Define a duração e suavidade */
}

/* 2. CLASSE FINAL: Traz o elemento de volta à posição normal e o torna visível */
/* Esta classe é adicionada pelo JavaScript quando o elemento entra na tela */
.section-animada-entrada.is-visible {
    opacity: 1;
    transform: translateY(0);
    /* Volta para a posição original (animando para cima) */
}

/* 3. Efeito de atraso opcional para elementos dentro de uma seção (ex: cards) */
/* Se a sua section tiver um grid de elementos internos, use isso para um efeito cascata. */
.skills-grid-container>div.is-visible,
.projects-grid>div.is-visible {
    transition-delay: 0.2s;
    /* Exemplo: Atraso na transição dos filhos */
}