/* ============================================================
   BGSS & Associates – Cinematic Logo Reveal Video Intro
   intro-animation.css | High-Performance Motion Experience
   Plays bgss_logo_reveal.mp4 on website arrival
   ============================================================ */

#logo-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

#logo-intro-overlay.is-finished {
  opacity: 0 !important;
  transform: scale(1.03) !important;
  filter: blur(10px) !important;
  pointer-events: none !important;
  display: none !important;
}

/* ── Video Stage Container ── */
.intro-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 2rem);
  box-sizing: border-box;
}

/* ── The Logo Reveal Video Element ── */
.intro-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #000000;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

/* ── Ambient Radial Glow Behind Video ── */
.intro-video-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(167, 37, 58, 0.32) 0%, rgba(212, 168, 67, 0.18) 38%, transparent 72%);
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
  animation: introVideoGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes introVideoGlowPulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* ── Floating Controls Bar (Top-Right) ── */
.intro-controls-wrap {
  position: absolute;
  top: clamp(14px, 3vh, 32px);
  right: clamp(14px, 3vw, 36px);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 30;
}

.intro-control-btn {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: var(--font-body, 'Inter', -apple-system, sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: all 0.22s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
}

.intro-control-btn:hover {
  background: #A7253A;
  border-color: #D2909B;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(167, 37, 58, 0.45);
}

.intro-control-btn:active {
  transform: translateY(0);
}

.intro-control-btn i {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.intro-skip-btn:hover i {
  transform: translateX(2px);
}

.intro-sound-btn.is-unmuted {
  background: rgba(167, 37, 58, 0.85);
  border-color: rgba(210, 144, 155, 0.6);
}

.intro-pause-btn.is-paused {
  background: rgba(212, 175, 55, 0.9);
  border-color: rgba(255, 235, 150, 0.6);
  color: #0F172A;
}

/* ── Bottom Playback Progress Bar ── */
.intro-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 20;
}

.intro-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #A7253A 0%, #D4A843 100%);
  box-shadow: 0 0 10px rgba(212, 168, 67, 0.7);
  transition: width 0.1s linear;
}

/* ── Mobile Responsive Adjustments ── */
@media (max-width: 768px) {
  .intro-video-container {
    padding: 0.5rem;
    max-height: 94vh;
  }

  .intro-video {
    max-height: 82vh;
    border-radius: 4px;
  }

  .intro-controls-wrap {
    top: 14px;
    right: 12px;
    gap: 8px;
  }

  .intro-control-btn {
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  .intro-control-btn i {
    font-size: 0.84rem;
  }
}

@media (max-width: 420px) {
  .intro-control-btn span {
    font-size: 0.72rem;
  }
  .intro-control-btn {
    padding: 6px 10px;
    gap: 5px;
  }
}
