/* =========================================================
   homepage.css
   SecureLynx Homepage
   ========================================================= */

.hero {
  position: relative;
  min-height: 760px;
  padding: 100px 0 52px;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  background: linear-gradient(
    to bottom,
    rgba(3, 10, 18, 0) 0%,
    #030a12 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 4;
}

.hero-scene {
  position: fixed;
  top: 102px;
  left: 0;
  right: 0;
  height: 720px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 10, 18, 0.95) 0%, rgba(3, 10, 18, 0.82) 30%, rgba(3, 10, 18, 0.30) 62%, rgba(3, 10, 18, 0.18) 100%),
    linear-gradient(180deg, rgba(3, 10, 18, 0.52) 0%, rgba(3, 10, 18, 0.06) 42%, rgba(3, 10, 18, 0.80) 100%),
    url("../images/hero-home-threat-detection.png") center right / cover no-repeat;
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 73% 50%, rgba(57, 255, 20, 0.18), transparent 20%),
    radial-gradient(circle at 62% 52%, rgba(0, 230, 255, 0.13), transparent 18%),
    radial-gradient(circle at 18% 68%, rgba(57, 255, 20, 0.08), transparent 28%);
  mix-blend-mode: screen;
  opacity: 0.78;
  animation: heroEnergyPulse 5.8s ease-in-out infinite;
}

.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 10, 18, 0.82), transparent 55%),
    linear-gradient(180deg, rgba(3, 10, 18, 0.35), transparent 35%, rgba(3, 10, 18, 0.72));
}

.hero-fog {
  position: absolute;
  inset: auto -18% 2% -18%;
  height: 42%;
  background:
    radial-gradient(ellipse at 22% 60%, rgba(210, 255, 255, 0.12), transparent 38%),
    radial-gradient(ellipse at 76% 40%, rgba(57, 255, 20, 0.12), transparent 34%),
    radial-gradient(ellipse at 52% 70%, rgba(0, 230, 255, 0.10), transparent 36%);
  filter: blur(28px);
  opacity: 0.54;
  transform: translate3d(0, 0, 0);
  animation: heroFogDrift 18s ease-in-out infinite alternate;
}

.hero-fog-two {
  inset: 10% -22% auto -22%;
  height: 46%;
  opacity: 0.32;
  filter: blur(34px);
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}

.hero-eye-pulse {
  position: absolute;
  top: 47%;
  right: 28.5%;
  width: 190px;
  height: 58px;
  transform: translate(50%, -50%);
  background: radial-gradient(ellipse at center, rgba(0, 230, 255, 0.75), rgba(0, 230, 255, 0.16) 38%, transparent 70%);
  filter: blur(14px);
  mix-blend-mode: screen;
  opacity: 0.66;
  animation: heroEyesPulse 3.6s ease-in-out infinite;
}

.hero-grid {
  display: block;
  min-height: 575px;
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 700px;
  padding-top: 32px;
}

.hero-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  color: var(--green);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.18);
}

.hero-kicker::after {
  content: "";
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.hero-title {
  max-width: 740px;
  font-size: clamp(3.7rem, 6.2vw, 6.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.72);
}

.hero-title span {
  display: block;
  color: var(--green);
  text-shadow:
    0 0 24px rgba(57, 255, 20, 0.20),
    0 18px 52px rgba(0, 0, 0, 0.72);
}

.hero-rule {
  width: 138px;
  height: 4px;
  margin: 28px 0 30px;
  background: linear-gradient(90deg, var(--green), transparent);
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.32);
}

.hero-subtitle {
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.85;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.9);
}

.hero-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero-tagline span:nth-child(1) {
  color: var(--cyan);
}

.hero-tagline span:nth-child(2) {
  color: var(--green);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 38px;
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, #8bf344, var(--green));
  color: #061008;
  border-color: rgba(139, 243, 68, 0.72);
  box-shadow: 0 0 34px rgba(57, 255, 20, 0.26);
}

.scroll-cue {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-cue span {
  color: var(--green);
  font-size: 1.6rem;
}

.section {
  position: relative;
  z-index: 3;
  padding: 20px 0;
  background: #030a12;
}

.footer {
  position: relative;
  z-index: 4;
}

.section-heading {
  margin-bottom: 10px;
}

.section-heading h2 {
  max-width: 900px;
  margin-top: 12px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

@keyframes heroEnergyPulse {
  0%, 100% {
    opacity: 0.58;
    transform: scale(1);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.035);
  }
}

@keyframes heroFogDrift {
  0% {
    transform: translate3d(-4%, 2%, 0) scale(1.02);
  }
  100% {
    transform: translate3d(4%, -3%, 0) scale(1.08);
  }
}

@keyframes heroEyesPulse {
  0%, 100% {
    opacity: 0.42;
    transform: translate(50%, -50%) scale(0.92);
  }
  50% {
    opacity: 0.90;
    transform: translate(50%, -50%) scale(1.12);
  }
}

@media (max-width: 1180px) {
  .hero-scene {
    background-position: 66% center;
  }

  .hero-grid {
    min-height: 560px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 100px;
    min-height: 680px;
  }

  .hero-scene {
    background-position: 70% center;
  }

  .hero-scene::after {
    background: rgba(3, 10, 18, 0.68);
  }

  .hero-grid {
    min-height: 540px;
  }

  .hero-copy {
    padding-top: 24px;
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .hero-tagline {
    gap: 14px;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-eye-pulse {
    right: 31%;
    top: 46%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
