/*
 * SocksDesigner Design System
 * Creative Studio Dark Theme
 * Version 1.0
 */

/* =============================================
   1. CSS Custom Properties (Design Tokens)
   ============================================= */

:root {
  /* Color Scheme */
  color-scheme: dark;

  /* === Primary Colors === */
  --color-primary: #8b5cf6;           /* Electric Violet - brand, buttons, links */
  --color-primary-hover: #a78bfa;
  --color-primary-active: #7c3aed;
  --color-primary-muted: rgba(139, 92, 246, 0.15);
  --color-primary-glow: rgba(139, 92, 246, 0.4);

  /* === Secondary Colors === */
  --color-secondary: #10b981;         /* Emerald Mint - success, earnings */
  --color-secondary-hover: #34d399;
  --color-secondary-active: #059669;
  --color-secondary-muted: rgba(16, 185, 129, 0.15);

  /* === Accent Colors === */
  --color-accent: #f97316;            /* Warm Coral - CTA, urgent */
  --color-accent-hover: #fb923c;
  --color-accent-active: #ea580c;
  --color-accent-muted: rgba(249, 115, 22, 0.15);

  /* === Semantic Colors === */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* === Background Layers === */
  --bg-base: #0a0c10;                 /* Deepest background */
  --bg-surface: #0f1219;              /* Main surface */
  --bg-elevated: #151921;             /* Cards, panels */
  --bg-overlay: #1a1f2a;              /* Modal backgrounds */
  --bg-highlight: #232936;            /* Hover states */

  /* === Text Colors === */
  --text-primary: #f1f5f9;            /* Primary text */
  --text-secondary: #94a3b8;          /* Secondary text */
  --text-muted: #64748b;              /* Muted/disabled text */
  --text-inverse: #0f172a;            /* Text on light backgrounds */

  /* === Border Colors === */
  --border-default: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-focus: var(--color-primary);

  /* === Brand Gradients === */
  --gradient-brand: linear-gradient(135deg, #8b5cf6, #10b981);
  --gradient-brand-hover: linear-gradient(135deg, #a78bfa, #34d399);
  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.3), transparent),
                   radial-gradient(ellipse 60% 40% at 80% 0%, rgba(16, 185, 129, 0.2), transparent);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
  --gradient-surface: radial-gradient(1200px 800px at 15% 20%, rgba(139, 92, 246, 0.15), transparent 45%),
                      radial-gradient(900px 700px at 80% 15%, rgba(16, 185, 129, 0.08), transparent 55%);

  /* === Shadows === */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px var(--color-primary-glow);
  --shadow-glow-sm: 0 0 10px var(--color-primary-glow);

  /* === Typography === */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  --text-7xl: 4.5rem;     /* 72px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* === Spacing Scale === */
  --space-0: 0;
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  --space-24: 6rem;       /* 96px */

  /* === Border Radius === */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.25rem;  /* 20px */
  --radius-3xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* === Animation Timing === */
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 500ms;

  /* Easing Functions */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* === Z-Index Scale === */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-popover: 60;
  --z-tooltip: 70;

  /* === Container Widths === */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;

  /* === Button Sizes === */
  --btn-height-xs: 1.75rem;   /* 28px */
  --btn-height-sm: 2rem;      /* 32px */
  --btn-height-md: 2.5rem;    /* 40px */
  --btn-height-lg: 3rem;      /* 48px */
  --btn-height-xl: 3.5rem;    /* 56px */

  /* === Input Sizes === */
  --input-height: 2.5rem;     /* 40px */
  --input-radius: var(--radius-lg);
}

/* =============================================
   2. Base Reset & Typography
   ============================================= */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--gradient-surface), var(--bg-base);
  min-height: 100vh;
  overflow-x: clip;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

/* Selection */
::selection {
  background: var(--color-primary-muted);
  color: var(--text-primary);
}

/* =============================================
   3. Layout Components
   ============================================= */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 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); }
.container-2xl { max-width: var(--container-2xl); }

/* Main Content Area */
main.container {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

/* =============================================
   4. Site Header
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(15, 18, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  gap: var(--space-4);
  min-width: 0;
}

.site-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  color: var(--text-primary);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--text-primary);
}

.site-logo-img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-title {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-highlight);
}

.nav-link.is-active {
  color: var(--color-primary);
  background: var(--color-primary-muted);
}

/* =============================================
   5. Buttons
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--btn-height-md);
  padding: 0 var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn:hover {
  background: var(--bg-highlight);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Button Variants */
.btn-primary {
  background: var(--gradient-brand);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-sm), 0 0 0 0 var(--color-primary-glow);
}

.btn-primary:hover {
  background: var(--gradient-brand-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow-sm);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

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

.btn-accent {
  background: var(--color-accent);
  border-color: transparent;
  color: white;
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md), 0 0 20px rgba(249, 115, 22, 0.4);
}

.btn-cta {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  border-color: transparent;
  color: #fff;
  font-weight: var(--font-extrabold);
  letter-spacing: 0.02em;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.35), 0 0 0 2px rgba(249, 115, 22, 0.18);
}

.btn-cta:hover {
  background: linear-gradient(135deg, #fb923c, #fbbf24);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.45), 0 0 0 3px rgba(249, 115, 22, 0.28);
  transform: translateY(-2px);
}

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

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

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--color-primary-muted);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Button Sizes */
.btn-xs {
  height: var(--btn-height-xs);
  padding: 0 var(--space-2);
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
}

