/* Design Tokens */
:root {
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9fafb; /* gray-50 */
  --color-text-primary: #111827; /* gray-900 */
  --color-text-secondary: #4b5563; /* gray-600 */
  --color-accent-primary: #0284c7; /* sky-600 */
  --color-accent-hover: #0369a1; /* sky-700 */
  --color-accent-success: #8DC641; /* green-600 */
  --color-border-subtle: #e5e7eb; /* gray-200 */

  --radius-base: 12px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  
  --font-family-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-family-header: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family-body);
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-header);
}

/* Accessibility: Visible Focus Styles */
:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 4px;
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* New Premium Animations */

/* 1. Animated Gradient Text */
@keyframes gradientX {
  0%, 100% {
    background-size: 200% 200%;
    background-position: left center;
  }
  50% {
    background-size: 200% 200%;
    background-position: right center;
  }
}

.animate-gradient-text {
  animation: gradientX 3s ease infinite;
}

/* 2. Floating Element (Gentle Hover) */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

/* 3. Moving Background Grid */
.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

.animate-grid-move {
  animation: gridMove 3s linear infinite;
}

/* Utility Classes using Tokens */
.bg-token-primary { background-color: var(--color-bg-primary); }
.bg-token-secondary { background-color: var(--color-bg-secondary); }
.text-token-primary { color: var(--color-text-primary); }
.text-token-secondary { color: var(--color-text-secondary); }
.text-token-accent { color: var(--color-accent-primary); }

.btn-primary {
  background-color: var(--color-accent-primary);
  color: #ffffff;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent-primary);
  border: 1px solid var(--color-accent-primary);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #eff6ff; /* blue-50 */
}

.card-shadow {
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-base);
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Scrollbar Styling (Optional but nice) */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1; /* gray-300 */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8; /* gray-400 */
}
