/* Import Modern Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* Color Variables & Base Reset */
:root {
  --royal-50: #eff6ff;
  --royal-100: #dbeafe;
  --royal-200: #bfdbfe;
  --royal-300: #93c5fd;
  --royal-400: #60a5fa;
  --royal-500: #2563eb;
  --royal-600: #1d4ed8;
  --royal-700: #1e40af;
  --royal-800: #1e3a8a;
  --royal-900: #172554;
  --royal-950: #0f172a;

  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  --bg-warm: #f8f7f4;
  --bg-card: #faf8f5;
  --bg-section: #f5f3ee;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-warm);
  color: #0f172a;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Typography Utility */
.font-display {
  font-family: 'Montserrat', sans-serif;
}
.font-serif {
  font-family: 'Playfair Display', serif;
}

/* Glassmorphism Classes */
.glass {
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Glow Effect */
.text-glow {
  text-shadow: 0 0 25px rgba(37, 99, 235, 0.3);
}

/* Custom Cursor Elements */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background-color: #2563eb;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, opacity 0.3s ease;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 256px;
  height: 256px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.2s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.3s ease;
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-glow {
    display: none !important;
  }
}

/* Keyframe Animations */
@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.animate-bounce-slow {
  animation: bounceSlow 2s infinite ease-in-out;
}

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

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

/* Modal Overlay Display Helper */
.modal-active {
  overflow: hidden !important;
}

.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Mobile Menu Transitions */
.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}
