/* Importação das fontes do Google */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

/* Reset e configurações base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

/* Variáveis CSS para o tema */
:root {
  /* Tema escuro (padrão) */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-accent: #06b6d4;
  --border-color: #374151;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Tema claro - versão mais escura e suave */
body.light-theme {
  --bg-primary: #f1f1f1;
  --bg-secondary: #ebebeb;
  --bg-tertiary: #e5e5e5;
  --text-primary: #1a202c;
  --text-secondary: #2d3748;
  --text-accent: #0891b2;
  --border-color: #d1d5db;
  --shadow-color: rgba(0, 0, 0, 0.12);

  /* Cores de identidade visual */
  --primary-blue: #1e40af;
  --accent-green: #059669;
  --accent-orange: #ea580c;
  --highlight-purple: #7c3aed;
}

/* Aplicação das variáveis */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Remover outline padrão do browser */
button,
a,
[role="button"],
[tabindex] {
  outline: none !important;
}

button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: none;
}

/* Focus especial apenas para navegação por teclado */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--text-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== MELHORIAS ESPECÍFICAS PARA O MODO CLARO ===== */

/* Backgrounds e elementos base */
body.light-theme .bg-gray-900 {
  background-color: var(--bg-secondary) !important;
}

body.light-theme .bg-gray-800 {
  background-color: var(--bg-tertiary) !important;
}

/* Cards no modo claro - versão simplificada */
body.light-theme .bg-white\/5 {
  background-color: rgba(248, 250, 252, 0.7) !important;
  border-color: var(--border-color) !important;
}

body.light-theme .bg-white\/10 {
  background-color: rgba(241, 245, 249, 0.8) !important;
}
body.light-theme div[class*="bg-white/5"]:hover {
  background: linear-gradient(
    135deg,
    rgba(241, 245, 249, 0.9) 0%,
    rgba(226, 232, 240, 0.7) 100%
  ) !important;
  border-color: rgba(14, 165, 233, 0.5) !important;
  transform: translateY(-2px) !important;
}

/* Textos */
body.light-theme .text-white {
  color: var(--text-primary) !important;
}

body.light-theme .text-gray-300,
body.light-theme .text-gray-200 {
  color: var(--text-secondary) !important;
}

body.light-theme .text-gray-400,
body.light-theme .text-gray-500 {
  color: var(--text-secondary) !important;
}

body.light-theme .text-gray-600 {
  color: var(--text-primary) !important;
}

/* Cores de destaque */
body.light-theme .text-cyan-400,
body.light-theme .text-cyan-300 {
  color: var(--text-accent) !important;
}

body.light-theme .text-blue-400,
body.light-theme .text-blue-300 {
  color: #1d4ed8 !important;
}

body.light-theme .text-purple-400,
body.light-theme .text-purple-300 {
  color: #7c3aed !important;
}

body.light-theme .text-green-300 {
  color: #059669 !important;
}

body.light-theme .text-orange-300 {
  color: #ea580c !important;
}

/* Bordas */
body.light-theme .border-gray-700,
body.light-theme .border-gray-800 {
  border-color: var(--border-color) !important;
}

body.light-theme .border-white\/10,
body.light-theme .border-white\/20 {
  border-color: var(--border-color) !important;
}

/* Gradientes de fundo */
body.light-theme .bg-gradient-to-br {
  background: linear-gradient(
    to bottom right,
    rgba(8, 145, 178, 0.05),
    rgba(37, 99, 235, 0.05)
  ) !important;
}

body.light-theme .bg-gradient-to-b {
  background: linear-gradient(
    to bottom,
    rgba(8, 145, 178, 0.8),
    rgba(37, 99, 235, 0.6),
    rgba(139, 92, 246, 0.8)
  ) !important;
}

body.light-theme .bg-gradient-to-t {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.02),
    transparent
  ) !important;
}

/* Elementos de fundo animados */
body.light-theme .bg-cyan-500\/10 {
  background-color: rgba(8, 145, 178, 0.05) !important;
}

body.light-theme .bg-blue-600\/10 {
  background-color: rgba(37, 99, 235, 0.05) !important;
}

body.light-theme .bg-purple-500\/5 {
  background-color: rgba(139, 92, 246, 0.03) !important;
}

