/* ===================================================
   Shape & Shadows 
   =================================================== */

/* Custom Selection Gradient */
::selection {
  background: rgba(217, 70, 239, 0.3);
  color: white;
}

/* Base Body Styles */
body {
  background-color: #030305;
  color: #ffffff;
  overflow-x: hidden;
}

/* Custom Text Mask for Hero Gradients */
.custom-text-shadow {
  filter: drop-shadow(0 0 15px rgba(217, 70, 239, 0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Soft Edge Fading for Scrollable Elements */
.mask-edges {
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

/* ===== Interactive Button Hover Effects ===== */
.group:hover .shadow-neon-fuchsia {
  box-shadow: 0 0 35px rgba(217, 70, 239, 0.8), 0 0 60px rgba(217, 70, 239, 0.4);
}

.group:hover .shadow-neon-blue {
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.8), 0 0 60px rgba(59, 130, 246, 0.4);
}

/* Subte Glow Around Nav */
nav {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* ===== Keyframe Animations ===== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes float-mid {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-24px);
  }
}

@keyframes float-slow {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

@keyframes pulse-slow {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-float {
  animation: float 6s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

.animate-float-mid {
  animation: float-mid 8s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

.animate-float-slow {
  animation: float-slow 12s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 5s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 8s ease-in-out infinite alternate;
}

.animate-fade-up {
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-ping {
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Custom utility for staggered fading */
.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #030305;
}

::-webkit-scrollbar-thumb {
  background: rgba(217, 70, 239, 0.3);
  border-radius: 10px;
  border: 2px solid #030305;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 70, 239, 0.6);
}

/* Fix CSS grid pattern overlap */
.bg-grid-pattern {
  -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
  mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
}

/* ===== Spotlight Hover Cards ===== */
.spotlight-card {
  position: relative;
  /* No overflow:hidden to allow existing glows to bleed,
       but pseudo-elements handles the boundaries via border-radius */
}

/* Base spotlight internal gradient */
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(800px circle at var(--local-mouse-x, 50%) var(--local-mouse-y, 50%),
      rgba(217, 70, 239, 0.08),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Spotlight vibrant border tracking */
.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 2px;
  /* Gradient border thickness */
  background: radial-gradient(600px circle at var(--local-mouse-x, 50%) var(--local-mouse-y, 50%),
      rgba(217, 70, 239, 0.4),
      rgba(59, 130, 246, 0.6),
      transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.spotlight-card:hover::after {
  opacity: 1;
}

.spotlight-card>*:not(.absolute) {
  position: relative;
  z-index: 10;
}