:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

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

p {
  margin: 0 0 var(--space-16) 0;
}

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

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

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

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

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

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

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

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

.btn--secondary:active {
  background: var(--color-secondary-active);
}

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

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

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

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

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

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

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

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

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* 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-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* Refined PolishedPro Solutions - Enhanced with More Noticeable Animations */
:root {
  --color-pink-accent: #FF69B4;
  --color-pink-light: rgba(255, 105, 180, 0.1);
  --color-pink-border: rgba(255, 105, 180, 0.2);
  --color-pink-hover: #E91E63;
  --color-pink-glow: rgba(255, 105, 180, 0.3);
  --color-pink-gradient: linear-gradient(135deg, #FF69B4, #E91E63);
  
  /* Override design system for refined theme */
  --color-primary: var(--color-pink-accent);
  --color-primary-hover: var(--color-pink-hover);
  --color-primary-active: #C2185B;
  --color-background: var(--color-white);
  --color-surface: var(--color-white);
  --color-secondary: var(--color-gray-200);
  --color-secondary-hover: var(--color-gray-300);
  --color-border: var(--color-gray-300);

  /* Enhanced animation variables */
  --animation-duration-fast: 0.4s;
  --animation-duration-normal: 0.7s;
  --animation-duration-slow: 1.2s;
  --animation-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

/* Enhanced Floating Background Animation */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  opacity: 0.12;
  border-radius: 50%;
  background: var(--color-pink-gradient);
  animation: enhancedFloat 10s infinite ease-in-out;
  box-shadow: 0 0 30px rgba(255, 105, 180, 0.3);
}

.floating-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: -2.5s;
}

.floating-3 {
  width: 100px;
  height: 100px;
  bottom: 30%;
  left: 70%;
  animation-delay: -5s;
}

.floating-4 {
  width: 45px;
  height: 45px;
  top: 80%;
  left: 20%;
  animation-delay: -7.5s;
}

/* Enhanced float animation - more movement and rotation */
@keyframes enhancedFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1); 
  }
  25% {
    transform: translateY(-15px) rotate(3deg) scale(1.1);
  }
  50% { 
    transform: translateY(-8px) rotate(-2deg) scale(1.05); 
  }
  75% {
    transform: translateY(-20px) rotate(4deg) scale(0.95);
  }
}

/* Enhanced Sticky Header with Blur Backdrop */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--color-border);
  z-index: 999;
  transition: all var(--animation-duration-normal) var(--animation-ease);
  transform: translateY(0);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(255, 105, 180, 0.15);
  transform: translateY(0) scale(1.02);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-16) 0;
}

/* Enhanced brand name */
.brand-name {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: var(--font-weight-bold);
  background: var(--color-pink-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  opacity: 0;
  transform: translateY(-20px);
  animation: brandReveal 1.2s var(--animation-ease) 0.5s forwards;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.brand-name:hover {
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

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

.nav__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-32);
}

.nav__link {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  transition: all var(--animation-duration-fast) var(--animation-ease);
  position: relative;
}

/* Enhanced navigation with more dramatic effects */
.nav__link:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--color-pink-gradient);
  transition: all var(--animation-duration-fast) var(--animation-ease);
  transform: translateX(-50%);
}

.nav__link:hover:after,
.nav__link.active:after {
  width: 100%;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-pink-accent);
  transform: translateY(-2px);
  text-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: var(--space-4);
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-pink-accent);
  border-radius: var(--radius-sm);
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

/* Sections with enhanced animations */
.section {
  padding: 120px 0 var(--space-32);
  position: relative;
  z-index: 2;
}

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

