/* VariÃ¡veis de Cores e Tema */
:root {
  --bg-primary: #0A0A0F; /* Fundo escuro principal */
  --bg-secondary: #1A1A2E; /* Fundo secundÃ¡rio (seÃ§Ãµes alternadas, footer) */
  --accent-cyan: #1E90FF; /* Ciano vibrante para destaque */
  --accent-purple: #9B5CF6; /* Roxo vibrante */
  --accent-green: #00FF99; /* Verde vibrante para sucesso/destaque */
  --text-light: #FFFFFF; /* Texto principal claro */
  --text-muted: #B0B0B0; /* Texto secundÃ¡rio para descriÃ§Ãµes */

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.08); /* Fundo transparente para cards */
  --glass-border: rgba(255, 255, 255, 0.15); /* Borda transparente para cards */
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); /* Sombra para cards */
  --glass-blur: 15px; /* NÃ­vel de blur para glassmorphism */

  /* Efeitos de brilho (glow) */
  --glow-cyan: 0 0 25px rgba(0, 228, 255, 0.5), 0 0 40px rgba(0, 228, 255, 0.3);
  --glow-purple: 0 0 25px rgba(155, 92, 246, 0.5), 0 0 40px rgba(155, 92, 246, 0.3);
  --glow-green: 0 0 25px rgba(0, 255, 153, 0.5), 0 0 40px rgba(0, 255, 153, 0.3);

  /* Outras variÃ¡veis de UI */
  --radius-xl: 24px; /* Raio de borda maior para cards */
  --radius-2xl: 32px;
  --transition-fast: 0.3s;
  --transition-normal: 0.5s;
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilos Globais e Reset */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  opacity: 0; /* ComeÃ§a invisÃ­vel para animaÃ§Ã£o de carregamento */
  transition: opacity var(--transition-normal) var(--ease-in-out);
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
  /* Novo fundo dinÃ¢mico com gradientes e tons sutis de roxo/ciano */
  background: 
    radial-gradient(circle at 15% 85%, rgba(0, 228, 255, 0.05) 0%, transparent 40%), /* Sutil ciano inferior esquerdo */
    radial-gradient(circle at 85% 15%, rgba(155, 92, 246, 0.05) 0%, transparent 40%), /* Sutil roxo superior direito */
    linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%); /* Gradiente principal */
  background-attachment: fixed;
  background-size: cover;
}

body.loaded {
  opacity: 1;
}

/* Estilo do CabeÃ§alho */
.header {
  transition: background var(--transition-fast) var(--ease-in-out), backdrop-filter var(--transition-fast) var(--ease-in-out);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(25px); /* Mais blur ao scroll */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.nav-link {
  transition: color var(--transition-fast) var(--ease-in-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-cyan);
  transition: width var(--transition-fast) var(--ease-in-out);
}

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

/* Menu Mobile Overlay */
.mobile-menu-overlay {
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-normal) var(--ease-in-out), opacity var(--transition-normal) var(--ease-in-out), visibility var(--transition-normal) var(--ease-in-out);
}

.mobile-menu-overlay.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  transition: color var(--transition-fast) var(--ease-in-out);
}

/* BotÃµes */
.btn {
  @apply inline-flex items-center justify-center px-8 py-4 text-xl font-semibold rounded-full relative overflow-hidden transform transition-all duration-300 ease-in-out;
  cursor: pointer;
  z-index: 1;
}

.btn--primary {
  @apply bg-gradient-to-r from-accent-cyan to-accent-purple text-bg-primary shadow-xl;
  box-shadow: 0 8px 32px rgba(0, 228, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 228, 255, 0.5);
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    pointer-events: none;
    z-index: -1;
}

.btn--primary:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.btn--secondary {
  @apply bg-glass-bg text-text-light border border-glass-border;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.btn--secondary:hover {
  @apply bg-white bg-opacity-20;
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

/* Efeito Glassmorphism para Cards */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition-normal) var(--ease-in-out), box-shadow var(--transition-normal) var(--ease-in-out);
  will-change: transform, box-shadow;
}

/* AnimaÃ§Ãµes Sutis */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 228, 255, 0.3), 0 0 20px rgba(0, 228, 255, 0.1); }
    50% { text-shadow: 0 0 20px rgba(0, 228, 255, 0.6), 0 0 30px rgba(0, 228, 255, 0.2); }
}

@keyframes pulseGlow-text {
    0%, 100% { text-shadow: 0 0 5px rgba(0, 228, 255, 0.5); }
    50% { text-shadow: 0 0 15px rgba(0, 228, 255, 0.8), 0 0 25px rgba(0, 228, 255, 0.4); }
}

.animate-fadeInUp { animation: fadeInUp 0.8s var(--ease-in-out) forwards; }
.animate-pulseGlow { animation: pulseGlow 2s infinite alternate; }
.animate-pulseGlow-text { animation: pulseGlow-text 2.5s infinite alternate; }


/* Propriedades para melhorar a animaÃ§Ã£o do texto do hero */
.hero-title, .hero-subtitle {
  will-change: transform, opacity, text-shadow;
}

/* Efeito de Parallax */
.hero::before { /* Pseudo-elemento para o parallax de fundo */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 90%, rgba(0, 228, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 90% 10%, rgba(155, 92, 246, 0.1) 0%, transparent 50%);
    background-size: cover;
    background-position: center;
    transform: translateY(var(--parallax-offset, 0px));
    transition: transform 0.1s linear; /* Parallax deve ser suave */
    z-index: -1; /* Abaixo do conteÃºdo do hero */
    pointer-events: none;
}

/* Opcional: Adicionar um brilho ao redor de elementos importantes */
.text-shadow-glow {
    text-shadow: 0 0 8px var(--accent-cyan), 0 0 15px rgba(0, 228, 255, 0.4);
}

/* Sistema de PartÃ­culas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Certifica-se de que estÃ¡ no fundo */
}

/* Estilos especÃ­ficos para o footer e social links */
.footer-title {
    color: var(--accent-cyan);
}

.contact-link, .footer-bottom a {
    color: var(--text-muted);
    transition: color var(--transition-fast) ease-in-out;
}

.contact-link:hover, .footer-bottom a:hover {
    color: var(--accent-cyan);
}

.social-link {
    transition: all var(--transition-fast) ease-in-out;
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(155, 92, 246, 0.4); /* Roxo para social media */
}

.social-link .fa-brands {
    transition: color var(--transition-fast) ease-in-out;
}

/* Estilos para o modal de newsletter */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal-btn {
    transition: all var(--transition-fast) ease-in-out;
}
