:root {
  /* ========================================================================
     1. ARQUITETURA DE TEMAS (MINIMALISTA - PRETO & BRANCO)
     ======================================================================== */
  --cor-fundo-principal: #000000; /* Preto sólido */
  --cor-fundo-secundario: #1a1a1a; /* Cinza muito escuro */
  --cor-primaria: #ffffff; /* Branco para acentos */
  --cor-primaria-hover: #e0e0e0; /* Cinza claro para hover */
  --cor-secundaria: #333333; /* Cinza escuro */
  
  /* Glassmorphism Variables - Reverted to Solid */
  --glass-bg: #0a0a0a; /* Preto sólido */
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-highlight: transparent;
  
  --cor-borda: rgba(255, 255, 255, 0.1);
  --cor-borda-hover: rgba(255, 255, 255, 0.2);
  
  --cor-texto-principal: #FFFFFF;
  --cor-texto-secundario: #999999; /* Cinza médio para melhor leitura */
  
  --shadow-leve: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-glow-primaria: 0 0 0 transparent;
}

  /* ========================================================================
     3. VARIÁVEIS GLOBAIS
     ======================================================================== */
  --font-principal: 'Inter', 'Montserrat', sans-serif; /* Inter é padrão UX/UI */
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;
  
  --space-sm: 0.25rem;
  --space-md: 0.5rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  
  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --transition-base: 300ms var(--ease-standard);
  --transition-slow: 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  
  --z-index-header: 1000;
}

/* ========================================================================
   PROTEÇÃO DE IMAGENS (SEM BLOQUEAR ACESSIBILIDADE)
   ======================================================================== */
/* Permitir seleção de texto para acessibilidade */
body {
    user-select: text; /* Permite seleção de texto */
}

/* Impedir arrastar imagens (mas permitir clicar) */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto; /* Permite interações normais */
}

/* ==========================================================================
   2. TELA DE CARREGAMENTO
   ========================================================================== */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, var(--cor-fundo-principal) 0%, var(--cor-fundo-secundario) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.loading-logo {
  margin-bottom: 2rem;
}

.logo-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(159, 90, 253, 0.5);
}

.logo-circle::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cor-primaria), var(--cor-secundaria), var(--cor-primaria));
  animation: rotate 3s linear infinite;
  z-index: -1;
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-text {
  margin-bottom: 2rem;
}

.loading-title {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cor-texto-principal);
  margin-bottom: 0.5rem;
  animation: slideInFromLeft 0.8s ease-out 0.3s both;
}

.loading-subtitle {
  display: block;
  font-size: 1.2rem;
  color: var(--cor-texto-secundario);
  animation: slideInFromRight 0.8s ease-out 0.5s both;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(159, 90, 253, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
  animation: slideInFromBottom 0.8s ease-out 0.7s both;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--cor-primaria), var(--cor-secundaria));
  border-radius: 2px;
  width: 0%;
  animation: loadingProgress 3s ease-in-out forwards;
  box-shadow: 0 0 10px rgba(159, 90, 253, 0.5);
}

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

/* ==========================================================================
   3. RESET BÁSICO E ESTILOS GERAIS DO BODY
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-principal);
  background-color: var(--cor-fundo-principal);
  color: var(--cor-texto-principal);
  line-height: 1.7;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-base), color var(--transition-base);
  /* Fundo sólido preto - sem gradientes */
  background: #000000;
}

/* Garantir line-height 1.7 para corpo do texto */
p, 
.project-card-content p,
.about-me-text p,
.contact-text-left p,
.section-subtitle,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"] {
  line-height: 1.7 !important;
}

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

/* Removido spotlight e partículas para design minimalista */

/* Partículas flutuantes */
.floating-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Particle styles removed */

/* Floating shapes removed */

/* ==========================================================================
   UX/UI UTILITIES
   ========================================================================== */

.glass {
  background: #1c1b3a;
  border: 1px solid var(--cor-borda);
  box-shadow: var(--shadow-leve);
}

.glass-card {
  background: #1c1b3a;
  border: 1px solid var(--cor-borda);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px -10px rgba(159, 90, 253, 0.15);
  border-color: rgba(159, 90, 253, 0.4);
}

/* ==========================================================================
   3. ESTILOS DE TIPOGRAFIA
   ========================================================================== */

h1, h2, h3 {
  color: var(--cor-texto-principal);
  font-weight: 700;
  line-height: 1.1; /* Títulos mais compactos */
  letter-spacing: -0.02em; /* Tight tracking para títulos modernos */
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); } /* Títulos maiores */
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

h2 {
  margin-bottom: var(--space-lg);
  text-align: center;
  position: relative;
  padding-bottom: var(--space-sm);
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--cor-primaria), var(--cor-secundaria));
  border-radius: 2px;
  transition: width var(--transition-base);
}

h2:hover::after {
  width: 120px;
}

p {
  color: var(--cor-texto-secundario);
  margin-bottom: var(--space-md);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

a {
  color: var(--cor-primaria);
  text-decoration: none;
  transition: color var(--transition-base);
  position: relative;
}

a:hover, a:focus-visible {
  color: var(--cor-primaria-hover);
}

:is(a, button):focus-visible {
  outline: 2px solid var(--cor-primaria);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -999;
}

.skip-link:focus,
.skip-link:active {
  color: #fff;
  background-color: var(--cor-primaria);
  left: var(--space-md);
  top: var(--space-md);
  width: auto;
  height: auto;
  overflow: auto;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  z-index: 9999;
}

strong {
  color: var(--cor-primaria);
  font-weight: 700;
}

/* ==========================================================================
   4. LAYOUT E COMPONENTES GERAIS (BOTÕES MELHORADOS)
   ========================================================================== */

   .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 30px);
  }
  
  section {
    padding: clamp(60px, 8vw, 100px) 0;
    overflow: hidden;
    position: relative;
    scroll-margin-top: 70px;
  }
  
  /* Botões minimalistas com melhor contraste */
  .btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    min-height: 44px; /* Touch target mínimo para acessibilidade */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  .btn-primary:focus-visible,
  .btn-secondary:focus-visible {
    outline: 2px solid var(--cor-primaria);
    outline-offset: 2px;
  }
  
  /* Visual minimalista: sem ripple */
  .btn-primary::after, .btn-secondary::after {
    content: none;
  }

  /* Removido efeito de brilho para minimalismo */
  
  /* BOTÃO PRIMÁRIO COM COR SÓLIDA */
  .btn-primary {
    background: var(--cor-primaria);
    color: var(--cor-fundo-principal);
    box-shadow: none;
  }
  
  /* BOTÃO SECUNDÁRIO COM BORDA BRANCA */
  .btn-secondary {
    background: transparent;
    color: var(--cor-primaria);
    border: 1px solid var(--cor-primaria);
  }
  
  /* HOVER MINIMALISTA PARA O BOTÃO PRIMÁRIO */
  .btn-primary:hover, .btn-primary:focus-visible {
    background: var(--cor-primaria-hover);
    transform: none;
    box-shadow: var(--shadow-leve);
  }
  
  /* HOVER MINIMALISTA PARA O BOTÃO SECUNDÁRIO */
  .btn-secondary:hover, .btn-secondary:focus-visible {
    background-color: var(--cor-primaria);
    color: var(--cor-fundo-principal);
    transform: none;
  }
  
  /* O estado ativo foi mantido, pois dá um ótimo feedback de clique */
  .btn-primary:active,
  .btn-secondary:active {
    transform: scale(0.98) translateY(-1px);
    transition: transform 0.1s ease;
  }

