/* --- 1. Variáveis da Paleta (Estritamente a sua) --- */
:root {
    --azul-escuro: #006699;
    --azul-claro: #3399CC;
    --azul-forte: #004466;        /* Azul mais escuro para melhor contraste */
    --cinza-escuro: #333333;      /* Texto principal */
    --cinza-medio: #999999;       /* Elementos secundários */
    --cinza-claro: #CCCCCC;       /* Bordas e detalhes */
    --cinza-suave: #F5F5F5;       /* Fundo de cards (WCAG AAA) */
    --branco: #FAFAFA;            /* Background principal */
}

/* --- 2. Reset e Corpo (Modo Escuro) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cinza-escuro) 0%, #1a1a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.code-brackets {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bracket {
    color: var(--azul-claro);
    animation: pulse 1.5s ease-in-out infinite;
}

.bracket:first-child {
    animation-delay: 0s;
}

.bracket:last-child {
    animation-delay: 0.3s;
}

.dev-text {
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-escuro));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.5);
    }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(51, 153, 204, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--azul-claro), var(--azul-escuro));
    border-radius: 10px;
    animation: loadingProgress 2s ease-in-out forwards;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

body {
    background-color: var(--cinza-escuro); /* BACKGROUND ESCURO SOLICITADO */
    color: var(--cinza-escuro);             /* Texto geral claro para contraste */
    line-height: 1.6;
    padding-top: 80px;
    /* Cursor será controlado via JS para evitar problemas de performance */
}

/* Cursor customizado - OTIMIZADO */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--azul-claro);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    will-change: transform, left, top;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    opacity: 1;
}

.custom-cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--azul-claro);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    will-change: transform, left, top;
    opacity: 1;
}

/* Expande ao hover em links/botões */
body.cursor-hover .custom-cursor {
    width: 40px;
    height: 40px;
    background-color: rgba(51, 153, 204, 0.2);
}

/* Cursor padrão em mobile e tablets */
@media (max-width: 1024px) {
    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 3. Header e Navegação (Azul Claro) --- */
#main-header {
    background-color: var(--azul-claro); /* NAV AZUL CLARO SOLICITADO */
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navbar com transparência ao rolar */
#main-header.scrolled {
    background-color: rgba(51, 153, 204, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

#main-header nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ajuste de Contraste no Menu */
.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--cinza-claro);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.logo i {
    font-size: 1.5rem;
    color: var(--azul-escuro);
}

/* Botão Hambúrguer (Mobile) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: var(--cinza-escuro);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .hamburger-line {
    background-color: var(--azul-escuro);
}

/* Animação do X quando menu está aberto */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--cinza-escuro);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--azul-escuro);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--branco);
    background-color: var(--azul-escuro);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 80%;
}

/* --- 4. Seção Hero --- */
#hero {
    padding: clamp(80px, 12vh, 140px) 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        var(--cinza-escuro) 0%, 
        #2a2a2a 50%, 
        var(--cinza-escuro) 100%);
}

/* Canvas de partículas animadas */
.tech-canvas,
.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Gradient animado de fundo */
#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(51, 153, 204, 0.1) 0%, 
        transparent 50%);
    animation: rotateGradient 20s linear infinite;
    z-index: 0;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
    max-width: 650px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--azul-claro);
    text-shadow: 2px 2px 8px rgba(51, 153, 204, 0.3);
    margin-bottom: clamp(12px, 2vh, 20px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-text h1 .highlight {
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-escuro));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    position: relative;
    cursor: default;
    pointer-events: none;
}

/* Efeito Glitch no título (hover) */
.hero-text h1.glitch-active {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.hero-text h1.glitch-active::before,
.hero-text h1.glitch-active::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-text h1.glitch-active::before {
    animation: glitchTop 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    transform: translate(-2px, -2px);
    opacity: 0.8;
}

.hero-text h1.glitch-active::after {
    animation: glitchBottom 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
    opacity: 0.8;
}

@keyframes glitchTop {
    0%, 100% { transform: translate(0); }
    33% { transform: translate(-4px, 0); }
    66% { transform: translate(4px, 0); }
}

@keyframes glitchBottom {
    0%, 100% { transform: translate(0); }
    33% { transform: translate(4px, 0); }
    66% { transform: translate(-4px, 0); }
}

.hero-text h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--cinza-claro);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: clamp(16px, 3vh, 28px);
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    min-height: 1.5em;
}

