/* ============================================
   DESIGN SYSTEM — Daniel Tsav Portfolio
   Inspired by: Apple, Stripe, Linear, Vercel
   ============================================ */

:root {
  /* ── Color Palette ── */
  --color-bg-primary: #1A120B;
  --color-bg-secondary: #231A11;
  --color-bg-tertiary: #2D2115;
  --color-bg-card: rgba(255, 255, 255, 0.03);
  --color-bg-card-hover: rgba(255, 255, 255, 0.06);

  --color-accent-primary: #550171;
  --color-accent-primary-light: #7a1a9e;
  --color-accent-secondary: #9d00c3;
  --color-accent-secondary-light: #bf00ea;
  --color-highlight: #3aaaef;
  --color-highlight-dim: rgba(58, 170, 239, 0.15);

  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.75);
  --color-text-tertiary: rgba(255, 255, 255, 0.5);
  --color-text-muted: rgba(255, 255, 255, 0.35);

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  --color-border-accent: rgba(85, 1, 113, 0.4);

  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3aaaef;

  /* ── Gradient Palette ── */
  --gradient-hero: linear-gradient(135deg, #550171 0%, #9d00c3 50%, #3aaaef 100%);
  --gradient-card: linear-gradient(135deg, rgba(85, 1, 113, 0.15) 0%, rgba(157, 0, 195, 0.1) 50%, rgba(58, 170, 239, 0.05) 100%);
  --gradient-button: linear-gradient(135deg, #550171 0%, #9d00c3 100%);
  --gradient-button-hover: linear-gradient(135deg, #6a1a8a 0%, #b000dc 100%);
  --gradient-section: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  --gradient-border: linear-gradient(135deg, #550171, #9d00c3, #3aaaef);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(157, 0, 195, 0.3) 0%, transparent 60%);
  --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(26, 18, 11, 0.95) 100%);

  /* ── Typography ── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  --line-height-tight: 1.1;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;

  /* ── Spacing Scale ── */
  --space-0: 0;
  --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;
  --space-40: 10rem;
  --space-48: 12rem;

  /* ── Grid & Layout ── */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;

  --grid-gap: 1.5rem;
  --grid-cols: repeat(12, 1fr);

  --section-padding-y: var(--space-20);
  --section-padding-x: var(--space-8);

  /* ── Border Radius ── */
  --radius-none: 0;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow-primary: 0 0 20px rgba(85, 1, 113, 0.3), 0 0 40px rgba(85, 1, 113, 0.1);
  --shadow-glow-secondary: 0 0 20px rgba(157, 0, 195, 0.3), 0 0 40px rgba(157, 0, 195, 0.1);
  --shadow-glow-highlight: 0 0 20px rgba(58, 170, 239, 0.3), 0 0 40px rgba(58, 170, 239, 0.1);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 8px 40px rgba(85, 1, 113, 0.15);

  /* ── Glassmorphism ── */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: 20px;
  --glass-saturate: 180%;

  /* ── Transitions & Animations ── */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 600ms cubic-bezier(0.16, 1, 0.3, 1);

  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Animation Durations ── */
  --anim-fade: 0.6s;
  --anim-slide: 0.8s;
  --anim-scale: 0.5s;
  --anim-type: 3s;

  /* ── Z-Index Scale ── */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-popover: 500;
  --z-tooltip: 600;
  --z-cursor: 9998;
  --z-particles: 1;

  /* ── Focus Ring ── */
  --ring-width: 2px;
  --ring-offset: 2px;
  --ring-color: var(--color-highlight);
  --ring-offset-color: var(--color-bg-primary);

  /* ── Scrollbar ── */
  --scrollbar-width: 6px;
  --scrollbar-track: var(--color-bg-secondary);
  --scrollbar-thumb: var(--color-accent-primary);
  --scrollbar-thumb-hover: var(--color-accent-secondary);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
}

/* Custom cursor glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  background: radial-gradient(circle at center, rgba(157, 0, 195, 0.12) 0%, rgba(85, 1, 113, 0.06) 30%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity var(--transition-fast);
  will-change: transform;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: var(--scrollbar-width);
}

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

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

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

/* ── Selection ── */
::selection {
  background: rgba(157, 0, 195, 0.4);
  color: var(--color-text-primary);
}

/* ── Links ── */
a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  cursor: pointer;
}

a:hover {
  color: var(--color-highlight);
}

/* ── Images ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Focus ── */
:focus-visible {
  outline: var(--ring-width) solid var(--ring-color);
  outline-offset: var(--ring-offset);
}

/* ============================================
   TYPOGRAPHY UTILITY CLASSES
   ============================================ */

.display-xl {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

.display-lg {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

.display-md {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

.heading-xl {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
}

.heading-lg {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
}

.heading-md {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

.heading-sm {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

.body-lg {
  font-size: var(--text-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

.body-base {
  font-size: var(--text-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

.body-sm {
  font-size: var(--text-sm);
  line-height: var(--line-height-normal);
  color: var(--color-text-tertiary);
}

.caption {
  font-size: var(--text-xs);
  line-height: var(--line-height-normal);
  color: var(--color-text-muted);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-2xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-sm {
  max-width: var(--container-sm);
}

.container-md {
  max-width: var(--container-md);
}

.container-lg {
  max-width: var(--container-lg);
}

.container-xl {
  max-width: var(--container-xl);
}

/* ============================================
   SECTION
   ============================================ */

.section {
  position: relative;
  padding: var(--section-padding-y) 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-highlight);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  position: relative;
}

.section-label::before {
  content: '// ';
  color: var(--color-accent-secondary);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: var(--letter-spacing-wide);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.btn-primary {
  background: var(--gradient-button);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-glow-primary);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow-secondary);
  transform: translateY(-2px);
  color: var(--color-text-primary);
}

.btn-primary::before {
  background: var(--gradient-button-hover);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(var(--glass-blur));
}

.btn-secondary:hover {
  border-color: var(--color-accent-secondary);
  box-shadow: var(--shadow-glow-secondary);
  transform: translateY(-2px);
  color: var(--color-text-primary);
}

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

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

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.btn-icon:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-accent-secondary);
  color: var(--color-text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-secondary);
}

.btn-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-slow);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
  z-index: 0;
}

.card:hover {
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

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

.card-glass {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-glass:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.card-glow {
  position: relative;
}

.card-glow::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: var(--gradient-border);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.card-glow:hover::after {
  opacity: 0.3;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  letter-spacing: var(--letter-spacing-wide);
  white-space: nowrap;
}

.badge-primary {
  background: rgba(85, 1, 113, 0.2);
  color: var(--color-accent-secondary-light);
  border: 1px solid rgba(85, 1, 113, 0.3);
}

.badge-highlight {
  background: rgba(58, 170, 239, 0.15);
  color: var(--color-highlight);
  border: 1px solid rgba(58, 170, 239, 0.25);
}

.badge-outline {
  background: transparent;
  color: var(--color-text-tertiary);
  border: 1px solid var(--color-border);
}

.badge-dot {
  position: relative;
  padding-left: var(--space-5);
}

.badge-dot::before {
  content: '';
  position: absolute;
  left: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-highlight);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: text;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent-secondary);
  box-shadow: 0 0 0 3px rgba(157, 0, 195, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============================================
   GRID SYSTEM
   ============================================ */

.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ============================================
   DIVIDER
   ============================================ */

.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: var(--space-8) 0;
}

.divider-gradient {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--color-accent-secondary), transparent);
}

/* ============================================
   PARTICLES CANVAS
   ============================================ */

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-particles);
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-hero);
  z-index: var(--z-tooltip);
  transition: width 50ms linear;
}

/* ============================================
   FLOATING ACTION BUTTON
   ============================================ */

.fab {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background: var(--gradient-button);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-glow-primary);
  z-index: var(--z-sticky);
  transition: all var(--transition-spring);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.fab.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fab:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-secondary);
}