/* ==========================================================================
   5. HEADER APRIMORADO (UX/UI STYLE)
   ========================================================================== */

header {
  position: sticky;
  top: 10px;
  width: 98%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cor-borda);
  background: var(--cor-fundo-secundario);
  box-shadow: var(--shadow-leve);
}

header h1.site-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  cursor: default;
  color: var(--cor-texto-principal);
  margin: 0;
  font-family: 'Montserrat', sans-serif; /* Ensure font is set */
}

.site-logo .logo-dot {
  color: var(--cor-primaria);
}

header h1.site-logo:hover {
  transform: scale(1.02);
}

.nav-primary a {
  margin: 0 2px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cor-texto-secundario);
  transition: color 0.2s ease;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav-primary a:hover, .nav-primary a:focus-visible {
  color: var(--cor-primaria);
}

.nav-primary a.active {
  color: var(--cor-fundo-principal);
  background: var(--cor-primaria);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

header nav a i {
  transition: transform 0.2s ease, color 0.2s ease;
  will-change: transform, color;
}

header nav a:hover i, header nav a:focus-visible i {
  transform: scale(1.1);
  color: var(--cor-primaria-hover);
}

header nav a:active {
  transform: scale(0.95);
}

/* Botão hamburger */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.menu-toggle:focus-visible { outline: 2px solid var(--cor-primaria); outline-offset: 2px; }
.menu-bar {
  display: block;
  width: 26px; height: 2px;
  background: var(--cor-texto-principal);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}
.menu-toggle.menu-open .menu-bar:nth-child(1),
body.menu-open .menu-toggle .menu-bar:nth-child(1) { 
  transform: translateY(7px) rotate(45deg); 
}
.menu-toggle.menu-open .menu-bar:nth-child(2),
body.menu-open .menu-toggle .menu-bar:nth-child(2) { 
  opacity: 0; 
}
.menu-toggle.menu-open .menu-bar:nth-child(3),
body.menu-open .menu-toggle .menu-bar:nth-child(3) { 
  transform: translateY(-7px) rotate(-45deg); 
}

/* Layout responsivo do menu */
.nav-primary { display: flex; align-items: center; gap: 10px; }
.nav-primary .cta-menu { 
  margin-left: 12px; 
  padding: 10px 18px; 
  background: var(--cor-primaria);
  color: #fff;
  border: none;
}

@media (max-width: 900px) {
  .nav-primary {
    position: fixed;
    top: 70px; right: 15px; left: 15px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--cor-borda);
    border-radius: var(--radius-sm);
    background: var(--cor-fundo-secundario);
    transform: translateY(-20px);
    opacity: 0; 
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1001;
    box-shadow: var(--shadow-card);
  }
  .nav-primary .cta-menu { width: 100%; text-align: center; }
  .menu-toggle { 
    display: inline-block;
    z-index: 1001;
    position: relative;
  }
  .menu-open #menu-principal,
  .nav-primary.active {
    opacity: 1; 
    pointer-events: auto; 
    transform: translateY(0);
  }
}

/* ==========================================================================
   6. SEÇÃO "SOBRE MIM" APRIMORADA
   ========================================================================== */

   .main-content {
    padding-top: var(--space-lg);
  }
  
  .about-me-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  .about-me-text {
    flex-basis: 60%;
  }
  
  .about-me-text p,
  .contact-text-left p {
    max-width: 65ch;
    margin-inline: auto;
    margin-bottom: 2rem;
  }

  .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
  }

  @media (max-width: 768px) {
    .hero-actions {
      justify-content: center;
    }
  }

  @media (max-width: 480px) {
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
      width: 100%;
      text-align: center;
      justify-content: center;
    }
  }
  
  .profile-image {
    flex-basis: 35%; /* Pequeno ajuste para dar mais espaço ao texto */
    text-align: center;
    perspective: 1000px;
    margin-top: 3rem;
  }
  
  /* IMAGEM DE PERFIL - ESTÁTICA E MINIMALISTA */
  .img-gustavo {
    width: clamp(280px, 35vw, 380px);
    height: auto;
    aspect-ratio: 3/4;
    border-radius: 20px;
    object-fit: cover;
    object-position: center;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  /* Skeleton shimmer para imagens de projeto (Mantido como estava) */
  .project-image { position: relative; }
  .img-skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%); background-size: 400% 100%; animation: shimmer 1.2s infinite; height: var(--skeleton-ratio, 180px); }
  .img-skeleton img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--transition-base); }
  .img-skeleton.loaded { animation: none; background: transparent; }
  .img-skeleton.loaded img { opacity: 1; }
  
  @keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
  
  .profile-image figcaption {
    margin-top: var(--space-md);
    font-style: italic;
    color: var(--cor-texto-secundario);
    opacity: 0.8;
  }
/* ==========================================================================
   7. SEÇÃO "MEUS PROJETOS" COM CSS NESTING
   ========================================================================== */
/* ============================================= */
/* SEÇÃO MEUS PROJETOS                  */
/* ============================================= */
/* ============================================= */
/* SEÇÃO MEUS PROJETOS - VERSÃO CSS-ONLY CAROUSEL */
/* ============================================= */

.social-proof-section {
    background-color: var(--cor-fundo-principal);
    position: relative;
    padding-block: var(--space-xl);
    overflow: hidden;
}

.social-proof-section .carousel-wrapper {
    max-width: 860px;
}

.testimonial-card {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    min-height: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: border-color var(--transition-base);
}

.testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.testimonial-card-media {
    padding: 0;
    overflow: hidden;
}

/* Mobile Mockup Styles */
.testimonial-card-media .testimonial-media {
    position: relative;
    width: 100%;
    max-width: 300px; /* Typical phone width */
    margin: 0 auto;
    background: #000;
    border: 12px solid #1c1c1e; /* Dark bezel */
    border-radius: 40px;
    box-shadow: 
        0 0 0 1px #333, /* Outer thin border definition */
        0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    aspect-ratio: 9/19.5; /* Modern phone aspect ratio */
}

/* Notch */
.testimonial-card-media .testimonial-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 24px;
    background: #1c1c1e;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

.testimonial-card-media .testimonial-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Remove the old copyright overlay as it breaks the realism */
.testimonial-card-media .testimonial-media::after {
    display: none;
}

.testimonial-card-media .testimonial-quote,
.testimonial-card-media .testimonial-meta {
    padding-inline: clamp(1.25rem, 3vw, 2rem);
}

.testimonial-card-media .testimonial-meta {
    padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.testimonial-quote p {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    line-height: 1.7;
    color: var(--cor-texto-principal);
}

.testimonial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: baseline;
    justify-content: space-between;
    color: var(--cor-texto-secundario);
}

.testimonial-name {
    font-weight: 800;
    color: var(--cor-texto-principal);
}

.testimonial-role {
    opacity: 0.9;
}

.my-projects-section {
    background-color: var(--cor-fundo-secundario);
    position: relative;
    padding-block: var(--space-xl);
    overflow: hidden;
}
/* Tabs de filtros de projetos */
.projects-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto var(--space-lg);
}
.tab-button {
    padding: 10px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--cor-borda);
    background: transparent;
    color: var(--cor-texto-principal);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tab-button:hover, .tab-button:focus-visible { background: rgba(128,128,255,0.1); }
