/* 
 * VARIÁVEIS DE COR E ESTILO 
 */
:root {
  --color-bg: #0a0a0c;
  /* Fundo super escuro (quase preto) para dar destaque às cores */
  --color-primary: #832ac8;
  /* Roxo Vibrante */
  --color-accent: #832ac8;
  /* Turquesa/*/
  --color-text: #ffffff;
  /* Branco */
  --color-text-muted: rgba(255, 255, 255, 0.75);
  --font-main: "Outfit", sans-serif;
  --transition-speed: 0.3s;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* FUNDO DINÂMICO ANIMADO */
.dynamic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: #0a0a0c;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
  animation-duration: 25s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: #4a00e0;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
  animation-duration: 30s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* TIPOGRAFIA */
h1,
h2,
h3 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
}

p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* LAYOUT E CONTAINERS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* BOTÕES E CHAMADAS PARA AÇÃO */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 8px;
  /* Botão mais quadrado/moderno */
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text);
  box-shadow: 0 4px 15px rgba(131, 42, 200, 0.4);
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(131, 42, 200, 0.55);
}

.btn-outline-bold {
  background: transparent;
  border: 3px solid #00e5ff;
  color: var(--color-text);
  padding: 1.2rem 3rem;
  font-size: 1.4rem;
  border-radius: 12px;
}

.btn-outline-bold:hover {
  background: var(--color-primary);
  color: var(--color-text);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(131, 42, 200, 0.4);
}

/* CABEÇALHO (HEADER) */
.header {
  padding: 1.2rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-speed);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
  z-index: 5;
}

.logo img {
  display: block;
  height: 6rem;
  width: auto;
  object-fit: contain;
  margin: -1.5rem 0;
  /* Sobra sobre a linha fina do header sem aumentar a altura da barra */
}

.logo span {
  color: var(--color-accent);
}

/* NAV MENU (DESKTOP) */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--transition-speed) ease;
  position: relative;
  padding: 0.4rem 0;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #00e5ff;
  transition: width var(--transition-speed) ease;
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* BOTÃO DE MENU MOBILE */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
  transition:
    transform var(--transition-speed) ease,
    color var(--transition-speed) ease;
}

.mobile-toggle:hover {
  color: #00e5ff;
}

/* SEÇÕES E LAYOUT ZIG-ZAG */
main {
  padding-top: 100px;
}

.section-alternating {
  padding: 7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.layout-zigzag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.media-content {
  flex: 1;
  max-width: 50%;
}

.text-content {
  flex: 1;
  max-width: 50%;
}

.text-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ÁREA DE MÍDIA (VÍDEO / FOTO) */
.media-placeholder {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper {
  aspect-ratio: 9 / 16;
  /* Formato retrato para vídeo  */
  width: 100%;
  max-width: 600px;
  max-height: 590px;
  margin: 0 auto;
  display: block;
}

.media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-video:fullscreen {
  /* Mostra o vídeo completo em tela cheia*/
  object-fit: contain;
}

/* A capa que fica flutuando por cima */
.video-capa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/capaCurso.png");
  background-size: cover;
  background-position: center;

  /* Efeito suave de sumir/aparecer */
  transition: opacity 0.3s ease;

  /* Começa visível */
  opacity: 1;

  /* Permite clicar no botão de play através da imagem */
  pointer-events: none;
}

.video-wrapper.is-playing .video-capa {
  opacity: 0;
  visibility: hidden;
}

/* Botão de Play flutuante centralizado */
.play-personalizado {
  position: absolute;
  top: 50%;
  left: 50%;

  /* Centralização perfeita */
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;

  /* Fundo semi-transparente */
  background-color: rgba(255, 255, 255, 0.2);

  /* Efeito de vidro jateado */
  backdrop-filter: blur(5px);

  border: 2px solid #fff;

  /* Faz o botão ser redondo */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

/* O triângulo do ícone de Play usando apenas CSS */
.play-personalizado::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  /* Desenha o triângulo */
  border-color: transparent transparent transparent #ffffff;
  /* Cor branca do ícone */
  margin-left: 5px;
  /* Ajuste milimétrico para o triângulo ficar visualmente no centro */
}

/* Efeito sutil ao passar o mouse por cima (Hover) */
.video-wrapper:hover .play-personalizado {
  transform: translate(-50%, -50%) scale(1.1);
  /* Dá um leve zoom no botão */
  background-color: rgba(255, 255, 255, 0.4);
}

.about-img-wrapper {
  aspect-ratio: 1 / 1;
}

.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* GRID DE FOTOS DO ESTÚDIO (3-2-3) */
.info-content {
  flex: 1;
  max-width: 40%;
}

.studio-logo-img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 1.5rem;
}

.grid-content {
  flex: 1;
  max-width: 60%;
}

.studio-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 150px;
  gap: 15px;
}

/* 
Padrão 3-2-3 em um grid de 6 colunas:
1ª Linha (3 fotos): cada foto ocupa 2 colunas
2ª Linha (2 fotos): cada foto ocupa 3 colunas
3ª Linha (3 fotos): cada foto ocupa 2 colunas
*/

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  grid-column: span 2;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-img.span-2-col {
  grid-column: span 3;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* MAPA */
.map-container {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
}

/* SEÇÃO 4 CTA */
.cta-container {
  max-width: 800px;
}

.cta-photo-wrapper {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 2rem auto;
  border: 4px solid var(--color-primary);
  box-shadow: 0 0 20px rgba(131, 42, 200, 0.6);
}

.cta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cta-img:hover {
  transform: scale(1.05);
}

.cta-hook {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.cta-sub {
  font-size: 1.3rem;
  margin-bottom: 3rem;
}

/* LIGHTBOX MODAL */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  display: none;
  /* Escondido por padrão */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  object-fit: contain;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  z-index: 10;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-lightbox:hover {
  color: var(--color-accent);
}

/* BOTÃO WHATSAPP FLUTUANTE */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #20ba56;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* RODAPÉ (FOOTER) */
.footer {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
}

.footer p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text);
  font-size: 1.3rem;
  transition:
    transform var(--transition-speed) ease,
    background var(--transition-speed) ease,
    border-color var(--transition-speed) ease;
}

.footer-social-icon:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.developer-credits a {
  color: var(--color-accent);
  font-weight: 600;
  transition: color var(--transition-speed);
}

.developer-credits a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
}

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

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

/* RESPONSIVIDADE (MOBILE FIRST ADAPTATION) */
@media (max-width: 992px) {
  .layout-zigzag {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .media-content,
  .text-content,
  .info-content,
  .grid-content {
    max-width: 100%;
  }
  /* Ordem de exibição da chamada ao ação */
  .hero .text-content {
    order: 1;
  }
  /* Ordem de exibição do video */
  .hero .media-content {
    order: 2;
  }

  .studio-gallery {
    grid-auto-rows: 130px;
  }

  .video-capa {
    background-image: url("assets/cursocapaMobile.png");
  }
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 99;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .nav-link {
    font-size: 1.7rem;
    font-weight: 600;
  }

  .header-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  body.no-scroll {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 4rem;
    margin: -0.75rem 0;
  }

  .section-alternating {
    padding: 4rem 0;
  }

  h2 {
    font-size: 2.2rem;
  }

  .cta-hook {
    font-size: 2.5rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }

  .studio-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .gallery-img,
  .gallery-img.span-2-col {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .header-btn {
    display: none;
  }

  .logo img {
    height: 3.4rem;
    margin: -0.5rem 0;
  }
}
