/* Importação de Fontes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Poppins:wght@700&display=swap');

/* Variáveis CSS */
:root {
    --primary-color: #ffffff; /* Branco para texto e destaque */
    --secondary-color: #000000; /* Preto puro para fundo */
    --light-gray: #bbbbbb; /* Cinza claro para textos secundários */
    --dark-gray: #1a1a1a; /* Um preto um pouco menos intenso para detalhes ou fundo de cards */
    --font-family-body: 'Montserrat', sans-serif;
    --font-family-heading: 'Poppins', sans-serif; /* Fonte forte para títulos */
    --animation-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Ease-out padrão */
    --animation-elastic: cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Animação elástica */
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Garante smooth scroll nativo */
}

body {
    font-family: var(--font-family-body);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden; /* Evita rolagem horizontal indesejada */
}

/* ------------------------------------- */
/* Base para as Seções e Animações Gerais */
/* ------------------------------------- */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px; /* Padding padrão para todas as seções */
    position: relative;
    overflow: hidden; /* Garante que elementos animados não vazam */
    perspective: 1000px; /* Para efeitos 3D */

    /* Animações de entrada padrão para todas as seções */
    opacity: 0;
    transform: translateY(50px); /* Mais deslocamento */
    transition: opacity 1.2s var(--animation-ease), transform 1.2s var(--animation-ease); /* Transições mais longas */
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
}

p {
    font-family: var(--font-family-body);
    font-weight: 300;
    line-height: 1.8;
    color: var(--light-gray);
}

/* ------------------------------------- */
/* Componentes Reutilizáveis e de Layout */
/* ------------------------------------- */

.content-wrapper {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

.page-number {
    position: absolute;
    bottom: 40px;
    right: 60px;
    color: var(--light-gray);
    font-family: var(--font-family-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--animation-ease) 0.5s; /* Animado com delay */
}

.section.active .page-number {
    opacity: 1;
    transform: translateY(0);
}

.icon-square {
    width: 30px; /* Um pouco maior */
    height: 30px; /* Um pouco maior */
    background-color: var(--primary-color); /* Quadrado branco */
    position: absolute;
    top: 50%; /* Alinhado ao meio do título */
    left: -50px; /* Posição fora do título, mais distante */
    transform: translateY(-50%) scale(0) rotate(45deg); /* Inicia menor e rotacionado */
    opacity: 0;
    transition: all 0.8s var(--animation-elastic); /* Animação elástica mais longa */
    z-index: 0; /* Por trás do texto do título */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); /* Sombra suave */
}

/* Ativação dos quadrados nos títulos quando a seção está ativa */
.section.active .icon-square {
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(0deg); /* Volta à posição e tamanho normal */
    transition-delay: 0.2s;
}

/* ------------------------------------- */
/* HEADER (Navbar Fixa) */
/* ------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); /* Fundo mais opaco */
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5); /* Sombra mais forte */
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.8s var(--animation-ease);
}

.header.visible {
    opacity: 1;
    transform: translateY(0);
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .logo img {
    height: 40px; /* Logo um pouco maior */
    width: auto;
}

.header .logo span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem; /* Texto do logo um pouco maior */
    font-family: var(--font-family-heading);
    letter-spacing: 1px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.navbar a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-family-body);
    font-weight: 500;
    font-size: 1.05rem; /* Links um pouco maiores */
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease, transform 0.2s ease; /* Adiciona transform para hover */
}

.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px; /* Linha de destaque mais grossa */
    background-color: var(--primary-color); /* Linha de destaque branca */
    transition: width 0.4s var(--animation-ease); /* Transição mais longa */
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover {
    transform: translateY(-3px); /* Efeito de levitar no hover */
    color: var(--light-gray); /* Muda a cor no hover */
}
.navbar a.active {
    color: var(--primary-color);
}

/* ------------------------------------- */
/* Page 01: Hero Section */
/* ------------------------------------- */
.hero-section {
    background-color: var(--secondary-color);
    padding: 0;
    position: relative;
    overflow: hidden;
    /* Efeito de brilho sutil no fundo */
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.05);
}

.hero-bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Mais suave */
    filter: brightness(0.4) grayscale(100%); /* Escurece e deixa P&B */
    transform: scale(1.15) rotate(2deg); /* Mais deslocamento e rotação */
    transition: all 2.5s var(--animation-ease); /* Transição longa e suave */
    will-change: transform, opacity; /* Otimização para animação */
}