.tab-button.is-active { background: var(--cor-primaria); color: #fff; border-color: var(--cor-primaria); }

/* Wrapper que segura o carrossel e as setas */
.carousel-wrapper {
    position: relative;
    max-width: 500px; /* Largura máxima do carrossel na tela */
    margin: 0 auto;
}

.carousel-viewport {
    margin-inline: 44px;
}

.my-projects-section .carousel-wrapper {
    max-width: 1100px;
}

.my-projects-section .carousel-viewport {
    margin-inline: 52px;
}

/* Viewport arredondado para carrosséis */
.carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: transparent;
}

/* O container que vai rolar (scroll) */
.carousel-container {
    display: flex;
    overflow-x: auto; /* Habilita a rolagem horizontal */
    scroll-snap-type: x mandatory; /* A MÁGICA ACONTECE AQUI: Liga o "ímã" horizontal */
    scroll-behavior: smooth; /* Anima a rolagem ao clicar nas setas */
    overscroll-behavior-x: contain; /* evita bounce da página */
    scroll-snap-stop: always;
    cursor: grab;
    
    /* Esconde a barra de rolagem para um visual limpo */
    -ms-overflow-style: none;  /* IE and Edge */
}
.carousel-container.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}
.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

/* Cada slide individual do carrossel */
.carousel-slide {
    flex: 0 0 100%; /* Cada slide ocupa 100% da largura do container */
    scroll-snap-align: center; /* Alinha o slide no centro ao "grudar" */
    padding: 0 24px; /* Espaçamento reduzido para visual mais minimalista */
    box-sizing: border-box;
}

.my-projects-section .carousel-container {
    gap: 5rem;
    padding: 0 var(--space-lg);
    scroll-padding: 0 var(--space-lg);
}

.my-projects-section .carousel-slide {
    padding: 0;
}

/* Estilo do card (Black Minimalista) */
.project-card {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    min-height: 0;
    overflow: hidden;
    box-shadow: none;
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.carousel-slide:hover .project-card,
.project-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

/* Efeito sutil para design black */
.project-card::after {
    content: none;
}

.project-card:hover::after { }

/* Ajuste na imagem para integrar com o card */
.project-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.project-card:hover img { }

/* Animação de entrada dos cards */
.project-card {
    /* animation removed to ensure visibility */
}

#trafego-projetos .project-card img {
    height: clamp(260px, 45vh, 440px);
    object-fit: cover;
    object-position: center;
}

/* Aumentar imagem dos Projetos de Desenvolvimento */
#projetos .project-card img {
    height: clamp(300px, 50vh, 500px);
    object-fit: cover;
    object-position: center;
}

/* Ajustes específicos para imagens do Poupepix e Dona Baratinha */
.poupepix-image {
    object-position: center 40% !important;
}

.dona-baratinha-image {
    object-position: 85% 35% !important;
}



#trafego-projetos .project-image {
    background: #0a0a0a;
}

.project-card { position: relative; }
.project-card::before { content: none; }
.project-card:hover::before { }

.project-card-content {
    padding: var(--space-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.project-card-content h3 {
    margin-bottom: var(--space-sm);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #ffffff;
}

.project-card-content p {
    line-height: 1.6;
    color: #999999;
    flex-grow: 1;
}

.project-tags {
    display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
    padding: 0; margin-bottom: var(--space-lg);
}

.project-tags li {
    background-color: rgba(255, 255, 255, 0.1); color: #ffffff;
    padding: 4px 10px; border-radius: var(--radius-sm); font-size: 0.8rem;
    font-weight: bold; border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card-content a,
.project-card-content button {
    display: block; padding: 12px 24px; border-radius: var(--radius-sm);
    background-color: transparent; border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff; font-weight: bold; text-transform: none;
    text-align: center; transition: all 0.2s ease;
}

.project-card-content a:hover,
.project-card-content a:focus-visible,
.project-card-content button:hover,
.project-card-content button:focus-visible {
    background-color: #ffffff; color: #000000;
    border-color: #ffffff;
}

/* Estilo e posicionamento das setas de navegação */
.carousel-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.carousel-controls .carousel-button {
    pointer-events: auto;
}

.carousel-button,
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    text-decoration: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-button:hover,
.carousel-button:focus-visible,
.carousel-arrow:hover,
.carousel-arrow:focus-visible {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #000000;
}

.carousel-button.prev,
.carousel-arrow.prev {
    left: 10px;
}

.carousel-button.next,
.carousel-arrow.next {
    right: 10px;
}

.carousel-button.neon {
    width: 34px;
    height: 34px;
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

.carousel-button.neon .carousel-chevron {
    font-size: 24px;
    line-height: 1;
    color: #ffffff;
}

.carousel-button.neon:hover .carousel-chevron,
.carousel-button.neon:focus-visible .carousel-chevron {
    color: #000000;
}
/* ==========================================================================
   8. SEÇÃO "TECNOLOGIAS" COM CARDS ILUMINADOS
   ========================================================================== */

   .skills-section h2 {
    margin-bottom: var(--space-xl);
  }
  
  .cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
  }
  
  /* ALTERADO: Card com estilo "Glassmorphism" e mais presença */
  .skills-section .card {
    width: 140px;
    height: 140px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(28, 27, 58, 0.5), rgba(13, 12, 29, 0.5));
    border: 1px solid var(--cor-borda);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    cursor: default;
    position: relative;
  }
  
  /* NOVO: Efeito "Glow" no hover para consistência visual */
  .skills-section .card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--cor-borda-hover);
    box-shadow: var(--shadow-glow-primaria);
  }
  
  .skills-section .card img {
    max-width: 70%;
    max-height: 70%;
    /* ALTERADO: Efeito de filtro refinado para melhor contraste */
    filter: grayscale(1) brightness(1.2) contrast(1.2);
    transition: all var(--transition-base);
  }
  
  .skills-section .card:hover img {
    filter: grayscale(0) brightness(1) contrast(1);
    transform: scale(1.1);
  }

  /* NOVA SEÇÃO DE HABILIDADES COM BARRAS DE PROGRESSO */
  .skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
  }

  .skills-progress {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .progress-item {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
  }

  .progress-item.animate {
    opacity: 1;
    transform: translateX(0);
  }

  .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .skill-name {
    font-weight: 600;
    color: var(--cor-texto-principal);
    font-size: 1.1rem;
  }

  .skill-percentage {
    font-weight: 700;
    color: var(--cor-primaria);
    font-size: 1rem;
  }

  .progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(159, 90, 253, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cor-primaria), var(--cor-secundaria));
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(159, 90, 253, 0.3);
  }

  .progress-fill::after {
    /* Shimmer effect removed */
    content: none;
  }

  @keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }

  /* BARRA DE PROGRESSO DE SCROLL REMOVIDA */
  
  
  /* ==========================================================================
     9. SEÇÃO "CONTATO" COM FORMULÁRIO INTERATIVO
     ========================================================================== */
  
  .contact-section {
    background-color: var(--cor-fundo-secundario);
  }
  
  .split-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2xl);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .contact-text-left { flex-basis: 45%; }
  .contact-form { flex-basis: 50%; }
  
  /* O botão do WhatsApp foi mantido como estava, pois seu estilo e cor verde são universalmente reconhecidos e bons para a usabilidade. */
  .btn-whatsapp {
      /* ... seu código original do btn-whatsapp aqui ... */
  }
  .btn-whatsapp:hover, .btn-whatsapp:focus-visible {
      /* ... seu código original do btn-whatsapp:hover aqui ... */
  }
  /* ... etc ... */
  
  

  /* Botão Flutuante WhatsApp Melhorado */
  .whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 70px;
    height: 70px;
    z-index: 1200;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: none; /* Animação base removida para usar o anel de pulso */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }

  /* Anel de Pulso Separado */
  .whatsapp-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #25d366;
    animation: pulse-ring 2s infinite;
    z-index: -1;
  }

  @keyframes pulse-ring {
    0% {
      transform: scale(0.8);
      opacity: 0.8;
    }
    100% {
      transform: scale(1.6);
      opacity: 0;
    }
  }

  .whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
  }

  .whatsapp-float:hover {
    transform: scale(1.1);
  }

  /* Botão Voltar ao Topo */
  .back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1199;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(159, 90, 253, 0.4);
  }

  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(159, 90, 253, 0.6);
  }

  .back-to-top:active {
    transform: translateY(-3px) scale(1.05);
  }
  
  /* Tooltip do WhatsApp */
  .whatsapp-float[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 85px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #fff;
    color: #1c1b3a;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    visibility: hidden;
  }

  .whatsapp-float[data-tooltip]::after {
    content: '';
    position: absolute;
    right: 78px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
  }

  /* Mostrar tooltip automaticamente após 3 segundos ou no hover */
  .whatsapp-float:hover[data-tooltip]::before,
  .whatsapp-float:hover[data-tooltip]::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    visibility: visible;
  }

  /* Animação de entrada do tooltip para chamar atenção */
  @keyframes tooltip-bounce {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-5px); }
  }

  .whatsapp-float.show-tooltip[data-tooltip]::before,
  .whatsapp-float.show-tooltip[data-tooltip]::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    visibility: visible;
    animation: tooltip-bounce 1s ease infinite;
  }

  
  /* FORMULÁRIO DE CONTATO MELHORADO */
  .form-group {
    position: relative;
    margin-bottom: var(--space-lg);
  }
  
  /* ALTERADO: Campos com fundo sólido para melhor legibilidade */
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 16px;
    background-color: var(--cor-fundo-principal); /* Fundo escuro */
    border: 1px solid var(--cor-borda);
    border-radius: var(--radius-md);
    color: var(--cor-texto-principal);
    font-family: var(--font-principal);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
  }
  
  .form-group label {
    position: absolute;
    top: 16px;
    left: 16px;
    color: var(--cor-texto-secundario);
    pointer-events: none;
    transition: all var(--transition-fast);
  }
  
  /* NOVO: Efeito de "glow" no campo em foco para melhor usabilidade */
  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px var(--cor-borda);
    transform: translateY(-2px);
  }

  /* Estados de validação do formulário */
  .form-group.has-error input,
  .form-group.has-error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
  }

  .form-group.has-success input,
  .form-group.has-success textarea {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
  }

  /* Mensagens de validação */
  .form-group .validation-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 0.8rem;
    color: #e74c3c;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .form-group.has-error .validation-message {
    opacity: 1;
  }

  .form-group .success-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #27ae60;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .form-group.has-success .success-icon {
    opacity: 1;
  }

  /* Mensagem de feedback do formulário */
  .form-feedback-message {
    display: none;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    animation: fadeInDown 0.3s ease-out;
  }

  .form-feedback-success {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
  }

  .form-feedback-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Estado de loading do botão */
  button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
  }

  /* Botão com ícone */
  .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

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

  .btn-primary:hover .btn-icon {
    transform: translateX(3px);
  }

  /* Animação de shake para validação */
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
  }
  
  /* ALTERADO: Cor do label flutuante alinhada com o novo tema */
  .form-group input:focus + label,
  .form-group input:not(:placeholder-shown) + label,
  .form-group textarea:focus + label,
  .form-group textarea:not(:placeholder-shown) + label {
    top: -12px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--cor-primaria);
    background-color: var(--cor-fundo-secundario); /* Mantém legibilidade sobre a borda */
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
  }
  
  .form-group textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  /* O botão de Enviar já herdará o estilo do .btn-primary que melhoramos */
  .contact-form button[type="submit"] {
    width: 100%;
    border: none;
    margin-top: var(--space-md);
  }

