@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  scroll-behavior: smooth;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Elegant custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.dark ::-webkit-scrollbar-track {
  background: #111110;
}

::-webkit-scrollbar-thumb {
  background: #ca9d1a;
  border-radius: 9999px;
  border: 2px solid transparent;
}

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

/* Custom visual accents */
.text-amber-glow {
  text-shadow: 0 0 20px rgba(202, 157, 26, 0.2);
}

/* Stretched custom background patterns */
.pattern-grid {
  background-size: 30px 30px;
  background-image: 
    linear-gradient(to right, rgba(202, 157, 26, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(202, 157, 26, 0.03) 1px, transparent 1px);
}

.dark .pattern-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Slow rotate for background accents */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 25s linear infinite;
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

/* Tab active and transitions */
.tab-slide-transition {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Form element custom focus */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #ca9d1a !important;
  box-shadow: 0 0 0 3px rgba(202, 157, 26, 0.15);
}

/* Direct styles for ranges to keep custom brand look */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #e7e2db;
  border-radius: 9999px;
}

.dark input[type="range"] {
  background: #2c2925;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ca9d1a;
  cursor: pointer;
  transition: all 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
