.hero {
  position: relative;
  height: auto;        /* let it grow with content */
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* hides anything outside bounds */
  background-color: #000; /* fallback color */
  padding-top: 130px;
}

.hero-main{
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}


/* Transparent gradient image */
.hero-overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2; /* sits above video */
  pointer-events: none; /* ensures it doesn’t block clicks */
}

/* Keep your hero content above video and overlay */
.hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.hero-container {
  max-width: 1140px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-badge {
  width: 200px;
  height: 30px;
  border-radius: 16px;
  background: linear-gradient(90deg, #FF5900 0%, #0000, #134B9D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-hero-badge {
  width: 198px;
  height: 28px;
  background: black;
  border-radius: 16px;
  /* optional: gives inner smooth edges */
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-hero-badge p {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.hero-title {
  font-size: 88px;
  font-weight: 400;
  color: white;
  line-height: 1.1;
  margin: 0 0 30px 0;
  text-align: left;
}

.hero-description {
  font-size: 19px;
  color: white;
  line-height: 1.6;
  margin: 0 0 50px 0;
  max-width: 600px;
  text-align: left;
}

.btn {
  width: 177px;
  height: 50px;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(90deg, linear-gradient(90deg, #FF5900 0%, #0000, #134B9D 100%));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(222, 116, 21, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid;
  border-image: linear-gradient(90deg, linear-gradient(90deg, #FF5900 0%, #0000, #134B9D 100%)) 1;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-btn {
  position: relative;
  width: 178px;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(164deg, #ff7e00 0%, #0000, #134B9D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
  /* allow glow to extend outside */
}

/* ✨ Outer top glow */
.hero-btn::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 100%;
  height: 27px;
  background: linear-gradient(270deg, rgb(255 0 0 / 0%) 0%, rgb(255 104 0) 50%, rgb(255 179 0 / 5%) 100%);
  filter: blur(6px);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
}

/* glowing pulse animation */
@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.9;
    filter: blur(6px);
  }

  50% {
    opacity: 0.5;
    filter: blur(8px);
  }
}

.inner-hero-btn {
  width: 176px;
  height: 48px;
  background: black;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  /* stay below glow */
  background: linear-gradient(5deg, #000000, #00000096);
}

.inner-hero-btn p {
  font-size: 16px;
  font-weight: bold;
  color: white;
  margin: 0;
}


.view-btn {
  position: relative;
  width: 178px;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: #ffffff50;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
  /* allow glow to extend outside */
}

.inner-view-btn {
  width: 176px;
  height: 48px;
  background: black;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  /* stay below glow */
}

.inner-view-btn p {
  font-size: 16px;
  font-weight: bold;
  color: white;
  margin: 0;
}

/* === Hero Animation Styles === */
.hero-animation {
  position: absolute;
  right: -10%;
  /* adjust as needed */
  bottom: 30%;
  /* adjust as needed */
  width: 50%;
  /* adjust as needed */
  max-width: 700px;
  z-index: 1;
  pointer-events: none;
  transform: translateY(10%);
  overflow: visible;
}

/* 🌀 Make the image spin continuously */
.hero-animation img {
  width: 100%;
  height: auto;
  display: block;
  animation: spin 25s linear infinite;
  /* 👈 controls speed & smoothness */
}

/* ✨ Define the spin keyframes */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ✅ Keep the hero container from extending */
.hero {
  overflow: hidden;
}

/* Mobile Responsive Styles */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 72px;
  }

  .hero-animation {
    right: -15%;
    width: 55%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
    min-height: 80vh;
  }

  .hero-container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 52px;
    text-align: center;
    margin: 0 0 20px 0;
  }

  .hero-badge {
    width: 220px;
    height: 55px;
    margin: 0 auto;
  }

  .inner-hero-badge {
    width: 216px;
    height: 51px;
  }

  .inner-hero-badge p {
    font-size: 14px;
    font-weight: bold;
  }

  .hero-description {
    font-size: 17px;
    text-align: center;
    margin: 0 0 40px 0;
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
    gap: 15px;
  }

  .hero-animation {
    position: relative;
    right: auto;
    bottom: auto;
    width: 80%;
    max-width: 400px;
    margin: 30px auto 0;
    transform: translateY(0);
  }

  .hero-btn,
  .view-btn {
    width: 160px;
    height: 45px;
  }

  .inner-hero-btn,
  .inner-view-btn {
    width: 158px;
    height: 43px;
  }
}

@media (max-width: 480px) {
  .hero-animation {
    display: none;
  }

  .key-concepts {
    display: none;
  }

  .hero {
    background-image: url('../images/hero-bg-mobile.png');
    overflow: hidden;
    padding: 40px 0;
    min-height: 70vh;
  }

  .hero-container {
    padding: 0 10px;
  }

  .hero-title {
    margin-top: 30%;
    font-size: 40px;
  }

  .hero-badge {
    width: 340px;
    height: 28px;
    border-radius: 12px;
  }

  .inner-hero-badge {
    width: 338px;
    height: 26px;
    border-radius: 12px;
  }

  .inner-hero-badge p {
    font-size: 14px;
    font-weight: bold;
  }

  .hero-description {
    margin-top: 5%;
    margin-bottom: 5%;
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-buttons {
    margin-top: 10%;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-btn,
  .view-btn {
    width: 343px;
    height: 44px;
  }

  .inner-hero-btn,
  .inner-view-btn {
    width: calc(100% - 2px);
    height: 42px;
  }

  .inner-hero-btn p,
  .inner-view-btn p {
    font-size: 15px;
  }

  .hero-animation {
    width: 90%;
    max-width: 300px;
    margin: 20px auto 0;
  }

  .hero-animation img {
    animation: spin 30s linear infinite;
  }

  .btn {
    width: 100%;
    max-width: 200px;
    height: 44px;
  }
}