/* ==========================================================================
   10. FOOTER APRIMORADO
   ========================================================================== */

footer {
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--cor-borda);
  background: var(--cor-fundo-principal);
}

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

footer address {
  font-style: normal;
  margin-top: var(--space-sm);
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.copy-email-btn {
  background: transparent;
  border: none;
  color: var(--cor-primaria);
  cursor: pointer;
  padding: 5px;
  font-size: 1.2rem;
  transition: transform 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-email-btn:hover {
  transform: scale(1.1);
  color: var(--cor-primaria-hover);
}

.copy-email-btn.copied {
  color: #27ae60;
  transform: scale(1.2);
}

/* ==========================================================================
   11. MEDIA QUERIES (RESPONSIVIDADE REFINADA)
   ========================================================================== */

   @media (max-width: 768px) {
    /* Ajustes para imagens dos projetos em mobile */
    #projetos .project-card img {
      height: clamp(200px, 35vh, 350px) !important;
    }
    
    #trafego-projetos .project-card img {
      height: clamp(180px, 30vh, 300px) !important;
    }
    
    .poupepix-image {
      object-position: center 35% !important;
    }
    
    .dona-baratinha-image {
      object-position: 85% 30% !important;
    }
    
    /* Mantido: Empilha as seções principais para melhor leitura */
    .about-me-container, .split-container {
      flex-direction: column;
      text-align: center;
      gap: var(--space-xl); /* Usando a nova variável de espaçamento */
    }
  
    /* NOVO: Ajuste crucial para o carrossel em telas menores */
    .carousel-container { padding: var(--space-sm); }
    .carousel-slide { flex: 0 0 95%; }

    .my-projects-section .carousel-container {
      gap: 4rem;
      padding: var(--space-md);
      scroll-padding: var(--space-md);
    }
    
    .profile-image {
      margin-top: 2rem;
    }

    .my-projects-section .carousel-slide {
      flex: 0 0 95%;
    }

    .carousel-button,
    .carousel-arrow {
      width: 44px;
      height: 44px;
      font-size: 1.6rem;
    }

    .carousel-viewport { margin-inline: 16px; }
    .my-projects-section .carousel-viewport { margin-inline: 16px; }
  
    /* ALTERADO: Spotlight com a nova cor roxa do tema */
    body::before {
      background: radial-gradient(
        circle 220px at var(--x, 50%) var(--y, 50%),
        var(--cor-primaria), /* Cor corrigida para o tema atual */
        transparent 80%
      );
      opacity: 0.1; /* Opacidade controlada globalmente */
    }
  
    /* Mantido: Ótima regra para aumentar a área de toque no menu mobile */
    .nav-primary a { 
      padding: 12px 14px; 
      font-size: 1.05rem; 
    }
  
    /* Mantido: Efeito de hover mais discreto em telas menores */
    .carousel-slide:hover .project-card { 
      transform: translateY(-3px); 
      box-shadow: 0 8px 20px rgba(0,0,0,0.3); 
    }
  
    /* REMOVIDO: As regras para .projects-grid e .carousel-arrow foram removidas pois não são mais utilizadas no novo layout. */
    
    /* Otimização para a seção Como Funciona em mobile */
    .how-it-works-section .step-card {
      padding: 25px !important;
    }
    
    .how-it-works-section .step-card h3 {
      font-size: 1rem !important;
    }
    
    .how-it-works-section .step-card p {
      font-size: 0.8rem !important;
    }
  }
  
  @media (max-width: 480px) {
    header {
      flex-direction: column;
      gap: var(--space-sm);
      padding: 10px 15px;
      top: 5px;
      width: 100%;
    }
    
    /* Removido padding genérico de section para permitir espaçamento customizado por seção */
    /* section {
      padding: 15px 0 !important;
    } */
    
    .container {
      padding: 0 15px !important;
    }

    /* Typography minimalista */
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.3rem !important; margin-bottom: 8px !important; }
    h3 { font-size: 1.1rem !important; }
    p { font-size: 0.85rem !important; line-height: 1.4 !important; }

    /* Stack project actions vertically */
    .project-actions {
      grid-template-columns: 1fr;
      gap: 8px;
    }
    
    /* Cards minimalistas */
    .service-card,
    .benefit-card,
    .step-card,
    .package-card,
    .faq-item {
      padding: 12px !important;
      border-radius: var(--radius-sm) !important;
      margin-bottom: 10px !important;
    }
    
    /* Hero section minimalista */
    .hero-section {
      padding: 20px 0 !important;
    }
    
    .hero-actions {
      flex-direction: column;
      gap: 10px !important;
    }
    
    .hero-actions a {
      width: 100%;
      margin: 0 !important;
    }
  
  /* Botões minimalistas mobile */
  .btn-primary, .btn-secondary, .btn-whatsapp, .project-card-content a {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-sm) !important;
  }
  

    /* Adjust WhatsApp float position */
    .whatsapp-float {
      width: 65px;
      height: 65px;
      bottom: 20px;
      right: 20px;
    }

    /* Ajustar posição do botão voltar ao topo em mobile */
    .back-to-top {
      width: 45px;
      height: 45px;
      bottom: 85px;
      right: 15px;
      font-size: 1rem;
    }

    /* Ajustes adicionais para imagens em telas muito pequenas */
    #projetos .project-card img {
      height: clamp(180px, 30vh, 280px) !important;
    }
    
    #trafego-projetos .project-card img {
      height: clamp(160px, 28vh, 250px) !important;
    }
    
    .poupepix-image {
      object-position: center 30% !important;
    }
    
    .dona-baratinha-image {
      object-position: 85% 25% !important;
    }
    
    /* Carousel adjustments for small screens */
    .carousel-viewport { margin-inline: 12px; }
    .my-projects-section .carousel-viewport { margin-inline: 12px; }
    
    .carousel-button, .carousel-arrow {
      width: 36px; height: 36px; font-size: 1.2rem;
    }
    .carousel-button.prev, .carousel-arrow.prev { left: 2px; }
    .carousel-button.next, .carousel-arrow.next { right: 2px; }

    /* Skills section adjustments */
    .cards-container {
      gap: var(--space-md); /* Reduced gap */
    }
    .skills-section .card {
      width: 110px; height: 110px; /* Smaller cards */
    }
  }
  
  /* MANTIDO: Esta regra é uma excelente prática profissional!
     Ela desativa o efeito de 'tilt' 3D em dispositivos de toque (celulares, tablets),
     evitando comportamentos estranhos e melhorando a performance.
  */
  @media (pointer: coarse) {
    .project-card { transform: none !important; }
  }

