/* ==========================================================================
   QUANTUM TECH — PREMIUM VIDEO HERO (Polished Redesign)
   Keeps the same background video/poster, brand identity, content.
   Layout: 2-column on desktop, left text (55%), right (45%) for globe space.
   ============================================================================= */

:root {
  --qw-yellow: #F7C244;
  --qw-blue: #1E88F5;
  --qw-pink: #F0457A;
  --qw-navy-dark: #0B1A3B;
}

.qw-hero {
  position: relative;
  height: auto;
  min-height: 100vh;
  overflow: hidden;
  background-color: #0a2a6b;
  background-image: url('../images/hero-cyber-globe.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'Poppins', sans-serif;
  isolation: isolate;
}

.qw-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Left-to-right dark navy overlay: readable left, globe stays bright right */
.qw-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(5, 15, 45, 0.92) 0%,
      rgba(5, 15, 45, 0.70) 32%,
      rgba(5, 15, 45, 0.35) 55%,
      rgba(5, 15, 45, 0.18) 70%,
      rgba(5, 15, 45, 0.08) 85%,
      rgba(5, 15, 45, 0.02) 100%);
  pointer-events: none;
}

/* Subtle blue radial glow behind the globe (right side) */
.qw-glow {
  position: absolute;
  right: -12vw;
  top: 50%;
  transform: translateY(-50%);
  width: 72vw;
  height: 72vw;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(30, 136, 245, 0.16) 0%, rgba(30, 136, 245, 0.08) 40%, rgba(30, 136, 245, 0.00) 70%);
  filter: blur(0.2px);
}

/* 2-column container */
.qw-inner {
  position: relative;
  z-index: 6;
  height: auto;
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 112px 24px 96px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.qw-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: center;
  width: 100%;
}

/* Left text block */
.qw-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #FFFFFF;
  animation: none;
}

.qw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #9FB4D9;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: qw-fade-up 0.6s ease-out both;
}

.qw-eyebrow-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--qw-yellow) 0%, var(--qw-blue) 50%, var(--qw-pink) 100%);
  border-radius: 999px;
}

/* Headline */
.qw-title {
  margin: 0 0 24px;
  color: #FFFFFF !important;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: none;
  text-shadow: 0 18px 60px rgba(5, 15, 45, 0.55), 0 2px 8px rgba(0, 0, 0, 0.25);
  animation: qw-fade-up 0.6s ease-out 0.08s both;
  word-break: break-word;
}

.qw-title-accent {
  color: #1E88F5;
  white-space: nowrap;
}

/* Lead */
.qw-lead {
  margin: 0 0 36px;
  max-width: 560px;
  color: #D6E0F5;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  animation: qw-fade-up 0.6s ease-out 0.16s both;
}

/* Buttons */
.qw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  animation: qw-fade-up 0.6s ease-out 0.24s both;
}

.qw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.qw-btn--primary {
  background: linear-gradient(135deg, var(--qw-blue) 0%, #3B6FD8 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(30, 136, 245, 0.28);
}

.qw-btn--secondary {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.40);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.qw-btn:hover,
.qw-btn:focus-visible {
  transform: translateY(-2px);
  color: #FFFFFF;
}

.qw-btn--primary:hover,
.qw-btn--primary:focus-visible {
  box-shadow: 0 16px 40px rgba(30, 136, 245, 0.42);
}

.qw-btn--secondary:hover,
.qw-btn--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.60);
}

.qw-btn:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

/* Checklist pills - glass */
.qw-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  animation: qw-fade-up 0.6s ease-out 0.32s both;
}

.qw-checks li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 4px 20px rgba(5, 15, 45, 0.25);
}

.qw-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(30, 136, 245, 0.22);
  color: #FFFFFF;
  font-size: 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* Social icons under checklist */
.qw-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  position: relative;
  left: 0;
  bottom: auto;
  animation: qw-fade-up 0.6s ease-out 0.40s both;
}

.qw-soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.qw-soc:hover,
.qw-soc:focus-visible {
  background: #1E88F5;
  transform: translateY(-2px);
  color: #FFFFFF;
}

.qw-soc:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

/* Right visual column - reserved for globe (background art does the visual) */
.qw-visual {
  position: relative;
  min-height: 320px;
  animation: qw-float 6s ease-in-out infinite;
}

/* Floating animation for visual */
@keyframes qw-float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* Fade up animation */
@keyframes qw-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tablet */
@media (max-width: 1024px) {
  .qw-inner {
    padding: 108px 20px 96px;
    min-height: 100vh;
    height: auto;
  }
  .qw-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
  }
  .qw-text {
    align-items: flex-start;
    text-align: left;
  }
  .qw-lead {
    max-width: 620px;
  }
  .qw-actions,
  .qw-checks {
    justify-content: flex-start;
  }
  .qw-social {
    justify-content: flex-start;
    margin-top: 32px;
  }
  .qw-visual {
    display: none;
  }
  .qw-overlay {
    background:
      linear-gradient(90deg,
        rgba(5, 15, 45, 0.92) 0%,
        rgba(5, 15, 45, 0.78) 40%,
        rgba(5, 15, 45, 0.58) 70%,
        rgba(5, 15, 45, 0.28) 100%);
  }
  .qw-glow {
    display: none;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .qw-hero {
    height: auto;
    min-height: 100vh;
  }
  .qw-inner {
    padding: 100px 16px 80px;
    height: auto;
    min-height: 100vh;
  }
  .qw-title {
    font-size: clamp(40px, 10vw, 48px);
  }
  .qw-lead {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .qw-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 24px;
  }
  .qw-btn {
    width: 100%;
  }
  .qw-checks {
    gap: 10px 12px;
    margin-bottom: 32px;
  }
  .qw-checks li {
    padding: 7px 12px;
    font-size: 12.5px;
  }
  .qw-eyebrow {
    font-size: 13px;
    letter-spacing: 0.28em;
  }
  .qw-eyebrow-line {
    width: 32px;
  }
  .qw-social {
    gap: 12px;
    margin-top: 32px;
    max-width: 100%;
    justify-content: flex-start;
  }
  .qw-soc {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Art crop for phones - keep globe visible */
@media (max-width: 991px) {
  .qw-hero {
    background-position: 78% center;
  }
  .qw-video {
    object-position: 78% center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .qw-video {
    display: none;
  }
  .qw-text > *,
  .qw-actions,
  .qw-checks,
  .qw-social,
  .qw-eyebrow,
  .qw-title,
  .qw-lead {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .qw-btn,
  .qw-soc {
    transition: none;
  }
  .qw-visual {
    animation: none;
  }
  .qw-glow {
    animation: none;
  }
}
