/* Custom Animations for Nirvana */

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Perspective utility for 3D effects */
.perspective-\[1500px\] {
  perspective: 1500px;
}

/* Orbital Animation - Logos rotate in a circle */
@keyframes orbit {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Glitch Effect Animations */
@keyframes glitch-1 {

  0%,
  100% {
    transform: translate(-2px, -2px);
    opacity: 0.8;
  }

  25% {
    transform: translate(-4px, -2px);
    opacity: 0.9;
  }

  50% {
    transform: translate(-2px, -4px);
    opacity: 0.7;
  }

  75% {
    transform: translate(-3px, -3px);
    opacity: 0.85;
  }
}

@keyframes glitch-2 {

  0%,
  100% {
    transform: translate(2px, 2px);
    opacity: 0.8;
  }

  25% {
    transform: translate(4px, 2px);
    opacity: 0.7;
  }

  50% {
    transform: translate(2px, 4px);
    opacity: 0.9;
  }

  75% {
    transform: translate(3px, 3px);
    opacity: 0.75;
  }
}

.animate-glitch-1 {
  animation: glitch-1 0.3s ease-in-out infinite;
}

.animate-glitch-2 {
  animation: glitch-2 0.4s ease-in-out infinite;
}

/* Gradient Shift Animation for Text */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient-shift {
  animation: gradient-shift 3s ease infinite;
}

/* Float Animation for Particles */
@keyframes float {

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

  25% {
    opacity: 0.6;
  }

  50% {
    transform: translateY(-15px) translateX(5px);
    opacity: 0.8;
  }

  75% {
    opacity: 0.5;
  }
}

/* Tailwind Extensions */
@layer utilities {
  .clip-path-slant {
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
  }

  .shadow-neon {
    text-shadow: 0 0 10px rgba(173, 255, 47, 0.3),
      0 0 20px rgba(173, 255, 47, 0.2),
      0 0 30px rgba(173, 255, 47, 0.1);
  }
}

/* Wave Reveal Animation for Sponsor Grid */
@keyframes wave-reveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

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

.animate-wave-reveal {
  animation: wave-reveal 0.6s ease-out;
}

/* Absolute Cursor Suppression */
@media (pointer: fine) {

  *,
  *::before,
  *::after,
  input,
  textarea,
  button,
  a,
  svg,
  i,
  span {
    cursor: none !important;
  }

  html,
  body {
    cursor: none !important;
  }

  ::selection {
    background-color: rgba(212, 175, 55, 0.3);
    color: inherit;
  }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: #D4AF37;
  /* Heritage Gold */
  clip-path: polygon(0% 0%, 100% 45%, 45% 45%, 45% 100%);
  pointer-events: none;
  z-index: 99999;
  transform-origin: 0 0;
  transition: transform 0.2s cubic-bezier(0.19, 1, 0.22, 1),
    background-color 0.2s ease,
    filter 0.3s ease;

  /* QUAD-DIRECTIONAL OUTLINE + WHITE BORDER: Max visibility on all backgrounds */
  filter: drop-shadow(0.7px 0.7px 0 #FFF) drop-shadow(-0.7px -0.7px 0 #FFF) drop-shadow(0.7px 0 0 #000) drop-shadow(-0.7px 0 0 #000) drop-shadow(0 0 8px rgba(212, 175, 55, 0.45));
}

/* Unified Glow */
.custom-cursor-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Trailer Ring */
.custom-cursor-trailer {
  position: fixed;
  width: 30px;
  height: 30px;
  background-color: rgba(212, 175, 55, 0.12);
  /* Solid fill */
  border: 1px solid rgba(212, 175, 55, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: top 0.1s cubic-bezier(0.19, 1, 0.22, 1),
    left 0.1s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.2s ease,
    width 0.2s ease,
    height 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
  will-change: top, left, transform;
  animation: trailer-pulse 2s infinite ease-in-out;
}

@keyframes trailer-pulse {

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

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.45;
  }
}

/* Hover States (Trailer Expands) */
.cursor-hover .custom-cursor-trailer {
  width: 50px;
  height: 50px;
  background-color: rgba(212, 175, 55, 0.25);
  border-color: rgba(250, 250, 250, 0.75);
  animation: none;
  /* Stop pulsing on hover for stability */
}

/* View Hover */
.cursor-view .custom-cursor-trailer {
  width: 44px;
  height: 44px;
  border-color: #D4AF37;
  border-width: 1.8px;
  background-color: transparent;
}

/* Click Animation (Shrink) */
.cursor-click .custom-cursor-trailer {
  width: 17px;
  height: 17px;
  border-color: rgba(212, 175, 55, 0.9);
}

/* Hover States (Solid & High Contrast) */
.cursor-hover .custom-cursor {
  transform: scale(1.25);
  background-color: #FAFAFA;
  /* White Arrow on hover */
  /* Keep the black outline for visibility on white-ish backgrounds */
  filter: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000) drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
}

.cursor-hover .custom-cursor-glow {
  opacity: 1;
}

/* View Hover (Badge style) */
.cursor-view .custom-cursor {
  transform: scale(1.3);
  background-color: #D4AF37;
  filter: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000) drop-shadow(0 0 12px rgba(212, 175, 55, 0.8));
}