.section-title {
  font-size: var(--font-size-4xl);
  color: var(--color-text);
  margin-bottom: var(--space-16);
  font-weight: var(--font-weight-bold);
  position: relative;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.section-title:hover {
  transform: scale(1.02);
  color: var(--color-pink-accent);
}

/* Enhanced underlines */
.section-title:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 60px;
  height: 4px;
  background: var(--color-pink-gradient);
  transform: translateX(-50%);
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.section-title:hover:after {
  width: 80px;
  background: linear-gradient(135deg, #E91E63, #C2185B);
}

/* Hero Section - Brand as Focal Point */
.home-section {
  background: var(--color-white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.hero {
  text-align: center;
  margin-bottom: var(--space-32);
  position: relative;
  z-index: 3;
}

/* Brand hero - enhanced focal point */
.brand-hero {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--color-text);
  margin-bottom: var(--space-20);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  background: var(--color-pink-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.brand-hero:hover {
  animation: pulse 1s ease-in-out;
}

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

.hero__tagline {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
  font-weight: var(--font-weight-normal);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.hero__tagline:hover {
  color: var(--color-text);
  transform: scale(1.02);
}

/* Strategy tagline - more prominent */
.hero__strategy-tagline {
  margin: var(--space-32) 0;
}

.strategy-text {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-pink-accent);
  font-style: italic;
  text-shadow: 0 4px 8px rgba(255, 105, 180, 0.2);
  margin-bottom: var(--space-32);
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.strategy-text:hover {
  transform: scale(1.05);
  text-shadow: 0 6px 12px rgba(255, 105, 180, 0.4);
}

.hero__buttons {
  display: flex;
  gap: var(--space-16);
  justify-content: center;
  margin-bottom: var(--space-32);
}

/* Enhanced Buttons - FIXED TEXT VISIBILITY */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--animation-duration-normal) var(--animation-ease);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.enhanced-btn {
  transition: all var(--animation-duration-fast) var(--animation-bounce);
}

.enhanced-btn:hover {
  transform: translateY(-4px) scale(1.02);
}

.btn--primary {
  background: var(--color-pink-accent);
  color: var(--color-white);
  border: none;
}

/* FIXED: Ensure text remains visible on hover */
.btn--primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-white); /* Explicitly maintain white text */
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 25px var(--color-pink-glow);
}

.btn--outline {
  border: 2px solid var(--color-pink-accent);
  color: var(--color-pink-accent);
  background: transparent;
}

.btn--outline:hover {
  background: var(--color-pink-accent);
  color: var(--color-white);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px var(--color-pink-glow);
}

.btn--lg {
  padding: var(--space-12) var(--space-24);
  font-size: var(--font-size-lg);
}

.btn--full-width {
  width: 100%;
}

/* Enhanced hover lift effect */
.hover-lift {
  transition: all var(--animation-duration-normal) var(--animation-ease);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Icon animations */
.pulse-icon {
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.hover-lift:hover .pulse-icon {
  animation: iconPulse 0.6s ease-in-out;
}

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

.bounce-icon {
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.hover-lift:hover .bounce-icon {
  animation: iconBounce 0.8s ease-in-out;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-8px); }
  50% { transform: translateY(-4px); }
  75% { transform: translateY(-12px); }
}

/* Why Choose Section */
.why-choose {
  margin-top: var(--space-32);
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-24);
}

.choose-card {
  background: var(--color-white);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--animation-duration-normal) var(--animation-ease);
  position: relative;
  overflow: hidden;
}

.choose-card:hover {
  border-color: var(--color-pink-border);
  box-shadow: 0 20px 50px rgba(255, 105, 180, 0.15);
}

.card-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-16);
  display: block;
}

.choose-card h3 {
  color: var(--color-pink-accent);
  margin-bottom: var(--space-16);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.choose-card:hover h3 {
  color: var(--color-primary-hover);
  transform: scale(1.05);
}

.choose-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.choose-card:hover p {
  color: var(--color-text);
}

/* About Section */
.about-section {
  background: var(--color-bg-1);
}

.mission,
.core-values,
.differentiators,
.ceo-section {
  margin: var(--space-32) 0;
}

.mission-title,
.values-title,
.diff-title,
.ceo-title {
  color: var(--color-pink-accent);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-24);
  text-align: center;
  font-weight: var(--font-weight-semibold);
}

