/* ==========================================================================
   Scan-Reveal Hero — shared style (matches about-us hero)
   Contained 1600px / 2:1, zoom-in slides, animated scan line + HUD frame.
   Loaded LAST so it wins over the old inline hero CSS and the redesign rules.
   ========================================================================== */

.pw-hero-carousel {
  position: relative !important;
  max-width: 1600px !important;
  width: 100% !important;
  margin: 0 auto !important;
  height: 560px !important;
  min-height: 0 !important;
  background-color: #050b16 !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;            /* override old inline padding:120px 20px 100px that pushed text down */
  overflow: hidden !important;
  border-bottom: 1px solid rgba(79, 195, 247, 0.15) !important;
}
@media (min-width: 1600px) {
  /* keep flex centering (align-items:center on the carousel) — do NOT switch the
     container to absolute, which previously dropped the text to the bottom */
  .pw-hero-carousel { height: 720px !important; aspect-ratio: auto !important; padding-bottom: 0 !important; }
}

/* Zoom slides */
.pw-slide {
  position: absolute !important; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover !important; background-position: center !important;
  opacity: 0; transform: scale(1); transition: opacity 2s ease-in-out; z-index: 1;
  display: block !important;
}
.pw-slide.active { opacity: 1; animation: heroZoomIn 8s ease-out forwards; }
@keyframes heroZoomIn { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }

/* Animated scan line */
.pw-scan-overlay { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.pw-scan-line {
  position: absolute; top: 0; left: 50%; width: 2px; height: 100%;
  background: linear-gradient(to bottom, transparent, #4FC3F7, #00E5FF, #4FC3F7, transparent);
  box-shadow: 0 0 20px rgba(79, 194, 247, 0.8), 0 0 40px rgba(0, 229, 255, 0.4);
  z-index: 10; transform: translateX(-50%); animation: scanHorizontalPulse 4s ease-in-out infinite;
}
.pw-scan-line::before {
  content: 'SCANNING...'; position: absolute; top: 20%; left: 10px; color: #4FC3F7;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; writing-mode: vertical-lr;
  text-shadow: 0 0 5px rgba(79, 195, 247, 0.8);
}
.pw-scan-line::after {
  content: ''; position: absolute; top: 0; left: 50%; width: 200px; height: 100%;
  background: linear-gradient(90deg, rgba(79, 195, 247, 0.1), transparent);
}
@keyframes scanHorizontalPulse { 0% { left: 50%; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* HUD frame + corners */
.pw-hud-frame { position: absolute; top: 30px; left: 30px; right: 30px; bottom: 30px; border: 1px solid rgba(79, 195, 247, 0.1); z-index: 6; pointer-events: none; }
.pw-corner { position: absolute; width: 40px; height: 40px; border-color: #4FC3F7; border-style: solid; opacity: 0.6; }
.pw-corner-tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; }
.pw-corner-tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; }
.pw-corner-bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; }
.pw-corner-br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; }

/* Content */
.pw-hero-carousel .hero-container { max-width: 1200px; margin: 0 auto; width: 100%; position: relative; z-index: 10; padding: 0 24px; }
.pw-hero-carousel .hero-content { max-width: 800px; text-align: left; }
.pw-hero-carousel .hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem) !important; font-weight: 800 !important; color: #FFFFFF !important;
  margin: 0 0 24px !important; letter-spacing: -0.02em !important; line-height: 1.3 !important;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}
.pw-hero-carousel .hero-title .highlight { color: #4FC3F7 !important; -webkit-text-fill-color: #4FC3F7 !important; }
.pw-hero-carousel .hero-description {
  font-size: clamp(1rem, 1.6vw, 1.15rem) !important; color: rgba(255,255,255,0.9) !important;
  line-height: 1.85 !important; margin: 0 0 28px !important; max-width: 680px; font-weight: 400 !important;
}
.pw-hero-carousel .hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #4FC3F7 !important; color: #04121f !important; font-weight: 800;
  padding: 15px 30px; border-radius: 10px; text-decoration: none;
  border: 1px solid #4FC3F7 !important; box-shadow: none !important;
  transition: transform .15s ease, background .15s ease;
}
.pw-hero-carousel .hero-cta:hover { background: #00E5FF !important; color: #04121f !important; transform: translateY(-2px); }

@media (max-width: 768px) {
  .pw-hero-carousel { height: 460px !important; }
}
