/* ==========================================================================
   CSS PRINCIPAL — PORTFÓLIO LUCAS GUEDES DEV
   ========================================================================== */

/* 1. Reset e Definições de Fontes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    /* Identidade de Cores (Dark Tech Cinematográfico) */
    --bg-dark-deep: hsl(224, 45%, 5%);       /* Fundo primário, azul-escuro super profundo */
    --bg-dark-card: hsl(224, 45%, 9%);       /* Fundo secundário para cards */
    
    /* Paleta complementar inspirada na foto de perfil (Royal Blue & Amber Orange) */
    --accent-blue: hsl(220, 100%, 54%);      /* Azul Royal vibrante da camisa */
    --accent-orange: hsl(24, 100%, 50%);     /* Laranja/Amber quente da parede de fundo */
    
    /* Mantemos variáveis antigas mapeadas para estabilidade total de classes */
    --accent-cyan: var(--accent-blue);
    --accent-violet: var(--accent-orange);
    
    --text-primary: hsl(210, 40%, 98%);      /* Branco suave */
    --text-secondary: hsl(215, 20%, 72%);    /* Cinza claro suave */
    --text-muted: hsl(215, 12%, 50%);        /* Cinza escuro para detalhes menores */
    
    /* Efeitos de Vidro (Glassmorphism) */
    --bg-glass: rgba(11, 15, 25, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-cyan-glow: rgba(10, 88, 255, 0.25); /* Glow Azul */
    --border-orange-glow: rgba(249, 101, 6, 0.25); /* Glow Laranja */
    
    /* Fontes */
    --font-heading: 'Plus Jakarta Sans', sans-serif; /* Substituição da Syne por Plus Jakarta Sans */
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Transições e Efeitos */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 2. Estilização Base & Scroll */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-dark-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    /* Cursor padrão restaurado */
    cursor: default;
}

a, button {
    cursor: pointer;
}

/* Barra de rolagem customizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-dark-card);
    border: 2px solid var(--bg-dark-deep);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Barra de Progresso de Leitura */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease-out;
}

/* Feedback de Toque (Ripple & Press Squeeze) */
.touch-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.65s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.45) 0%, rgba(10, 88, 255, 0.15) 50%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

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

/* Efeito de Compressão ao Clicar (Press Squeeze) */
.glass-card, .btn-primary, .btn-secondary, .btn-whatsapp-outline, .btn-primary-pulse, .tech-bubble, .channel-card {
    position: relative;
    overflow: hidden;
}

.glass-card:active, .btn-primary:active, .btn-secondary:active, .btn-whatsapp-outline:active, .btn-primary-pulse:active, .tech-bubble:active, .channel-card:active {
    transform: scale(0.96) translateY(0) !important;
    transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Utilitários de Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

/* ============================================
   SECTION DIVIDER — Linha animada entre seções
   ============================================ */
@keyframes shimmer-sweep {
    0%   { left: -65%; opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

.section-divider {
    position: relative;
    width: 100%;
    height: 1px;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(10, 88, 255, 0.1) 25%,
        rgba(249, 101, 6, 0.1) 75%,
        transparent 100%
    );
}

.divider-shimmer {
    position: absolute;
    top: -2px;
    left: -65%;
    width: 55%;
    height: 5px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(10, 88, 255, 0.0) 10%,
        rgba(10, 88, 255, 0.6) 35%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(249, 101, 6, 0.6) 65%,
        rgba(249, 101, 6, 0.0) 90%,
        transparent 100%
    );
    filter: blur(1.5px);
    /* parada por padrão — só dispara com .is-visible */
    animation: shimmer-sweep 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-play-state: paused;
}

.section-divider.is-visible .divider-shimmer {
    animation-play-state: running;
}


.center {
    text-align: center;
}

.code-font {
    font-family: var(--font-mono);
}

/* Tags de Seção */
.section-tag {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: lowercase;
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 60px auto;
}

/* 3. Glassmorphism Card System (Otimizado: Estático para evitar repaints de backdrop-filter no scroll) */
.glass-card {
    background: rgba(11, 15, 25, 0.72);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.05), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 16px 48px 0 rgba(6, 182, 212, 0.12);
    transform: translateY(-6px);
}

/* 4. Sistema de Botões */
.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-dark-deep);
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.5);
    background-color: hsl(188, 100%, 55%);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 15px 31px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.04);
    transform: translateY(-3px);
}

.btn-whatsapp-outline {
    background: transparent;
    color: var(--accent-cyan);
    border: 1.5px solid var(--accent-cyan);
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-whatsapp-outline:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark-deep);
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.btn-whatsapp-outline i {
    width: 16px;
    height: 16px;
}

/* Botão com Pulso no Contato (Otimizado com pseudo-elemento para animação de GPU a 120 FPS) */
.btn-primary-pulse {
    background: var(--accent-cyan);
    color: var(--bg-dark-deep);
    padding: 18px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    z-index: 1;
}

