/* ==========================================================================
   HERO DENTISTA - LUXURY CLINIC & SMILE TRANSFORMATION
   Base: template odonto-vitrine, adaptado para o Dr. Paulo de Jesus
   ========================================================================== */


:root {
  --bg-dark: #04060a;
  --bg-card: rgba(14, 20, 32, 0.7);
  --primary-blue: #0088ff;
  --cyan-glow: #00d2ff;
  --deep-blue: #0a2558;
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 180, 255, 0.3);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: all 0.35s ease;
}

.header-nav.scrolled {
  background: rgba(4, 6, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-wrapper:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 50%, #dbeafe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-sub::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan-glow), transparent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan-glow);
  transition: width 0.25s ease;
  box-shadow: 0 0 8px var(--cyan-glow);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: rgba(0, 140, 255, 0.2);
  border-color: var(--cyan-glow);
  box-shadow: 0 0 20px rgba(0, 140, 255, 0.4);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background: radial-gradient(circle at 50% 20%, #081020 0%, #030509 60%, #010204 100%);
  overflow: hidden;
  padding-bottom: 40px;
}

/* Background Grids & Vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(2, 4, 8, 0.8) 80%, #020306 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   BLUE GLOW (Atrás da Mulher)
   Substituindo o tom laranja da referência por azul vibrante com profundidade
   ========================================================================== */
.glow-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Intense core neon flare */
.glow-core {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 580px;
  background: radial-gradient(
    ellipse 50% 48% at 50% 50%,
    rgba(0, 210, 255, 0.65) 0%,
    rgba(0, 130, 255, 0.38) 32%,
    rgba(10, 60, 200, 0.12) 58%,
    transparent 72%
  );
  filter: blur(50px);
  border-radius: 50%;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

/* Deep atmospheric sapphire aura */
.glow-ambient {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1300px;
  height: 950px;
  max-width: 100vw;
  background: radial-gradient(
    ellipse 60% 52% at 50% 50%,
    rgba(0, 115, 255, 0.35) 0%,
    rgba(4, 55, 175, 0.2) 38%,
    rgba(2, 20, 80, 0.08) 62%,
    transparent 78%
  );
  filter: blur(75px);
  border-radius: 50%;
}

/* Rim horizontal light bar */
.glow-streak {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 950px;
  height: 240px;
  background: radial-gradient(
    ellipse 60% 45% at 50% 50%,
    rgba(56, 189, 248, 0.32) 0%,
    rgba(3, 105, 161, 0.14) 45%,
    transparent 75%
  );
  filter: blur(45px);
}

@keyframes glowPulse {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

/* ==========================================================================
   3D CARDS TRACK (Passando Atrás da Mulher)
   Efeito curvo de galeria 3D como na imagem de referência
   ========================================================================== */
.cards-viewport {
  position: absolute;
  top: 14%;
  left: 0;
  width: 100%;
  height: 480px;
  overflow: visible;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

/* Curved Arc Shadow & Overlay on sides */
.cards-viewport::before,
.cards-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  z-index: 4;
  pointer-events: none;
}

.cards-viewport::before {
  left: 0;
  background: linear-gradient(90deg, #030509 10%, rgba(3, 5, 9, 0) 100%);
}

.cards-viewport::after {
  right: 0;
  background: linear-gradient(-90deg, #030509 10%, rgba(3, 5, 9, 0) 100%);
}

.cards-stream-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  display: flex;
}

.cards-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: streamInfinite 38s linear infinite;
  transform-style: preserve-3d;
  will-change: transform;
}

.cards-track:hover {
  animation-play-state: paused;
}

@keyframes streamInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 14px));
  }
}

/* Card Individual Style */
.case-card {
  position: relative;
  width: 290px;
  height: 195px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0d131f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(0, 136, 255, 0.12);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  transform: perspective(1000px) rotateY(6deg) translateY(0);
}

.case-card:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px) scale(1.05);
  border-color: rgba(0, 210, 255, 0.6);
  box-shadow: 
    0 25px 50px -10px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(0, 210, 255, 0.4);
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
  filter: brightness(0.9) contrast(1.05);
}

.case-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(3, 7, 18, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.case-card:hover .card-overlay {
  opacity: 1;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 140, 255, 0.3);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 210, 255, 0.4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-glow);
  box-shadow: 0 0 6px var(--cyan-glow);
}

/* ==========================================================================
   EXPERT IMAGE (Posicionada na Frente dos Cards e do Glow)
   ========================================================================== */
.expert-wrapper {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 84vh;
  max-height: 840px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
}

.expert-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -40%;
  right: -40%;
  height: 220px;
  background: linear-gradient(to bottom, rgba(3, 5, 9, 0) 0%, rgba(3, 5, 9, 0.8) 65%, #030509 100%);
  pointer-events: none;
  z-index: 6;
}

.expert-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  user-select: none;
  pointer-events: auto;
}

/* ==========================================================================
   CONTENT OVERLAY (Textos e CTA idênticos à referência)
   ========================================================================== */
