/**
 * ============================================================================
 * PULSAR BANNER 3D - CIDADE DE NOVA YORK v15.0
 * ============================================================================
 * 
 * Banner panorâmico com cidade 3D, coração pulsante e efeitos neon
 * Inspirado na skyline noturna de Nova York com estética futurista
 * 
 * ============================================================================
 */

.banner-3d {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #000010 40%, #020024 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cidade 3D com efeito de profundidade */
.cidade-3d {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: zoomLoop 30s ease-in-out infinite alternate;
  filter: brightness(0.9) contrast(1.15) saturate(1.3);
}

/* Animação de zoom suave */
@keyframes zoomLoop {
  0% { 
    transform: scale(1.05) rotate(0deg); 
    filter: brightness(0.9) contrast(1.15) saturate(1.3);
  }
  100% { 
    transform: scale(1.1) rotate(0.5deg); 
    filter: brightness(1) contrast(1.2) saturate(1.4);
  }
}

/* Overlay com gradiente para integrar com o site */
.overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top, 
    rgba(0, 0, 20, 0.9) 0%,
    rgba(0, 0, 50, 0.4) 50%,
    rgba(0, 0, 50, 0.2) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Efeito de partículas/estrelas */
.overlay-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, cyan, transparent),
    radial-gradient(1px 1px at 50% 50%, magenta, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, cyan, transparent),
    radial-gradient(1px 1px at 30% 80%, white, transparent);
  background-repeat: no-repeat;
  background-size: 300% 300%;
  animation: particleFloat 20s linear infinite;
  opacity: 0.6;
}

@keyframes particleFloat {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* Container do coração centralizado */
.heart-center {
  position: absolute;
  z-index: 3;
  animation: floatPulse 6s ease-in-out infinite;
  pointer-events: none;
}

/* Coração pulsante com efeito neon */
.heart-pulse {
  width: 180px;
  height: auto;
  filter: 
    drop-shadow(0 0 30px #ff00ff) 
    drop-shadow(0 0 60px #8E2DE2)
    drop-shadow(0 0 90px rgba(255, 0, 255, 0.5));
  animation: heartBeat 1.5s ease-in-out infinite;
}

/* Animação de flutuação + pulsação */
@keyframes floatPulse {
  0%, 100% { 
    transform: translateY(0) scale(1); 
    opacity: 0.95; 
  }
  50% { 
    transform: translateY(-12px) scale(1.05); 
    opacity: 1; 
  }
}

/* Pulsação do coração (batimento cardíaco) */
@keyframes heartBeat {
  0%, 100% { 
    transform: scale(1); 
  }
  10% { 
    transform: scale(1.1); 
  }
  20% { 
    transform: scale(1); 
  }
  30% { 
    transform: scale(1.1); 
  }
  40% { 
    transform: scale(1); 
  }
}

/* Ondas de energia emanando do coração */
.heart-center::before,
.heart-center::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 0, 255, 0.4);
  border-radius: 50%;
  animation: pulseWave 3s ease-out infinite;
  pointer-events: none;
}

.heart-center::after {
  animation-delay: 1.5s;
  border-color: rgba(0, 255, 255, 0.3);
}

@keyframes pulseWave {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Texto sobre o banner (opcional) */
.banner-title {
  position: absolute;
  z-index: 4;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  text-shadow: 
    0 0 20px rgba(142, 45, 226, 0.8),
    0 0 40px rgba(142, 45, 226, 0.5);
}

.banner-title h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #00FFFF, #8E2DE2, #FF00FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-title p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-top: 10px;
  opacity: 0.9;
}

/* Skyline simulada (caso não tenha imagem) */
.skyline-simulation {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: 
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 30, 0.8) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(0, 224, 255, 0.1) 80px,
      rgba(0, 224, 255, 0.1) 82px
    );
  z-index: 1;
}

/* Prédios simulados */
.building {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 10, 40, 0.9), rgba(30, 10, 50, 0.7));
  border-top: 1px solid rgba(0, 224, 255, 0.3);
  box-shadow: 
    0 0 20px rgba(142, 45, 226, 0.3),
    inset 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Janelas iluminadas */
.building::before {
  content: '';
  position: absolute;
  inset: 10px;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 20px,
      rgba(255, 255, 100, 0.6) 20px,
      rgba(255, 255, 100, 0.6) 22px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 15px,
      rgba(0, 200, 255, 0.4) 15px,
      rgba(0, 200, 255, 0.4) 17px
    );
  opacity: 0.8;
  animation: windowFlicker 5s infinite;
}

@keyframes windowFlicker {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.6; }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .banner-3d {
    height: 50vh;
    min-height: 400px;
  }
  
  .heart-pulse {
    width: 120px;
  }
  
  .banner-title h1 {
    font-size: 2rem;
  }
  
  .banner-title p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .banner-3d {
    height: 45vh;
    min-height: 350px;
  }
  
  .heart-pulse {
    width: 100px;
  }
}

/* Otimização de performance */
@media (prefers-reduced-motion: reduce) {
  .cidade-3d,
  .heart-center,
  .heart-pulse,
  .overlay-gradient::before {
    animation: none;
  }
  
  .heart-center::before,
  .heart-center::after {
    display: none;
  }
}
