/* ============================================
   THEME - Variáveis CSS e Configurações Base
   Baseado no template Elito
   ============================================ */

:root {
  /* ===== CORES PRIMÁRIAS ===== */
  --color-primary: #0EA5E9;        /* Azul Ciano - Tecnologia, inovação */
  --color-secondary: #020617;      /* Preto Profundo - Sofisticação */
  --color-accent: #22D3EE;         /* Ciano Claro - Destaque */
  --color-dark: #0C4A6E;           /* Azul Escuro - Profundidade */
  --color-white: #FFFFFF;

  /* ===== CORES DE FUNDO ===== */
  --color-bg-light: #F1F5F9;
  --color-bg-dark: #020617;
  --color-bg-overlay: rgba(2, 6, 23, 0.8);

  /* ===== CORES DE TEXTO ===== */
  --color-text-primary: #020617;
  --color-text-secondary: #64748B;
  --color-text-white: #FFFFFF;
  --color-text-muted: #94A3B8;

  /* ===== ESPAÇAMENTO ===== */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 1rem;      /* 16px */
  --spacing-md: 1.5rem;    /* 24px */
  --spacing-lg: 2rem;      /* 32px */
  --spacing-xl: 4rem;      /* 64px */
  --spacing-xxl: 6rem;     /* 96px */

  /* ===== TIPOGRAFIA ===== */
  --font-heading: 'Inter', 'Poppins', sans-serif;
  --font-body: 'Inter', 'Roboto', sans-serif;
  --font-display: 'Playfair Display', serif; /* Opcional para títulos principais */
  
  /* Tamanhos de fonte */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;     /* 32px */
  --font-size-4xl: 3rem;     /* 48px */
  --font-size-5xl: 4rem;     /* 64px */

  /* Line heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Font weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Letter spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;

  /* ===== LAYOUT ===== */
  --container-max-width: 1400px;
  --header-height: 80px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  /* ===== SOMBRAS ===== */
  --shadow-sm: 0 2px 4px rgba(2, 6, 23, 0.1);
  --shadow-md: 0 4px 6px rgba(2, 6, 23, 0.1);
  --shadow-lg: 0 10px 15px rgba(2, 6, 23, 0.1);
  --shadow-xl: 0 20px 25px rgba(2, 6, 23, 0.15);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);

  /* ===== TRANSIÇÕES ===== */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* ===== Z-INDEX ===== */
  --z-header: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== UTILITÁRIOS ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section__title {
  text-align: center;
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-secondary);
}

.section__subtitle {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ANIMAÇÕES BASE - OTIMIZADAS PARA GPU ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* ===== RESPONSIVIDADE BASE ===== */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
    --spacing-xxl: 4rem;
    --spacing-xl: 3rem;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .section__title {
    font-size: var(--font-size-3xl);
  }
  
  .section__subtitle {
    font-size: var(--font-size-base);
  }
}