/* Sombras */
body.light-theme .shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Efeitos de backdrop */
body.light-theme .backdrop-blur-sm {
  backdrop-filter: blur(8px);
}

body.light-theme .backdrop-blur-lg {
  backdrop-filter: blur(16px);
}

/* Gradientes internos dos cards no modo claro */
body.light-theme .bg-gradient-to-br.from-cyan-500\/5 {
  background: linear-gradient(
    to bottom right,
    rgba(8, 145, 178, 0.03),
    rgba(37, 99, 235, 0.02)
  ) !important;
}

/* Elementos translúcidos adicionais no modo claro */
body.light-theme .bg-white\/20 {
  background-color: rgba(241, 245, 249, 0.5) !important;
}

/* Melhor contraste para formulários no modo claro */
body.light-theme input.bg-white\/5,
body.light-theme textarea.bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid var(--border-color) !important;
}

/* Ajustes finais para consistência visual no modo claro */
body.light-theme .relative.p-8.rounded-3xl {
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.6) 0%,
    rgba(241, 245, 249, 0.4) 100%
  ) !important;
}

body.light-theme .relative.p-6.rounded-3xl {
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.6) 0%,
    rgba(241, 245, 249, 0.4) 100%
  ) !important;
}

/* Header no modo claro */
body.light-theme #main-header {
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.95) 0%,
    rgba(241, 245, 249, 0.9) 100%
  ) !important;
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme #main-header.scrolled {
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.98) 0%,
    rgba(241, 245, 249, 0.95) 100%
  ) !important;
  border-bottom: 1px solid rgba(8, 145, 178, 0.3) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* Menu mobile no modo claro */
body.light-theme #mobile-menu {
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.98) 0%,
    rgba(241, 245, 249, 0.95) 100%
  ) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color) !important;
}

/* Botões no modo claro */
body.light-theme #theme-toggle,
body.light-theme #mobile-theme-toggle,
body.light-theme #mobile-menu-button {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(241, 245, 249, 0.6) 100%
  ) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

body.light-theme #theme-toggle:hover,
body.light-theme #mobile-theme-toggle:hover,
body.light-theme #mobile-menu-button:hover {
  background: linear-gradient(
    135deg,
    rgba(8, 145, 178, 0.1) 0%,
    rgba(59, 130, 246, 0.1) 100%
  ) !important;
  border-color: rgba(8, 145, 178, 0.3) !important;
}

/* Links de navegação no modo claro */
body.light-theme .nav-link {
  color: var(--text-secondary) !important;
}

body.light-theme .nav-link:hover {
  color: var(--text-accent) !important;
  background: rgba(8, 145, 178, 0.1) !important;
}

body.light-theme .nav-link.nav-link-active,
body.light-theme .mobile-menu-link.nav-link-active {
  color: var(--text-accent) !important;
  background: rgba(8, 145, 178, 0.15) !important;
  border: 1px solid rgba(8, 145, 178, 0.3) !important;
}

/* Mobile menu links no modo claro */
body.light-theme .mobile-menu-link {
  color: var(--text-primary) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(241, 245, 249, 0.4) 100%
  ) !important;
  border: 1px solid var(--border-color) !important;
}

body.light-theme .mobile-menu-link:hover {
  color: var(--text-accent) !important;
  background: linear-gradient(
    135deg,
    rgba(8, 145, 178, 0.15) 0%,
    rgba(59, 130, 246, 0.1) 100%
  ) !important;
  border-color: rgba(8, 145, 178, 0.3) !important;
}

/* Formulários no modo claro */
body.light-theme input[type="text"],
body.light-theme input[type="email"],
body.light-theme textarea {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

body.light-theme input[type="text"]:focus,
body.light-theme input[type="email"]:focus,
body.light-theme textarea:focus {
  border-color: var(--text-accent) !important;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1) !important;
}

body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
  color: var(--text-secondary) !important;
}

body.light-theme label {
  color: var(--text-accent) !important;
}

/* Hover states para bordas */
body.light-theme .hover\:border-cyan-500\/50:hover {
  border-color: rgba(8, 145, 178, 0.5) !important;
}

