/* =========================================================
   HERO VIDEO COMPONENT
   ========================================================= */

.hero {
  width: 90%;
  max-width: 1280px;
  margin: 100px auto 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 32px;
  background-color: #050505;
  aspect-ratio: 16 / 9;
  min-height: 480px;
}

.hero-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 round 32px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translateZ(0);
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  -webkit-transform: translate(-50%, -50%) translateZ(0);
  opacity: 0;
  transition: opacity 0.65s ease-in-out;
}

.hero.is-loaded .hero-video {
  opacity: 1;
}

.slide-content {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  max-width: 560px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide-content .btn-gold {
  margin: 0 auto;
}

/* =========================================================
   SLOW NON-OVERLAPPING SPOT-SEQUENCE INTRO ANIMATION
   ========================================================= */
.hero-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 5%;
  color: #fff;
  background: #050505;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  isolation: isolate;
  transition: opacity .75s ease, visibility .75s ease;
}

.intro-blackout { position: absolute; inset: 0; background: #050505; z-index: -1; }

.intro-sequence-container {
  position: absolute;
  z-index: 2;
  width: 90%;
  max-width: 950px;
  text-align: center;
  display: grid;
  place-items: center;
}

.seq-item {
  grid-area: 1 / 1;
  opacity: 0;
  font-family: var(--font-display, Arial, sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -.03em;
  transform: scale(0.96);
  animation-duration: 18s; /* Slower, unhurried overall loop cycle */
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-iteration-count: infinite;
  animation-name: slowNonOverlapSeq;
}

/* 1. THE BOTTOM LINE */
.seq-title {
  font-size: clamp(38px, 8.5vw, 120px);
  color: #ffffff;
  animation-delay: 0s;
}

/* 2. GOA'S PREMIER EVENT COMPANY FOR */
.seq-subtitle {
  font-size: clamp(15px, 2.3vw, 30px);
  color: var(--gold, #D99A00);
  letter-spacing: .12em;
  animation-delay: 2s;
}

/* Categories appearing strictly one by one in exact same spot with zero overlap */
.seq-cat {
  font-size: clamp(30px, 7vw, 98px);
  color: #ffffff;
}

.intro-sequence-container .seq-item:nth-child(3) { animation-delay: 4s; }  /* CORPORATE */
.intro-sequence-container .seq-item:nth-child(4) { animation-delay: 6s; }  /* WEDDINGS */
.intro-sequence-container .seq-item:nth-child(5) { animation-delay: 8s; }  /* CONCERTS */
.intro-sequence-container .seq-item:nth-child(6) { animation-delay: 10s; } /* AWARD SHOWS */
.intro-sequence-container .seq-item:nth-child(7) { animation-delay: 12s; } /* GALA DINNERS */
.intro-sequence-container .seq-item:nth-child(8) { animation-delay: 14s; } /* THEATRE */
.intro-sequence-container .seq-item:nth-child(9) { animation-delay: 16s; } /* FILM PREMIERES */

/* Strict non-overlapping percentage keyframes for an 18s loop */
@keyframes slowNonOverlapSeq {
  0%   { opacity: 0; transform: scale(0.96) translateY(8px); filter: blur(6px); pointer-events: none; }
  1%   { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); pointer-events: auto; }
  9%   { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); pointer-events: auto; }
  11%  { opacity: 0; transform: scale(1.04) translateY(-8px); filter: blur(6px); pointer-events: none; }
  100% { opacity: 0; transform: scale(0.96) translateY(8px); filter: blur(6px); pointer-events: none; }
}

.intro-sweep {
  position: absolute;
  z-index: 4;
  inset: -5%;
  width: 110%;
  height: 110%;
  overflow: visible;
  opacity: 0;
  transform: rotate(-7deg) scale(.9);
}

.intro-sweep-path {
  fill: none;
  stroke: var(--gold, #D99A00);
  stroke-width: 118;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
}

/* Golden Branding Color Wipe Out Effect */
.intro-goldenout {
  position: absolute;
  z-index: 5;
  inset: 0;
  background: var(--gold, #D99A00);
  clip-path: circle(0% at 50% 50%);
}

.intro-final {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  color: #050505;
  text-align: center;
  opacity: 0;
  padding: 5%;
}

.intro-final strong {
  font-family: var(--font-display, Arial, sans-serif);
  font-size: clamp(30px, 7.2vw, 108px);
  line-height: .95;
  letter-spacing: -.065em;
  font-weight: 800;
  white-space: nowrap;
  transform: scaleY(1);
}

.intro-final-kicker, .intro-final-sub {
  font-family: var(--font-body, Arial, sans-serif);
  font-size: clamp(8px, .85vw, 12px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.intro-final-sub { font-size: clamp(7px, .75vw, 11px); letter-spacing: .15em; }
.intro-final-sub i { font-style: normal; padding: 0 .35em; }

/* When finishing, pause sequence loop and trigger golden wipe */
.hero-loader.is-finishing .seq-item { animation-play-state: paused; opacity: 0; }
.hero-loader.is-finishing .intro-sweep { opacity: 1; animation: introSweepIn 0.9s cubic-bezier(.7,0,.2,1) both; }
.hero-loader.is-finishing .intro-sweep-path { animation: introPathDraw 0.9s cubic-bezier(.7,0,.2,1) both; }
.hero-loader.is-finishing .intro-goldenout { animation: introGoldenoutAnim 1s 0.35s cubic-bezier(.7,0,.2,1) both; }
.hero-loader.is-finishing .intro-final { animation: introFinalReveal .7s 0.9s ease both; }
.hero-loader.is-finishing .intro-final strong { animation: introFinalSettle .7s 0.9s cubic-bezier(.2,.8,.2,1) both; }

.hero.is-loaded .hero-loader { opacity: 0; visibility: hidden; }
.hero.is-loading .hero-controls { opacity: 0; visibility: hidden; }

@keyframes introSweepIn { from { opacity: 0; transform: rotate(-7deg) scale(.9); } to { opacity: 1; transform: rotate(-7deg) scale(1.08); } }
@keyframes introPathDraw { to { stroke-dashoffset: 0; } }
@keyframes introGoldenoutAnim { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(150% at 50% 50%); } }
@keyframes introFinalReveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes introFinalSettle { 0% { transform: scaleY(.12); filter: blur(5px); } 65% { transform: scaleY(1.08); filter: blur(0); } 100% { transform: scaleY(1); } }

/* =========================================================
   INTEGRATED MARQUEE TICKER STYLES
   ========================================================= */
.hero-marquee-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  padding: 12px 0;
  overflow: hidden;
  z-index: 5;
  border-top: 1px solid rgba(217, 154, 0, 0.35);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.hero-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.hero-marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 1.35rem;
  letter-spacing: 1.2px;
  white-space: nowrap;
  text-transform: uppercase;
}

.mq-black {
  color: #111111;
  font-weight: 900;
}

.mq-divider {
  color: var(--gold, #D99A00);
  font-size: 1rem;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 768px) {
  .hero {
    margin-top: 70px !important;
    width: 100%;
    border-radius: 0;
    height: 65vh;
    min-height: 360px;
    aspect-ratio: unset;
  }

  .hero-slides {
    clip-path: none;
  }

  .hero-video {
    object-fit: cover;
    background-color: #050505;
  }

  .hero-loader { padding: 6%; }
  .seq-title { font-size: clamp(30px, 8vw, 52px); }
  .seq-subtitle { font-size: clamp(11px, 1.8vw, 16px); }
  .seq-cat { font-size: clamp(26px, 7vw, 45px); }
  .intro-sweep-path { stroke-width: 145; }
  .intro-final strong { font-size: clamp(27px, 8.5vw, 62px); }

  .slide-content {
    bottom: 50px;
  }

  .slide-content .btn-gold {
    padding: 8px 18px;
    font-size: 0.75rem;
  }

  .hero-controls {
    bottom: 20px;
  }

  .hero-marquee-container {
    padding: 8px 0;
  }

  .marquee-item {
    font-size: 1.05rem;
    gap: 16px;
    padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seq-item, .intro-sweep, .intro-sweep-path, .intro-goldenout, 
  .intro-final, .intro-final strong { animation-duration: .01ms !important; animation-delay: 0ms !important; }
  .hero-loader, .hero-slide { transition-duration: .01ms !important; }
}