/* ================================================================
   PRAGBIS TECHNOLOGIES — HERO SECTION
   ================================================================ */

/* ── Hero Wrapper ───────────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--clr-bg);
}

/* ── Video Background ────────────────────────────────────────────── */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(3,2,10,0.55) 0%, rgba(3,2,10,0.70) 100%);
  z-index: 1;
}

/* ── Noise Texture Overlay ──────────────────────────────────────── */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  z-index: 2;
}

/* ── Bottom Gradient Fade ────────────────────────────────────────── */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--clr-bg));
  z-index: 2;
  pointer-events: none;
}

/* ── Content ────────────────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 var(--gutter);
  width: 100%;
  max-width: min(1000px, calc(100% - 2 * var(--gutter)));
  overflow: hidden;
}

/* ── Tag line above headline ─────────────────────────────────────── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: eyebrowIn 0.8s ease 0.3s forwards;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--clr-accent);
  opacity: 0.6;
}

@keyframes eyebrowIn {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(10px); }
}

/* ── Headline ────────────────────────────────────────────────────── */
.hero-headline {
  font-family: var(--ff-heading);
  /* Reduced sizing to prevent the headline from being visually cut on some viewports */
  /* slightly tighter sizing to avoid clipping on tall/zoomed viewports */
  font-size: clamp(30px, 4vw, 60px);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
  max-width: 100%;
  overflow: hidden;
}

.hero-headline .word {
  display: inline-block;
}

.hero-headline .word-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}

.hero-headline .accent-word {
  color: var(--clr-accent);
  position: relative;
}

/* Glow under accent word */
.hero-headline .accent-word::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--clr-accent);
  filter: blur(16px);
  opacity: 0.3;
  pointer-events: none;
}

/* ── Sub-headline ─────────────────────────────────────────────────── */
.hero-sub {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--clr-text);
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(20px);
  transition: none;
  margin-bottom: 44px;
}

/* ── CTA Buttons ─────────────────────────────────────────────────── */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

/* ── Scroll Indicator ────────────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: scrollIn 0.8s ease 2s forwards;
}

@keyframes scrollIn {
  to { opacity: 0.6; }
}

.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--clr-text);
}

.scroll-chevron {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--clr-accent);
  border-bottom: 2px solid var(--clr-accent);
  transform: rotate(45deg);
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-headline {
    letter-spacing: -0.5px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ── Mobile sticky bottom CTA ────────────────────────────────────── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(3, 2, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--clr-border);
  padding: 14px var(--gutter);
}

.mobile-cta-bar .btn-primary {
  width: 100%;
  justify-content: center;
  font-size: 15px;
}

@media (max-width: 768px) {
  .mobile-cta-bar { display: block; }
}