.btn-primary-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    box-shadow: 0 0 20px 8px rgba(6, 182, 212, 0.55);
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    animation: pulse-glow-gpu 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
}

.btn-primary-pulse:hover {
    transform: translateY(-4px) scale(1.02);
    background-color: hsl(188, 100%, 55%);
}

@keyframes pulse-glow-gpu {
    0% {
        transform: scale3d(0.95, 0.95, 1);
        opacity: 0.85;
    }
    100% {
        transform: scale3d(1.18, 1.18, 1);
        opacity: 0;
    }
}

/* 5. Header / Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
    padding: 24px 0;
}

.navbar.scrolled {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
    font-weight: 700;
    font-size: 1.3rem;
}

.code-bracket {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-weight: 600;
}

.logo-text {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.brand-name {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 8px;
    border-left: 1.5px solid rgba(255, 255, 255, 0.15);
    padding-left: 12px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1.5px;
    background-color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

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

/* Hamburger Menu Mobile */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1100;
}

.hamburger-menu .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Hamburger active */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--accent-cyan);
}

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

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--accent-cyan);
}

/* 6. Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
}

.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Animação Contínua para Glows Autônomos */
@keyframes float-glow-1 {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-25px, 25px) scale(0.95);
    }
}

@keyframes float-glow-2 {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }
    50% {
        transform: translate(-40px, 40px) scale(1.15);
    }
}

.hero-glow-layer {
    position: absolute;
    top: 15%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 88, 255, 0.12) 0%, rgba(249, 101, 6, 0.05) 50%, transparent 70%);
    z-index: 2;
    filter: blur(100px);
    pointer-events: none;
    animation: float-glow-1 25s ease-in-out infinite alternate;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 3;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
}

.hero-tag-wrapper {
    margin-bottom: 24px;
}

.hero-tag {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid var(--border-cyan-glow);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    text-transform: lowercase;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.8px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-typewriter-container {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.typewriter-prefix {
    color: var(--text-muted);
}

.typewriter-text {
    color: var(--accent-cyan);
    font-weight: 600;
}

.typewriter-text::after {
    content: '|';
    display: inline-block;
    color: inherit;
    margin-left: 4px;
    font-weight: 300;
    font-family: var(--font-mono, monospace);
    animation: blink 0.8s infinite;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Logos Flutuantes no Hero */
.hero-visual-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 480px;
    width: 100%;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
}

.hero-portrait-card {
    position: relative;
    width: 360px;
    height: 485px;
    border-radius: 24px;
    padding: 0;
    border: none;
    background: rgba(11, 15, 25, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* box-shadow é animado pelo @keyframes warm-pulse, não por transition */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    will-change: transform, box-shadow;
    animation: warm-pulse 3.5s ease-in-out infinite;
    overflow: hidden; /* box-shadow não precisa de overflow visible, e isso clippa os cantos da foto */
}

.hero-portrait-card:hover {
    animation-play-state: paused;
    transform: scale(1.03) translateY(-5px);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 28px 6px rgba(220, 100, 20, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Trilha do raio tecnológico: glow-ring gira dentro do card e a portrait-frame cobre o centro */
.portrait-glow-ring {
    display: block;
    position: absolute;
    inset: 0;
    border-radius: 24px;
    z-index: 1;
    overflow: hidden; /* O overflow do card clipa o gradiente girando, criando a borda */
}

/* O cometa/raio girando na trilha de borda */
.portrait-glow-ring::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 15%,
        rgba(210, 90, 10, 0.06)  25%,
        rgba(230, 110, 20, 0.35) 36%,
        rgba(249, 140, 30, 0.88) 44%,
        rgba(255, 220, 140, 1)   50%,  /* ponto quente branco-âmbar */
        rgba(249, 140, 30, 0.88) 56%,
        rgba(230, 110, 20, 0.35) 64%,
        rgba(210, 90, 10, 0.06)  75%,
        transparent 85%,
        transparent 100%
    );
    animation: spin-lightning 6s linear infinite; /* Velocidade reduzida */
    will-change: transform;
}

/* Fundo escuro do glow-ring — fica visível só na trilha de 2px exposta */
.portrait-glow-ring::after {
    content: '';
    display: none;
}

.portrait-frame {
    position: absolute;
    inset: 1px; /* Gap de 1px = trilha mais fina (50% menor) */
    border-radius: 23px;
    overflow: hidden;
    z-index: 2;
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.95) contrast(1.05) saturate(1.02);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.hero-portrait-card:hover .portrait-image {
    transform: scale(1.03);
    filter: brightness(1) contrast(1.08) saturate(1.05);
}

.tech-bubble {
    position: absolute;
    background: rgba(11, 15, 25, 0.88); /* Mais opaco para legibilidade perfeita no fundo escuro */
    /* backdrop-filter removido para evitar blurs sobrepostos extremamente pesados para a GPU */
    border: 1px solid var(--border-glass);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.tech-bubble:hover {
    border-color: var(--accent-cyan);
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.15);
}

.tech-bubble span {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tech-icon {
    width: 18px;
    height: 18px;
}

.php-color { color: hsl(235, 30%, 65%); }
.js-color { color: hsl(45, 93%, 58%); }
.laravel-color { color: hsl(0, 84%, 60%); }
.wp-color { color: hsl(200, 84%, 55%); }
.db-color { color: hsl(28, 80%, 55%); }
.css-color { color: hsl(207, 90%, 54%); }
.git-color { color: hsl(9, 90%, 55%); }
.linux-color { color: hsl(0, 0%, 80%); }

/* Posicionamento e Flutuação ao Redor do Retrato (Sobrepostos na Área da Foto) */
.hero-visual-content .bubble-1 {
    top: 6%;
    left: 6%;
    z-index: 15;
    animation: float-bubble-1 8s ease-in-out infinite;
}

.hero-visual-content .bubble-2 {
    top: 42%;
    right: 6%;
    z-index: 15;
    animation: float-bubble-2 7s ease-in-out infinite;
}

.hero-visual-content .bubble-3 {
    bottom: 6%;
    left: 6%;
    z-index: 15;
    animation: float-bubble-3 9s ease-in-out infinite;
}

.hero-visual-content .bubble-4 {
    top: 6%;
    right: 8%;
    z-index: 15;
    animation: float-bubble-4 7.5s ease-in-out infinite;
}

.hero-visual-content .bubble-5 {
    bottom: 6%;
    right: 8%;
    z-index: 15;
    animation: float-bubble-1 8.5s ease-in-out infinite;
}

@keyframes float-bubble-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(1.5deg); }
}

@keyframes float-bubble-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes float-bubble-3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(2deg); }
}