/* ==========================================================================
   12. ANIMAÇÕES DE ENTRADA (VERSÃO APRIMORADA E CORRIGIDA)
   ========================================================================== */

/* ANIMAÇÃO APRIMORADA: 
  Além de subir (translateY), o elemento agora também cresce sutilmente (scale),
  criando um efeito de profundidade mais profissional.
*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98); 
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* NOVAS ANIMAÇÕES PARA EFEITOS MAIS IMPACTANTES */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px) rotateY(-15deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px) rotateY(15deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) rotate(5deg);
  }
  70% {
    transform: scale(0.95) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(159, 90, 253, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(159, 90, 253, 0.8), 0 0 40px rgba(159, 90, 253, 0.4);
  }
}

/* Estado inicial dos elementos - sempre visíveis para minimalismo */
.animate-on-scroll {
  opacity: 1;
}

/* Abordagem moderna para navegadores com suporte, agora com a animação aprimorada */
@supports (animation-timeline: view()) {
  .animate-on-scroll {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-timeline: view();
    /* Ajuste fino para a animação começar um pouco antes */
    animation-range-start: entry 5%;
    animation-range-end: cover 40%;
  }
}

/* Classe de fallback para JS, também usando a nova animação */
.fade-in-visible {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* O Stagger (atraso) continua sendo controlado pelo seu JavaScript via style */
.animate-on-scroll { 
  transition-delay: var(--delay, 0ms); 
}

/* MELHORIA PROFISSIONAL: ACESSIBILIDADE
  Este bloco desativa as animações para usuários que solicitaram
  "movimento reduzido" em seus sistemas operacionais. Essencial para um site moderno.
*/
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .fade-in-visible,
  .particle,
  .shape,
  .img-gustavo,
  .project-card {
      animation: none !important;
      opacity: 1; /* Garante que os elementos fiquem visíveis */
      transform: none !important;
  }
  
  .floating-particles,
  .floating-shapes {
      display: none;
  }
}

/* Otimizações de performance */
.project-card,
.img-gustavo,
.particle,
.shape {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Melhorias para dispositivos móveis */
@media (max-width: 768px) {
  .particle {
    display: none; /* Remove partículas em mobile para melhor performance */
  }
  
  .shape {
    opacity: 0.02; /* Reduz opacidade em mobile */
  }
  
  .img-gustavo {
    animation-duration: 8s; /* Animação mais lenta em mobile */
  }
  
  .project-card:hover {
    transform: translateY(-3px) scale(1.01); /* Efeito mais sutil em mobile */
  }

  /* Responsividade para barras de progresso */
  .skills-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skills-progress {
    order: -1; /* Barras aparecem primeiro em mobile */
  }

  .cards-container {
    gap: var(--space-md);
  }

  .skills-section .card {
    width: 120px;
    height: 120px;
  }
}
/* ==========================================================================
   13. MELHORIAS DE POLIMENTO E IDENTIDADE VISUAL
   ========================================================================== */

/* Design minimalista - fundo preto sólido */

/* Cor da seleção de texto */
::selection {
  background-color: var(--cor-primaria);
  color: var(--cor-fundo-principal);
}

/* Melhoria 3b: Barra de rolagem estilizada para temas escuros */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--cor-fundo-principal);
}

::-webkit-scrollbar-thumb {
  background-color: var(--cor-fundo-secundario);
  border-radius: 10px;
  border: 2px solid var(--cor-fundo-principal);
}

::-webkit-scrollbar-thumb:hover {
  background-color: #666666;
}
/* ==========================================================================
   14. ESTILOS DOS NOVOS COMPONENTES (VERSÃO APRIMORADA)
   ========================================================================== */