.hero-content-layer {
  position: relative;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 40px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-main-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  pointer-events: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-badge span {
  color: var(--cyan-glow);
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 28px;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9);
  max-width: 820px;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #ffffff 30%, #90d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Reference-Style CTA Button */
.cta-button-ref {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 7px 28px 7px 8px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #040810;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(0, 195, 255, 0.35);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.cta-button-ref:hover {
  background: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.7),
    0 0 45px rgba(0, 210, 255, 0.6);
}

.cta-circle-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #06090e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.35s ease, background 0.35s ease;
}

.cta-circle-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.35s ease;
}

.cta-button-ref:hover .cta-circle-icon {
  background: #0077ff;
  transform: rotate(45deg);
}

/* Hero Footer Side Texts (Idênticos aos cantos da referência) */
.hero-bottom-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: auto;
  margin-top: 10px;
}

.side-text-left {
  max-width: 250px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #94a3b8;
  font-weight: 400;
  border-left: 2px solid rgba(0, 180, 255, 0.5);
  padding-left: 14px;
}

.side-text-right {
  max-width: 320px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #94a3b8;
  text-align: right;
  font-weight: 400;
  font-style: italic;
  border-right: 2px solid rgba(0, 180, 255, 0.5);
  padding-right: 14px;
}

/* ==========================================================================
   LIGHTBOX MODAL FOR CARDS
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.92);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 850px;
  width: 90%;
  background: #0c1322;
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 50px rgba(0, 150, 255, 0.3);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.lightbox-img {
  width: 100%;
  max-height: 65vh;
  object-fit: cover;
  display: block;
}

.lightbox-caption {
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #080d18;
}

.lightbox-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.lightbox-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lightbox-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: #ff3366;
  border-color: #ff3366;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .header-nav {
    padding: 16px 28px;
  }
  
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: none !important;
  }

  .hero-bottom-row {
    display: none;
  }

  .expert-wrapper {
    height: 75vh;
  }

  .cards-viewport {
    top: 12%;
    height: 380px;
    perspective: 1100px;
  }

  .case-card {
    width: 240px;
    height: 160px;
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  /* Header Mobile Optimization */
  .header-nav {
    padding: 14px 18px;
  }

  .header-nav.scrolled {
    padding: 12px 18px;
  }

  .logo-wrapper {
    flex-shrink: 0;
  }

  .logo-text {
    gap: 2px;
  }

  .logo-name {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .logo-sub {
    font-size: 0.52rem;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }

  .logo-sub::after {
    display: none !important;
  }

  .mobile-menu-btn {
    display: none !important;
  }

  .nav-cta {
    padding: 7px 14px;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Hero Section Mobile Structure */
  .hero-section {
    padding-bottom: 28px;
    min-height: 100svh;
  }

  /* Cards in Background */
  .cards-viewport {
    top: 11%;
    height: 200px;
    perspective: 800px;
  }

  .cards-stream-wrapper {
    padding: 10px 0;
  }

  .cards-track {
    gap: 16px;
    animation-duration: 28s;
  }

  .case-card {
    width: 175px;
    height: 118px;
    border-radius: 14px;
  }

  .card-tag {
    font-size: 0.62rem;
    padding: 3px 7px;
  }

  /* Blue Glow Mobile Adjustments */
  .glow-core {
    width: 380px;
    height: 380px;
    top: 36%;
    filter: blur(40px);
  }

  .glow-ambient {
    width: 540px;
    height: 540px;
    top: 36%;
    filter: blur(55px);
  }

  .glow-streak {
    display: none;
  }

  /* Expert Position - High enough so face & eyes are fully clear of texts */
  .expert-wrapper {
    height: 76vh;
    max-height: 620px;
    bottom: 0;
  }

  .expert-wrapper::after {
    height: 240px;
    background: linear-gradient(to bottom, rgba(3, 5, 9, 0) 0%, rgba(3, 5, 9, 0.7) 45%, rgba(3, 5, 9, 0.95) 85%, #030509 100%);
  }

  /* Content & Headline below chest / over dress */
  .hero-content-layer {
    padding: 0 20px;
    padding-bottom: 8px;
  }

  .hero-main-group {
    margin-bottom: 12px;
  }

  .hero-badge {
    font-size: 0.8rem;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  }

  .hero-title {
    font-size: 1.52rem;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 320px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95);
  }

  .cta-button-ref {
    font-size: 0.9rem;
    padding: 6px 20px 6px 6px;
    gap: 12px;
    box-shadow: 
      0 10px 25px rgba(0, 0, 0, 0.8),
      0 0 25px rgba(0, 195, 255, 0.4);
  }

  .cta-circle-icon {
    width: 38px;
    height: 38px;
  }

  .cta-circle-icon svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 380px) {
  .header-nav {
    padding: 12px 14px;
  }

  .logo-name {
    font-size: 0.98rem;
  }

  .nav-cta {
    padding: 6px 11px;
    font-size: 0.74rem;
  }

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

  .case-card {
    width: 155px;
    height: 105px;
  }
}
