/* REConnect Energy - Ultra-Smooth Luxury Page Transitions */

#rec-transition-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999999;
  pointer-events: none;
  overflow: hidden;
}

#rec-transition-overlay.active {
  pointer-events: all;
}

/* ==========================================================
   VARIANT 1: Dual Cascading Curtains (Up / Down)
   ========================================================== */
.rec-curtain-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.rec-curtain-layer.emerald {
  background: #10b981;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.7);
  z-index: 1;
}

.rec-curtain-layer.navy {
  background: #082e29;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================================================
   VARIANT 2: Split Horizontal Magnetic Gates
   ========================================================== */
.rec-split-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  height: 100%;
  background: #082e29;
  z-index: 2;
  will-change: transform;
}

.rec-split-door.left {
  left: 0;
  border-right: 1.5px solid rgba(16, 185, 129, 0.5);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
}

.rec-split-door.right {
  right: 0;
  border-left: 1.5px solid rgba(16, 185, 129, 0.5);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
}

.rec-split-center-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #10b981;
  box-shadow: 0 0 25px 6px #10b981, 0 0 50px 12px rgba(52, 211, 153, 0.6);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ==========================================================
   VARIANT 3: Diagonal Angle Blade Wipe
   ========================================================== */
.rec-diagonal-blade {
  position: absolute;
  top: -25vh;
  left: -25vw;
  width: 150vw;
  height: 150vh;
  background: #082e29;
  border-left: 3px solid #10b981;
  box-shadow: -25px 0 60px rgba(16, 185, 129, 0.65), 0 0 100px rgba(0, 0, 0, 0.9);
  transform: rotate(-8deg) translateX(-110%);
  z-index: 2;
  will-change: transform;
}

/* ==========================================================
   VARIANT 4: Radial Circular Portal
   ========================================================== */
.rec-portal-circle {
  position: absolute;
  width: 220px;
  height: 220px;
  top: 50%;
  left: 50%;
  margin-top: -110px;
  margin-left: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, #082e29 65%, #051a17 100%);
  border: 2px solid #10b981;
  box-shadow: 0 0 70px 10px rgba(16, 185, 129, 0.7), inset 0 0 30px rgba(16, 185, 129, 0.3);
  transform: scale(0);
  z-index: 2;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================
   VARIANT 5: Cinematic Frosted Veil
   ========================================================== */
.rec-frosted-veil {
  position: absolute;
  inset: 0;
  background: rgba(8, 46, 41, 0.96);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  opacity: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity;
}

/* ==========================================================
   Brand Logo & Animated Energy Indicator
   ========================================================== */
.rec-transition-brand {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.rec-transition-brand.show {
  opacity: 1;
  transform: scale(1);
}

.rec-transition-logo {
  height: 56px;
  width: auto;
  max-width: 270px;
  object-fit: contain;
  filter: brightness(1.25) drop-shadow(0 4px 25px rgba(16, 185, 129, 0.5));
  margin-bottom: 18px;
}

.rec-transition-loader-dot {
  display: flex;
  gap: 8px;
}

.rec-transition-loader-dot span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: recDotPulse 0.9s ease-in-out infinite alternate;
}

.rec-transition-loader-dot span:nth-child(2) {
  animation-delay: 0.22s;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
}

.rec-transition-loader-dot span:nth-child(3) {
  animation-delay: 0.44s;
  background: #6ee7b7;
  box-shadow: 0 0 12px #6ee7b7;
}

@keyframes recDotPulse {
  0% { transform: scale(0.75); opacity: 0.4; }
  100% { transform: scale(1.35); opacity: 1; }
}
