/* Hero Container */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--azul-noite); /* Fallback */
  overflow: hidden;
  padding-top: 80px;
}

/* Layers */
.hero-layer {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 0.35s ease-out;
  filter: saturate(1.05) contrast(1.05);
  pointer-events: none;
}

.hero-bg-img.active {
  opacity: 1;
}

/* Gradients */
.hero-gradient {
  z-index: 1;
  background: radial-gradient(1200px 600px at 20% 20%, rgba(200, 169, 120, 0.25), transparent 60%),
              radial-gradient(1200px 600px at 80% 80%, rgba(18, 50, 71, 0.35), transparent 60%),
              linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

/* Noise texture overlay */
.hero-grain {
  z-index: 2;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="120" height="120" filter="url(%23n)" opacity="0.05"/></svg>');
  background-size: 120px 120px;
  mix-blend-mode: overlay;
}

/* Floating Blobs */
.hero-blob {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.35s ease-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle at 30% 30%, var(--dourado-claro), transparent 60%);
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle at 70% 70%, var(--azul-aco), transparent 60%);
}

/* Content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 50px;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Fade text transitions for JS carrossel */
.hero-title.fade-out-text,
.hero-subtitle.fade-out-text {
  opacity: 0;
  transform: translateY(-20px);
}

.hero-title.fade-in-text,
.hero-subtitle.fade-in-text {
  opacity: 0;
  transform: translateY(20px);
}

.hero-buttons {
  margin-bottom: 80px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary-white {
  background: transparent;
  color: white !important;
  border: 2px solid white;
}

.btn-secondary-white:hover {
  background: white;
  color: var(--azul-noite) !important;
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.scroll-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: dotPulse 1.4s ease-in-out infinite;
}

.scroll-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding-top: 60px;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 35px;
    padding: 0 15px;
  }
  
  .hero-buttons {
    gap: 12px;
    margin-bottom: 40px;
  }
}
