body { margin:0; font-family:'Open Sans', sans-serif; background:#0a1f3a; color:#f0f4f8; font-size:16px; line-height:1.6; }
.dark-bg { background: linear-gradient(to bottom, #0a1f3a, #001122); padding:3rem 0; }
.container { max-width:1200px; margin:0 auto; padding:0 1rem; }
.hero {
  position: relative;
  height: 80vh;              /* Full viewport height feel */
  min-height: 500px;         /* Prevent too small on mobile */
  max-height: 900px;         /* Cap for very tall screens */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;                  /* Shorthand for top/right/bottom/left:0 */
  width: 100%;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* Key: Covers area without distortion, crops edges smartly */
  object-position: center;   /* Centers focus (adjust to 'center 30%' if couple needs emphasis) */
}

.kiss-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* Ensures GIF scales like background */
  object-position: center;
  opacity: 0.85;             /* Slight blend into base image */
  pointer-events: none;
}

/* Text overlay – high contrast, senior-friendly */
.hero-text {
  position: relative;
  z-index: 2;                /* Above images */
  text-align: center;
  color: white;
  text-shadow: 0 4px 12px rgba(0,0,0,0.7); /* Readable on image */
  padding: 0 1rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin: 0;
  line-height: 1.1;
}

/* Dark gradient overlay for better text readability (optional – add if text hard to read) */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,31,58,0.4), rgba(0,17,34,0.6)); /* Subtle dark tint */
  z-index: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero {
    height: 60vh;            /* Shorter on phones to avoid scroll fatigue */
    min-height: 400px;
  }
  .hero-text h1 {
    font-size: 2.5rem;       /* Scale down text */
  }
  .kiss-gif {
    object-position: center 20%; /* Shift focus upward if couple is mid-frame */
  }
}