@keyframes float-bubble-4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(-1.5deg); }
}

/* Animações Contínuas e Performáticas */
@keyframes spin-glow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Raio tecnológico correndo ao redor da foto */
@keyframes spin-lightning {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes heartbeat-aura {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

@keyframes gradient-shift-warm {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pulso quente vivo: respira uma luz âmbar discreta ao redor da foto */
@keyframes warm-pulse {
    0%, 100% {
        box-shadow:
            0 30px 60px rgba(0, 0, 0, 0.4),
            0 0 15px 4px rgba(210, 85, 10, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    50% {
        box-shadow:
            0 30px 60px rgba(0, 0, 0, 0.4),
            0 0 30px 8px rgba(230, 110, 20, 0.30),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}

@keyframes heartbeat-card {
    0%, 100% {
        transform: scale3d(1, 1, 1);
    }
    14% {
        transform: scale3d(1.025, 1.025, 1);
    }
    28% {
        transform: scale3d(1.008, 1.008, 1);
    }
    42% {
        transform: scale3d(1.035, 1.035, 1);
    }
    70% {
        transform: scale3d(1, 1, 1);
    }
}

@keyframes float-bubble-1-mobile {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(1.5deg); }
}

@keyframes float-bubble-2-mobile {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes float-bubble-3-mobile {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(2deg); }
}

@keyframes float-bubble-4-mobile {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(-1.5deg); }
}

@keyframes aurora-breath-cyan {
    0%, 100% {
        opacity: 0.05;
    }
    50% {
        opacity: 0.12;
    }
}

@keyframes aurora-breath-violet {
    0%, 100% {
        opacity: 0.05;
    }
    50% {
        opacity: 0.14;
    }
}

/* 7. Faixa de Métricas */
.metrics-section {
    background: hsl(222, 47%, 8%);
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

.metrics-section::before {
    display: none;
}

.metrics-section::after {
    display: none;
}

.metrics-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.metric-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
}

.metric-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.08);
}

.metric-number-wrapper {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1.1;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.metric-plus {
    color: var(--accent-violet);
    font-size: 2.2rem;
    margin-left: 2px;
}

.metric-symbol {
    font-size: 3.8rem;
    line-height: 1;
    color: var(--accent-cyan);
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* 8. Sobre Mim */
.about-section {
    background-color: var(--bg-dark-deep);
    position: relative;
    overflow: hidden;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(
        circle,
        rgba(236, 72, 153, 0.12) 0%,
        rgba(249, 115, 22, 0.05) 50%,
        transparent 70%
    );
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    animation: float-glow-1 28s ease-in-out infinite alternate;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.bio-narrative p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.bio-narrative p strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

.about-values {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 10px;
}

.value-icon-wrapper {
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.value-icon-wrapper i {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
    display: block;
}

.value-item:hover .value-icon-wrapper {
    transform: scale(1.15);
    background: var(--accent-cyan);
    color: var(--bg-dark-deep);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.value-item:hover .value-icon-wrapper i {
    color: var(--bg-dark-deep);
}

.value-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
    transition: var(--transition-smooth);
}

.value-item:hover .value-label {
    color: var(--text-primary);
}

/* Coluna Direita: Card e Avatar */
.about-visual-content {
    display: flex;
    justify-content: center;
}

.avatar-card {
    width: 100%;
    max-width: 340px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
    border-radius: 24px;
    background: rgba(11, 15, 25, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.avatar-card:hover {
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.12);
}

.about-badge-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-bounce);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.avatar-card:hover .about-badge-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.badge-icon-accent {
    width: 28px;
    height: 28px;
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.avatar-card:hover .badge-icon-accent {
    color: var(--bg-dark-deep);
}

.about-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.about-card-subtitle {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.about-info-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.info-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-cyan);
}

.about-badge-tag {
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-transform: lowercase;
}

/* 9. Habilidades Técnicas */
.skills-section {
    background-color: hsl(222, 47%, 8%);
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    display: none; /* substituído pelo HTML divider */
}

.skills-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 101, 6, 0.08) 0%, transparent 70%);
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    animation: float-glow-1 22s ease-in-out infinite alternate;
}

.skills-grid-clean {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.tech-card {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.tech-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 80px at var(--mouse-x) var(--mouse-y), rgba(6, 182, 212, 0.1), transparent 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.tech-card:hover .tech-card-glow {
    opacity: 1;
}

.tech-card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.tech-card:hover .tech-card-icon {
    transform: scale(1.15) translateY(-2px);
}

.tech-card-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    z-index: 2;
}

.tech-card-util {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    z-index: 2;
}

.tech-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.08);
}

.skills-footnote {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 10. Serviços */
.services-section {
    background-color: var(--bg-dark-deep);
    position: relative;
    overflow: hidden;
}

.services-section::after {
    display: none; /* substituído pelo HTML divider */
}

/* Card theme variations with custom CSS variables */
.area-card.theme-systems {
    --theme-color: hsl(0, 84%, 60%); /* laravel-color red */
    --theme-color-glow: rgba(239, 67, 67, 0.25);
    --theme-bg-glow: rgba(239, 67, 67, 0.06);
}

.area-card.theme-wp {
    --theme-color: hsl(200, 84%, 55%); /* wp-color blue */
    --theme-color-glow: rgba(44, 172, 237, 0.25);
    --theme-bg-glow: rgba(44, 172, 237, 0.06);
}

.area-card.theme-automation {
    --theme-color: hsl(45, 93%, 58%); /* js-color gold/yellow */
    --theme-color-glow: rgba(248, 198, 48, 0.25);
    --theme-bg-glow: rgba(248, 198, 48, 0.06);
}

.area-card.theme-ia {
    --theme-color: hsl(270, 95%, 68%); /* modern violet/purple */
    --theme-color-glow: rgba(139, 92, 246, 0.25);
    --theme-bg-glow: rgba(139, 92, 246, 0.06);
}

.area-card.theme-integration {
    --theme-color: hsl(28, 80%, 55%); /* db-color orange */
    --theme-color-glow: rgba(232, 134, 48, 0.25);
    --theme-bg-glow: rgba(232, 134, 48, 0.06);
}

.area-card.theme-stability {
    --theme-color: hsl(145, 80%, 50%); /* vibrant green */
    --theme-color-glow: rgba(37, 211, 102, 0.25);
    --theme-bg-glow: rgba(37, 211, 102, 0.06);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 2;
}

.area-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.area-card:hover {
    border-color: var(--theme-color, var(--accent-cyan));
    box-shadow: 0 16px 40px var(--theme-color-glow, rgba(6, 182, 212, 0.12));
}

.area-icon-wrapper {
    background: var(--theme-bg-glow, rgba(6, 182, 212, 0.06));
    border: 1px solid var(--theme-color-glow, var(--border-cyan-glow));
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition-bounce);
}

.area-card:hover .area-icon-wrapper {
    background: var(--theme-color, var(--accent-cyan));
    border-color: var(--theme-color, var(--accent-cyan));
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 0 15px var(--theme-color-glow);
}

.area-icon {
    width: 22px;
    height: 22px;
    color: var(--theme-color, var(--accent-cyan));
    transition: var(--transition-smooth);
}

.area-card:hover .area-icon {
    color: var(--bg-dark-deep);
}

.area-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.area-card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.services-cta {
    margin-top: 56px;
    position: relative;
    z-index: 3;
}

.services-cta-label {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    white-space: nowrap; /* evita quebra estranha em mobile */
}

.services-cta-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.btn-whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(37, 211, 102, 0.22);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.07);
}

