html {
    scroll-behavior: smooth;
    /* Ajusta o ponto de parada da rolagem para não esconder o título atrás do menu fixo */
    scroll-padding-top: 80px; 
}

main {
    position: relative;
    z-index: 0;
}
:root {
    /* Light Mode Palette */
    --background: #f6ebdd;
    --text: #111113;
    --primary: #d18681;
    --secondary: #acbfb7;
    --accent: #8e6d86;
    --card-bg: #ffffff;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Estilo para TODAS as seções principais terem tela cheia */
section {
    min-height: 100vh; /* Altura mínima igual à altura da tela */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza o conteúdo verticalmente */
    width: 100%;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Garante que o container dentro da seção não estique demais */
section .container {
    width: 100%;
}

body.dark-mode {
    /* Dark Mode Palette */
    --background: #111113;
    --text: #f6ebdd;
    --primary: #d18681;
    --secondary: #acbfb7;
    --accent: #8e6d86;
    --card-bg: #1a1a1d;
    --shadow: 0 4px 8px rgba(0,0,0,0.3);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 960px;
    margin: auto;
    padding: 2rem 1rem;
}

header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.settings button {
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.settings button:hover {
    background-color: var(--accent);
    color: var(--background);
}

#intro {
    text-align: center;
    padding: 4rem 1rem;
}

#intro h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--accent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    font-weight: 700;
}

.project-card {
    background-color: var(--card-bg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
}

.project-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--accent);
}

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

.stats-images img {
    max-width: 100%;
    height: auto;
}

.social-links {
    text-align: center;
}

.social-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    background-color: var(--card-bg);
}
/* ========================================= */
/* ESTILOS INSPIRADOS NO NOVO DESIGN */
/* ========================================= */

/* Efeito para os links da navegação */
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    transition: color 0.3s;
    position: relative; /* Necessário para o pseudo-elemento ::after */
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.4s ease;
}

/* Modifique esta regra existente */
.nav-links a:hover::after,
.nav-links a.active::after { /* Adicione ", .nav-links a.active::after" */
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}


/* Melhorias nos botões e links sociais */
.cta-button, .social-links a {
    position: relative;
    overflow: hidden; /* Garante que o efeito de brilho fique dentro do botão */
    transition: all 0.3s ease;
    transform: perspective(1px) translateZ(0); /* Melhora a performance da animação */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover, .social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
    color: #fff; /* Garante que o texto fique legível no hover do link social */
}

/* Efeito de brilho ao passar o mouse */
.cta-button::before, .social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    z-index: 1;
}

.cta-button:hover::before, .social-links a:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* O conteúdo do botão precisa ficar acima do efeito de brilho */
.cta-button span, .social-links a span {
    position: relative;
    z-index: 2;
}

/* Ajustes específicos para os links sociais */
.social-links a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    background-color: var(--card-bg);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 700;
}

.social-links a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* ========================================= */
/* ESTILOS PARA O FORMULÁRIO DE CONTATO      */
/* ========================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Divide em 2 colunas, o form é 2x maior */
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.contact-info, .contact-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-info h3, .contact-form h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Links sociais na vertical */
.social-links-vertical {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.social-links-vertical a {
    /* Reutilizando e adaptando o estilo anterior */
    display: block;
    text-align: center;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    background-color: var(--card-bg);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.social-links-vertical a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.1);
}


/* Estilo do formulário */
.contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas para Nome e Email */
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1; /* Ocupa a largura total */
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--accent);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 2px solid var(--secondary);
    background-color: var(--background);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(209, 134, 129, 0.25); /* Sombra de foco com a cor primária */
}

.contact-form .cta-button {
    grid-column: 1 / -1;
    background: linear-gradient(to right, var(--accent), var(--primary));
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Colunas empilhadas */
    }
}

/* ========================================= */
/* ESTILOS PARA O GRID DE PROJETOS (ATUALIZADO) */
/* ========================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-item {
    aspect-ratio: 4 / 3;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Estilos para a imagem de fundo */
    background-size: cover;
    background-position: center;

    /* Alinha o título na parte de baixo */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Overlay escuro para garantir a legibilidade do título */
.project-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    transition: background-color 0.4s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.project-content {
    position: relative; /* Mudado de absolute */
    padding: 1.5rem;
    color: #fff;
    z-index: 2; /* Para ficar acima do overlay ::before */
    transition: all 0.4s ease;
    
    /* Centraliza o conteúdo (será usado no hover) */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Mantém o título embaixo por padrão */
    align-items: center;
    text-align: center;
}

/* Título sempre visível */
.project-content h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    transform: translateY(0); /* Estado inicial */
    transition: transform 0.4s ease;
}

/* Esconde a descrição e o botão por padrão */
.project-content p,
.project-content .cta-button {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease, transform 0.4s ease;
    transform: translateY(10px); /* Efeito de subir */
}

/* Efeito ao passar o mouse */
.project-item:hover::before {
    /* O overlay escuro some para dar lugar ao gradiente colorido */
    background-color: rgba(0,0,0,0); 
}

.project-item:hover .project-content {
    /* Centraliza todo o conteúdo */
    justify-content: center; 
    
    /* Aplica o overlay colorido */
    background: linear-gradient(45deg,
      rgba(100, 38, 83, 0.9),
      rgba(142, 109, 134, 0.9)
    );
    /* Ocupa o card inteiro */
    position: absolute;
    inset: 0;
}

.project-item:hover .project-content h3 {
    transform: translateY(-10px); /* Sobe um pouco o título */
}

/* Mostra a descrição e o botão ao passar o mouse */
.project-item:hover .project-content p,
.project-item:hover .project-content .cta-button {
    opacity: 1;
    max-height: 200px; /* Altura suficiente para o conteúdo aparecer */
    transform: translateY(0);
}

