/* Shared Styles for PulseForge */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0f1419;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

[data-menu-toggle] .icon-close {
  display: none;
}

[data-menu-toggle].is-open .icon-open {
  display: none;
}

[data-menu-toggle].is-open .icon-close {
  display: block;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 20, 25, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

main > section,
footer {
  padding-left: 1rem;
  padding-right: 1rem;
}

main > section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

main > section > div,
footer > div {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

figure {
  margin: 0;
}

[data-hero-text] {
  animation: heroTextIn 0.8s ease-out both;
}

[data-hero-media] {
  animation: heroMediaIn 0.9s ease-out 0.12s both;
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroMediaIn {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-hero-text],
  [data-hero-media] {
    animation: none;
  }

  main > section:not(:first-of-type) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

main > section:not(:first-of-type) {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

main > section:not(:first-of-type).is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-hero-green-button] [data-hero-arrow] {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-0.35rem);
  transition: max-width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

[data-hero-green-button]:hover [data-hero-arrow],
[data-hero-green-button]:focus-visible [data-hero-arrow] {
  max-width: 1rem;
  opacity: 1;
  transform: translateX(0);
}

[data-arrow-link] span[aria-hidden="true"] {
  display: inline-block;
  transition: transform 0.25s ease;
}

[data-arrow-link]:hover span[aria-hidden="true"],
[data-arrow-link]:focus-visible span[aria-hidden="true"] {
  transform: translateX(0.35rem);
}

#mobileMenu.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  #mobileMenu {
    display: flex !important;
  }

  main > section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}