.btn-whatsapp-cta:hover {
    background: rgba(37, 211, 102, 0.17);
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.13);
    transform: translateY(-2px);
}

.btn-whatsapp-cta:active {
    transform: translateY(0);
}

.btn-whatsapp-cta-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-whatsapp-cta-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-whatsapp-cta:hover .btn-whatsapp-cta-arrow {
    transform: translate(2px, -2px);
}

/* 11. Como Trabalhamos Juntos (Workflow) */
.workflow-section {
    background-color: hsl(222, 47%, 8%);
    position: relative;
    overflow: hidden;
}

.workflow-section::before {
    display: none; /* substituído pelo HTML divider */
}

.workflow-grid-container {
    position: relative;
    margin-top: 60px;
}

/* Linha conectora de fundo */
.workflow-timeline-line {
    position: absolute;
    top: 36px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.timeline-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.reveal-active ~ .workflow-grid-container .timeline-progress {
    width: 100%;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 2;
}

.workflow-step {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.step-num-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
}

.step-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-dark-card);
    border: 2px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.workflow-step:hover .step-circle {
    border-color: var(--accent-cyan);
    transform: scale(1.08) rotate(10deg);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.2);
}

.step-icon {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.workflow-step:hover .step-icon {
    color: var(--accent-cyan);
}

.step-number-tag {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
}

.workflow-step:hover .step-number-tag {
    color: rgba(6, 182, 212, 0.12);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}



.cta-message {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.cta-inline-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
    transition: var(--transition-smooth);
}

.cta-inline-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.cta-inline-link:hover {
    color: var(--text-primary);
}

.cta-inline-link:hover::after {
    width: 0%;
}



/* 14. Contato — CTA Final */
.contact-section {
    background-color: var(--bg-dark-deep);
    position: relative;
    overflow: hidden;
}

.contact-glow-layer {
    position: absolute;
    bottom: -10%;
    left: 40%;
    width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 101, 6, 0.12) 0%, rgba(10, 88, 255, 0.05) 60%, transparent 80%);
    z-index: 1;
    filter: blur(100px);
    pointer-events: none;
    animation: float-glow-2 30s ease-in-out infinite alternate;
}