/* 1. Estilo para o botão de CTA "Contato Rápido" no Header */
.header-cta {
  background: var(--cor-fundo-secundario);
  border: 1px solid var(--cor-borda);
  border-radius: var(--radius-full);
  color: var(--cor-texto-secundario);
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden; /* Essencial para o efeito de borda */
  transition: color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.header-cta i {
  transition: transform var(--transition-base);
}

/* Efeito de Borda Gradiente Animada */
.header-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 150%;
  height: 150%;
  background: conic-gradient(from 180deg at 50% 50%, var(--cor-secundaria), var(--cor-primaria-hover), var(--cor-secundaria));
  z-index: 1;
  transform-origin: center;
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-slow);
}

.header-cta:hover::before {
  opacity: 1;
  transform: rotate(360deg);
}

/* Círculo interno para manter o fundo escuro */
.header-cta::after {
  content: '';
  position: absolute;
  inset: 2px; /* Espessura da borda gradiente */
  background: var(--cor-fundo-secundario);
  border-radius: inherit;
  z-index: 2;
}

/* Ícone fica acima de tudo */
.header-cta i {
  position: relative;
  z-index: 3;
}

/* Efeitos de Hover */
.header-cta:hover,
.header-cta:focus-visible {
  color: var(--cor-primaria-hover);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-primaria);
}

.header-cta:hover i {
  transform: scale(1.15) rotate(-10deg);
}

/* Tooltip (Dica de ferramenta) */
.header-cta[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 115%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cor-fundo-secundario);
    color: var(--cor-texto-principal);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-leve);
}
.header-cta:hover[data-tooltip]::after {
    opacity: 1;
    top: 125%;
}


/* 2. Estilo para o subtítulo das seções com elementos gráficos */
.section-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto 3rem;
  max-width: 80%;
  color: var(--cor-texto-secundario);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  text-align: center;
}

/* Linhas decorativas laterais */
.section-subtitle::before,
.section-subtitle::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(to left, var(--cor-borda), transparent);
}

.section-subtitle::after {
  background: linear-gradient(to right, var(--cor-borda), transparent);
}

/* Efeito de Gradiente no Texto (Opcional, mas muito elegante) */
.section-subtitle {
    background: linear-gradient(90deg, var(--cor-texto-secundario), var(--cor-texto-principal), var(--cor-texto-secundario));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* ==========================================================================
   15. CORREÇÕES DO CABEÇALHO E ÍCONES
   ========================================================================== */

/* Organiza os controles (ícones e menu) do cabeçalho */
.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Estilo para os links das redes sociais */
.header-controls nav[aria-label="Redes sociais"] {
  display: flex;
  gap: 0.75rem;
}

.header-controls nav[aria-label="Redes sociais"] a {
  color: var(--cor-texto-secundario);
  font-size: 1.25rem;
  transition: color var(--transition-base), transform var(--transition-base);
}

.header-controls nav[aria-label="Redes sociais"] a:hover {
  color: var(--cor-primaria-hover);
  transform: scale(1.1);
}

/* Estilo para o botão de trocar o tema (Sol/Lua) */
.theme-toggle {
  background: none;
  border: none;
  color: var(--cor-texto-secundario);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 5px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: color var(--transition-base), transform var(--transition-base);
}

.theme-toggle:hover {
  color: var(--cor-primaria-hover);
  transform: scale(1.1) rotate(15deg);
}

/* Lógica para mostrar o ícone correto do tema */
.theme-toggle .theme-icon-sun { display: block; }
/* ==========================================================================
   16. CORREÇÕES DO CARROSSEL
   ========================================================================== */

/* Container da paginação */
.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #000000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot:hover {
    background-color: #f5f5f5;
    border-color: #000000;
}

.carousel-dot.active {
    background-color: #000000;
    border-color: #000000;
}

/* Estilo antigo removido - substituído acima */
.carousel-pagination-old {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 1.5rem;
}

/* Estilo de cada ponto */
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

/* Efeito ao passar o mouse */
.carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

/* Estilo do ponto "aceso" (ativo) */
.carousel-dot.active {
  background-color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.3);
}

.case-dialog {
  border: 1px solid var(--cor-borda);
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--cor-fundo-secundario);
  color: var(--cor-texto-principal);
  max-width: min(720px, calc(100vw - 32px));
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.case-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.case-dialog-content {
  padding: var(--space-lg);
  position: relative;
}

.case-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--cor-borda);
  background: transparent;
  color: var(--cor-texto-principal);
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.case-dialog-metrics {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: var(--space-md) 0 var(--space-lg);
  padding: 0;
}

.case-dialog-metrics li {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--cor-borda);
  background: rgba(128, 128, 255, 0.06);
  color: var(--cor-texto-secundario);
}

.case-dialog-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

/* ==========================================================================
   16. OTIMIZAÇÕES MOBILE PARA NOVAS SEÇÕES
   ========================================================================== */

/* Otimizações para seções adicionadas */
@media (max-width: 768px) {
  /* Hero Section - Métricas */
  .about-me-text > div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 15px !important;
  }
  
  .about-me-text > div[style*="display: flex"] > div {
    min-width: 100% !important;
    text-align: center;
  }

  /* Seção Como Funciona - Steps */
  .how-it-works-section .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .how-it-works-section .container > div[style*="position: absolute"] {
    display: none !important; /* Remove linha conectora em mobile */
  }

  .step-card {
    padding: 20px !important;
  }

  .step-card > div[style*="width: 60px"] {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.5rem !important;
  }

  /* Seção Por Que Escolher - Benefícios */
  .why-choose-section .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .benefit-card {
    padding: 25px !important;
  }

  .benefit-card > div[style*="font-size: 2.5rem"] {
    font-size: 2rem !important;
    margin-bottom: 15px !important;
  }

  /* Seção FAQ */
  .faq-section .container {
    padding: 0 15px !important;
  }

  .faq-item {
    padding: 20px !important;
  }

  .faq-item summary {
    font-size: 1rem !important;
    flex-wrap: wrap !important;
  }

  .faq-item summary span:first-child {
    flex: 1 1 100%;
    margin-bottom: 5px;
  }

  /* Seção CTA Final */
  .final-cta-section .container {
    padding: 0 15px !important;
  }

  .final-cta-section h2 {
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
  }

  .final-cta-section p {
    font-size: 1rem !important;
    margin-bottom: 30px !important;
  }

  .final-cta-section > div > div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .final-cta-section .btn-primary,
  .final-cta-section .btn-secondary {
    width: 100% !important;
    padding: 16px 30px !important;
    font-size: 1rem !important;
  }

  /* Seção Serviços */
  .services-section .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .service-card {
    padding: 25px !important;
  }

  .service-card > div[style*="font-size: 3rem"] {
    font-size: 2.5rem !important;
    margin-bottom: 15px !important;
  }

  /* Formulário - Campos novos */
  .contact-form select {
    width: 100% !important;
    padding: 16px !important;
    font-size: 1rem !important;
  }

  .contact-text-left > div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .contact-text-left > div[style*="display: flex"] > div {
    padding: 12px !important;
  }

  /* Ajustes gerais de espaçamento */
  .how-it-works-section,
  .why-choose-section,
  .faq-section,
  .services-section {
    padding: var(--space-lg) 0 !important;
  }

/* ==========================================================================
   ESPAÇAMENTO VERTICAL ENTRE SEÇÕES PRINCIPAIS
   ========================================================================== */
/* Desktop: espaçamento de 160px entre seções usando padding-bottom */
.main-content,
.services-section,
.social-proof-section,
.how-it-works-section,
.my-projects-section,
.personal-story-section,
.package-section,
.skills-section,
.why-choose-section,
.faq-section {
  padding-bottom: 160px;
}