.hero-section.active .hero-bg-img {
    transform: scale(1) rotate(0deg);
    opacity: 0.25; /* Um pouco mais visível quando ativo */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--primary-color); 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content .logo-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(-60px) scale(0.8); /* Mais deslocamento e escala inicial */
    transition: all 1.2s var(--animation-ease) 0.5s;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); /* Brilho no logo */
}

.hero-content .logo-hero img {
    height: 60px; /* Logo maior */
    width: auto;
}

.hero-content .logo-hero span {
    font-size: 2.2rem; /* Texto do logo maior */
    font-weight: 700;
    font-family: var(--font-family-heading);
    letter-spacing: 3px;
}

.hero-content h1 {
    font-size: 7rem; /* Título GIGANTE */
    letter-spacing: 12px; /* Mais espaçamento */
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(80px) rotateX(-90deg); /* Animação 3D de cima para baixo */
    transform-origin: center top;
    transition: all 1.8s var(--animation-elastic) 0.8s;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4); /* Brilho no texto */
}

.hero-content p {
    font-size: 2.1rem; /* Frase maior */
    letter-spacing: 4px; /* Mais espaçamento */
    font-weight: 400;
    color: var(--light-gray);
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.5s var(--animation-ease) 1.5s;
}

/* Animações de entrada da seção Hero */
.hero-section.active .hero-content .logo-hero {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.hero-section.active .hero-content h1 {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}
.hero-section.active .hero-content p {
    opacity: 1;
    transform: translateY(0);
}

/* Indicador de rolagem */
.hero-scroll-indicator {
    position: absolute;
    bottom: 80px; /* Mais acima */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 1s var(--animation-ease) 2s; /* Aparece com delay */
}

.hero-section.active .hero-scroll-indicator {
    opacity: 1;
}

.hero-scroll-indicator span {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.scroll-arrow {
    width: 2px;
    height: 40px; /* Mais longo */
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--primary-color); /* Triângulo maior */
    animation: bounce-arrow 1.5s infinite var(--animation-ease); /* Animação de "bounce" */
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(15px) translateX(-50%); } /* Sobe e desce */
}


/* ------------------------------------- */
/* Page 02: Sobre Mim */
/* ------------------------------------- */
.about-section {
    background-color: var(--dark-gray);
    position: relative;
    padding-top: 100px;
}

.about-section .content-wrapper {
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.about-img {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    position: relative; /* Para a overlay */
    border-radius: 8px; /* Mantém a borda redonda */
    overflow: hidden; /* Corta a overlay que sai */
    opacity: 0;
    transform: translateX(-100px) scale(0.9); /* Mais deslocamento e escala inicial */
    transition: all 1.2s var(--animation-ease);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); /* Sombra mais intensa */
}

.about-img img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove espaço extra abaixo da imagem */
    filter: grayscale(100%) brightness(0.8); /* Inicia P&B e escuro */
    transition: filter 0.8s var(--animation-ease), transform 0.5s var(--animation-ease);
}
.about-img img:hover {
    filter: grayscale(0%) brightness(1); /* Colorido no hover */
    transform: scale(1.05); /* Zoom no hover */
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color); /* Uma "cortina" preta */
    transform: translateX(0);
    transition: transform 1.2s var(--animation-ease) 0.5s; /* Animação de "limpeza" */
    z-index: 2;
}

.about-text {
    flex: 2;
    text-align: left;
    position: relative;
    padding-left: 60px;
    opacity: 0;
    transform: translateX(100px); /* Mais deslocamento */
    transition: all 1.2s var(--animation-ease) 0.3s;
}

.about-text h2 {
    font-size: 4rem; /* Título maior */
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.about-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 120px; /* Linha mais longa */
    height: 5px; /* Linha mais grossa */
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s var(--animation-elastic) 0.8s; /* Animação elástica */
}

.about-text p {
    font-size: 1.2rem; /* Texto maior */
    margin-bottom: 25px;
    color: var(--light-gray);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--animation-ease);
}
.about-text p:nth-child(2) { transition-delay: 1.2s; } /* Parágrafos com delay */
.about-text p:nth-child(3) { transition-delay: 1.4s; }
.about-text p:nth-child(4) { transition-delay: 1.6s; }