body.light-theme .hover\:border-blue-500\/50:hover {
  border-color: rgba(59, 130, 246, 0.5) !important;
}

body.light-theme .hover\:border-purple-500\/50:hover {
  border-color: rgba(139, 92, 246, 0.5) !important;
}

/* Hover states para backgrounds */
body.light-theme .hover\:bg-cyan-400\/10:hover {
  background-color: rgba(8, 145, 178, 0.1) !important;
}

body.light-theme .hover\:bg-blue-400\/10:hover {
  background-color: rgba(37, 99, 235, 0.1) !important;
}

body.light-theme .hover\:bg-purple-400\/10:hover {
  background-color: rgba(139, 92, 246, 0.1) !important;
}

/* Efeito glow personalizado para modo claro */
body.light-theme .glow-effect {
  box-shadow: 0 0 15px rgba(8, 145, 178, 0.2), 0 0 30px rgba(8, 145, 178, 0.1) !important;
}

/* Timeline hover states melhorados para tema claro */
body.light-theme .timeline-item .bg-gray-800:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.15),
    0 15px 15px -5px rgba(0, 0, 0, 0.1) !important;
}

/* Otimização de legibilidade no modo claro */
body.light-theme .leading-relaxed {
  line-height: 1.7 !important;
}

/* ===== ESTILOS GERAIS (APLICADOS EM AMBOS OS TEMAS) ===== */

/* Efeito glow personalizado */
.glow-effect {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.3), 0 0 30px rgba(0, 200, 255, 0.2);
}

.glow-effect::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #06b6d4, #3b82f6, #8b5cf6, #06b6d4);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: glow-rotate 3s linear infinite;
}

.glow-effect:hover::before {
  opacity: 1;
}

@keyframes glow-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Animações de entrada */
.scroll-animate,
.fade-in,
.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.scroll-animate.visible,
.fade-in.visible,
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animações específicas da timeline */
.timeline-item {
  transition-delay: 0.2s;
}

.timeline-item:nth-child(even) {
  transition-delay: 0.4s;
}

.timeline-item:nth-child(3n) {
  transition-delay: 0.6s;
}

/* Header principal com efeitos avançados */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 4rem;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(30, 41, 59, 0.8) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#main-header.scrolled {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(15, 23, 42, 0.9) 100%
  );
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Logo principal com animação */
.logo-text {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

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

/* Links de navegação melhorados */
.nav-link {
  position: relative;
  color: #cbd5e1;
  font-weight: 500;
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: #06b6d4;
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.1);
}

.nav-link.nav-link-active,
.mobile-menu-link.nav-link-active {
  color: #06b6d4 !important;
  background: rgba(6, 182, 212, 0.1) !important;
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2) !important;
}

/* Botões melhorados */
#theme-toggle,
#mobile-theme-toggle,
#mobile-menu-button {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover,
#mobile-theme-toggle:hover,
#mobile-menu-button:hover {
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.2) 0%,
    rgba(59, 130, 246, 0.2) 100%
  );
  border-color: rgba(6, 182, 212, 0.5);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

/* Menu mobile melhorado */
#mobile-menu {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(30, 41, 59, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-link {
  position: relative;
  color: #cbd5e1;
  font-weight: 500;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-link:hover {
  color: #06b6d4;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.2) 0%,
    rgba(59, 130, 246, 0.1) 100%
  );
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateX(10px) scale(1.02);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
}

/* Animação de entrada do menu mobile */
#mobile-menu:not(.hidden) {
  animation: slideInFromTop 0.3s ease-out;
}

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

/* Efeitos hover melhorados */
.timeline-item .bg-gray-800:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsividade aprimorada */
@media (max-width: 768px) {
  .timeline-item .ml-12 {
    margin-left: 3rem;
  }

  .timeline-item .absolute.left-2 {
    left: 0.5rem;
  }

  .timeline-item .bg-gray-800 {
    margin-bottom: 1rem;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  #main-header {
    padding: 0.5rem 1rem;
  }
}

/* Animações e efeitos adicionais */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading states e animações */
@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

/* Padding responsivo das seções */
.section-padding {
  padding: 6rem 1.5rem;
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 8rem 2rem;
  }
}