.mission {
  text-align: center;
  background: var(--color-white);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--animation-duration-normal) var(--animation-ease);
}

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

.mission p {
  font-size: var(--font-size-lg);
  color: var(--color-text);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Enhanced Core Values Section */
.core-values {
  background: var(--color-white);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--animation-duration-normal) var(--animation-ease);
}

.core-values:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.values-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-32);
  align-items: center;
}

.values-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.values-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--radius-lg);
  transition: all var(--animation-duration-normal) var(--animation-ease);
}

.values-image:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 15px 35px rgba(255, 105, 180, 0.2);
}

.values-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16);
  padding: var(--space-16);
  border-radius: var(--radius-base);
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.value-item:hover {
  background: var(--color-pink-light);
  transform: translateX(8px);
}

.value-icon {
  font-size: var(--font-size-2xl);
  flex-shrink: 0;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.value-item:hover .value-icon {
  transform: scale(1.2) rotate(10deg);
}

.value-text h4 {
  color: var(--color-pink-accent);
  margin-bottom: var(--space-8);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.value-text p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Differentiators */
.differentiators {
  background: var(--color-white);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
}

.diff-card {
  background: var(--color-bg-2);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--animation-duration-normal) var(--animation-ease);
}

.diff-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--color-pink-border);
}

.diff-card h4 {
  color: var(--color-pink-accent);
  margin-bottom: var(--space-12);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.diff-card:hover h4 {
  color: var(--color-primary-hover);
  transform: scale(1.05);
}

.diff-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.diff-card:hover p {
  color: var(--color-text);
}

/* CEO Section */
.ceo-section {
  background: var(--color-white);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--animation-duration-normal) var(--animation-ease);
}

.ceo-section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.ceo-content {
  max-width: 800px;
  margin: 0 auto;
}

.ceo-info h4 {
  color: var(--color-pink-accent);
  margin-bottom: var(--space-16);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  text-align: center;
}

.ceo-info p {
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: var(--space-20);
}

.expertise-item h5 {
  color: var(--color-pink-accent);
  margin: var(--space-20) 0 var(--space-12) 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  text-align: center;
}

/* Progress Bars */
.skill-bars {
  margin-top: var(--space-16);
}

.skill-item {
  margin-bottom: var(--space-16);
}

.skill-item span {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-pink-gradient);
  border-radius: var(--radius-full);
  width: 100%;
  transition: none;
}

.personal-mission {
  margin-top: var(--space-24);
  padding: var(--space-20);
  background: var(--color-pink-light);
  border-radius: var(--radius-base);
  border-left: 4px solid var(--color-pink-accent);
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.personal-mission:hover {
  background: rgba(255, 105, 180, 0.15);
  transform: scale(1.02);
}

.personal-mission p {
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

/* Services Section */
.services-section {
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-24);
}

.service-card {
  background: var(--color-white);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--animation-duration-normal) var(--animation-ease);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--color-pink-border);
}

/* Enhanced static icons */
.static-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-16);
  display: block;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.service-card:hover .static-icon {
  filter: brightness(1.3);
  transform: scale(1.1);
}

