/* ==========================================================================
   Premium Video Intro
   --------------------------------------------------------------------------
   Full-screen cinematic intro overlay shown once per browser session.
   Customize timings/colors via the CSS variables below.
   ========================================================================== */

:root {
  --intro-fade-duration: 700ms;      /* transition speed (600-800ms range) */
  --intro-overlay-color: rgba(0, 0, 0, 0.18); /* dark overlay tint on the video */
  --intro-bg: #000;
}

/* Prevent scroll + hide any flash of homepage content while intro is active */
body.intro-active {
  overflow: hidden;
  height: 100vh;
}

.intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: var(--intro-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* Smooth fade + subtle scale-up on exit */
  opacity: 1;
  transform: scale(1);
  transition:
    opacity var(--intro-fade-duration) ease,
    transform var(--intro-fade-duration) ease;
  will-change: opacity, transform;
}

/* Applied via JS right before removing the intro from view */
.intro--hidden {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.intro__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill screen on all breakpoints, cropping as needed */
  object-position: center;
}

/* Dark cinematic overlay so the "Skip Intro" text and any future intro copy
   stay legible and the intro feels premium/luxury. */
.intro__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.28) 0%, var(--intro-overlay-color) 45%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

/* Skip button — glassmorphism style, top-right corner */
.intro__skip {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 12px 22px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #fff;

  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);

  cursor: pointer;
  transition: background 250ms ease, transform 200ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.intro__skip:hover,
.intro__skip:focus-visible {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  outline: none;
}

.intro__skip:active {
  transform: translateY(0);
}

.intro__skip-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Responsive tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .intro__skip {
    top: 16px;
    right: 16px;
    padding: 10px 18px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .intro__skip {
    top: 12px;
    right: 12px;
    padding: 9px 16px;
    font-size: 12px;
  }
}

/* Respect users who prefer reduced motion: skip animation, just show/hide */
@media (prefers-reduced-motion: reduce) {
  .intro,
  .intro--hidden {
    transition: opacity 200ms linear;
    transform: none;
  }
}
