/* ==========================================================================
   ALUK ALUMINIUM FABRICATION WORKS — CINEMATIC ANIMATIONS & 3D DOOR INTRO
   ========================================================================== */

/* --- 1. CINEMATIC VIDEO DOOR INTRO STYLES --- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.0s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.0s ease;
  will-change: opacity;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
}

.intro-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.intro-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* Subtle Architectural Brand Watermark during final reveal */
.intro-brand-watermark {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 20;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  text-align: center;
}

.intro-brand-watermark.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.intro-brand-watermark-inner {
  padding: 0.65rem 2rem;
  background: rgba(8, 10, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.watermark-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #ffffff;
  line-height: 1.1;
}

.watermark-sub {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Skip Intro Pill */
.intro-skip-btn {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 100;
  padding: 0.65rem 1.35rem;
  background: rgba(16, 18, 23, 0.75);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--metal-silver);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.intro-skip-btn:hover {
  background: #ffffff;
  color: var(--bg-dark);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .intro-overlay {
    display: none !important;
  }
}

/* Mobile Responsive Optimizations */
@media (max-width: 768px) {
  .intro-skip-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
  }
  .intro-brand-watermark {
    bottom: 2rem;
  }
  .intro-brand-watermark-inner {
    padding: 0.5rem 1.5rem;
  }
}

/* --- 2. SCROLL & VIEWPORT REVEAL UTILITIES --- */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal-fade-up.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal-scale-in.is-inview {
  opacity: 1;
  transform: scale(1);
}

.reveal-clip-up {
  clip-path: inset(100% 0% 0% 0%);
  transition: clip-path 1.1s var(--ease-out-expo);
}

.reveal-clip-up.is-inview {
  clip-path: inset(0% 0% 0% 0%);
}

/* Stagger Delay Helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Line Draw Animation for Accents */
.grow-line-vert {
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--accent-gold), transparent);
  transition: height 1s var(--ease-out-expo);
}

.grow-line-vert.is-inview {
  height: 100%;
}

/* --- 3. ACCESSIBILITY & PREFERS-REDUCED-MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .intro-overlay {
    display: none !important;
  }

  .reveal-fade-up,
  .reveal-scale-in,
  .reveal-clip-up {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }
}
