/* --- CONFIGURAÇÕES GLOBAIS E TEMA DARK AVANÇADO --- */
:root {
  --bg-dark-primary: #0a0a0f;
  --bg-dark-secondary: #1a1b23;
  --bg-card: rgba(26, 27, 35, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --text-headings: #ffffff;
  --accent-primary: #00d4ff;
  --accent-secondary: #7c3aed;
  --accent-tertiary: #06ffa5;
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #06ffa5 0%, #00d4ff 100%);
  --gradient-tertiary: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --border-glass: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
  background: var(--bg-dark-primary); /* A cor sólida base fica no body */
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- ANIMAÇÕES GLOBAIS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@keyframes meshMove {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(-10px) translateX(-15px); }
  75% { transform: translateY(-25px) translateX(5px); }
}

/* --- ELEMENTOS DECORATIVOS --- */
/* Este 'before' continua com os gradientes radiais decorativos */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(6, 255, 165, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* --- CORREÇÃO: SOLUÇÃO PARA PARALLAX ESTÁVEL --- */
/* O novo pseudo-elemento 'after' controla o fundo parallax de forma isolada */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2; /* Fica atrás de tudo, inclusive do ::before */

  /* --- CORREÇÃO: IMAGEM ÚNICA SEM REPETIÇÃO --- */
  /* Substitua pela URL da sua imagem de fundo grande */
  background-image:
    /* Gradiente de sobreposição para garantir legibilidade do texto */
    linear-gradient(rgba(10, 10, 15, 0.95), rgba(10, 10, 15, 0.95)),
      /* Sua imagem única de fundo */
    url('../img/image1.webp');

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}


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

/* --- HEADER MELHORADO --- */
header {
  position: relative;
  padding: 120px 20px 80px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    conic-gradient(from 0deg at 50% 50%, transparent, rgba(0, 212, 255, 0.1), transparent),
    radial-gradient(circle, transparent 30%, rgba(124, 58, 237, 0.05) 70%);
  animation: pulse 8s ease-in-out infinite;
  z-index: -1;
}

.header-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

header h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

header .subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-muted);
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* --- BOTÕES MELHORADOS --- */
.cta-button {
  position: relative;
  background: var(--gradient-primary);
  color: #fff;
  text-decoration: none;
  padding: 20px 50px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-glow);
  animation: fadeInUp 1s ease-out 0.4s both;
  overflow: hidden;
}

.cta-button::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.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

/* --- CONTENT WRAPPER PROFISSIONAL --- */
.content-wrapper {
  position: relative;
  /* O wrapper agora é transparente para deixar o fundo do body::after aparecer */
  background: transparent;

  /* --- CORREÇÃO: LINHA VISÍVEL --- */
  /* Puxa o conteúdo 1px para cima, cobrindo a junção com o header */
  margin-top: -1px;

  /* Removemos os estilos de fundo que estavam causando os problemas */
  overflow: hidden;
}

/* Ícones médicos flutuantes e outros decorativos do wrapper são mantidos */
.content-wrapper::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background:
    radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  z-index: 0;
}

.content-wrapper::after {
  content: '';
  position: absolute;
  bottom: 15%;
  right: 8%;
  width: 200px;
  height: 200px;
  background:
    radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite reverse;
  z-index: 0;
}

.medical-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.medical-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0.1;
  color: var(--accent-primary);
  animation: meshMove 12s ease-in-out infinite;
}

.medical-icon:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: -2s;
}

.medical-icon:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: -4s;
  color: var(--accent-secondary);
}

.medical-icon:nth-child(3) {
  top: 40%;
  left: 90%;
  animation-delay: -6s;
  color: var(--accent-tertiary);
}

.medical-icon:nth-child(4) {
  top: 80%;
  left: 10%;
  animation-delay: -8s;
}

/* --- SEÇÕES DE CONTEÚDO --- */
section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  margin-bottom: 80px;
  color: var(--text-headings);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  z-index: 2;
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-secondary);
  margin: 30px auto 0;
  border-radius: 2px;
}

