/* ==========================================================================
   PHOSPHORS DESIGN SYSTEM
   Awwwards-worthy dark theme with liminal, surrealist aesthetics
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Dark Liminal Palette */
  --bg-primary: #030305;
  --bg-secondary: #080810;
  --bg-tertiary: #0c0c14;
  --bg-card: rgba(255, 255, 255, 0.015);
  --bg-card-hover: rgba(255, 255, 255, 0.035);
  
  /* Text */
  --text-primary: #f5f5f7;
  --text-secondary: #a0a0a8;
  --text-muted: #606068;
  --text-dim: #404048;
  
  /* Accent - Phosphorescent Purple */
  --accent: #b88cff;
  --accent-rgb: 184, 140, 255;
  --accent-light: #d4b8ff;
  --accent-dark: #8a5cd6;
  --accent-glow: rgba(184, 140, 255, 0.4);
  --accent-subtle: rgba(184, 140, 255, 0.08);
  
  /* Secondary Accents */
  --cyan: #6ee7e7;
  --cyan-rgb: 110, 231, 231;
  --teal: #4dd4ac;
  --teal-rgb: 77, 212, 172;
  --rose: #ff6b9d;
  --rose-rgb: 255, 107, 157;
  
  /* Semantic */
  --success: #4dd4ac;
  --warning: #ffd666;
  --error: #ff6b6b;
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(184, 140, 255, 0.3);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(184, 140, 255, 0.15);
  --shadow-glow-lg: 0 0 120px rgba(184, 140, 255, 0.2);
  
  /* Typography */
  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-body: 'Chakra Petch', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  
  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-xl: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-3xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-4xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-5xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --text-6xl: clamp(3rem, 2rem + 5vw, 6rem);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;
  
  /* Z-Index */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-cursor: 500;
  --z-toast: 600;
}

/* --------------------------------------------------------------------------
   BASE RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Remove cursor on desktop for custom cursor */
@media (hover: hover) and (pointer: fine) {
  body, a, button, [role="button"], input, select, textarea {
    cursor: none !important;
  }
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--cyan) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-subtle {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Label/Tag styling */
.label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-sm);
}

.label--success {
  color: var(--success);
  background: rgba(77, 212, 172, 0.1);
  border-color: rgba(77, 212, 172, 0.3);
}

/* --------------------------------------------------------------------------
   LINKS & BUTTONS
   -------------------------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
}

a:hover {
  color: var(--accent-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.btn:hover::before {
  opacity: 1;
}

.btn--primary {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.25) 0%, rgba(var(--cyan-rgb), 0.15) 100%);
  border-color: rgba(var(--accent-rgb), 0.3);
  color: var(--text-primary);
}

.btn--primary:hover {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.35) 0%, rgba(var(--cyan-rgb), 0.25) 100%);
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--secondary {
  background: transparent;
  border-color: var(--border-default);
  color: var(--text-secondary);
}

.btn--secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-normal) var(--ease-out);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--duration-slow) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  pointer-events: none;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card:hover::before {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   CUSTOM CURSOR
   -------------------------------------------------------------------------- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  transition: transform 0.1s linear;
  mix-blend-mode: screen;
}

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.9);
  pointer-events: none;
  z-index: calc(var(--z-cursor) + 1);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.6), 0 0 40px rgba(var(--accent-rgb), 0.3);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-dot.hover {
  width: 40px;
  height: 40px;
  background: rgba(var(--accent-rgb), 0.2);
  mix-blend-mode: difference;
}

/* --------------------------------------------------------------------------
   LOADING STATES
   -------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.02) 60%,
    rgba(255, 255, 255, 0.02) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-default);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   PAGE TRANSITION
   -------------------------------------------------------------------------- */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.page-transition.active {
  opacity: 1;
  pointer-events: auto;
}

.page-transition .logo-glow {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(var(--accent-rgb), 0.5);
  animation: pulse 1s ease-in-out infinite;
}

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

/* --------------------------------------------------------------------------
   ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes glow {
  0%, 100% { opacity: 0.5; filter: blur(20px); }
  50% { opacity: 1; filter: blur(30px); }
}

/* Animation classes */
.animate-fade-in { animation: fadeIn var(--duration-slow) var(--ease-out) forwards; }
.animate-fade-in-up { animation: fadeInUp var(--duration-slow) var(--ease-out) forwards; }
.animate-fade-in-down { animation: fadeInDown var(--duration-slow) var(--ease-out) forwards; }
.animate-fade-in-left { animation: fadeInLeft var(--duration-slow) var(--ease-out) forwards; }
.animate-fade-in-right { animation: fadeInRight var(--duration-slow) var(--ease-out) forwards; }
.animate-scale-in { animation: scaleIn var(--duration-slow) var(--ease-out) forwards; }

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* Initial state for animations */
[class*="animate-fade"], [class*="animate-scale"] {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   BACKGROUND EFFECTS
   -------------------------------------------------------------------------- */
.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.bg-gradient-radial {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--accent-rgb), 0.15) 0%, transparent 50%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
}