.service-card h3 {
  color: var(--color-pink-accent);
  margin-bottom: var(--space-16);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.service-card:hover h3 {
  color: var(--color-primary-hover);
  transform: scale(1.05);
}

.service-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-16);
  line-height: 1.6;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.service-card:hover p {
  color: var(--color-text);
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: var(--space-6) 0;
  position: relative;
  padding-left: var(--space-20);
  color: var(--color-text);
  line-height: 1.5;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.feature-list li:before {
  content: "✨";
  color: var(--color-pink-accent);
  font-weight: bold;
  position: absolute;
  left: 0;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.service-card:hover .feature-list li:before {
  transform: scale(1.2);
}

/* Static CTA */
.static-cta {
  text-align: center;
  margin-top: var(--space-32);
  padding: var(--space-32);
  background: var(--color-pink-light);
  border-radius: var(--radius-lg);
  transition: all var(--animation-duration-normal) var(--animation-ease);
}

.static-cta:hover {
  background: rgba(255, 105, 180, 0.15);
  transform: scale(1.02);
}

.static-cta h3 {
  color: var(--color-pink-accent);
  margin-bottom: var(--space-16);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
}

.static-cta p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
  font-size: var(--font-size-lg);
}

/* Blog Section */
.blog-section {
  background: var(--color-bg-3);
}

.blog-controls {
  margin-bottom: var(--space-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  align-items: center;
}

.blog-search {
  max-width: 400px;
  width: 100%;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  justify-content: center;
}

.filter-btn {
  padding: var(--space-8) var(--space-16);
  border: 2px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--animation-duration-fast) var(--animation-ease);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-pink-accent);
  color: var(--color-white);
  border-color: var(--color-pink-accent);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-24);
  margin-bottom: var(--space-32);
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--animation-duration-normal) var(--animation-ease);
  border: 1px solid var(--color-border);
}

.blog-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--color-pink-border);
}

.blog-card-content {
  padding: var(--space-24);
}

.blog-category {
  display: inline-block;
  padding: var(--space-4) var(--space-12);
  background: var(--color-pink-light);
  color: var(--color-pink-accent);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-12);
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.blog-card:hover .blog-category {
  transform: scale(1.1);
}

.blog-card h3 {
  color: var(--color-text);
  margin-bottom: var(--space-12);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.blog-card:hover h3 {
  color: var(--color-pink-accent);
  transform: scale(1.02);
}

.blog-excerpt {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-16);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.blog-load-more {
  text-align: center;
}

/* Contact Section */
.contact-section {
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  margin-bottom: var(--space-32);
}

.contact-info h3 {
  color: var(--color-pink-accent);
  margin-bottom: var(--space-24);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
}

.info-item {
  margin-bottom: var(--space-20);
}

.info-item strong {
  color: var(--color-text);
  display: block;
  margin-bottom: var(--space-4);
  font-weight: var(--font-weight-semibold);
}

.info-item p {
  color: var(--color-text-secondary);
  margin: 0;
}

.why-work {
  margin-top: var(--space-32);
  padding: var(--space-24);
  background: var(--color-bg-4);
  border-radius: var(--radius-lg);
  transition: all var(--animation-duration-normal) var(--animation-ease);
}

.why-work:hover {
  background: rgba(239, 68, 68, 0.12);
  transform: scale(1.02);
}

.why-work h4 {
  color: var(--color-pink-accent);
  margin-bottom: var(--space-16);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.why-work ul {
  list-style: none;
  padding: 0;
}

.why-work li {
  padding: var(--space-8) 0;
  position: relative;
  padding-left: var(--space-24);
  color: var(--color-text);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

/* Enhanced Twinkling Stars Animation */
.twinkling-star {
  color: var(--color-pink-accent);
  font-size: var(--font-size-lg);
  display: inline-block;
  animation: twinkle 2.5s infinite ease-in-out;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.6);
  margin-right: var(--space-8);
}

/* Stagger the animations for each star */
.twinkling-star:nth-child(1) { 
  animation-delay: 0s; 
  animation-duration: 2.2s;
}
.twinkling-star:nth-child(2) { 
  animation-delay: 0.6s; 
  animation-duration: 2.8s;
}
.twinkling-star:nth-child(3) { 
  animation-delay: 1.2s; 
  animation-duration: 2.4s;
}
.twinkling-star:nth-child(4) { 
  animation-delay: 1.8s; 
  animation-duration: 2.6s;
}

/* Enhanced twinkle animation - more dramatic */
@keyframes twinkle {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg); 
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
  }
  15% { 
    opacity: 0.3; 
    transform: scale(1.3) rotate(10deg); 
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.8);
  }
  30% { 
    opacity: 0.8; 
    transform: scale(0.7) rotate(-5deg); 
    text-shadow: 0 0 20px rgba(255, 105, 180, 1);
  }
  45% { 
    opacity: 0.2; 
    transform: scale(1.4) rotate(15deg); 
    text-shadow: 0 0 25px rgba(255, 105, 180, 0.9);
  }
  60% { 
    opacity: 0.9; 
    transform: scale(0.8) rotate(-8deg); 
    text-shadow: 0 0 12px rgba(255, 105, 180, 0.7);
  }
  75% { 
    opacity: 0.4; 
    transform: scale(1.2) rotate(8deg); 
    text-shadow: 0 0 18px rgba(255, 105, 180, 0.85);
  }
}