.cursor-view .custom-cursor::after {
  content: 'VIEW';
  position: absolute;
  top: 100%;
  left: 100%;
  transform: translate(6px, 6px);
  background-color: #050505;
  color: #D4AF37;
  font-family: 'Syne', sans-serif;
  font-size: 8px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #D4AF37;
  letter-spacing: 1px;
  animation: badgeIn 0.2s ease-out forwards;
  white-space: nowrap;
}

@keyframes badgeIn {
  from {
    opacity: 0;
    transform: translate(12px, 12px);
  }

  to {
    opacity: 1;
    transform: translate(6px, 6px);
  }
}

/* Click Animation */
.cursor-click .custom-cursor {
  transform: scale(0.8);
  opacity: 0.8;
}

/* ===== Event Page Redesign Animations ===== */

/* 3D Card Tilt Effect */
@keyframes tilt-enter {
  from {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  }

  to {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  }
}

.card-3d-tilt {
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
}

/* Gradient Shimmer for Featured Events */
@keyframes gradient-shimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient-shimmer {
  background-size: 200% 200%;
  animation: gradient-shimmer 6s ease infinite;
}

/* Stagger Entrance Animation */
@keyframes fadeup-scale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

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

.animate-fadeup-scale {
  animation: fadeup-scale 0.6s ease-out forwards;
}

/* Magnetic Hover Effect */
.magnetic-card {
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.magnetic-card:hover {
  transform: translate(var(--magnetic-x, 0px), var(--magnetic-y, 0px)) scale(1.02);
}

/* Featured Event Ribbon */
@keyframes ribbon-slide {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

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

.featured-ribbon {
  animation: ribbon-slide 0.4s ease-out 0.2s forwards;
  opacity: 0;
}

/* Enhanced Card Glow */
@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
  }
}

.card-glow-hover:hover {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Filter Slide Indicator */
@keyframes slide-indicator {
  from {
    transform: translateX(var(--from-x, 0));
    width: var(--from-width, 0);
  }

  to {
    transform: translateX(var(--to-x, 0));
    width: var(--to-width, 100%);
  }
}

/* Parallax Image Shift */
.parallax-image {
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.parallax-image:hover {
  transform: scale(1.1) translate(var(--parallax-x, 0), var(--parallax-y, 0));
}

/* Card Elevation on Hover */
.card-elevate {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-elevate:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.5);
}

/* Ripple Click Effect */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.6);
  width: 20px;
  height: 20px;
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

/* Custom Scrollbar for Event Grid */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.5) rgba(255, 255, 255, 0.05);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.5);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.8);
}

/* --- branded loader animations --- */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-gentle {

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

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.animate-spin-slow {
  animation: spin-slow 8s linear infinite;
}

.animate-pulse-gentle {
  animation: pulse-gentle 3s ease-in-out infinite;
}

.animate-shimmer {
  animation: shimmer 2s linear infinite;
}