/* Modern Global Enhancements - 2026 Edition */

:root {
  /* Color System */
  --primary-blue: #2d2d62;
  --primary-blue-dark: #1f1f45;
  --accent-yellow: #f8cf40;
  --accent-gold: #ffd700;
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #777777;
  --bg-white: #ffffff;
  --bg-light: #f9f9f9;
  
  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.20);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection Color */
::selection {
  background-color: var(--accent-yellow);
  color: var(--primary-blue);
}

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

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-blue), var(--primary-blue-dark));
  border-radius: 6px;
  border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-yellow), var(--accent-gold));
}

/* Focus Visible */
*:focus-visible {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 3px;
}

/* Button Base Styles */
button {
  cursor: pointer;
  transition: all var(--transition-smooth);
}

/* Link Base Styles */
a {
  transition: all var(--transition-fast);
}

/* Image Optimization */
img {
  max-width: 100%;
  height: auto;
}

/* Utility: Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Utility: Glass Morphism */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Utility: Floating Animation */
.floating {
  animation: float 6s ease-in-out infinite;
}

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

/* Utility: Pulse Animation */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Utility: Slide In from Bottom */
.slide-in-bottom {
  animation: slideInBottom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility: Fade In */
.fade-in-slow {
  animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
