﻿/* ============ Hero rotating photo background ============ */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0b0f1a;
}

.bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: bgFade 18s ease-in-out infinite;
}

.bg-img-a {
  animation-name: bgFadeA;
}

.bg-img-b {
  animation-name: bgFadeB;
}

/* Crossfade: A shows, then B fades in, holds, then back to A */
@keyframes bgFadeA {
  0%, 45% { opacity: 1; }
  55%, 100% { opacity: 0; }
}

@keyframes bgFadeB {
  0%, 45% { opacity: 0; }
  55%, 100% { opacity: 1; }
}

/* Dark overlay for readability */
.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 15, 0.6) 0%, rgba(5, 8, 15, 0.35) 40%, rgba(5, 8, 15, 0.8) 100%),
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(4, 6, 12, 0.55) 100%);
}

/* Readability panel over the scene */
.hero-inner {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .bg-img {
    animation: none;
  }
  .bg-img-a { opacity: 1; }
  .bg-img-b { opacity: 0; }
}
