/* ========================================
   ARQUIVO: index.css
   DESCRIÇÃO: Estilos principais da página inicial
   FUNCIONALIDADES: Layout, animações, responsividade, cores e efeitos visuais
   ======================================== */

/* ========================================
   VARIÁVEIS CSS E CONFIGURAÇÕES GLOBAIS
   ======================================== */
:root {
  --primary-color: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary-color: #1e40af;
  --accent-color: #25d366;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f8fafc;
  --bg-dark: #1f2937;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
}

/* ========================================
   RESET E ESTILOS BASE
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  background: linear-gradient(135deg, #e1f3ff 0%, #bae6fd 100%);
  color: var(--text-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  display: none;
}

/* ========================================
   LOADING SCREEN
   ======================================== */
#loading-screen {
  animation: fadeOut 0.5s ease-in-out 2s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ========================================
   NAVEGAÇÃO
   ======================================== */
.navbar {
  transition: all var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
}

.navbar.scrolled {
  background: rgba(29, 78, 216, 0.95) !important;
  box-shadow: var(--shadow-xl);
  transform: translateY(0);
}

.navbar-brand {
  color: white !important;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-link {
  color: white !important;
  font-weight: 500;
  position: relative;
  transition: all var(--transition-normal);
}

.navbar-link:hover {
  color: #dbeafe !important;
  transform: translateY(-2px);
}

.menu-underline {
  position: relative;
  display: inline-block;
}

.menu-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-underline:hover::after,
.menu-underline:focus::after {
  transform: scaleX(1);
}

/* ========================================
   BOTÃO VOLTAR AO TOPO
   ======================================== */
.btn-topo {
  position: fixed;
  bottom: 20px;
  left: 24px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0);
  opacity: 0;
}

.btn-topo.visible {
  transform: scale(1);
  opacity: 1;
}

.btn-topo:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
  z-index: 1;
}

.hero-section img {
  filter: brightness(0.8) contrast(1.1) blur(4px);
  transition: all 1s ease;
}

.hero-section:hover img {
  filter: brightness(0.8) contrast(1.1) blur(4px);
  transform: scale(1.02);
}

/* ========================================
   TÍTULOS DE SEÇÃO
   ======================================== */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* ========================================
   LINHA EXPANSIVA
   ======================================== */
.expanding-line {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 3px;
  margin: 0 auto;
  background: transparent;
  overflow: hidden;
  border-radius: 2px;
}

.expanding-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: translateX(-50%);
  animation: expandLine 2s ease-out forwards;
}

@keyframes expandLine {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
    left: 0;
    transform: translateX(0);
  }
}

/* ========================================
   ESTATÍSTICAS
   ======================================== */
.stats-section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-xl);
  margin: 2rem auto;
  padding: 3rem 2rem;
}

.stats-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 2px solid #e5e7eb;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.stats-card:hover::before {
  left: 100%;
}

.stats-card:hover {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.stats-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  animation: bounce 2s infinite;
}

.stats-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  transition: all var(--transition-normal);
}

.stats-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========================================
   FORMULÁRIO DE CONTATO
   ======================================== */
.contact-section {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  padding: 4rem 2rem;
  border-radius: var(--border-radius-xl);
  margin: 2rem auto;
}

.contact-form {
  background: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.contact-form:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border-radius: var(--border-radius);
  background: rgba(55, 65, 81, 0.8);
  border: 2px solid rgba(75, 85, 99, 0.5);
  color: white;
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  background: rgba(55, 65, 81, 0.9);
}

.form-input::placeholder {
  color: rgba(156, 163, 175, 0.8);
}

.submit-btn {
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  width: 100%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(5, 150, 105, 0.4);
}

.feedback-message {
  color: #10b981;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  border-radius: var(--border-radius);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ========================================
   BOTÃO WHATSAPP
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), #128c7e);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-xl);
  text-decoration: none;
  transition: all var(--transition-normal);
  z-index: 1000;
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 25px 50px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
  animation: pulse 2s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ========================================
   SOBRE NÓS
   ======================================== */
.about-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card {
  transition: all var(--transition-normal);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(59, 130, 246, 0.05);
}

.feature-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  padding: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ========================================
   SERVIÇOS
   ======================================== */
.services-section {
  padding: 2rem 0;
}

.service-item {
  margin-bottom: 4rem;
}

.service-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.service-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.service-image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-2xl);
  margin-bottom: 2rem;
}

.service-image {
  width: 100%;
  height: 500px; /* Altura fixa para todas as imagens */
  object-fit: cover; /* Mantém proporção e cobre o container */
  transition: all var(--transition-slow);
  filter: brightness(0.9) contrast(1.1);
}

.service-image-container:hover .service-image {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.2);
}

.service-description {
  color: var(--text-dark);
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.8;
  font-weight: 500;
}

/* ========================================
   RODAPÉ
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--bg-dark), #374151);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.social-links {
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  color: var(--text-dark);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.social-link.instagram:hover {
  background: #e91e63;
  color: white;
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 20px 40px rgba(233, 30, 99, 0.4);
}

.social-link.youtube:hover {
  background: #f44336;
  color: white;
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 20px 40px rgba(244, 67, 54, 0.4);
}

/* ========================================
   BOTÕES PRINCIPAIS
   ======================================== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

/* ========================================
   ANIMAÇÕES E EFEITOS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2rem;
  }
  
  .service-title {
    font-size: 2rem;
  }
  
  .stats-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    padding: 2rem 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .service-title {
    font-size: 1.8rem;
  }
  
  .stats-section {
    padding: 2rem 1rem;
  }
  
  .contact-section {
    padding: 2rem 1rem;
  }
  
  .about-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .service-title {
    font-size: 1.5rem;
  }
  
  .stats-card {
    padding: 1.5rem;
  }
  
  .stats-number {
    font-size: 2rem;
  }
}

/* ========================================
   UTILITÁRIOS
   ======================================== */
.hidden {
  display: none !important;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(16px);
}

.backdrop-blur-xl {
  backdrop-filter: blur(24px);
}

.backdrop-blur-2xl {
  backdrop-filter: blur(40px);
}