/* Animações de entrada da seção Sobre Mim */
.about-section.active .about-img {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.about-section.active .img-overlay {
    transform: translateX(100%); /* A "cortina" desliza para fora */
}

.about-section.active .about-text {
    opacity: 1;
    transform: translateX(0);
}

.about-section.active .about-text h2::after {
    transform: scaleX(1);
}
.about-section.active .about-text p {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------- */
/* Page 03: Projetos */
/* ------------------------------------- */
.projects-section {
    background-color: var(--secondary-color);
    padding-top: 100px;
    align-items: flex-start;
}

.projects-section .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
}

.projects-title {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateX(-80px); /* Mais deslocamento */
    transition: all 1.2s var(--animation-ease);
    padding-left: 60px;
}

.projects-title h2 {
    font-size: 4.5rem; /* Título maior */
    margin: 0;
    position: relative;
    z-index: 1;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); /* Cards maiores */
    gap: 50px; /* Mais espaçamento */
    width: 100%;
}

.project-item {
    background-color: var(--dark-gray);
    border-radius: 15px; /* Bordas mais arredondadas */
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); /* Sombra mais forte */
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: center;
    padding-bottom: 30px; /* Mais padding */
    opacity: 0;
    transform: translateY(60px) scale(0.95); /* Mais deslocamento e escala inicial */
    transition: all 1s var(--animation-elastic); /* Animação elástica */
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1); /* Borda sutil */
}
.project-item:hover {
    transform: translateY(-15px) scale(1.02); /* Levanta mais no hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    border-color: var(--primary-color); /* Borda fica branca no hover */
}
.project-item:nth-child(1) { transition-delay: 0.5s; }
.project-item:nth-child(2) { transition-delay: 0.7s; }
/* Adicione mais delays para mais itens */


.project-thumb {
    width: 100%;
    height: 280px; /* Imagem um pouco maior */
    object-fit: cover;
    margin-bottom: 25px;
    filter: brightness(0.7) saturate(0.8) grayscale(100%); /* P&B e escuro */
    transition: all 0.6s var(--animation-ease);
}
.project-item:hover .project-thumb {
    filter: brightness(1) saturate(1) grayscale(0%); /* Colorido no hover */
    transform: scale(1.05); /* Zoom sutil na imagem no hover */
}

.project-content-area {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--animation-ease);
    padding: 0 30px; /* Padding interno */
}
.projects-section.active .project-item .project-content-area {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s; /* Aparece com delay depois do item */
}