/* Cursor piscante para efeito typing */
.hero-text h2::after {
    content: '|';
    position: absolute;
    right: -10px;
    animation: blink 0.7s infinite;
    color: var(--azul-claro);
}

.hero-text h2.typing-complete::after {
    animation: none;
    opacity: 0;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-text p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--branco); /* Alterado para branco para melhor contraste */
    margin-bottom: clamp(30px, 5vh, 45px);
    max-width: 600px;
    font-weight: 400;
    line-height: 1.7;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Botões */
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul-claro) 100%);
    color: var(--branco);
    box-shadow: 0 4px 15px rgba(0, 102, 153, 0.3);
}

.btn-outline {
    border: 2px solid var(--azul-claro);
    color: var(--azul-claro);
    background: transparent;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(51, 153, 204, 0.4);
}

.btn-outline:hover {
    background-color: var(--azul-claro);
    color: var(--cinza-escuro);
    border-color: var(--azul-claro);
}

.btn:active {
    transform: translateY(-1px);
}

/* Efeito Ripple ao clicar */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Foto do Perfil */
.hero-image {
    animation: fadeInRight 0.8s ease-out 0.2s both;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
    width: clamp(200px, 35vw, 280px);
    height: clamp(200px, 35vw, 280px);
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--azul-claro);
    box-shadow: 0 8px 30px rgba(51, 153, 204, 0.4),
                0 0 0 10px rgba(51, 153, 204, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(51, 153, 204, 0.6),
                0 0 0 15px rgba(51, 153, 204, 0.15);
}

/* Ícones de tecnologias flutuantes */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.tech-icon {
    position: absolute;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    font-weight: 700;
    color: var(--azul-claro);
    background: rgba(51, 153, 204, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(51, 153, 204, 0.3);
    backdrop-filter: blur(5px);
    animation: float 20s infinite ease-in-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translate(30px, -50px) rotate(5deg);
        opacity: 0.5;
    }
    90% {
        opacity: 0.7;
    }
}

.tech-icon:nth-child(1) { top: 15%; animation-delay: 0s; }
.tech-icon:nth-child(2) { top: 30%; animation-delay: 2s; }
.tech-icon:nth-child(3) { top: 50%; animation-delay: 4s; }
.tech-icon:nth-child(4) { top: 70%; animation-delay: 6s; }
.tech-icon:nth-child(5) { top: 25%; animation-delay: 1s; }
.tech-icon:nth-child(6) { top: 45%; animation-delay: 3s; }
.tech-icon:nth-child(7) { top: 65%; animation-delay: 5s; }
.tech-icon:nth-child(8) { top: 85%; animation-delay: 7s; }

/* Esconder ícones em mobile para performance */
@media (max-width: 767px) {
    .floating-icons {
        display: none;
    }
}

/* --- 5. Títulos das Seções --- */
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--azul-claro); /* Alterado de azul-escuro para azul-claro para melhor visibilidade */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); /* Sombra mais forte para contraste */
    margin: 60px 0 30px 0;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--azul-claro), 
        var(--azul-escuro), 
        var(--azul-claro), 
        transparent);
    margin: 10px auto 0;
    animation: expandLine 1s ease-out forwards;
    transform-origin: center;
}

@keyframes expandLine {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 60px;
        opacity: 1;
    }
}

.section-title.revealed::after {
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: -200% center;
    }
    50% {
        background-position: 200% center;
    }
}

/* --- 6. Cards (Sobre Mim e Projetos) --- */

/* Efeito Scroll Reveal - Estado Inicial */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Delay progressivo para cards */
.project-card.reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.project-card.reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.project-card.reveal:nth-child(3) {
    transition-delay: 0.3s;
}

/* Texto Sobre Mim */
.about-text {
    background: #F5F5F5; /* Cinza muito claro para melhor contraste (WCAG AAA: 9.7:1) */
    color: var(--cinza-escuro);     /* Texto escuro para leitura */
    padding: clamp(25px, 4vw, 35px);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-left: 5px solid var(--azul-claro);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 18px;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--azul-escuro);
    font-weight: 700;
}

/* Cards de Projetos */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: stretch;
}