/* Botão dentro do card */
.project-content .cta-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
    margin-top: 1rem;
}
.project-content .cta-button:hover {
    background: #fff;
    color: var(--primary);
}

/* ========================================= */
/* ESTILOS PARA O RODAPÉ (FOOTER)            */
/* ========================================= */

footer {
    text-align: center;
    padding: 2rem 1rem; /* Padding vertical e horizontal */
    margin-top: 2rem;
    background-color: var(--card-bg);
    border-top: 1px solid var(--secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite que os itens quebrem a linha em telas menores */
    gap: 1.5rem; /* Espaçamento entre os elementos */
    margin-bottom: 2rem;
}

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

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--background);
    border: 1px solid var(--secondary);
    border-radius: 50%; /* Deixa o link circular */
    color: var(--accent);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--card-bg); /* Cor do ícone no hover */
    transform: translateY(-3px);
}

.footer-copyright {
    padding-top: 1.5rem;
    border-top: 1px solid var(--secondary);
    font-size: 0.9rem;
    color: var(--secondary);
}

/* Responsividade para o rodapé */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* Empilha os itens verticalmente */
        justify-content: center;
        text-align: center;
    }
}

/* ========================================= */
/* ESTILOS PARA A SEÇÃO DE INTRODUÇÃO (HERO) */
/* ========================================= */

/* Fundo de grade sutil */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: 50px 50px;
    background-image:
      linear-gradient(to right, rgba(172, 191, 183, 0.1) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(172, 191, 183, 0.1) 1px, transparent 1px);
    z-index: -1; /* Fica atrás de todo o conteúdo */
    pointer-events: none; /* Não interfere com cliques */
}

/* Garante que a seção ocupe a tela inteira e centralize o conteúdo */
#intro {
    min-height: calc(100vh - 70px); /* Altura da tela menos a altura do header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 5rem; /* Espaço extra na parte inferior */
}

/* Texto com efeito de gradiente */
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Tamanho de fonte responsivo */
}

#intro p {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-top: 1rem;
    max-width: 600px;
}

/* Container dos botões */
.intro-buttons {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* Para telas menores */
    justify-content: center;
}

/* Estilo base dos botões */
.hero-btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Botão primário (com gradiente) */
.hero-btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--primary));
    color: #fff;
    box-shadow: 0 5px 15px rgba(209, 134, 129, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(209, 134, 129, 0.4);
}

/* Botão secundário (com borda) */
.hero-btn-outline {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-btn-outline:hover {
    background-color: var(--accent);
    color: var(--card-bg);
    transform: translateY(-3px);
}
/* ========================================= */
/* ESTILOS PARA O SKILL CARD (CORRIGIDO)     */
/* ========================================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.skill-card-item {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: box-shadow 0.3s ease-in-out;
    border-radius: 8px;
    overflow: hidden; /* Essencial para a animação funcionar */
}

.skill-card-item:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
}

.skill-card-item:hover .skill-card__header {
    height: 40px; /* Header encolhe */
}

.skill-card-item:hover .skill-card__header .skill-card__icon {
    transform: translateX(-50%) translateY(-50%) scale(0.6);
}

.skill-card-item:hover .skill-card__body {
    height: 60px; /* Corpo expande */
    opacity: 1;
}

.skill-card-item .skill-card__header {
    position: relative;
    height: 100px; /* Altura inicial do header */
    transition: height .4s ease;
    overflow: hidden;
}

.skill-card-item .skill-card__header .skill-card__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    display: block;
    width: 60px;
    height: 60px;
    transition: transform .4s ease;
    object-fit: contain;
}

.skill-card-item .skill-card__body {
    height: 0; /* Começa com altura 0 para ficar escondido */
    opacity: 0; /* Começa transparente */
    transition: height .4s ease, opacity .4s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card-item .skill-card__body .skill-card__title {
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
    padding: 0 10px; /* Evita que o texto quebre em nomes longos */
    text-align: center; /* Garante a centralização do texto */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
:root {
    /* Light Mode Palette */
    --background: #f6ebdd;
    --text: #111113;
    --primary: #d18681;
    --secondary: #acbfb7;
    --accent: #8e6d86;
    --card-bg: #ffffff;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body.dark-mode {
    /* Dark Mode Palette */
    --background: #111113;
    --text: #f6ebdd;
    --primary: #d18681;
    --secondary: #acbfb7;
    --accent: #8e6d86;
    --card-bg: #1a1a1d;
    --shadow: 0 4px 8px rgba(0,0,0,0.3);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 960px;
    margin: auto;
    padding: 2rem 1rem;
}

header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
}

nav.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.4s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.settings button {
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.settings button:hover {
    background-color: var(--accent);
    color: var(--background);
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

section .container {
    width: 100%;
}

.side-nav {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 100;
}

.side-nav ul {
    list-style: none;
}

.side-nav li {
    margin: 15px 0;
}

.nav-dot {
    display: block;
    width: 12px;
    height: 12px;
    background-color: var(--secondary);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    background-color: var(--primary);
}

.nav-dot.active {
    background-color: var(--primary);
    transform: scale(1.4);
}

.nav-dot::after {
    content: attr(title);
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--card-bg);
    color: var(--text);
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.nav-dot:hover::after {
    opacity: 1;
    visibility: visible;
}

#about .about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

#about .about-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

#about .about-cta {
    grid-column: 1 / -1;
    margin-top: 2rem;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--accent);
}

#about .about-cta h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .side-nav {
        display: none;
    }
    #about .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    #about .about-image {
        margin-bottom: 1rem;
    }
}