/* Shared CSS Overrides & Custom Animations for WPS Redesign */

/* Custom Typography & Spacing Variables */
:root {
  --font-display: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth Transitions */
*, *::before, *::after {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, transform, opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* Glassmorphism Styles */
.bg-glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark .bg-glass {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Custom Micro-Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

/* Fade-in Scroll Reveals */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms ease-out, transform 800ms ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Theme Support for Transitions */
.theme-transition {
  transition: background-color 0.5s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Form Styles */
.form-input-focus:focus {
  border-color: #2DD4BF !important;
  --tw-ring-color: #2DD4BF !important;
}

/* Custom patterns */
.bg-pattern {
  background-image: radial-gradient(#2DD4BF 0.5px, transparent 0.5px);
  background-size: 24px 24px;
}

/* Banner animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-out forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}