.contact-section {
  padding-bottom: 80px; /* Última seção com menos espaço embaixo */
}

@media (max-width: 768px) {
  /* Mobile: espaçamento de 80px entre seções */
  .main-content,
  .services-section,
  .social-proof-section,
  .how-it-works-section,
  .my-projects-section,
  .personal-story-section,
  .package-section,
  .skills-section,
  .why-choose-section,
  .faq-section {
    padding-bottom: 80px !important;
  }
  
  .contact-section {
    padding-bottom: 48px !important; /* Última seção com menos espaço embaixo */
  }
}

@media (max-width: 480px) {
  /* Mobile pequeno: espaçamento de 64px entre seções */
  .main-content,
  .services-section,
  .social-proof-section,
  .how-it-works-section,
  .my-projects-section,
  .personal-story-section,
  .package-section,
  .skills-section,
  .why-choose-section,
  .faq-section {
    padding-bottom: 64px !important;
  }
  
  .contact-section {
    padding-bottom: 40px !important;
  }
}

  /* Títulos das seções */
  .how-it-works-section h2,
  .why-choose-section h2,
  .faq-section h2,
  .services-section h2 {
    font-size: 1.8rem !important;
    margin-bottom: 20px !important;
  }

.section-subtitle {
  font-size: 0.95rem !important;
  margin-bottom: 30px !important;
}
}

/* Seção Por Que Me Escolher - estilos dedicados e minimalistas */
.why-choose-section h2 {
  position: relative;
  letter-spacing: 0.2px;
}
.why-choose-section h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin: 8px auto 0;
  background: var(--cor-primaria);
  border-radius: var(--radius-full);
}
.why-choose-section .benefit-card {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: border-color 0.2s ease;
}
.why-choose-section .benefit-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.benefit-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cor-borda);
  border-radius: 12px;
  color: var(--cor-primaria);
  background: rgba(159, 90, 253, 0.06);
  margin-bottom: 8px;
}
.why-choose-section .benefit-card h3 {
  font-weight: 600;
}
.trust-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--cor-texto-secundario);
  border: 1px solid var(--cor-borda);
  border-radius: var(--radius-full);
  padding: 6px 10px;
}
@media (max-width: 480px) {
  .carousel-viewport {
    border-radius: var(--radius-md);
  }
  /* Ajustes extras para telas muito pequenas */
  .about-me-text > div[style*="display: flex"] > div > div:first-child {
    font-size: 1.5rem !important;
  }

  .step-card h3,
  .benefit-card h3,
  .service-card h3 {
    font-size: 1.2rem !important;
  }

  .faq-item summary {
    font-size: 0.95rem !important;
    padding: 5px 0 !important;
  }

  .final-cta-section h2 {
    font-size: 1.5rem !important;
  }

  .final-cta-section p {
    font-size: 0.9rem !important;
  }

  /* Botões menores em telas muito pequenas */
  .final-cta-section .btn-primary,
  .final-cta-section .btn-secondary {
    padding: 14px 25px !important;
    font-size: 0.95rem !important;
  }

  /* Espaçamento reduzido */
  .how-it-works-section,
  .why-choose-section,
  .faq-section {
    padding: var(--space-md) 0 !important;
  }

  /* Seção Pacote Completo */
  .package-section .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  .package-card {
    padding: 25px !important;
  }

  .package-card > div[style*="font-size: 4rem"] {
    font-size: 3rem !important;
    margin-bottom: 15px !important;
  }

  .package-section > div > div[style*="padding: 40px"] {
    padding: 30px 20px !important;
  }

  .package-section h3 {
    font-size: 1.4rem !important;
  }

  .package-section > div > div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .package-section .btn-primary,
  .package-section .btn-secondary {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  /* Seção Pacote Completo - Tablet */
  .package-section {
    padding: var(--space-lg) 0 !important;
  }

  .package-section .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  .package-card {
    padding: 30px !important;
  }
}

/* ==========================================================================
   17. ANIMAÇÕES UX/UI MODERNAS E MICROINTERAÇÕES
   ========================================================================== */

/* Animações de entrada suaves com stagger */
@keyframes fadeInUpScale {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

/* Efeito de ripple nos botões */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Efeito de shimmer/glow */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(159, 90, 253, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(159, 90, 253, 0.6), 0 0 60px rgba(225, 70, 124, 0.3);
  }
}

/* Efeito de float suave */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Efeito de pulse suave */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Efeito de bounce suave */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Efeito de slide in from bottom */
@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Removido animações para minimalismo */
.animate-on-scroll {
  opacity: 1;
}

/* Project cards aparecem instantaneamente via GSAP */
.project-card {
  opacity: 1; /* Será controlado pelo GSAP, mas começa visível se JS falhar */
}

/* Cards sempre visíveis para minimalismo */
.service-card,
.benefit-card,
.step-card,
.package-card {
  opacity: 1;
}

/* Efeito de ripple nos botões */
.btn-primary,
.btn-secondary,
.project-card-content a {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary .ripple,
.btn-secondary .ripple,
.project-card-content a .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

/* Efeito de hover melhorado nos cards */
.project-card,
.service-card,
.benefit-card,
.step-card,
.package-card,
.faq-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.project-card:hover,
.service-card:hover,
.benefit-card:hover,
.step-card:hover,
.package-card:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

/* Removido efeito de glow para minimalismo */

/* Animações de entrada para seções */
section {
  animation: none;
}

/* Efeito de parallax suave */
.parallax-element {
  transition: transform 0.3s ease-out;
}

/* Removido animação flutuante dos ícones para minimalismo */

/* Removido efeito shimmer para minimalismo */

/* Animações de scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Efeito de loading skeleton animado */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Animações de menu mobile */
.nav-primary a {
  position: relative;
  overflow: hidden;
}

/* Removido efeito shimmer do menu para minimalismo */

/* Efeito de typing no título */
.typing-target {
  display: inline-block;
  border-right: 2px solid var(--cor-primaria);
  animation: blink 1s step-end infinite;
}

/* Animações de carrossel melhoradas */
.carousel-slide {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.carousel-slide.active {
  transform: scale(1.05);
  opacity: 1;
}

/* Removido pulse do WhatsApp para minimalismo */

.whatsapp-float:hover {
  animation: pulse 1s ease-in-out infinite, bounce 0.5s ease-in-out;
}

/* Animações de FAQ */
.faq-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] {
  animation: scaleIn 0.3s ease-out;
}

.faq-item summary {
  transition: all 0.3s ease;
}

.faq-item summary:hover {
  transform: translateX(5px);
}

/* Efeito de glassmorphism animado */
.glass-effect {
  background: rgba(28, 27, 58, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(159, 90, 253, 0.3);
  transition: all 0.3s ease;
}

.glass-effect:hover {
  background: rgba(28, 27, 58, 0.8);
  border-color: rgba(159, 90, 253, 0.5);
  box-shadow: 0 8px 32px rgba(159, 90, 253, 0.2);
}

/* Animações de métricas */
.about-me-text > div[style*="display: flex"] > div {
  transition: all 0.3s ease;
}

.about-me-text > div[style*="display: flex"] > div:hover {
  transform: translateY(-5px) scale(1.05);
}

.about-me-text > div[style*="display: flex"] > div > div:first-child {
  transition: all 0.3s ease;
}

.about-me-text > div[style*="display: flex"] > div:hover > div:first-child {
  color: var(--cor-secundaria);
  transform: scale(1.1);
}

/* Efeito de scroll progress animado */
.scroll-progress-bar {
  transition: width 0.1s ease-out;
}

/* Animações de tags */
.project-tags li {
  transition: all 0.3s ease;
  animation: fadeInUpScale 0.5s ease-out forwards;
  animation-delay: calc(var(--tag-index, 0) * 0.1s);
}

.project-tags li:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(159, 90, 253, 0.4);
}

/* Efeito de loading melhorado */
.loading-progress {
  position: relative;
  overflow: hidden;
}

.loading-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

/* Animações para mobile - touch feedback */
@media (max-width: 768px) {
  /* Efeito de tap nos botões mobile */
  .btn-primary:active,
  .btn-secondary:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }

  /* Animações mais suaves em mobile */
  .project-card:active,
  .service-card:active,
  .benefit-card:active {
    transform: scale(0.98);
  }

  /* Efeito de swipe no carrossel */
  .carousel-container {
    scroll-snap-type: x mandatory;
  }

  .carousel-slide {
    scroll-snap-align: center;
  }

  /* Animações de entrada mais rápidas em mobile */
  .animate-on-scroll {
    animation-duration: 0.6s;
  }

  /* Efeito de ripple mais visível em mobile */
  .btn-primary:active::before,
  .btn-secondary:active::before {
    width: 200px;
    height: 200px;
  }
}

/* Reduzir animações para usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Removido animações escalonadas para minimalismo */
.stagger-animation {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   18. ANIMAÇÕES PREMIUM UX/UI - EFEITOS AVANÇADOS
   ========================================================================== */

/* Gradiente animado de fundo */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Efeito de glassmorphism animado */
.glass-card {
  background: rgba(28, 27, 58, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(159, 90, 253, 0.3);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(159, 90, 253, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

/* Efeito de texto brilhante */
@keyframes textShine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.text-shine {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #9F5AFD 50%,
    #E1467C 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 3s linear infinite;
}

/* Efeito de partículas flutuantes */
@keyframes floatParticle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 1;
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
    opacity: 0.8;
  }
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--cor-primaria);
  border-radius: 50%;
  animation: floatParticle 8s ease-in-out infinite;
  pointer-events: none;
}

/* Efeito de loading skeleton premium */
@keyframes skeletonPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.skeleton-premium {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite, skeletonPulse 2s ease-in-out infinite;
}

/* Efeito de borda animada */
@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(159, 90, 253, 0.3);
    box-shadow: 0 0 20px rgba(159, 90, 253, 0.2);
  }
  50% {
    border-color: rgba(225, 70, 124, 0.5);
    box-shadow: 0 0 40px rgba(225, 70, 124, 0.4);
  }
}