/* ============================================
   COMMAND PALETTE
   ============================================ */

.command-palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.command-palette-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.command-palette {
  width: 100%;
  max-width: 560px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  transform: translateY(-12px) scale(0.96);
  transition: all var(--transition-base);
}

.command-palette-overlay.open .command-palette {
  transform: translateY(0) scale(1);
}

.command-palette-input {
  width: 100%;
  padding: var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  outline: none;
}

.command-palette-results {
  max-height: 300px;
  overflow-y: auto;
  padding: var(--space-3);
}

.command-palette-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.command-palette-item:hover,
.command-palette-item.active {
  background: rgba(255, 255, 255, 0.06);
}

/* ============================================
   EASTER EGG
   ============================================ */

.easter-egg {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-popover);
  pointer-events: none;
  opacity: 0;
}

.easter-egg.active {
  opacity: 1;
}

.easter-egg-text {
  font-family: var(--font-mono);
  font-size: var(--text-6xl);
  color: var(--color-highlight);
  text-shadow: 0 0 40px rgba(58, 170, 239, 0.5);
  animation: easterPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
  background: linear-gradient(90deg, var(--color-bg-secondary) 25%, var(--color-bg-tertiary) 50%, var(--color-bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ============================================
   RESPONSIVE BREAKPOINT HELPERS
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --text-7xl: 3.5rem;
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --section-padding-y: var(--space-16);
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --text-7xl: 2.5rem;
    --text-6xl: 2.25rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
    --section-padding-y: var(--space-12);
    --section-padding-x: var(--space-4);
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-auto {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --text-7xl: 2rem;
    --text-6xl: 1.75rem;
    --text-5xl: 1.5rem;
    --section-padding-y: var(--space-12);
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

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

@keyframes borderGlow {
  0%, 100% { border-color: var(--color-accent-primary); }
  50% { border-color: var(--color-highlight); }
}

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

@keyframes easterPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
  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);
  }
}

/* ============================================
   SCROLL REVEAL CLASSES
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