.contact-card {
    padding: 60px 40px;
    position: relative;
    z-index: 2;
}

.contact-card:hover {
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: none; /* Mantém estático para estabilidade */
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.contact-channels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.channel-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.channel-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.08);
}

.channel-icon-wrapper {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-bounce);
    align-self: center;
}

.channel-card:hover .channel-icon-wrapper {
    transform: scale(1.05) rotate(-5deg);
}

.channel-icon {
    width: 22px;
    height: 22px;
}

/* Detalhes de Cores dos Canais */
.wa-color { color: #25d366; }
.email-color { color: var(--accent-cyan); }
.linkedin-color { color: #0077b5; }

.wa-glow { border-color: rgba(37, 211, 102, 0.2); background: rgba(37, 211, 102, 0.05); }
.email-glow { border-color: var(--border-cyan-glow); background: rgba(6, 182, 212, 0.05); }
.linkedin-glow { border-color: rgba(0, 119, 181, 0.2); background: rgba(0, 119, 181, 0.05); }

.channel-card:hover .channel-icon-wrapper.wa-glow { background: #25d366; border-color: #25d366; }
.channel-card:hover .channel-icon-wrapper.email-glow { background: var(--accent-cyan); border-color: var(--accent-cyan); }
.channel-card:hover .channel-icon-wrapper.linkedin-glow { background: #0077b5; border-color: #0077b5; }

/* Destaque especial do WhatsApp como canal primário */
.channel-card.wa-primary-card {
    border-color: rgba(37, 211, 102, 0.2);
    background: rgba(37, 211, 102, 0.02);
}

.channel-card.wa-primary-card:hover {
    border-color: #25d366;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.15);
    background: rgba(37, 211, 102, 0.05);
}

.channel-card:hover .channel-icon {
    color: var(--bg-dark-deep);
}


.channel-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0; /* Permite que o texto quebre corretamente sem empurrar as laterais */
}

.channel-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.channel-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.channel-arrow {
    flex: 0 0 18px;
    height: 18px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    align-self: center;
}

.channel-card:hover .channel-arrow {
    color: var(--accent-cyan);
    transform: translate(2px, -2px);
}

/* 15. Footer */
.footer {
    background-color: hsl(222, 47%, 8%);
    border-top: none;
    padding: 80px 0 40px 0;
    position: relative;
}

.footer::before {
    display: none; /* substituído pelo HTML divider */
}


.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 28px;
}

.footer-links {
    display: flex;
    gap: 32px;
    margin-bottom: 36px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--accent-cyan);
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.social-icon-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-icon-link i,
.social-icon-link svg {
    width: 18px;
    height: 18px;
}

.social-icon-link:hover {
    border-color: var(--accent-cyan);
    color: var(--bg-dark-deep);
    background: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.25);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* 16. Animações de Entrada (Scroll Reveal) */
section, .metrics-section {
    perspective: 1200px;
}

.js-loaded .animate-up {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-loaded .animate-up.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.js-loaded .hero-visual-content.animated.parallax-ready {
    transition: none !important;
}

.js-loaded .scroll-reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.93) rotateX(8deg);
    transform-origin: top center;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.js-loaded .scroll-reveal.reveal-active {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
}

/* Delays em Cascata para Itens de Grid que usam scroll-reveal */
.skills-grid-clean .tech-card:nth-child(1) { transition-delay: 0.05s; }
.skills-grid-clean .tech-card:nth-child(2) { transition-delay: 0.1s; }
.skills-grid-clean .tech-card:nth-child(3) { transition-delay: 0.15s; }
.skills-grid-clean .tech-card:nth-child(4) { transition-delay: 0.2s; }
.skills-grid-clean .tech-card:nth-child(5) { transition-delay: 0.25s; }
.skills-grid-clean .tech-card:nth-child(6) { transition-delay: 0.3s; }
.skills-grid-clean .tech-card:nth-child(7) { transition-delay: 0.35s; }
.skills-grid-clean .tech-card:nth-child(8) { transition-delay: 0.4s; }

.areas-grid .area-card:nth-child(1) { transition-delay: 0.05s; }
.areas-grid .area-card:nth-child(2) { transition-delay: 0.1s; }
.areas-grid .area-card:nth-child(3) { transition-delay: 0.15s; }
.areas-grid .area-card:nth-child(4) { transition-delay: 0.2s; }
.areas-grid .area-card:nth-child(5) { transition-delay: 0.25s; }
.areas-grid .area-card:nth-child(6) { transition-delay: 0.3s; }


.contact-channels-grid .channel-card:nth-child(1) { transition-delay: 0.1s; }
.contact-channels-grid .channel-card:nth-child(2) { transition-delay: 0.2s; }

/* 17. Responsividade (Media Queries) */

@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .about-grid {
        gap: 40px;
    }
    
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .skills-grid-clean {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .workflow-timeline-line {
        display: none; /* Remove linha horizontal no tablet */
    }
    
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .contact-channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .metric-number-wrapper {
        font-size: 2.2rem;
    }
    
    .metric-plus {
        font-size: 1.4rem;
    }
    
    .metric-symbol {
        font-size: 2.4rem;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 40px;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    /* Navbar Mobile Menu Hambúrguer */
    .hamburger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 36px;
        padding: 40px;
        transition: var(--transition-smooth);
        z-index: 1050;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .btn-whatsapp-outline {
        margin-top: 16px;
        width: 100%;
        justify-content: center;
    }
    
    /* Hero layout stack & UX Mobile */
    .hero-section {
        height: auto !important;
        min-height: auto !important;
        padding-top: 60px !important; /* Reservado para o header fixo, trazendo a foto mais perto do topo */
        padding-bottom: 60px !important; /* Aumentado de 10px para dar mais altura e respiro */
        overflow: visible !important;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        height: auto;
        padding-top: 5px !important;
        padding-bottom: 40px !important; /* Aumentado de 10px */
        gap: 15px !important;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }

    .hero-typewriter-container {
        font-size: 0.95rem !important;
        min-height: 2rem !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 20px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .circuit-overlay {
        display: block !important;
    }
    
    .js-loaded .circuit-overlay.scroll-reveal.reveal-active {
        opacity: 0.38 !important;
    }
    
    /* Services section overrides on mobile */
    .js-loaded .services-section .circuit-overlay.scroll-reveal.reveal-active {
        opacity: 0.15 !important;
    }
    
    .circuit-path {
        stroke-width: 1.6 !important;
        filter: drop-shadow(0 0 3px rgba(10, 88, 255, 0.4)) !important;
    }

    /* Services section overrides on mobile */
    .services-section .circuit-path {
        filter: none !important;
    }

    .workflow-section .circuit-path {
        stroke: var(--accent-violet) !important;
    }

    .workflow-section .circuit-overlay.reveal-active .circuit-path {
        filter: drop-shadow(0 0 3px rgba(249, 101, 6, 0.5)) !important;
    }
    
    /* Métricas Stack */
    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Sobre Stack */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-text-content {
        text-align: center;
    }
    
    .about-values {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
        justify-items: center;
    }
    
    .skills-grid-clean {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Linha do tempo vertical no mobile */
    .workflow-grid-container {
        padding-left: 52px; /* espaço para a linha + dot */
    }

    .workflow-grid-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 20px; /* posição fixa da linha no eixo X */
        width: 2px;
        height: 100%;
        background: rgba(255, 255, 255, 0.06);
        z-index: 1;
    }

    .workflow-grid-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 20px;
        width: 2px;
        height: 0%;
        background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
        z-index: 2;
        transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .workflow-grid-container.timeline-active::after {
        height: 100%;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        position: relative;
        z-index: 3;
    }

    .workflow-step {
        position: relative;
        /* sem padding-left extra: o container já abre o espaço via padding-left: 52px */
    }

    /* Dot alinhado à linha (left: 20px do container = left: 20px - 52px = -32px do step) */
    /* Com translateX(-50%): centro do dot fica em -32px + 6px de deslocamento... */
    /* Usamos left + transform para centralizar: center = left(px) — sem translateX aqui */
    .workflow-step::before {
        content: '';
        position: absolute;
        left: -38px;  /* -52px (padding container) + 20px (linha) - 6px (raio do dot) = -38px */
        top: 36px;    /* centro vertical do step-circle de 72px de altura */
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--accent-cyan);
        border: 2px solid var(--bg-dark-deep);
        box-shadow: 0 0 10px rgba(10, 88, 255, 0.6);
        z-index: 4;
        transform: translateY(-50%);
    }

    .workflow-step:last-child::before {
        background: var(--accent-violet);
        box-shadow: 0 0 10px rgba(249, 101, 6, 0.6);
    }

    .step-num-wrapper {
        margin-bottom: 16px;
    }


    .contact-channels-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 40px 20px;
    }
    
    .contact-title {
        font-size: 2.2rem;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .hero-typewriter-container {
        font-size: 0.88rem !important;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-values {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        gap: 20px 12px;
    }
    
    .metrics-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .metric-card {
        padding: 24px 16px;
    }
    
    .avatar-card {
        max-width: 300px;
        padding: 30px 20px;
    }
    
    .skills-grid-clean {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .tech-card {
        padding: 16px 12px !important;
    }
    
    .tech-card-name {
        font-size: 0.95rem !important;
    }
    
    .tech-card-util {
        font-size: 0.72rem !important;
        line-height: 1.25 !important;
    }
    
    /* Escalonamento proporcional para cartões de contato no celular */
    .channel-card {
        padding: 16px !important;
        gap: 12px !important;
    }
    
    .channel-icon-wrapper {
        flex: 0 0 42px !important;
        height: 42px !important;
        border-radius: 10px !important;
        align-self: center !important;
    }
    
    .channel-icon {
        width: 20px !important;
        height: 20px !important;
    }
    
    .channel-name {
        font-size: 0.95rem !important;
    }
    
    .channel-detail {
        font-size: 0.78rem !important;
    }
    
    .channel-arrow {
        flex: 0 0 16px !important;
        height: 16px !important;
        align-self: center !important;
    }
}

/* ==========================================================================
   SISTEMAS VISUAIS ADICIONAIS — ATMOSFERA E INTERATIVIDADE PREMIUM
   ========================================================================== */

/* 1. Fundo de Auroras Flutuantes */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.aurora {
    position: absolute;
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.08; /* Altamente sutil e elegante */
    mix-blend-mode: screen;
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.aurora-cyan {
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    top: -20%;
    left: -20%;
    animation: float-aurora-cyan 25s ease-in-out infinite alternate, aurora-breath-cyan 12s ease-in-out infinite alternate;
}

.aurora-violet {
    background: radial-gradient(circle, var(--accent-violet) 0%, transparent 70%);
    bottom: -20%;
    right: -20%;
    animation: float-aurora-violet 30s ease-in-out infinite alternate, aurora-breath-violet 14s ease-in-out infinite alternate;
}

@keyframes float-aurora-cyan {
    0% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(80px, 60px) scale(1.1) rotate(180deg);
    }
    100% {
        transform: translate(-40px, -30px) scale(0.95) rotate(360deg);
    }
}

@keyframes float-aurora-violet {
    0% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(-100px, -50px) scale(0.9) rotate(-180deg);
    }
    100% {
        transform: translate(50px, 80px) scale(1.05) rotate(-360deg);
    }
}

/* 2. Iluminação Atmosférica por Seção (Ambient Section Glows) */
.glow-cyan, .glow-violet {
    position: relative;
}

.glow-cyan::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 88, 255, 0.06) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    bottom: -10%;
    left: -5%;
    animation: float-glow-1 25s ease-in-out infinite alternate;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.glow-violet::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 101, 6, 0.06) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    top: -10%;
    right: -5%;
    animation: float-glow-2 20s ease-in-out infinite alternate;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* 3. Linhas de Conexão SVG (Circuito Inteligente) */
.circuit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.js-loaded .circuit-overlay.scroll-reveal {
    transform: none !important;
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.js-loaded .circuit-overlay.scroll-reveal.reveal-active {
    opacity: 0.18;
}

.circuit-path {
    stroke: var(--accent-cyan);
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 120, 180, 60, 240, 150, 250; /* Sum = 1000, perfect seamless loop */
    stroke-dashoffset: 1000;
    will-change: stroke-dashoffset;
}

/* Warm lines override for methodology section */
.workflow-section .circuit-path {
    stroke: var(--accent-violet);
}

.circuit-overlay.reveal-active .circuit-path {
    animation: circuit-flow 10s linear infinite;
    filter: drop-shadow(0 0 3px rgba(10, 88, 255, 0.4));
}

/* Services section overrides (discrete, lower opacity, no glow) */
.js-loaded .services-section .circuit-overlay.scroll-reveal.reveal-active {
    opacity: 0.08;
}

.services-section .circuit-overlay.reveal-active .circuit-path {
    filter: none;
}

/* Workflow section overrides (slower flow, reverse direction, warm glow) */
.workflow-section .circuit-overlay.reveal-active .circuit-path {
    animation: circuit-flow 18s linear infinite reverse;
    filter: drop-shadow(0 0 3px rgba(249, 101, 6, 0.5));
}

@keyframes circuit-flow {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* 4. Linha do Tempo Vertical (Seção Sobre Mim) */
.vertical-timeline {
    position: relative;
    padding: 20px 0;
    margin-left: 20px;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 45px;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-dark-card);
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 0 15px rgba(10, 88, 255, 0.4);
    transition: var(--transition-bounce);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.15);
    border-color: var(--accent-violet);
    box-shadow: 0 0 20px rgba(249, 101, 6, 0.5);
}

.timeline-dot i {
    width: 14px;
    height: 14px;
    color: var(--text-primary);
}

.timeline-card {
    padding: 24px;
    border-radius: 16px;
    background: rgba(11, 15, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: inline-block;
    margin-bottom: 8px;
    background: rgba(10, 88, 255, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(10, 88, 255, 0.2);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* 5. Citações Pessoais Estilizadas */
.personal-quote {
    color: var(--text-secondary);
    font-size: 1.05rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.85;
}

.personal-quote em {
    color: var(--accent-cyan);
    font-style: italic;
}

/* 6. Sobrescrita de Backgrounds para Transparência de Seção */
.metrics-section,
.skills-section,
.workflow-section,
.footer {
    background-color: hsla(222, 47%, 2.5%, 0.65) !important;
}

.about-section,
.services-section,
.contact-section {
    background-color: hsla(224, 45%, 5%, 0.65) !important;
}

/* 8. Estilização Otimizada para Mobile no Hero e Timeline */
@media (max-width: 768px) {
    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-visual-content {
        order: -1 !important;
        margin-top: 36px !important;  /* Aumentado a pedido do usuário */
        margin-bottom: 24px !important; /* Aumentado a pedido do usuário */
        height: auto !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .hero-content {
        order: 1 !important;
        width: 100% !important;
    }

    .hero-portrait-card {
        width: 280px !important;
        height: 380px !important;
    }
    
    .hero-portrait-card .tech-bubble {
        position: absolute !important;
        display: flex !important;
    }
    
    /* Reposiciona bolhas flutuantes de forma segura 100% dentro da área da foto no mobile */
    .hero-visual-content .bubble-1 { top: 6% !important; left: 6% !important; animation: float-bubble-1-mobile 8s ease-in-out infinite !important; }
    .hero-visual-content .bubble-2 { top: 42% !important; right: 6% !important; animation: float-bubble-2-mobile 7s ease-in-out infinite !important; }
    .hero-visual-content .bubble-3 { bottom: 6% !important; left: 6% !important; animation: float-bubble-3-mobile 9s ease-in-out infinite !important; }
    .hero-visual-content .bubble-4 { top: 6% !important; right: 28% !important; animation: float-bubble-4-mobile 7.5s ease-in-out infinite !important; }
    .hero-visual-content .bubble-5 { bottom: 6% !important; right: 6% !important; animation: float-bubble-1-mobile 8.5s ease-in-out infinite !important; }
    
    .vertical-timeline {
        margin-left: 0 !important;
    }
    
    .timeline-line {
        left: 10px !important;
    }
    
    .timeline-item {
        padding-left: 35px !important;
    }
    
    .timeline-dot {
        width: 26px !important;
        height: 26px !important;
        left: -3px !important;
        top: 15px !important;
    }
    
    .timeline-dot i {
        width: 11px !important;
        height: 11px !important;
    }

    /* Ajuste de iluminação sobre mim para mobile (evita esticar o gradiente vertical) */
    .about-section::before {
        top: 15% !important;
        bottom: auto !important;
        right: -100px !important;
        width: 320px !important;
        height: 480px !important;
        background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.26) 0%, rgba(219, 39, 119, 0.12) 50%, transparent 70%) !important;
        filter: blur(90px) !important;
        animation: float-glow-2 20s ease-in-out infinite alternate !important;
    }

    .about-section::after {
        top: auto !important;
        bottom: 15% !important;
        left: -100px !important;
        width: 320px !important;
        height: 480px !important;
        background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.22) 0%, rgba(236, 72, 153, 0.12) 50%, transparent 70%) !important;
        filter: blur(90px) !important;
        animation: float-glow-1 25s ease-in-out infinite alternate !important;
    }
}

@media (max-width: 480px) {
    .hero-portrait-card {
        width: 230px !important;
        height: 310px !important;
    }
    
    .hero-portrait-card .tech-bubble span {
        display: none !important; /* Esconde texto da bolha para evitar poluição visual em celulares pequenos */
    }
    
    .hero-portrait-card .tech-bubble {
        padding: 0 !important;
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    }
    
    .hero-portrait-card .tech-bubble i {
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
    }
    
    .hero-visual-content .bubble-1 { top: 6% !important; left: 6% !important; }
    .hero-visual-content .bubble-2 { top: 42% !important; right: 6% !important; }
    .hero-visual-content .bubble-3 { bottom: 6% !important; left: 6% !important; }
    .hero-visual-content .bubble-4 { top: 6% !important; right: 28% !important; }
    .hero-visual-content .bubble-5 { bottom: 6% !important; right: 6% !important; }
}

