.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: white;
  font-family: 'Inter', sans-serif;
  background: black;
}

/* Default video styles */
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Default for desktop */
  z-index: 0;
}

/* Desktop video visible by default */
.hero-video-desktop { display: block; }
.hero-video-mobile { display: none; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(10,35,70,0.62) 0%, rgba(8,30,80,0.22) 70%, transparent 95%);
  z-index: 1;
  pointer-events: none;
}


.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
}

.hero-text {
  margin-left: 8vw;
  max-width: 540px;
  flex: 1 1 520px;
  position: relative;
}

/* Soft radial glow behind text */
.hero-text::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 140%;
  background: radial-gradient(circle, rgba(0,150,255,0.18) 0%, transparent 70%);
  z-index: -1;
}

/* --- TYPOGRAPHY UPDATES START --- */

.hero-text h1 {
  /* Guideline: Section Title (Big H2) */
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: none;
  background: none;
  /* Animation styles (unchanged) */
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s ease forwards;
}

.hero-gradient {
  color: #fff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: inherit !important;
  animation: none !important;
}

.hero-subtitle {
  /* Guideline: Card Text / Body Copy */
  font-size: 0.97rem;
  font-weight: 400;
  line-height: 1.54;
  color: #b8e5f6;
  margin-bottom: 28px;
  text-shadow: none;
  letter-spacing: 0.01em;
  /* Animation styles (unchanged) */
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-btn {
  /* Guideline: Buttons / Labels */
  font-size: 0.9rem; /* Button made smaller */
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #009fff;
  border: 2px solid #009fff;
  border-radius: 2rem;
  background: transparent;
  display: inline-block;
  margin-top: 14px;
  padding: 10px 28px; /* Button made smaller */
  box-shadow: none; /* Removed default "outline" glow */
  text-shadow: none;
  transition: all 0.25s ease;
  outline: none;
  /* Animation styles (unchanged) */
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

/* --- TYPOGRAPHY UPDATES END --- */

.hero-btn:hover,
.hero-btn:focus {
  background: #012144;
  color: #fff;
  border-color: #fff;
  box-shadow: 0 8px 20px 0 rgba(0,180,255,0.13); /* Kept hover glow for feedback */
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  cursor: pointer;
  transition: filter 0.2s;
  animation: bounceY 2.1s infinite;
  filter: drop-shadow(0 0 12px #46cfff33);
}
.scroll-indicator:hover {
  filter: drop-shadow(0 0 22px #00b3ff) brightness(1.17);
}
@keyframes bounceY {
  0%,100% { transform: translateY(0);}
  50% { transform: translateY(8px);}
}
.scroll-indicator span {
  display: block;
  width: 13px;
  height: 35px;
  border: 2px solid rgba(255,255,255,0.89);
  border-radius: 18px;
  position: relative;
  box-shadow: 0 0 8px rgba(0,130,255,0.12);
  background: rgba(24,34,57,0.04);
}
.scroll-indicator span::before {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  background: #00b3ff;
  border-radius: 50%;
  animation: scrollDown 2.1s infinite;
}
@keyframes scrollDown {
  0% { top: 6px; opacity: 1; }
  100% { top: 17px; opacity: 0; }
}

/* Bottom radial glow */
.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(0,160,255,0.14), transparent 80%);
  z-index: 1;
}

/* Fadeout gradient into next section */
.hero-fadeout {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 120px;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    #001024 100%
  );
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  0% { transform: scale(1.05) translateX(0); }
  100% { transform: scale(1.1) translateX(-1%); }
}

/* ----------- Responsive ----------- */
/* Tablet (≤900px): keep desktop layout, shift text a bit left */
@media (max-width: 900px) {
  .hero-video {
    object-position: 70% center;
    transform: scale(1.05);
    animation: heroZoom 10s ease-in-out infinite alternate;
  }

  .hero-text {
    margin-left: 5vw;
    max-width: 480px;
  }

  /* Typography on tablet will be handled by the global clamp() functions now */
}

/* Mobile (≤500px): push text to bottom */
@media (max-width: 500px) {
  .hero-video-desktop { display: none; }
  .hero-video-mobile {
    display: block;
    object-position: center 85%;
  }

  .hero-content {
    flex-direction: column;
    justify-content: flex-start; /* ✅ Aligns content to the top */
    align-items: center;
    text-align: center;
    height: 100vh;
    padding: 15vh 4vw 0; /* ✅ Pushes content down from the top (made it higher) */
    box-sizing: border-box;
  }

  .hero-text {
    margin: 0 auto;
    max-width: 90vw;
    flex: none; /* Resets the inherited flex property */
  }

  /* ✅ START: Mobile-specific typography adjustments */
  .hero-text h1 {
    font-size: clamp(1.8rem, 7vw, 2.2rem); /* Title made bigger */
    margin-bottom: 12px; /* Reduced gap */
  }

  .hero-subtitle {
    margin-bottom: 20px; /* Reduced gap */
  }
  /* ✅ END: Mobile-specific typography adjustments */
}