/* Floating orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.orb--1 {
  width: 600px;
  height: 600px;
  background: rgba(var(--accent-rgb), 0.3);
  top: -200px;
  left: -100px;
  animation-duration: 25s;
}

.orb--2 {
  width: 500px;
  height: 500px;
  background: rgba(var(--cyan-rgb), 0.2);
  top: 40%;
  right: -150px;
  animation-duration: 30s;
  animation-delay: -5s;
}

.orb--3 {
  width: 400px;
  height: 400px;
  background: rgba(var(--rose-rgb), 0.2);
  bottom: -100px;
  left: 30%;
  animation-duration: 22s;
  animation-delay: -10s;
}

/* --------------------------------------------------------------------------
   RESPONSIVE UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-12);
  }
}

@media (max-width: 768px) {
  /* Remove custom cursor on touch devices */
  .cursor-glow, .cursor-dot {
    display: none !important;
  }
  
  body, a, button, [role="button"] {
    cursor: auto !important;
  }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  z-index: 10000;
  transition: top var(--duration-normal) var(--ease-out);
  text-decoration: none;
  border: 1px solid var(--border-accent);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion */
@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;
  }
}

/* --------------------------------------------------------------------------
   AWWWARDS ENHANCEMENTS
   -------------------------------------------------------------------------- */

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 50%,
    rgba(var(--accent-rgb), 0.02) 100%
  );
  pointer-events: none;
}

/* Gradient Border */
.gradient-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--cyan), var(--teal));
  border-radius: inherit;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity var(--duration-normal);
}

.gradient-border:hover::before {
  opacity: 1;
}

/* Text Reveal Animation */
.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  animation: textReveal var(--duration-slower) var(--ease-out) forwards;
}

@keyframes textReveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Stagger text reveal children */
.text-reveal span:nth-child(1) { animation-delay: 0.05s; }
.text-reveal span:nth-child(2) { animation-delay: 0.1s; }
.text-reveal span:nth-child(3) { animation-delay: 0.15s; }
.text-reveal span:nth-child(4) { animation-delay: 0.2s; }
.text-reveal span:nth-child(5) { animation-delay: 0.25s; }

/* Magnetic Button Effect (requires JS) */
.btn-magnetic {
  position: relative;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn-magnetic span {
  display: block;
  transition: transform var(--duration-fast) var(--ease-out);
}

/* Glow Text */
.glow-text {
  text-shadow: 
    0 0 10px rgba(var(--accent-rgb), 0.5),
    0 0 20px rgba(var(--accent-rgb), 0.3),
    0 0 40px rgba(var(--accent-rgb), 0.2);
}

/* Animated Gradient Background */
.gradient-animated {
  background: linear-gradient(
    -45deg,
    var(--bg-primary),
    var(--bg-secondary),
    rgba(var(--accent-rgb), 0.1),
    var(--bg-primary)
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hover Lift */
.hover-lift {
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Image Parallax Container */
.parallax-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.parallax-container img,
.parallax-container iframe {
  transition: transform var(--duration-slower) var(--ease-out);
}

.parallax-container:hover img,
.parallax-container:hover iframe {
  transform: scale(1.1);
}

/* Blur Reveal */
.blur-reveal {
  filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-slow) var(--ease-out);
}

.blur-reveal.visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

/* Shine Effect */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: skewX(-25deg);
  transition: left var(--duration-slower) var(--ease-out);
}

.shine-effect:hover::after {
  left: 150%;
}

/* Morphing Background Blob */
.morph-blob {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(var(--cyan-rgb), 0.2));
  filter: blur(60px);
  animation: morphBlob 8s ease-in-out infinite;
}

@keyframes morphBlob {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: rotate(180deg);
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* Number Counter Animation */
.count-up {
  font-variant-numeric: tabular-nums;
}

/* Stagger Animation Delays */
[data-stagger] > *:nth-child(1) { animation-delay: 0.1s; }
[data-stagger] > *:nth-child(2) { animation-delay: 0.15s; }
[data-stagger] > *:nth-child(3) { animation-delay: 0.2s; }
[data-stagger] > *:nth-child(4) { animation-delay: 0.25s; }
[data-stagger] > *:nth-child(5) { animation-delay: 0.3s; }
[data-stagger] > *:nth-child(6) { animation-delay: 0.35s; }
[data-stagger] > *:nth-child(7) { animation-delay: 0.4s; }
[data-stagger] > *:nth-child(8) { animation-delay: 0.45s; }
[data-stagger] > *:nth-child(9) { animation-delay: 0.5s; }
[data-stagger] > *:nth-child(10) { animation-delay: 0.55s; }

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) var(--ease-out);
  pointer-events: none;
  z-index: 100;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Selection Color */
::selection {
  background: rgba(var(--accent-rgb), 0.3);
  color: var(--text-primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}