.project-item h3 {
    font-size: 2rem; /* Título do projeto maior */
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-item p {
    font-size: 1.05rem;
    color: var(--light-gray);
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-techs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px; /* Mais espaçamento */
    margin-top: 20px;
    margin-bottom: 30px;
}

.project-techs span {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 9px 18px; /* Tags maiores */
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700; /* Mais negrito */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.project-techs span:hover {
    background-color: var(--light-gray);
    transform: translateY(-3px); /* Levita no hover */
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 14px 30px; /* Botão maior */
    border-radius: 8px; /* Mais arredondado */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background-color 0.3s ease, transform 0.3s var(--animation-elastic), box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Sombra mais forte */
}

.project-link:hover {
    background-color: var(--light-gray);
    transform: translateY(-5px); /* Levanta mais no hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}
.project-link i {
    transition: transform 0.3s ease;
}
.project-link:hover i {
    transform: translateX(5px); /* Ícone desliza no hover */
}


/* Animações de entrada da seção Projetos */
.projects-section.active .projects-title {
    opacity: 1;
    transform: translateX(0);
}
.projects-section.active .project-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* ------------------------------------- */
/* Page 04: Habilidades */
/* ------------------------------------- */
.skills-section {
    background-color: var(--dark-gray);
    padding-top: 100px;
    align-items: flex-start;
}

.skills-section .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
}

.skills-title {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateX(-80px); /* Mais deslocamento */
    transition: all 1.2s var(--animation-ease);
    padding-left: 60px;
}

.skills-title h2 {
    font-size: 4.5rem; /* Título maior */
    margin: 0;
    position: relative;
    z-index: 1;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Ítens maiores */
    gap: 40px; /* Mais espaçamento */
    width: 100%;
}

.skill-item {
    background-color: var(--secondary-color);
    border-radius: 15px; /* Mais arredondado */
    padding: 35px 25px; /* Mais padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0.7) translateY(40px) rotateY(30deg); /* Animação 3D de entrada */
    transform-origin: bottom center;
    transition: all 1s var(--animation-elastic);
    cursor: pointer;
}
.skill-item:hover {
    transform: scale(1.05) translateY(-10px) rotateY(0deg); /* Levanta e normaliza 3D no hover */
    background-color: #050505;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    border-color: var(--primary-color);
}

.skill-item i {
    font-size: 4.5rem; /* Ícones maiores */
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.4s var(--animation-ease);
}
.skill-item:hover i {
    color: var(--light-gray);
    transform: scale(1.1) rotateY(15deg); /* Ícone gira no hover */
}

.skill-item span {
    font-size: 1.2rem; /* Texto maior */
    font-weight: 700;
    color: var(--primary-color);
}

/* Animações de entrada para itens de habilidade com delays sequenciais */
.skills-section.active .skills-title {
    opacity: 1;
    transform: translateX(0);
}
.skills-section.active .skill-item:nth-child(1) { transition-delay: 0.5s; opacity: 1; transform: scale(1) translateY(0) rotateY(0deg); }
.skills-section.active .skill-item:nth-child(2) { transition-delay: 0.6s; opacity: 1; transform: scale(1) translateY(0) rotateY(0deg); }
.skills-section.active .skill-item:nth-child(3) { transition-delay: 0.7s; opacity: 1; transform: scale(1) translateY(0) rotateY(0deg); }
.skills-section.active .skill-item:nth-child(4) { transition-delay: 0.8s; opacity: 1; transform: scale(1) translateY(0) rotateY(0deg); }
.skills-section.active .skill-item:nth-child(5) { transition-delay: 0.9s; opacity: 1; transform: scale(1) translateY(0) rotateY(0deg); }
.skills-section.active .skill-item:nth-child(6) { transition-delay: 1.0s; opacity: 1; transform: scale(1) translateY(0) rotateY(0deg); }
.skills-section.active .skill-item:nth-child(7) { transition-delay: 1.1s; opacity: 1; transform: scale(1) translateY(0) rotateY(0deg); }
.skills-section.active .skill-item:nth-child(8) { transition-delay: 1.2s; opacity: 1; transform: scale(1) translateY(0) rotateY(0deg); }
.skills-section.active .skill-item:nth-child(9) { transition-delay: 1.3s; opacity: 1; transform: scale(1) translateY(0) rotateY(0deg); }


/* ------------------------------------- */
/* Page 05: Contato */
/* ------------------------------------- */
.contact-section {
    background-color: var(--secondary-color);
    overflow: hidden;
    padding-top: 100px;
    align-items: flex-start;
}

.contact-section .content-wrapper {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.contact-info {
    flex: 1;
    text-align: left;
    z-index: 2;
    padding-left: 60px;
    opacity: 0;
    transform: translateX(-80px); /* Mais deslocamento */
    transition: all 1.2s var(--animation-ease);
}

.contact-info h2 {
    font-size: 4rem; /* Título maior */
    margin-bottom: 30px;
    position: relative;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
.contact-info h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 120px; /* Linha mais longa */
    height: 5px; /* Linha mais grossa */
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s var(--animation-elastic) 0.8s;
}

.contact-info p {
    font-size: 1.2rem; /* Texto maior */
    margin-bottom: 30px;
    color: var(--light-gray);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s var(--animation-ease) 0.8s;
}

/* Formulário de Contato (Visual apenas) */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s var(--animation-ease) 1.2s; /* Mais delay */
    padding: 30px;
    background-color: var(--dark-gray);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.form-group label {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-color); /* Fundo mais escuro para os campos */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--primary-color);
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3); /* Brilho maior no foco */
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--light-gray); /* Cinza claro para indicar desativado */
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: not-allowed; /* Cursor de "não permitido" */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: fit-content;
    transition: all 0.3s ease;
}

.form-status {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--light-gray);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s var(--animation-ease) 1.5s; /* Aparece com delay */
}