.contact-form-wrapper {
  background: var(--color-bg-5);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  transition: all var(--animation-duration-normal) var(--animation-ease);
}

.contact-form-wrapper:hover {
  background: rgba(147, 51, 234, 0.12);
  transform: scale(1.02);
}

/* Enhanced form controls */
.form-control {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition: all var(--animation-duration-fast) var(--animation-ease);
  position: relative;
}

.form-control:focus {
  border-color: var(--color-pink-accent);
  transform: scale(1.02);
  box-shadow: 0 0 0 3px var(--color-pink-light);
}

.form-control:hover {
  border-color: var(--color-pink-border);
  transform: scale(1.01);
}

.form-success {
  text-align: center;
  padding: var(--space-24);
  background: rgba(40, 167, 69, 0.1);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(40, 167, 69, 0.3);
}

.form-success.hidden {
  display: none;
}

.form-success h4 {
  color: #28a745;
  margin-bottom: var(--space-8);
}

/* Footer */
.footer {
  background: var(--color-charcoal-700);
  color: var(--color-white);
  padding: var(--space-32) 0;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  margin-bottom: var(--space-24);
}

.footer-brand h3 {
  color: var(--color-pink-accent);
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-semibold);
}

.footer-brand p,
.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  margin: var(--space-4) 0;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-24);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Admin Mode Styles */
.admin-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.admin-btn {
  padding: var(--space-8) var(--space-16);
  background: var(--color-gray-400);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.admin-btn:hover {
  background: var(--color-gray-500);
  transform: translateY(-2px) scale(1.05);
}

.admin-btn.active {
  background: var(--color-pink-accent);
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform var(--animation-duration-fast) var(--animation-bounce);
}

.modal:not(.hidden) .modal-content {
  transform: scale(1);
}

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

.modal-header h3 {
  color: var(--color-pink-accent);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  color: var(--color-gray-400);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

.modal-close:hover {
  background-color: var(--color-gray-200);
  transform: rotate(90deg) scale(1.1);
}

.modal-body {
  padding: var(--space-24);
}

/* Edit Mode Styles */
body.edit-mode .editable {
  position: relative;
  cursor: pointer;
  transition: all var(--animation-duration-fast) var(--animation-ease);
}

body.edit-mode .editable:hover {
  background-color: var(--color-pink-light);
  outline: 2px dashed var(--color-pink-accent);
  border-radius: var(--radius-sm);
  transform: scale(1.02);
}

.editable.editing {
  background-color: var(--color-pink-light);
  outline: 2px solid var(--color-pink-accent);
  border-radius: var(--radius-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--color-white);
    flex-direction: column;
    justify-content: start;
    padding: var(--space-32);
    transition: left var(--animation-duration-normal) var(--animation-ease);
    box-shadow: var(--shadow-lg);
  }

  .nav__menu.active {
    left: 0;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .brand-name {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
  }

  .brand-hero {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-12);
  }

  .choose-grid,
  .diff-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .blog-filters {
    flex-direction: column;
    align-items: center;
  }

  .blog-controls {
    align-items: stretch;
  }

  .values-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 100px 0 var(--space-24);
  }

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

  .brand-name {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
  }

  .brand-hero {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .floating-element {
    opacity: 0.06;
  }
}