/* Critical CSS - Above the fold styles */
:root {
  --primary-color: #45ca5b;
  --primary-dark: #033c2d;
  --secondary-color: #c0ced7;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-color: #1e293b;
  --accent-color: #45ca5b;
  --gradient-color: linear-gradient(
    90deg,
    rgba(69, 202, 91, 1) 0%,
    rgba(3, 60, 45, 1) 100%
  );
  --background: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent: #f0fdf4;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --gradient-green: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  --gradient-glass: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  --glow-green: 0 0 15px rgba(69, 202, 91, 0.7);
  --glow-accent: 0 0 20px rgba(91, 242, 10, 0.8);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;

  /* Dimensões e espaçamentos */
  --timeline-height: 600px; /* Mantido */
  --item-spacing: 50px; /* Mantido */
  --item-width: 350px; /* Mantido */
  --item-active-scale: 1; /* Mantido */
  --item-inactive-scale: 0.5; /* Mantido */

  /* Animações */
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1); /* Mantido */
  --transition-time: 0.5s; /* Mantido */
  --transition-delay: 0.05s; /* Mantido */
  --animation-timing: cubic-bezier(0.4, 0, 0.2, 1); /* Mantido */
}

[data-theme="dark"] {
  --primary-color: #45ca5b;
  --primary-dark: #033c2d;
  --secondary-color: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-color: #f1f5f9;
  --gradient-color: linear-gradient(
    90deg,
    rgba(69, 202, 91, 1) 0%,
    rgba(3, 60, 45, 1) 100%
  );
  --background: #0f172a;
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-accent: #f0fdf4;
  --border-color: #374151;
  --surface: #1e293b;
  --border: #334155;
  --shadow: rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px var(--shadow);
  i {
    color: var(--text-primary);
  }
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle .dark-icon {
  display: block;
}

.theme-toggle .light-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .light-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .dark-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .light-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .dark-icon {
  display: block;
}

.preloader .logo-dark {
  width: auto;
  height: 88px;
  display: block;
}

.preloader .logo-light {
  width: auto;
  height: 88px;
  display: none;
}

[data-theme="light"] .preloader {
  margin-bottom: 30px;
  .logo-dark {
    width: auto;
    height: 88px;
    display: block;
  }
  .logo-light {
    width: auto;
    height: 88px;
    display: none;
  }
}

[data-theme="dark"] .preloader {
  margin-bottom: 30px;
  .logo-dark {
    width: auto;
    height: 88px;
    display: none;
  }
  .logo-light {
    width: auto;
    height: 88px;
    display: block;
  }
}

/* Preloader Styles */
#preloader {
  background: var(
    --background
  ); /* Usa a cor de fundo do tema ativo (light: #ffffff, dark: #111827) */
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  transform: translateY(0);
  animation: pulse 1.8s infinite ease-in-out;
}

.preloader-logo {
  max-width: 150px;
  height: auto;
  transition: transform 0.3s ease;
}

.dark .preloader-logo {
  filter: brightness(1.2); /* Ajuste para visibilidade no modo dark */
}

/* Custom spinner */
.preloader-spinner {
  width: 40px;
  height: 40px;
  position: relative;
  margin: 0 auto;
}

.preloader-spinner::before,
.preloader-spinner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--text-color);
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.preloader-spinner::after {
  border-top-color: var(--text-color);
  animation-delay: 0.3s;
}

/* Spinner animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Pulse animation for logo */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 0px 0px;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--background) 0%,
    var(--surface) 100%
  );
}

.base-img-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: grayscale(1);
  opacity: 0.2;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.logo {
  margin-bottom: 30px;
}

[data-theme="light"] .logo {
  margin-bottom: 30px;
  .logo-image.logo-dark {
    width: auto;
    height: 88px;
    display: block;
  }
  .logo-image.logo-light {
    width: auto;
    height: 88px;
    display: none;
  }
}

[data-theme="dark"] .logo {
  margin-bottom: 30px;
  .logo-image.logo-dark {
    width: auto;
    height: 88px;
    display: none;
  }
  .logo-image.logo-light {
    width: auto;
    height: 88px;
    display: block;
  }
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.logo-subtitle {
  display: block;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-top: -5px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  span {
    font-weight: 600;
    color: var(--gradient-color);
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}

.btn-primary {
  background: var(--primary-color);
  background: var(--gradient-color);
  color: white;
}

.btn-primary:hover {
  /* background: var(--primary-dark); */
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(72, 90, 102, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.doctor-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  /* box-shadow: 0 20px 40px var(--shadow); */
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }
}

.lang-list {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 0.5rem;
  margin: 0 10px;
  padding: 0;
  li {
    a {
      color: var(--text-primary);
      font-size: 1.2rem;
      height: 100%;
      transition: all 0.3s ease;
      img {
        height: 1em !important;
      }
    }
    a:hover {
      color: var(--primary-color);
    }
  }
}

[data-theme="light"] footer {
  .logo-image.logo-dark {
    width: auto;
    height: 88px;
    display: block;
  }
  .logo-image.logo-light {
    width: auto;
    height: 88px;
    display: none;
  }
  .developed-by {
    width: 96px;
    height: auto;
    margin-left: 5px;
    filter: invert(1);
  }
}

[data-theme="dark"] footer {
  .logo-image.logo-dark {
    width: auto;
    height: 88px;
    display: none;
  }
  .logo-image.logo-light {
    width: auto;
    height: 88px;
    display: block;
  }
  .developed-by {
    width: 96px;
    height: auto;
    margin-left: 5px;
    filter: invert(0);
  }
}
