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

/* Custom Glassmorphism Effects */
.glass-light {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(31, 41, 55, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark mode specific styles */
.dark .glass-light {
  background: rgba(31, 41, 55, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero section animated background */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-gradient {
  background: linear-gradient(-45deg, #3b82f6, #60a5fa, #8b5cf6, #ec4899);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* Custom utility classes */
.btn-primary {
  @apply bg-primary-light text-white px-6 py-3 rounded-lg hover:bg-blue-700 transition-all duration-300 font-medium shadow-md hover:shadow-lg;
}

.btn-secondary {
  @apply border-2 border-primary-light text-primary-light px-6 py-3 rounded-lg hover:bg-primary-light hover:text-white transition-all duration-300 font-medium;
}

/* Dark mode overrides */
.dark .btn-primary {
  @apply bg-primary-dark;
}

.dark .btn-secondary {
  @apply border-primary-dark text-primary-dark;
}

.dark .btn-secondary:hover {
  @apply bg-primary-dark;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mobile-menu {
    @apply block;
  }
  
  .hidden-mobile {
    @apply hidden;
  }
  
  .hero-text {
    @apply text-center;
  }
}

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

::-webkit-scrollbar-track {
  @apply bg-gray-100 dark:bg-gray-800;
}

::-webkit-scrollbar-thumb {
  @apply bg-blue-500 dark:bg-blue-600 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
  @apply bg-blue-600 dark:bg-blue-700;
}