.btn-sm {
  height: var(--btn-height-sm);
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
}

.btn-lg {
  height: var(--btn-height-lg);
  padding: 0 var(--space-6);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn-xl {
  height: var(--btn-height-xl);
  padding: 0 var(--space-8);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

.btn-icon {
  width: var(--btn-height-md);
  padding: 0;
}

.btn-icon.btn-sm { width: var(--btn-height-sm); }
.btn-icon.btn-lg { width: var(--btn-height-lg); }

/* =============================================
   6. Form Controls
   ============================================= */

.input,
.select,
.textarea {
  width: 100%;
  height: var(--input-height);
  padding: 0 var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-default);
  border-radius: var(--input-radius);
  outline: none;
  transition: all var(--duration-fast) var(--ease-out);
}

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

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--border-strong);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-muted), var(--shadow-glow-sm);
}

.textarea {
  height: auto;
  min-height: 100px;
  padding: var(--space-3);
  resize: vertical;
}

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

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

.form-hint {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.form-error {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-error);
}

/* Checkbox & Radio */
.checkbox,
.radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox input,
.radio input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-primary);
}

/* =============================================
   7. Cards
   ============================================= */

.card {
  background: var(--gradient-card), var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--border-strong);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.card-body {
  color: var(--text-secondary);
}

.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
}

/* =============================================
   8. Gallery Grid
   ============================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

.work-card {
  background: var(--gradient-card), var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: all var(--duration-normal) var(--ease-out);
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.work-card-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-surface);
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.work-card:hover .work-card-image img {
  transform: scale(1.05);
}

.work-card-body {
  padding: var(--space-3) var(--space-4) var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-card-title {
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.work-card-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.work-card-stats {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: auto;
}

/* =============================================
   9. Tags & Badges
   ============================================= */

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-primary);
  background: var(--color-primary-muted);
  border-radius: var(--radius-full);
}

.tag-secondary {
  color: var(--color-secondary);
  background: var(--color-secondary-muted);
}

.tag-accent {
  color: var(--color-accent);
  background: var(--color-accent-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: white;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

/* =============================================
   10. Modal
   ============================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.8);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: var(--z-modal);
  width: min(90vw, 560px);
  max-height: 85vh;
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-bounce);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-default);
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
}

.modal-body {
  padding: var(--space-5);
  max-height: calc(85vh - 140px);
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-default);
}

/* =============================================
   11. Utility Classes
   ============================================= */

/* Text */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--color-primary); }
.text-success { color: var(--color-success); }

/* =============================================
   Flash Messages
   ============================================= */

.flash-messages {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-modal);
  display: grid;
  gap: var(--space-2);
  width: min(560px, 92vw);
  pointer-events: none;
}

.flash-message {
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  text-align: center;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.flash-message.is-hidden {
  opacity: 0;
  transform: translateY(-6px);
}

.flash-message.success {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2), var(--shadow-lg);
}

.flash-message.error {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2), var(--shadow-lg);
}

.flash-message.warning {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2), var(--shadow-lg);
}

.flash-message.info {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), var(--shadow-lg);
}
.text-error { color: var(--color-error); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flex */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Spacing */
.m-0 { margin: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* Width */
.w-full { width: 100%; }
.max-w-md { max-width: var(--container-md); }
.max-w-lg { max-width: var(--container-lg); }

/* Border Radius */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* =============================================
   12. Animations
   ============================================= */

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

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

.hover-glow {
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
}

.hover-scale {
  transition: transform var(--duration-normal) var(--ease-out);
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

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

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

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

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn var(--duration-normal) var(--ease-out);
}

.animate-fade-in-up {
  animation: fadeInUp var(--duration-slow) var(--ease-out);
}

.animate-fade-in-down {
  animation: fadeInDown var(--duration-slow) var(--ease-out);
}

.animate-scale-in {
  animation: scaleIn var(--duration-normal) var(--ease-bounce);
}

.animate-pulse {
  animation: pulse 2s var(--ease-in-out) infinite;
}

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

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 25%,
    var(--bg-highlight) 50%,
    var(--bg-elevated) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* =============================================
   13. Responsive Utilities
   ============================================= */

@media (max-width: 768px) {
  :root {
    --text-4xl: 2rem;
    --text-5xl: 2.5rem;
    --text-6xl: 3rem;
  }

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

  .site-header .container {
    padding: var(--space-3) var(--space-4);
    flex-wrap: wrap;
    align-items: center;
  }

  .site-left {
    min-width: 0;
    flex: 1 1 auto;
  }

  .nav-links {
    gap: var(--space-1);
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    padding: var(--space-2);
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .nav-links .btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-3);
  }

  /* Hide on mobile */
  .hide-mobile { display: none !important; }
}

@media (max-width: 1024px) {
  .site-header .container {
    padding: var(--space-3) var(--space-4);
    flex-wrap: wrap;
    align-items: center;
  }

  .site-left {
    min-width: 0;
    flex: 1 1 auto;
  }

  .nav-links {
    gap: var(--space-1);
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    flex-wrap: nowrap;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    padding: var(--space-2);
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .nav-links .btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (min-width: 769px) {
  /* Hide on desktop */
  .hide-desktop { display: none !important; }
}

/* =============================================
   14. Print Styles
   ============================================= */

@media print {
  body {
    background: white;
    color: black;
  }

  .site-header,
  .btn,
  .nav-links {
    display: none;
  }
}
