/* ============================================================
   CINEMATIC SPLIT REVEAL PRELOADER
   Luxury Gold Branding & Royal Gateway Split Animation
   ============================================================ */

#cinematic-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: visibility 1.6s;
}

#cinematic-loader.hidden {
  display: none !important;
}

/* Split Panels (Royal Gateway) */
.loader-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  /* slight overlap to prevent seam artifacts */
  background: linear-gradient(rgba(75, 15, 23, 0.94), rgba(75, 15, 23, 0.94)), url('bg/hyderabadi_bg_theme.png') repeat;
  background-size: 700px auto;
  transition: transform 1.6s cubic-bezier(0.25, 1, 0.3, 1);
  z-index: 1;
}

.panel-left {
  left: 0;
  border-right: 1px solid rgba(201, 154, 59, 0.15);
  transform-origin: left center;
}

.panel-right {
  right: 0;
  border-left: 1px solid rgba(201, 154, 59, 0.15);
  transform-origin: right center;
}

/* Slide panels open when loaded */
#cinematic-loader.opening .panel-left {
  transform: translateX(-100%);
}

#cinematic-loader.opening .panel-right {
  transform: translateX(100%);
}

/* Brand Branding Content */
.loader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.3, 1), transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}

#cinematic-loader.opening .loader-content {
  opacity: 0;
  transform: scale(0.9);
}

/* Pulsing Gold Logo Container */
.loader-logo-ring {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo-img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  animation: none !important;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid rgba(201, 154, 59, 0.55);
  background: rgba(75, 15, 23, 0.7);
  /* Rich maroon transparent overlay */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  z-index: 2;
  position: relative;
}

/* Expanding gold rings */
.loader-ring-pulse {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--accent-header);
  border-radius: 50%;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.loader-ring-pulse--1 {
  animation: ringPulse1 2.4s ease-out infinite;
}

.loader-ring-pulse--2 {
  animation: ringPulse2 2.4s ease-out infinite;
  animation-delay: 1.2s;
}

@keyframes ringPulse1 {
  0% {
    transform: scale(1.0);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
    box-shadow: 0 0 25px rgba(242, 199, 92, 0.2);
  }
}

@keyframes ringPulse2 {
  0% {
    transform: scale(1.0);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
    box-shadow: 0 0 25px rgba(242, 199, 92, 0.2);
  }
}

/* Brand Text styles */
.loader-brand-title {
  font-family: "Unbounded", sans-serif;
  color: var(--accent-hero);
  /* Gold bright */
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.loader-brand-sub {
  font-family: 'Inter', sans-serif;
  color: var(--text-header);
  opacity: 0.65;
  font-size: 10px;
  letter-spacing: 7px;
  text-transform: uppercase;
  margin-top: -8px;
}

/* Progress bar inside content */
.loader-progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.loader-progress-bar {
  width: 140px;
  height: 2px;
  background: var(--maroon-dark);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-header), var(--accent-hero));
  border-radius: 2px;
  transition: width 0.15s ease-out;
}

/* --- cinematic unblur for hero video background --- */
.hero-video-bg {
  filter: blur(20px);
  transform: translate(-50%, -50%) scale(1.08) !important;
  transition: filter 1.6s cubic-bezier(0.25, 1, 0.3, 1), transform 1.6s cubic-bezier(0.25, 1, 0.3, 1) !important;
}

#cinematic-loader.opening~#hero .hero-video-bg {
  filter: blur(0);
  transform: translate(-50%, -50%) scale(1.0) !important;
}