.animated-border {
  animation: borderGlow 3s ease-in-out infinite;
}

/* Efeito de escala com profundidade */
@keyframes scaleDepth {
  0% {
    transform: scale(1) translateZ(0);
  }
  50% {
    transform: scale(1.05) translateZ(20px);
  }
  100% {
    transform: scale(1) translateZ(0);
  }
}

.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efeito de texto digitando */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 50% {
    border-color: transparent;
  }
  51%, 100% {
    border-color: var(--cor-primaria);
  }
}

.typing-effect {
  overflow: hidden;
  border-right: 2px solid var(--cor-primaria);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

/* Efeito de ripple expandido */
@keyframes rippleExpand {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(10);
    opacity: 0;
  }
}

.ripple-effect {
  position: relative;
  overflow: hidden;
}

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

.ripple-effect:active::after {
  width: 300px;
  height: 300px;
  animation: rippleExpand 0.6s ease-out;
}

/* Efeito de hover com gradiente */
.gradient-hover {
  position: relative;
  background: linear-gradient(135deg, rgba(159, 90, 253, 0.1), rgba(225, 70, 124, 0.1));
  background-size: 200% 200%;
  transition: background-position 0.5s ease;
}

.gradient-hover:hover {
  background-position: 100% 100%;
}

/* Efeito de scroll reveal premium */
.reveal-premium {
  opacity: 0;
  transform: translateY(100px) rotateX(20deg);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Efeito de neon glow */
@keyframes neonPulse {
  0%, 100% {
    text-shadow: 
      0 0 10px var(--cor-primaria),
      0 0 20px var(--cor-primaria),
      0 0 30px var(--cor-primaria);
  }
  50% {
    text-shadow: 
      0 0 5px var(--cor-primaria),
      0 0 10px var(--cor-primaria),
      0 0 15px var(--cor-primaria),
      0 0 20px var(--cor-secundaria),
      0 0 35px var(--cor-secundaria);
  }
}

.neon-text {
  color: var(--cor-primaria);
  animation: neonPulse 2s ease-in-out infinite;
}

/* Efeito de partículas de fundo */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

.particles-bg .particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--cor-primaria);
  border-radius: 50%;
  animation: floatParticle 15s ease-in-out infinite;
}

/* Efeito de morphing blob */
@keyframes morphBlob {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

/* ========================================================================
   CTA FIXO E ANIMAÇÕES
   ======================================================================== */
.fixed-cta {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 998;
}

.fixed-cta a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-weight: 600;
  animation: pulse-cta 2s infinite;
  background: var(--cor-primaria);
  color: var(--cor-fundo-principal);
  transition: all 0.3s ease;
}

.fixed-cta a:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .fixed-cta {
    bottom: 90px;
    right: 15px;
  }
  
  .fixed-cta a {
    padding: 12px 16px !important;
    font-size: 0.85rem !important;
  }
  
  .fixed-cta a span {
    display: none;
  }
}

@media (max-width: 480px) {
  .fixed-cta {
    bottom: 85px;
    right: 10px;
  }
}

@keyframes pulse-cta {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.3);
  }
}

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

.morph-blob {
  animation: morphBlob 8s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(159, 90, 253, 0.2), rgba(225, 70, 124, 0.2));
}

/* Efeito de loading spinner premium */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinner-premium {
  border: 4px solid rgba(159, 90, 253, 0.1);
  border-top: 4px solid var(--cor-primaria);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

/* Melhorias de performance para animações */
.will-animate {
  will-change: transform, opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ========================================================================
   SEÇÃO PESSOAL: MINHA HISTÓRIA (MINIMALISTA)
   ======================================================================== */
.personal-story-section {
  position: relative;
}

.personal-story-section article {
  animation: fadeIn 0.8s ease-out;
}

.childhood-photo {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(15%) brightness(0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  object-position: center 30% !important;
}

.childhood-photo:hover {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
  border-color: var(--cor-primaria) !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsividade para a seção pessoal */
@media (max-width: 768px) {
  .personal-story-section article p {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
  }
  
  .personal-story-section .container {
    max-width: 100% !important;
    padding: 0 20px !important;
  }
  
  .personal-story-section article > div {
    max-width: 100% !important;
  }
  
  .personal-story-section figure {
    max-width: 280px !important;
  }
}

@media (max-width: 480px) {
  .personal-story-section {
    padding: var(--space-xl) 0 !important;
  }
  
  .personal-story-section article h2 {
    font-size: 1.3rem !important;
    margin-bottom: 20px !important;
  }
  
  .personal-story-section article p {
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
  }
  
  .personal-story-section figure {
    max-width: 220px !important;
    margin-bottom: 20px !important;
  }
}
