/* Extra styles and animations for the static build */

:root {
  --shadow-strong: 0 25px 80px rgba(0, 0, 0, 0.35);
}

body {
  background: radial-gradient(circle at 20% 20%, rgba(76, 29, 149, 0.04), transparent 30%),
    radial-gradient(circle at 80% 60%, rgba(236, 72, 153, 0.04), transparent 35%),
    linear-gradient(135deg, #0b1221 0%, #0b1324 35%, #0c1221 100%);
}

/* Smooth section reveal */
body.js-enabled .will-animate {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body.js-enabled .in-view {
  opacity: 1;
  transform: none;
}

body:not(.js-enabled) .will-animate {
  opacity: 1;
  transform: none;
}

/* Orbs in hero and other sections */
@keyframes floatOrbA {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(90px, 40px) scale(1.15);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes floatOrbB {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-90px, -50px) scale(1.2);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

.orb-a {
  animation: floatOrbA 15s ease-in-out infinite;
}

.orb-b {
  animation: floatOrbB 20s ease-in-out infinite;
}

/* Scroll indicator */
@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(12px);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.scroll-dot {
  animation: scrollDot 1.8s ease-in-out infinite;
}

/* Portfolio pattern motion */
@keyframes patternShift {
  0% {
    background-position: 0px 0px;
  }
  100% {
    background-position: 40px 40px;
  }
}

.pattern-animated:hover {
  animation: patternShift 2s linear infinite;
}

/* Nav solid state after scroll */
.nav-solid {
  background-color: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Card hover accents */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

/* Gradient border on hover */
.hover-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.hover-underline:hover::after {
  transform: scaleX(1);
}

/* Buttons */
.btn-gradient {
  background-image: linear-gradient(90deg, #8b5cf6, #ec4899);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 35px rgba(139, 92, 246, 0.25);
  opacity: 0.95;
}

.btn-gradient:active {
  transform: translateY(0);
  opacity: 1;
}

.backdrop-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(100, 116, 139, 0.35);
  backdrop-filter: blur(12px);
}

/* Utility */
.max-w-7xl {
  max-width: 80rem;
}

@media (prefers-reduced-motion: reduce) {
  .orb-a,
  .orb-b,
  .scroll-dot,
  .pattern-animated,
  .hover-lift {
    animation: none !important;
    transition: none !important;
  }

  .will-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}
