/* Pedro Roa - Design System & Custom CSS Styles */

@layer base {
  html {
    scroll-behavior: smooth;
    overflow-y: auto;
    overflow-x: hidden;
  }
  body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  main > :first-child {
    margin-top: 0 !important;
  }
  main > :last-child {
    margin-bottom: 0 !important;
  }
}

/* Custom mouse scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #131318;
}
::-webkit-scrollbar-thumb {
  background: #35343a;
  border-radius: 5px;
  border: 2px solid #131318;
}
::-webkit-scrollbar-thumb:hover {
  background: #b76dff;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.28;
    transform: scale(1.08);
  }
}

@keyframes floatSoft {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes scanLine {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.animate-float-soft {
  animation: floatSoft 4s ease-in-out infinite;
}

/* Card Hover Micro-Interactions */
.hover-card-lift {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(183, 109, 255, 0.18);
}

/* Active Nav State Highlight */
.nav-link-active {
  background-color: #2a292f !important;
  color: #ddb7ff !important;
  font-weight: 700 !important;
  border-radius: 0.5rem !important;
}

/* Glassmorphism utility */
.glass-panel {
  background: rgba(31, 31, 36, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
