/**
 * Volumetric Cloud Scroll Transition Styling
 * MaxCloud Theme - Commercial Grade Cinema Transition
 */

.cloud-transition-section {
  position: relative;
  width: 100%;
  height: 100vh; /* 1 viewport height sticky transition scroll zone */
  background-color: var(--color-background, #ffffff);
  overflow: hidden;
  z-index: 20;
  pointer-events: none; /* Allows scroll to pass cleanly */
}

.cloud-transition-sticky-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Base Cloud Layer Containers */
.cloud-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Layer 0: Volumetric Ambient Sky Backdrop */
.cloud-layer-sky {
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.95) 0%, rgba(219, 234, 254, 0.90) 50%, rgba(245, 243, 255, 0.85) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Layer 1: Deep Background SVG Vector Plumes */
.cloud-layer-deep {
  z-index: 2;
  transform: translateY(100%);
  opacity: 0.95;
}

.cloud-svg-shape {
  position: absolute;
  bottom: -20px;
  left: -5%;
  width: 110%;
  height: 65vh;
  filter: blur(10px);
}

/* Layer 2: Midground Volumetric Puff Masses */
.cloud-layer-mid {
  z-index: 3;
  transform: translateY(100%);
}

.cloud-puff {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #ffffff 0%, #e0f2fe 45%, #bae6fd 70%, rgba(186, 230, 253, 0) 90%);
  filter: blur(14px);
  box-shadow: inset 0 -30px 60px rgba(63, 198, 240, 0.25), 0 20px 50px rgba(26, 30, 77, 0.15);
  will-change: transform, opacity;
}

.cloud-puff-left {
  width: 750px;
  height: 550px;
  bottom: -150px;
  left: -200px;
}

.cloud-puff-right {
  width: 800px;
  height: 600px;
  bottom: -180px;
  right: -220px;
}

.cloud-puff-center-deep {
  width: 900px;
  height: 500px;
  bottom: -220px;
  left: 50%;
  transform: translateX(-50%);
}

/* Layer 3: Floating Brand Logo Reveal Stage (50-70% Scroll) */
.cloud-logo-stage {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  will-change: transform, opacity;
}

.cloud-logo-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Soft Volumetric Ambient Glow */
.cloud-logo-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 198, 240, 0.35) 0%, rgba(232, 87, 158, 0.20) 40%, rgba(255, 255, 255, 0) 70%);
  filter: blur(40px);
  animation: cloud-glow-pulse 3s infinite ease-in-out alternate;
}

@keyframes cloud-glow-pulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.08); opacity: 1.0; }
}

/* Commercial Logo Badge Box */
/* Wild Shooting Energy Arrows Container & Streak Lines */
.cloud-arrows-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.cloud-arrow-line {
  position: absolute;
  bottom: -200px;
  width: 4px;
  height: 140px;
  background: linear-gradient(180deg, #3FC6F0 0%, #E8579E 100%);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(63, 198, 240, 0.8), 0 0 35px rgba(232, 87, 158, 0.6);
  opacity: 0;
  will-change: transform, opacity;
}

/* Sharp Arrowhead Tip */
.cloud-arrow-line::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 12px solid #3FC6F0;
  filter: drop-shadow(0 0 8px #3FC6F0);
}

/* Glowing Energy Trail */
.cloud-arrow-line::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, rgba(232, 87, 158, 0.8) 0%, rgba(63, 198, 240, 0) 100%);
  filter: blur(2px);
}

/* Dispersal Cloud Shockwave Ring */
.cloud-dispersal-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(63, 198, 240, 0.7);
  box-shadow: 0 0 40px rgba(63, 198, 240, 0.6), inset 0 0 30px rgba(232, 87, 158, 0.4);
  opacity: 0;
  z-index: 9;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Logo Image Styling */
.cloud-logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(63, 198, 240, 0.45));
}

@media (min-width: 1024px) {
  .cloud-logo-img {
    height: 120px;
  }
}

.cloud-logo-badge {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(63, 198, 240, 0.4);
  padding: 1.25rem 3rem;
  border-radius: 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 
    0 25px 60px rgba(26, 30, 77, 0.15),
    0 0 40px rgba(63, 198, 240, 0.3);
  animation: cloud-logo-float 4s infinite ease-in-out;
}

@keyframes cloud-logo-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.cloud-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(63, 198, 240, 0.4));
}

.cloud-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cloud-brand-name {
  font-family: var(--font-heading, system-ui, -apple-system, sans-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #1A1E4D;
  text-transform: uppercase;
  line-height: 1;
}

.cloud-brand-highlight {
  background: linear-gradient(180deg, #3FC6F0 0%, #E8579E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cloud-brand-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

/* Layer 4: Foreground Plumes (Covering stage & parting left/right) */
.cloud-layer-fore {
  z-index: 15;
  transform: translateY(100%);
}

.cloud-puff-fore-left {
  width: 950px;
  height: 650px;
  bottom: -200px;
  left: -250px;
  filter: blur(16px);
  background: radial-gradient(circle at 45% 45%, #ffffff 0%, #e0f2fe 50%, #bae6fd 75%, rgba(186, 230, 253, 0) 95%);
  box-shadow: inset 0 -25px 50px rgba(232, 87, 158, 0.2), 0 25px 60px rgba(26, 30, 77, 0.12);
}

.cloud-puff-fore-right {
  width: 1000px;
  height: 700px;
  bottom: -220px;
  right: -280px;
  filter: blur(16px);
  background: radial-gradient(circle at 45% 45%, #ffffff 0%, #e0f2fe 50%, #bae6fd 75%, rgba(186, 230, 253, 0) 95%);
  box-shadow: inset 0 -25px 50px rgba(232, 87, 158, 0.2), 0 25px 60px rgba(26, 30, 77, 0.12);
}

.cloud-puff-fore-bottom {
  width: 1200px;
  height: 550px;
  bottom: -250px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(18px);
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #e0f2fe 55%, #bae6fd 80%, rgba(186, 230, 253, 0) 95%);
  box-shadow: inset 0 -30px 60px rgba(63, 198, 240, 0.25), 0 30px 70px rgba(26, 30, 77, 0.15);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .cloud-logo-badge {
    padding: 1rem 1.5rem;
    gap: 0.85rem;
    border-radius: 18px;
  }

  .cloud-logo-icon svg {
    width: 36px;
    height: 36px;
  }

  .cloud-puff-fore-left,
  .cloud-puff-fore-right {
    width: 600px;
    height: 450px;
  }
}

/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
  .cloud-layer,
  .cloud-logo-stage {
    transition: none !important;
    transform: none !important;
  }
  .cloud-logo-glow,
  .cloud-logo-badge {
    animation: none !important;
  }
}