/* --- GRID MELHORADO --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* --- CARDS GLASSMORPHISM MELHORADOS --- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass);
  padding: 40px 30px;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
  box-shadow: var(--shadow-card);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 212, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--text-headings);
  font-weight: 700;
}

.card svg {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  padding: 6px;
  border-radius: 10px;
  flex-shrink: 0;
}

.card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* --- SEÇÃO DO INSTRUTOR --- */
.instructor-layout {
  display: flex;
  align-items: center;
  gap: 60px;
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  padding: 60px 50px;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
  animation: fadeInLeft 1s ease-out;
  box-shadow: var(--shadow-card);
}

.instructor-layout::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  animation: float 6s ease-in-out infinite;
}

.instructor-photo {
  position: relative;
  z-index: 1;
}

.instructor-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid transparent;
  background: var(--gradient-primary);
  padding: 4px;
  box-shadow: var(--shadow-glow);
}

.instructor-bio {
  position: relative;
  z-index: 1;
}

.instructor-bio h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.instructor-bio p {
  text-align: justify;
  line-height: 1.7;
}

.hidden {
  display: none;
}

.text-justified {
  text-align: justify;
  line-height: 1.7;
}
/* --- DEPOIMENTOS MELHORADOS --- */
.testimonial-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass);
  padding: 40px;
  border-radius: 25px;
  transition: all 0.4s ease;
  animation: fadeInUp 0.8s ease-out;
  box-shadow: var(--shadow-card);
}

.testimonial-card::before {
  content: '"';
  font-size: 8rem;
  background: var(--gradient-tertiary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: absolute;
  top: -10px;
  left: 20px;
  opacity: 0.3;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  color: var(--text-light);
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-headings);
  font-size: 1.1rem;
}

.testimonial-author span {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* --- FAQ MELHORADO --- */
.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  padding: 30px 35px;
  border-radius: 15px;
  margin-bottom: 20px;
  border: 1px solid var(--border-glass);
  border-left: 4px solid transparent;
  border-image: var(--gradient-primary) 1;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.faq-item:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.1);
}

.faq-question {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-headings);
  margin-bottom: 15px;
}

.faq-item p:last-child {
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- SEÇÃO FINAL CTA --- */
#final-cta {
  text-align: center;
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  padding: 100px 50px;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 100px;
}

#final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent, rgba(0, 212, 255, 0.1), transparent, rgba(124, 58, 237, 0.1), transparent);
  animation: pulse 8s ease-in-out infinite;
  z-index: -1;
}

#final-cta h2 {
  margin-bottom: 30px;
  background: var(--gradient-tertiary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#final-cta p {
  max-width: 700px;
  margin: 0 auto 50px auto;
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
}








/* --- COMPONENTE ACCORDION COMPACTO --- */
.accordion {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
}

.accordion-item {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-glass);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 25px 30px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.accordion-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-headings);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: 20px;
}

/* Cria o ícone de '+' com CSS */
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-icon::before {
  transform: translate(-50%, -50%);
}
.accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Gira o '+' para formar um 'x' quando ativo */
.accordion-header.active .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(180deg);
}
.accordion-header.active .accordion-icon::before {
  transform: translate(-50%, -50%) rotate(180deg);
}


.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease;
  padding: 0 30px;
}

.accordion-content ul {
  list-style: none;
  padding: 15px 0 25px 0;
  border-top: 1px solid var(--border-glass);
}

.accordion-content ul li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.accordion-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-tertiary);
  font-weight: 600;
}











/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 60px 20px;
  margin-top: 0px;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-card);
  backdrop-filter: blur(25px);
}

footer p:first-child {
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

/* --- ANIMAÇÕES DE SCROLL --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVIDADE MELHORADA --- */
@media (max-width: 768px) {
  /* No mobile, o parallax fixo pode causar problemas, então o revertemos para rolagem normal */
  body::after {
    background-attachment: scroll;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .instructor-layout {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 40px 30px;
  }

  .instructor-photo img {
    width: 180px;
    height: 180px;
  }

  .card {
    padding: 30px 25px;
  }

  #final-cta {
    padding: 60px 30px;
  }

  section {
    padding: 60px 0;
  }

  .medical-icon {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 80px 15px 60px;
  }

  .cta-button {
    padding: 18px 40px;
    font-size: 1rem;
  }

  .container {
    padding: 0 15px;
  }
}

/* --- SCROLL BAR PERSONALIZADA --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark-primary);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-secondary);
}
