/* Scroll World Hero Banner Styles */

.sw-container {
  position: relative;
  width: 100%;
  height: 680vh; /* Scroll length for 7 scenes */
  background: #020b16;
  overflow: visible;
}

.sw-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Background media layers and overlay */
.sw-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sw-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  will-change: opacity;
}

.sw-bg-img.active {
  opacity: 1;
}

/* Scrubbed Video Styles */
.sw-scrub-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
  pointer-events: none; /* Prevent browser hover overlays like Picture-in-Picture */
}

.sw-scrub-video.video-active {
  opacity: 1;
}

/* Futuristic digital grid overlay */
.sw-video-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
}

.sw-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 11, 22, 0.18) 0%, rgba(2, 11, 22, 0.35) 60%, rgba(2, 11, 22, 0.65) 100%);
  z-index: 3;
}

/* Atmosphere layer with glow and particles */
.sw-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.sw-sky-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(239, 49, 57, 0.08) 0%, rgba(2, 45, 98, 0) 70%);
  border-radius: 50%;
  top: 10%;
  right: 10%;
  filter: blur(60px);
}

/* Scroll progress bar */
.sw-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.sw-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #022d62 0%, #ef3139 100%);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* Copy Layer containing Cards */
.sw-copylayer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  perspective: 1200px;
}

.sw-copy-card {
  position: absolute;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  pointer-events: none;
  will-change: opacity, transform;
  transform-style: preserve-3d;
}

.sw-copy-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Typography styles inside card */
.sw-copy-title-main {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.sw-copy-desc-main {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 650px;
}

.sw-copy-card h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
}

.sw-copy-card h2 span {
  background: linear-gradient(135deg, #ffffff 40%, #ef3139 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sw-tag {
  background: rgba(239, 49, 57, 0.15);
  color: #ef3139;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(239, 49, 57, 0.2);
  display: inline-block;
  margin-bottom: 12px;
}

/* Route indicators / dots on right side */
.sw-route-nav {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sw-route-dot-item {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 0;
}

.sw-route-dot-item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-route-dot-item.is-active i {
  background: #ef3139;
  transform: scale(1.4);
  box-shadow: 0 0 14px rgba(239, 49, 57, 0.8);
}

.sw-route-dot-label {
  position: absolute;
  right: 24px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  pointer-events: none;
}

.sw-route-dot-item:hover .sw-route-dot-label,
.sw-route-dot-item.is-active .sw-route-dot-label {
  opacity: 1;
  transform: translateX(0);
}

.sw-route-dot-item.is-active .sw-route-dot-label {
  color: #ffffff;
}

/* Scroll down mouse indicator */
.sw-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sw-mouse {
  width: 22px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.sw-wheel {
  width: 4px;
  height: 8px;
  background: #ef3139;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  animation: swWheelScroll 1.6s infinite ease-in-out;
}

@keyframes swWheelScroll {
  0% { opacity: 0; top: 6px; }
  30% { opacity: 1; }
  100% { opacity: 0; top: 18px; }
}

/* Drifting particles in background - hidden per user request */
.sw-pt {
  display: none !important;
}

/* Mobile responsiveness */
@media (max-width: 860px) {
  .sw-container {
    height: 680vh !important; /* Keep pinning active on mobile */
    padding: 0 !important;
  }
  
  .sw-sticky {
    position: sticky !important;
    top: 0 !important;
    height: 100dvh !important;
  }
  
  .sw-video-wrap {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1;
  }

  .sw-copylayer {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    padding: 0 !important;
    z-index: 5;
  }

  .sw-copy-card {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -40%) !important;
    width: calc(100% - 40px) !important;
    max-width: 500px !important;
    opacity: 0 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center !important;
    margin: 0 !important;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .sw-copy-card.active {
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important;
  }

  .sw-route-nav,
  .sw-scroll-indicator {
    display: none !important;
  }

  .sw-copy-card h2 {
    font-size: 1.8rem !important;
  }

  .sw-copy-title-main {
    font-size: 2.1rem !important;
  }
}

/* Glassmorphism content card overlay styling - premium compact glass layout */
.sw-glass-card {
  background: rgba(2, 11, 22, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 4px solid #ef3139 !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
  padding: 30px 40px !important;
  border-radius: 16px !important;
  max-width: 640px;
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
  transform: translateZ(0);
  transition: transform 0.15s ease-out, background 0.3s ease;
  will-change: transform;
}

/* Float inner elements in 3D perspective space directly over the video */
.sw-glass-card > * {
  transform: translateZ(30px);
}

.sw-glass-card::before {
  display: none !important; /* Remove corner ticks since there is no card box */
}

@media (min-width: 768px) {
  .sw-glass-card {
    margin: 0;
  }
}

@media (max-width: 860px) {
  .sw-glass-card {
    padding: 24px 28px !important;
    background: rgba(2, 11, 22, 0.7) !important;
  }
}

/* Fix button hover text colors in glass cards */
.sw-glass-card .btn-primary.btn-round:hover {
  color: #ffffff !important;
}

.sw-glass-card .btn-white.btn-round:hover {
  color: #ffffff !important;
}