/* Ícones Sociais */
.social-icons {
    margin-top: 40px;
    display: flex;
    gap: 35px; /* Mais espaçamento */
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s var(--animation-ease) 1.5s;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 3rem; /* Ícones maiores */
    transition: transform 0.4s var(--animation-elastic), color 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.social-icons a:hover {
    transform: translateY(-8px) scale(1.2); /* Levita mais e aumenta */
    color: var(--light-gray);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.contact-note {
    font-size: 1rem;
    color: var(--light-gray);
    margin-top: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s var(--animation-ease) 1.8s;
}

.contact-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.contact-image img {
    max-width: 90%;
    height: auto;
    object-fit: contain;
    border-radius: 12px; /* Mais arredondado */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    filter: grayscale(100%) brightness(0.7); /* Inicia P&B e escuro */
    transform: translateX(120%) rotateY(45deg); /* Animação 3D de entrada */
    transform-origin: right center;
    transition: all 1.8s var(--animation-elastic); /* Animação elástica mais longa */
}

/* Frases de fundo na seção de contato */
.contact-phrases {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(20px);
    text-align: right;
    z-index: 0;
    pointer-events: none; /* Garante que não interfere com cliques */
}

.contact-phrases h2 {
    font-size: 6rem; /* Frases maiores */
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.05); /* Mais transparente */
    opacity: 0;
    transition: all 1.2s var(--animation-ease);
    letter-spacing: 8px; /* Mais espaçamento */
    transform: translateX(150px); /* Mais deslocamento inicial */
}

.contact-phrases .your-vision { transition-delay: 0.8s; }
.contact-phrases .vision-word { transition-delay: 1.0s; }
.contact-phrases .my-gratitude { transition-delay: 1.2s; }


/* Animações de entrada da seção Contato */
.contact-section.active .contact-info {
    opacity: 1;
    transform: translateX(0);
}
.contact-section.active .contact-info h2::after {
    transform: scaleX(1);
}
.contact-section.active .contact-info p {
    opacity: 1;
    transform: translateY(0);
}
.contact-section.active .contact-form,
.contact-section.active .social-icons,
.contact-section.active .contact-note,
.contact-section.active .form-status {
    opacity: 1;
    transform: translateY(0);
}
.contact-section.active .contact-image img {
    filter: grayscale(0%) brightness(1); /* Colorido quando ativo */
    transform: translateX(0) rotateY(0deg);
}
.contact-section.active .contact-phrases h2 {
    opacity: 0.05; /* Mantém a opacidade baixa */
    transform: translateX(0);
}

/* Continue do CSS anterior... */

/* ------------------------------------- */
/* MEDIA QUERIES (Responsividade) */
/* ------------------------------------- */

@media (max-width: 1200px) {
    .section {
        padding: 40px; /* Reduz padding geral */
    }

    .header {
        padding: 15px 40px;
    }

    .navbar ul {
        gap: 25px; /* Reduz espaço entre links */
    }

    .hero-content h1 {
        font-size: 4.5rem;
        letter-spacing: 5px;
    }

    .hero-content p {
        font-size: 1.4rem;
    }
    .hero-content .logo-hero {
        transform: translateY(-40px) scale(0.9); /* Ajusta a escala inicial */
    }
    .hero-section.active .hero-content .logo-hero {
        transform: translateY(0) scale(1);
    }
    .hero-content h1 {
        transform: translateY(60px) rotateX(-90deg);
    }
    .hero-section.active .hero-content h1 {
        transform: translateY(0) rotateX(0deg);
    }
    .hero-scroll-indicator {
        bottom: 60px; /* Ajuste para mobile */
    }

    /* Ajustes para layouts em coluna */
    .about-section .content-wrapper,
    .contact-section .content-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .about-img,
    .contact-image {
        flex: none; /* Remove flex sizing */
        width: 70%; /* Ajuste a largura da imagem */
        justify-content: center; /* Centraliza a imagem */
        transform: translateX(0) scale(0.95); /* Remove o translateX */
    }

    .about-section.active .about-img {
        transform: translateX(0) scale(1);
    }

    .about-text,
    .contact-info {
        flex: none; /* Remove flex sizing */
        width: 100%;
        text-align: center;
        padding-left: 0; /* Remove padding extra */
        transform: translateX(0); /* Remove o translateX inicial */
    }

    /* Centraliza a linha dos títulos no modo coluna */
    .about-text h2::after,
    .contact-info h2::after {
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
    }
    .about-section.active .about-text h2::after,
    .contact-section.active .contact-info h2::after {
        transform: translateX(-50%) scaleX(1);
    }

    /* Ajusta a posição do icon-square nos títulos */
    .about-text .icon-square,
    .skills-title .icon-square,
    .projects-title .icon-square,
    .contact-info .icon-square {
        left: 50%; /* Centraliza */
        top: -15px; /* Acima do título */
        transform: translateX(-50%) scale(0) rotate(45deg); /* Mantém rotação inicial */
    }
    .section.active .icon-square {
        transform: translateX(-50%) scale(1) rotate(0deg);
    }


    .projects-section .content-wrapper,
    .skills-section .content-wrapper {
        align-items: center; /* Centraliza o grid em telas menores */
    }

    .projects-title,
    .skills-title {
        text-align: center;
        padding-left: 0; /* Remove padding extra */
        transform: translateX(0); /* Remove o translateX inicial */
    }


    .project-grid,
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Mais flexível */
        gap: 40px;
    }

    .project-item {
        transform: translateY(40px) scale(0.98); /* Ajuste de escala */
    }
    .projects-section.active .project-item {
        transform: translateY(0) scale(1);
    }

    .skill-item {
        transform: scale(0.9) translateY(20px) rotateY(0deg); /* Remove rotação 3D para mobile */
    }
    .skills-section.active .skill-item {
        transform: scale(1) translateY(0) rotateY(0deg);
    }
    .skill-item:hover {
        transform: scale(1.05) translateY(-5px); /* Mantém hover simples */
    }
    .skill-item:hover i {
        transform: scale(1.1); /* Remove rotação do ícone */
    }


    .contact-image {
        margin-top: 40px; /* Espaçamento da imagem */
    }
    .contact-image img {
        transform: translateY(100%) rotateY(0deg); /* Animação de baixo para cima no mobile, sem 3D */
    }
    .contact-section.active .contact-image img {
        transform: translateY(0) rotateY(0deg);
    }

    .contact-phrases {
        position: relative; /* Volta para o fluxo normal */
        top: auto;
        right: auto;
        transform: translateY(0);
        margin-top: 40px;
        text-align: center;
        width: 100%;
    }
    .contact-phrases h2 {
        font-size: 3.5rem; /* Diminuir o tamanho das frases no final */
        color: var(--light-gray); /* Torna mais visível no fundo liso */
        opacity: 1; /* Totalmente visível no mobile */
        transform: translateX(0) !important; /* Anula transformações de delay */
        letter-spacing: 3px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 30px 20px;
    }

    .page-number {
        left: 20px;
        right: 20px;
        font-size: 0.8rem;
        bottom: 20px; /* Mais para cima */
    }

    .header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
        margin-top: 10px;
    }
    .navbar a {
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
        letter-spacing: 3px;
    }

    .hero-content p {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    .hero-content .logo-hero img {
        height: 45px;
    }
    .hero-content .logo-hero span {
        font-size: 1.6rem;
    }

    .scroll-arrow {
        height: 30px; /* Flecha menor */
    }
    .scroll-arrow::after {
        border-top: 8px solid var(--primary-color); /* Triângulo menor */
    }


    .about-img,
    .contact-image {
        width: 90%; /* Aumenta a largura da imagem para preencher mais */
    }

    .about-text h2,
    .projects-title h2,
    .skills-title h2,
    .contact-info h2 {
        font-size: 2.8rem;
    }
    .about-text p,
    .project-item p,
    .contact-info p,
    .contact-note,
    .form-status {
        font-size: 1rem;
    }

    .project-grid,
    .skills-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
        gap: 30px;
    }

    .project-item h3 {
        font-size: 1.6rem;
    }
    .project-techs span {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
    .project-link {
        padding: 10px 20px;
        font-size: 0.95rem;
    }


    .skill-item {
        padding: 25px 15px;
    }
    .skill-item i {
        font-size: 3.5rem;
    }
    .skill-item span {
        font-size: 1.05rem;
    }

    .contact-form {
        padding: 20px;
        gap: 15px;
    }
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    .submit-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .social-icons {
        gap: 25px;
        justify-content: center;
    }
    .social-icons a {
        font-size: 2.5rem;
    }

    .contact-phrases h2 {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }
    .header .logo span {
        font-size: 1.1rem;
    }
    .header .logo img {
        height: 30px;
    }

    .navbar ul {
        gap: 8px 10px;
    }
    .navbar a {
        font-size: 0.8rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    .hero-content p {
        font-size: 0.9rem;
        letter-spacing: 0;
    }

    .hero-content .logo-hero img {
        height: 35px;
    }
    .hero-content .logo-hero span {
        font-size: 1.2rem;
    }

    .about-text h2,
    .projects-title h2,
    .skills-title h2,
    .contact-info h2 {
        font-size: 2rem;
    }

    .project-item h3 {
        font-size: 1.4rem;
    }

    .skill-item i {
        font-size: 3rem;
    }
    .skill-item span {
        font-size: 0.9rem;
    }

    .social-icons {
        gap: 15px;
    }
    .social-icons a {
        font-size: 2rem;
    }

    .contact-phrases h2 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  animation: fadeSlideIn 1s ease-out;
}