@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

@layer components {
  .btn-primary {
    @apply px-6 py-3 bg-gradient-to-r from-mv-accent to-mv-accent-dark text-mv-bg font-heading font-semibold rounded-xl hover:shadow-[0_0_30px_rgba(0,240,255,0.4)] transition-all duration-300 transform hover:-translate-y-0.5;
  }
  
  .btn-secondary {
    @apply px-6 py-3 bg-white/5 border border-white/10 text-white font-heading font-semibold rounded-xl hover:bg-white/10 hover:border-white/20 transition-all duration-300;
  }

  .glass-panel {
    @apply bg-white/5 backdrop-blur-xl border border-white/10 shadow-[0_8px_32px_0_rgba(0,0,0,0.3)];
  }
}

@layer utilities {
  .shadow-glow {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  }
  
  .animate-spin-slow {
    animation: spin 12s linear infinite;
  }
  
  .animate-spin-slow-reverse {
    animation: spin 15s linear infinite reverse;
  }

  .animate-marquee {
    animation: marquee 30s linear infinite;
  }

  @keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
  }
}

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

::-webkit-scrollbar-track {
  background: #070A12;
}

::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

/* Mega Menu Enhancement */
nav .group:hover > div {
    background-color: rgba(7, 10, 18, 0.98) !important;
    backdrop-filter: blur(40px) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
}

/* Mobile Menu Animation Classes */
.mobile-menu-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateY(0);
    opacity: 1;
}