/* ========================================
   SELF TECH - Design System Premium
   Visual exclusivo e inovador
   ======================================== */

:root {
  /* Cores Primárias - Paleta futurista */
  --st-primary: #6366f1;
  --st-primary-light: #818cf8;
  --st-primary-dark: #4f46e5;
  --st-secondary: #06b6d4;
  --st-accent: #f59e0b;
  
  /* Cores de Destaque */
  --st-success: #10b981;
  --st-warning: #f59e0b;
  --st-error: #ef4444;
  --st-info: #3b82f6;
  
  /* Cores Neutras - Tons sofisticados */
  --st-bg-primary: #0a0a0f;
  --st-bg-secondary: #111118;
  --st-bg-tertiary: #1a1a25;
  --st-bg-card: #13131f;
  --st-bg-glass: rgba(19, 19, 31, 0.8);
  
  --st-text-primary: #ffffff;
  --st-text-secondary: #a1a1aa;
  --st-text-muted: #71717a;
  --st-text-accent: #c4b5fd;
  
  /* Bordas e Sombras */
  --st-border: rgba(255, 255, 255, 0.08);
  --st-border-hover: rgba(99, 102, 241, 0.4);
  --st-glow-primary: 0 0 40px rgba(99, 102, 241, 0.3);
  --st-glow-secondary: 0 0 30px rgba(6, 182, 212, 0.25);
  
  /* Gradientes */
  --st-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --st-gradient-hero: linear-gradient(180deg, #0a0a0f 0%, #13131f 50%, #0a0a0f 100%);
  --st-gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  --st-gradient-text: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #67e8f9 100%);
  
  /* Tipografia */
  --st-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --st-font-display: 'Space Grotesk', sans-serif;
  
  /* Espaçamentos */
  --st-section-padding: clamp(80px, 12vw, 140px);
  --st-container-max: 1280px;
  
  /* Animações */
  --st-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --st-transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --st-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --st-easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset e Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--st-font-primary);
  background: var(--st-bg-primary);
  color: var(--st-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--st-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--st-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--st-primary-light);
}

/* ========================================
   TIPOGRAFIA PREMIUM
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--st-font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--st-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-primary {
  background: var(--st-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   EFEITOS VISUAIS PREMIUM
   ======================================== */

/* Glow Effects */
.glow-primary {
  box-shadow: var(--st-glow-primary);
}

.glow-secondary {
  box-shadow: var(--st-glow-secondary);
}

/* Glass Morphism */
.glass {
  background: var(--st-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--st-border);
}

/* Gradient Border */
.gradient-border {
  position: relative;
  background: var(--st-bg-card);
  border-radius: 16px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: var(--st-gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity var(--st-transition-normal);
}

.gradient-border:hover::before {
  opacity: 1;
}

/* Animated Gradient Background */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.animated-gradient {
  background: linear-gradient(-45deg, #6366f1, #8b5cf6, #06b6d4, #6366f1);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* Particle Background */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--st-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% { 
    transform: translateY(-100px) translateX(50px);
    opacity: 0.6;
  }
  50% { 
    transform: translateY(-50px) translateX(-50px);
    opacity: 0.4;
  }
  75% { 
    transform: translateY(-150px) translateX(25px);
    opacity: 0.5;
  }
}

/* ========================================
   COMPONENTES PREMIUM
   ======================================== */

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--st-font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--st-transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--st-gradient-primary);
  color: white;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--st-text-primary);
  border: 1px solid var(--st-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--st-border-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--st-text-secondary);
}

.btn-ghost:hover {
  color: var(--st-text-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* Cards Premium */
.card {
  background: var(--st-bg-card);
  border: 1px solid var(--st-border);
  border-radius: 20px;
  padding: 2rem;
  transition: all var(--st-transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.card:hover {
  border-color: var(--st-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Badge/Tag */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--st-primary-light);
}

.badge-glow {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 20px 5px rgba(99, 102, 241, 0.2); }
}

/* ========================================
   LAYOUT E SEÇÕES
   ======================================== */

.container {
  width: 100%;
  max-width: var(--st-container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.section {
  padding: var(--st-section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--st-primary-light);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--st-text-secondary);
  line-height: 1.7;
}

/* ========================================
   ANIMAÇÕES DE ENTRADA
   ======================================== */

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--st-easing-bounce), transform 0.8s var(--st-easing-bounce);
}

[data-animate="fade-up"].animate {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-in"].animate {
  opacity: 1;
}

[data-animate="scale"].animate {
  opacity: 1;
  transform: scale(1);
}

[data-animate].animate {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
[data-animate]:nth-child(1) { transition-delay: 0.1s; }
[data-animate]:nth-child(2) { transition-delay: 0.2s; }
[data-animate]:nth-child(3) { transition-delay: 0.3s; }
[data-animate]:nth-child(4) { transition-delay: 0.4s; }
[data-animate]:nth-child(5) { transition-delay: 0.5s; }
[data-animate]:nth-child(6) { transition-delay: 0.6s; }

/* ========================================
   EFEITOS ESPECIAIS
   ======================================== */

/* Shimmer Loading Effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, 
    var(--st-bg-card) 25%, 
    rgba(99, 102, 241, 0.1) 50%, 
    var(--st-bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Glow Text Effect */
.glow-text {
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 40px rgba(99, 102, 241, 0.3);
}

/* Floating Animation */
@keyframes floating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.floating {
  animation: floating 6s ease-in-out infinite;
}

/* Rotate Animation */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotating {
  animation: rotate 20s linear infinite;
}

/* ========================================
   UTILITÁRIOS
   ======================================== */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* Responsive */
@media (max-width: 1024px) {
  .lg\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\\:grid-cols-1 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .md\\:grid-cols-1 { grid-template-columns: 1fr; }
  .md\\:flex-col { flex-direction: column; }
  .md\\:hidden { display: none; }
  .md\\:text-center { text-align: center; }

  /* Garantir que grids utilitários colapsam */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  /* Cards com padding menor */
  .card {
    padding: 1.25rem;
  }

  /* Seções com menos espaçamento */
  .section {
    padding: clamp(50px, 10vw, 80px) 0;
  }

  /* Container lateral */
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 640px) {
  .sm\\:grid-cols-1 { grid-template-columns: 1fr; }

  /* Botões full width em mobile pequeno */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Badges menores */
  .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
  }
}