.project-card {
    background: #F5F5F5; /* Cinza muito claro para melhor contraste (WCAG AAA) */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Brilho animado ao hover */
.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(51, 153, 204, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.project-card:hover::before {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% {
        top: -50%;
        left: -50%;
    }
    100% {
        top: 150%;
        left: 150%;
    }
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 102, 153, 0.3),
                0 0 0 1px rgba(51, 153, 204, 0.2);
}

/* --- CORREÇÃO DAS IMAGENS --- */
.card-img {
    width: 100%;
    height: 250px;       /* Altura fixa para todas as imagens */
    object-fit: contain; /* Mostra a imagem completa sem cortar */
    background-color: #f5f5f5; /* Fundo suave para imagens menores */
    border-bottom: 4px solid var(--azul-escuro);
}

.card-content {
    padding: 25px;
    color: var(--cinza-escuro); /* Texto escuro dentro do card claro */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: var(--azul-escuro);
    margin-bottom: 12px;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 700;
}

.card-content p {
    flex: 1;
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--cinza-escuro);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.link-repo {
    display: inline-block;
    margin-top: auto;
    color: var(--azul-escuro); /* Azul escuro para melhor contraste */
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    align-self: flex-start;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 20px;
}

.link-repo::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-repo:hover {
    color: var(--azul-claro);
    transform: translateX(5px);
}

.link-repo:hover::after {
    transform: translateX(5px);
    animation: arrowBounce 0.6s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* --- 7. Media Queries --- */

/* --- SEÇÃO DE CONTATO --- */
.contact-section {
    padding: 80px 0;
    background-color: var(--cinza-escuro); /* Mesma cor de fundo das outras seções */
    position: relative;
}

.contact-intro {
    text-align: center;
    color: var(--cinza-claro);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(245, 245, 245, 0.98);
    padding: clamp(30px, 5vw, 50px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(51, 153, 204, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--cinza-escuro);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cinza-claro);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
    color: var(--cinza-escuro);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--azul-claro);
    box-shadow: 0 0 0 3px rgba(51, 153, 204, 0.1);
}

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

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(5px);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid #F44336;
}

.contact-info {
    text-align: center;
    margin-top: 40px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--azul-claro);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-email i {
    font-size: 1.3rem;
}

.contact-email a {
    color: var(--azul-claro);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-email a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--azul-claro);
    transition: width 0.3s ease;
}

.contact-email a:hover::after {
    width: 100%;
}

/* --- 7. Media Queries --- */

/* Menu Mobile para telas pequenas */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--azul-claro);
        flex-direction: column;
        padding: 40px 20px;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links a {
        display: block;
        padding: 15px 10px;
        width: 100%;
        border-radius: 0;
        font-size: 1.1rem;
    }
    
    .nav-links a::before {
        display: none;
    }
    
    .nav-links a:hover {
        background-color: var(--azul-escuro);
        transform: translateX(5px);
    }
    
    /* Overlay quando menu está aberto */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(0,0,0,0.5);
        z-index: 998;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* Tablets */
@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 0.8fr;
        gap: clamp(50px, 8vw, 100px);
        text-align: left;
    }
    
    .hero-text {
        justify-self: start;
    }
    
    .hero-image {
        justify-self: center;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1.2fr 1fr;
        gap: clamp(60px, 10vw, 120px);
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-content {
        gap: 140px;
    }
}

/* --- 8. Rodapé --- */
footer {
    background: var(--cinza-escuro); /* Fundo escuro igual ao body */
    border-top: 1px solid var(--cinza-medio);
    color: var(--cinza-claro);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.footer-content p {
    margin: 0;
    color: var(--cinza-claro);
}

.socials {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.socials a {
    color: var(--azul-claro);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(51, 153, 204, 0.2);
    cursor: pointer;
    position: relative;
}

.socials a i {
    font-size: 1.5rem;
    line-height: 1;
    display: block;
}

.socials a:hover {
    color: var(--branco);
    background-color: var(--azul-claro);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(51, 153, 204, 0.5);
}

/* Remover outline padrão do foco */
.socials a:focus {
    outline: none;
}

/* Mostrar indicador de foco apenas para navegação por teclado */
.socials a:focus-visible {
    outline: 2px solid var(--azul-claro);
    outline-offset: 3px;
}

.socials a:active {
    transform: translateY(-3px) scale(1.05);
}