/* /var/www/relyn/static_src/css/hero.css */

/* project HERO SECTION */
.project-hero-section {
  width: 100%;
  display: flex;
  justify-content: center;

  /* ✅ EXACT: 21px from the top of the site (hero goes UNDER fixed navbar) */
  padding: 21px 24px 80px;

  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.project-hero-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.project-hero-video-wrap {
  position: relative;
  width: 100%;
  max-width: 1874px;
  height: 600px;
  border-radius: 30px;
  overflow: hidden;
  background: #000000;
}

.project-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.project-hero-overlay {
  position: absolute;
  left: 50%;
  top: 252px; /* ✅ 252px from top of hero section */
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px; /* ✅ 50px spacing between title and button */
  z-index: 2;
  width: 100%;
  padding: 0 20px;
}

.project-hero-title {
  width: auto;
  max-width: min(90vw, 1100px);
  margin: 0;

  /* ✅ Responsive size but always fits without auto wrapping */
  font-size: clamp(22px, 4vw, 56px);
  line-height: clamp(30px, 5vw, 75px);

  font-weight: 600; /* Semibold */
  color: #FFFFFF;
  text-align: center;

  /* ✅ CRITICAL: prevents 3rd line */
  white-space: nowrap;

  /* ✅ ensures the width hugs the text nicely while centered */
  display: inline-block;
}

/* ✅ Same glass language as navbar contact button */
.project-hero-cta {
  width: 175px;
  height: 45px;
  border-radius: 35px;
  border: 1px solid var(--glass-border, rgba(166, 151, 224, 0.85));
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 55%),
    linear-gradient(135deg, rgba(99,62,178,0.88), rgba(39,46,103,0.95));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--glass-shadow, 0 18px 45px rgba(5, 10, 22, 0.9));

  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;

  cursor: pointer;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    filter 0.16s ease-out;
}

.project-hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(5, 10, 22, 1);
  filter: brightness(1.03);
}

/* Responsive */
@media (max-width: 1024px) {
  .project-hero-section {
    padding: 21px 16px 64px;
  }

  .project-hero-video-wrap {
    height: 560px;
  }

  .project-hero-overlay {
    top: 220px;
  }
}

@media (max-width: 768px) {
  .project-hero-video-wrap {
    height: 520px;
  }

  .project-hero-overlay {
    top: 200px;
    gap: 40px;
  }

  .project-hero-cta {
    width: auto;
    padding: 0 22px;
  }
}

@media (max-width: 480px) {
  .project-hero-video-wrap {
    height: 480px;
  }

  .project-hero-overlay {
    top: 180px;
    gap: 32px;
  }

  .project-hero-cta {
    width: 100%;
    max-width: 320px;
  }
}
