/* ========================================
   SHARED SUBPAGE STYLES
   ======================================== */

/* Active Nav Link */
.nav-links .active-link {
  color: var(--accent-color) !important;
}

/* ---- Animated Keyframes ---- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(3deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes line-draw {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

/* ---- Page Hero — Cinematic ---- */
.page-hero {
  padding: 200px 0 100px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-main);
}

/* Animated gradient mesh background */
.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(0, 248, 207, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(84, 90, 197, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 60% 80%,
      rgba(43, 166, 202, 0.08) 0%,
      transparent 50%
    );
  animation: gradient-shift 8s ease infinite;
  background-size: 200% 200%;
  pointer-events: none;
}

/* Floating orb decorations */
.page-hero::after {
  content: "";
  position: absolute;
  top: 15%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 248, 207, 0.15), transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

/* Bottom gradient line separator */
.page-hero .container {
  position: relative;
}

.page-hero .container::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 2rem;
  height: 3px;
  width: 80px;
  background: var(--accent-gradient);
  border-radius: 2px;
  animation: line-draw 1s ease-out forwards;
}

.page-hero-title {
  font-size: clamp(3.5rem, 7vw, 6rem);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.page-hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.page-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---- Glowing Divider Line ---- */
.glow-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 248, 207, 0.3),
    rgba(84, 90, 197, 0.3),
    transparent
  );
  border: none;
  margin: 0;
}

/* ---- Subpage Responsive ---- */
@media (max-width: 1024px) {
  .page-hero::after {
    width: 200px;
    height: 200px;
    right: 5%;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 160px 0 80px 0;
  }
  .page-hero::after {
    display: none;
  }
  .page-hero-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 130px 0 60px 0;
  }
  .page-hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }
}
