: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 */
/* Krashi Contracting - Award-Level Cinematic Design */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #003151;
  --bg-secondary: #003151;
  --bg-elevated: #004169;
  --gold: #F5C842;
  --gold-dark: #D4AF37;
  --white: #FFFFFF;
  --gray: #8B92A8;
  --success: #3FD8A5;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: #003151;
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #003151;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

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

.loader-content {
  text-align: center;
}

.loader-logo {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  animation: float 3s ease-in-out infinite;
}

.logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 30px rgba(245, 200, 66, 0.5));
}

.light-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 200, 66, 0.6), transparent);
  animation: sweep 2s ease-in-out infinite;
}

@keyframes sweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

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

.loader-bar {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 20px;
}

.loader-progress {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 10px;
  transition: width 0.3s;
}

.loader-text {
  color: var(--gray);
  font-size: 14px;
  opacity: 0;
  animation: fadeIn 1s 0.5s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Custom Cursor */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }
}

.cursor-inner {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-outer {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(245, 200, 66, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease-out;
}

.cursor.hover .cursor-inner {
  width: 60px;
  height: 60px;
  background: rgba(245, 200, 66, 0.3);
}

.cursor.hover .cursor-outer {
  width: 60px;
  height: 60px;
  border-color: var(--gold);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(0, 49, 81, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
}

.navbar.scrolled {
  padding: 15px 0;
  background: rgba(0, 49, 81, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.logo-image {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(245, 200, 66, 0.3));
  display: block;
}

.logo-image:hover {
  filter: drop-shadow(0 0 20px rgba(245, 200, 66, 0.6));
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  color: var(--gray);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-phone {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-phone:hover {
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #003151;
  box-shadow: 0 10px 30px rgba(245, 200, 66, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(245, 200, 66, 0.4);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 14px;
}

.btn--lg {
  padding: 18px 48px;
  font-size: 16px;
}

.btn--glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(245, 200, 66, 0.3); }
  50% { box-shadow: 0 0 40px rgba(245, 200, 66, 0.6); }
}

.ripple-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(245, 200, 66, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1200px;
  padding: 0 40px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 30px;
  letter-spacing: -2px;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: wordReveal 0.8s ease-out forwards;
}

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

.hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--gold);
  margin-bottom: 40px;
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 1s 0.8s forwards;
}

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

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  color: var(--success);
}

.trust-badge-logo {
  padding: 8px 20px;
}

.badge-logo {
  height: 45px;
  width: auto;
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(63, 216, 165, 0.3));
  transition: all 0.3s ease;
  display: block;
}

.trust-badge:hover .badge-logo {
  filter: brightness(1.3) drop-shadow(0 0 10px rgba(245, 200, 66, 0.5));
  transform: scale(1.1);
}

.hero-cta {
  margin-bottom: 80px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--gray);
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  font-size: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Sections */
.section {
  padding: 120px 0;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 60px;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, #004169 0%, #003151 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 60px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-number::after {
  content: '+';
  color: var(--gold);
}

.stat-item[data-decimal="true"] .stat-number::after {
  content: '%';
}

.stat-item[data-suffix="+"] .stat-number::after {
  content: '+';
}

.stat-label {
  font-size: 16px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--gray);
}

.about-text p {
  margin-bottom: 20px;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.floating-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  animation: float 4s ease-in-out infinite;
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: var(--gold);
}

.card-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(245, 200, 66, 0.5));
}

.floating-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 10px;
}

.floating-card p {
  color: var(--gray);
}

/* EPA Hero */
.epa-hero {
  background: linear-gradient(135deg, rgba(63, 216, 165, 0.1) 0%, transparent 100%);
  border-top: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
}

.epa-content {
  text-align: center;
}

.epa-badge-large {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(63, 216, 165, 0.5);
  animation: float 3s ease-in-out infinite;
}

.epa-badge-large svg {
  width: 60px;
  height: 60px;
  color: #003151;
}

.epa-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 10px;
  color: var(--success);
}

.epa-desc {
  font-size: 20px;
  color: var(--gray);
  margin-bottom: 40px;
}

.epa-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.cert-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
}

.cert-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--success);
  transform: translateY(-10px);
}

.cert-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  color: var(--success);
}

.cert-icon svg {
  width: 100%;
  height: 100%;
}

.cert-icon-logo {
  width: auto;
  height: 64px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-logo-image {
  height: 90px;
  width: auto;
  max-width: 140px;
  transition: all 0.4s ease;
  filter: brightness(1.1) drop-shadow(0 5px 15px rgba(63, 216, 165, 0.3));
  display: block;
}

.cert-card-logo:hover .cert-logo-image {
  filter: brightness(1.3) drop-shadow(0 0 15px rgba(63, 216, 165, 0.6));
  transform: scale(1.1);
}

/* Environmental Section */
.environmental-section {
  background: linear-gradient(135deg, rgba(63, 216, 165, 0.05) 0%, transparent 50%, rgba(63, 216, 165, 0.05) 100%);
  border-top: 1px solid rgba(63, 216, 165, 0.2);
  border-bottom: 1px solid rgba(63, 216, 165, 0.2);
}

.environmental-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.env-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(63, 216, 165, 0.3);
  border-radius: 20px;
  padding: 50px 40px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.env-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(63, 216, 165, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.env-card:hover {
  border-color: var(--success);
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(63, 216, 165, 0.3);
}

.env-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  background: rgba(63, 216, 165, 0.2);
  border: 1px solid var(--success);
  border-radius: 20px;
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.env-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 25px;
  color: var(--success);
  transition: all 0.4s;
  filter: drop-shadow(0 0 20px rgba(63, 216, 165, 0.4));
}

.env-card:hover .env-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 30px rgba(63, 216, 165, 0.6));
}

.env-icon svg {
  width: 100%;
  height: 100%;
}

.env-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--white);
}

.env-card p {
  color: var(--gray);
  line-height: 1.7;
  font-size: 15px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(245, 200, 66, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  color: var(--gold);
  transition: all 0.4s;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  transition: all 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
}

.service-card:hover .service-link {
  transform: translateX(5px);
}

/* Projects Section */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s;
}

.project-card.hidden {
  display: none;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  position: relative;
  height: 400px;
  background: linear-gradient(135deg, #004169 0%, #003151 100%);
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 49, 81, 0.9) 100%);
  transition: all 0.4s;
}

.project-card:hover .project-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 49, 81, 0.7) 100%);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  transform: translateY(20px);
  transition: all 0.4s;
}

.project-card:hover .project-info {
  transform: translateY(0);
}

.project-category {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(245, 200, 66, 0.2);
  border: 1px solid var(--gold);
  border-radius: 20px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0;
}

/* Reviews Section */
.google-badge {
  text-align: center;
  margin-bottom: 60px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.google-rating {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.google-link {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}

.google-link:hover {
  color: var(--white);
}

.reviews-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.4s;
}

.review-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold);
  transform: translateY(-10px);
}

.review-stars {
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 20px;
  letter-spacing: 5px;
}

.review-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray);
  font-style: italic;
  margin-bottom: 20px;
}

.review-author {
  font-weight: 600;
  color: var(--white);
}

/* Process Section */
.process-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.process-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--bg-primary);
  box-shadow: 0 10px 30px rgba(245, 200, 66, 0.3);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--gray);
  font-size: 14px;
}

.process-connector {
  flex: 0 0 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  margin-top: 30px;
  position: relative;
}

.process-connector::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid var(--gold);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.ceo-message {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--gold);
  border-radius: 20px;
  padding: 50px;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.quote-icon {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  color: rgba(245, 200, 66, 0.2);
}

.quote-icon svg {
  width: 100%;
  height: 100%;
}

.ceo-content {
  position: relative;
  z-index: 1;
}

.ceo-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 20px;
}

.ceo-signature {
  font-size: 18px;
  color: var(--gold);
  margin: 30px 0 15px;
  font-weight: 600;
}

.ceo-attribution {
  font-size: 16px;
  color: var(--white);
  font-weight: 600;
  font-family: var(--font-display);
}

.team-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.4s;
}

.team-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold);
  transform: translateY(-10px);
}

.team-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background: rgba(245, 200, 66, 0.1);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: all 0.4s;
}

.team-card:hover .team-avatar {
  transform: scale(1.1) rotate(5deg);
}

.team-avatar svg {
  width: 50px;
  height: 50px;
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 10px;
}

.team-card .role {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.team-card .team-subtitle {
  color: var(--gray);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 15px;
  font-style: italic;
}

.team-card .bio {
  color: var(--gray);
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 15px;
  text-align: left;
}

.team-card .bio:last-of-type {
  margin-bottom: 0;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: #0000FF;
  font-family: var(--font-body);
  font-size: 15px;
  transition: all 0.3s;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: rgba(0, 49, 81, 0.6);
}

.form-group select {
  color: #003151;
}

.form-group select option {
  color: #003151;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.2);
}

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

#formMessage {
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  display: none;
}

#formMessage.success {
  display: block;
  background: rgba(63, 216, 165, 0.2);
  border: 1px solid var(--success);
  color: var(--success);
}

#formMessage.error {
  display: block;
  background: rgba(255, 100, 100, 0.2);
  border: 1px solid #ff6464;
  color: #ff6464;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  gap: 20px;
}

.info-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: rgba(245, 200, 66, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

.info-item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-item p {
  color: var(--gray);
  line-height: 1.6;
}

.info-item a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.info-item a:hover {
  color: var(--gold);
}

/* Footer */
.footer {
  background: #003151;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 30px;
  position: relative;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--gold);
  letter-spacing: 2px;
}

.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(245, 200, 66, 0.3));
  transition: all 0.3s ease;
  display: block;
}

.footer-logo:hover {
  filter: drop-shadow(0 0 20px rgba(245, 200, 66, 0.6));
  transform: scale(1.05);
}

.footer-tagline {
  color: var(--gray);
  font-style: italic;
  margin-bottom: 15px;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-badge-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.footer-badge-logo:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold);
  transform: translateX(5px);
}

.footer-cert-img {
  height: 40px;
  width: auto;
  filter: brightness(1.1);
  transition: all 0.3s ease;
  display: block;
}

.footer-badge-logo:hover .footer-cert-img {
  filter: brightness(1.3) drop-shadow(0 0 10px rgba(245, 200, 66, 0.4));
}

.footer-badge-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
}

.badge {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--gold);
}

.certifications-footer {
  margin: 60px 0 40px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  text-align: center;
}

.certifications-footer h4 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cert-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.cert-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.4s;
}

.cert-badge-item:hover {
  background: rgba(245, 200, 66, 0.08);
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(245, 200, 66, 0.2);
}

.cert-badge-item svg {
  width: 24px;
  height: 24px;
  color: var(--success);
  flex-shrink: 0;
}

.cert-badge-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-align: left;
}

.cert-badge-with-logo {
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.cert-footer-logo {
  height: 80px;
  width: auto;
  max-width: 120px;
  transition: all 0.4s ease;
  filter: brightness(1.1) drop-shadow(0 5px 15px rgba(245, 200, 66, 0.3));
  display: block;
}

.cert-badge-item:hover .cert-footer-logo {
  filter: brightness(1.3) drop-shadow(0 0 20px rgba(245, 200, 66, 0.6));
  transform: scale(1.05);
}

.naics-codes {
  font-size: 12px;
  color: var(--gray);
  margin-top: 20px;
  font-family: var(--font-family-mono);
  letter-spacing: 0.5px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--gray);
  font-size: 14px;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.chat-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(245, 200, 66, 0.4);
  transition: all 0.3s;
  animation: pulse-chat 2s ease-in-out infinite;
}

@keyframes pulse-chat {
  0%, 100% { box-shadow: 0 10px 40px rgba(245, 200, 66, 0.4); }
  50% { box-shadow: 0 10px 40px rgba(245, 200, 66, 0.6), 0 0 0 15px rgba(245, 200, 66, 0.1); }
}

.chat-bubble:hover {
  transform: scale(1.1);
}

.chat-bubble.active {
  animation: none;
}

.chat-icon,
.chat-close {
  width: 28px;
  height: 28px;
  color: #003151;
  transition: all 0.3s;
}

.chat-close {
  display: none;
}

.chat-bubble.active .chat-icon {
  display: none;
}

.chat-bubble.active .chat-close {
  display: block;
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-height: 600px;
  background: rgba(0, 49, 81, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s;
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(245, 200, 66, 0.1) 0%, transparent 100%);
  border-radius: 20px 20px 0 0;
}

.chat-header h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 5px;
}

.chat-header p {
  color: var(--gray);
  font-size: 13px;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  max-height: 350px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.chat-message {
  margin-bottom: 15px;
  animation: messageSlide 0.3s ease-out;
}

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

.chat-message.bot p {
  background: rgba(245, 200, 66, 0.1);
  border: 1px solid rgba(245, 200, 66, 0.2);
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-message.user p {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.5;
  margin-left: auto;
  max-width: 80%;
}

.chat-quick-replies {
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-reply {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--white);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.quick-reply:hover {
  background: rgba(245, 200, 66, 0.2);
  border-color: var(--gold);
  color: var(--gold);
}

.chat-input-wrapper {
  display: flex;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#chatInput {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  color: var(--white);
  font-size: 14px;
  transition: all 0.3s;
}

#chatInput:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

#chatSend {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

#chatSend:hover {
  transform: scale(1.1);
}

#chatSend svg {
  width: 20px;
  height: 20px;
  color: #003151;
}

/* Service Modal Styles */
.service-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 49, 81, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.service-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.service-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  background: rgba(0, 65, 105, 0.95);
  backdrop-filter: blur(30px);
  border: 2px solid var(--gold);
  border-radius: 25px;
  box-shadow: 0 0 60px rgba(245, 200, 66, 0.4), 0 30px 80px rgba(0, 0, 0, 0.5);
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(245, 200, 66, 0.2);
  border-color: var(--gold);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.modal-header {
  padding: 40px 40px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  color: var(--gold);
  filter: drop-shadow(0 0 20px rgba(245, 200, 66, 0.5));
}

.modal-icon svg {
  width: 100%;
  height: 100%;
}

#modalTitle {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold);
  margin: 0;
  letter-spacing: -0.5px;
}

.modal-body {
  padding: 30px 40px;
  overflow-y: auto;
  flex: 1;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(245, 200, 66, 0.3);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

/* AI Avatar */
.ai-avatar-container {
  position: relative;
  text-align: center;
  margin-bottom: 30px;
}

.ai-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  animation: avatarFloat 3s ease-in-out infinite;
}

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

.avatar-circle {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  position: relative;
  box-shadow: 0 10px 40px rgba(245, 200, 66, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.avatar-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 2s ease-in-out infinite;
  z-index: -1;
}

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

.avatar-eye {
  width: 12px;
  height: 12px;
  background: var(--bg-primary);
  border-radius: 50%;
  position: absolute;
  top: 40px;
  animation: blink 4s ease-in-out infinite;
}

.avatar-eye.left {
  left: 35px;
}

.avatar-eye.right {
  right: 35px;
}

@keyframes blink {
  0%, 48%, 52%, 100% { height: 12px; }
  50% { height: 2px; }
}

.avatar-mouth {
  width: 30px;
  height: 15px;
  border: 3px solid var(--bg-primary);
  border-top: none;
  border-radius: 0 0 30px 30px;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.ai-avatar.speaking .avatar-mouth {
  animation: mouthMove 0.5s ease-in-out infinite;
}

@keyframes mouthMove {
  0%, 100% { height: 15px; }
  50% { height: 8px; }
}

.speech-bubble {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 200, 66, 0.3);
  border-radius: 20px;
  padding: 20px;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.speech-bubble::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid rgba(245, 200, 66, 0.3);
}

.speech-bubble p {
  margin: 0;
  color: var(--white);
  font-size: 15px;
  line-height: 1.6;
  animation: textReveal 0.8s ease-out;
}

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

/* Modal Content */
.modal-content {
  color: var(--gray);
  line-height: 1.7;
  font-size: 15px;
}

.modal-content h3 {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 18px;
  margin: 20px 0 10px;
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.modal-content li {
  padding: 8px 0 8px 30px;
  position: relative;
  color: var(--white);
}

.modal-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 18px;
}

.modal-content ol {
  padding-left: 20px;
  margin: 15px 0;
}

.modal-content ol li {
  padding: 5px 0;
  color: var(--white);
}

/* Quick Replies */
.quick-replies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 25px;
}

.quick-reply-btn {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 200, 66, 0.3);
  border-radius: 12px;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}

.quick-reply-btn:hover {
  background: rgba(245, 200, 66, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 200, 66, 0.3);
}

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

/* Audio Controls */
.modal-audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.audio-btn {
  width: 45px;
  height: 45px;
  background: rgba(245, 200, 66, 0.1);
  border: 1px solid rgba(245, 200, 66, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
}

.audio-btn:hover {
  background: rgba(245, 200, 66, 0.2);
  border-color: var(--gold);
  transform: scale(1.1);
}

.audio-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  animation: audioGlow 1.5s ease-in-out infinite;
}

@keyframes audioGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(245, 200, 66, 0.4); }
  50% { box-shadow: 0 0 30px rgba(245, 200, 66, 0.7); }
}

.audio-btn svg {
  width: 22px;
  height: 22px;
  color: var(--white);
}

.audio-btn.active svg {
  color: var(--bg-primary);
}

#audioLabel {
  font-size: 14px;
  color: var(--gray);
  font-weight: 500;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .service-modal {
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-header {
    padding: 30px 25px 15px;
  }
  
  #modalTitle {
    font-size: 20px;
  }
  
  .modal-body {
    padding: 20px 25px;
  }
  
  .ai-avatar {
    width: 100px;
    height: 100px;
  }
  
  .avatar-eye {
    width: 10px;
    height: 10px;
    top: 35px;
  }
  
  .avatar-eye.left {
    left: 30px;
  }
  
  .avatar-eye.right {
    right: 30px;
  }
  
  .avatar-mouth {
    width: 25px;
    height: 12px;
    bottom: 25px;
  }
  
  .quick-replies {
    grid-template-columns: 1fr;
  }
  
  .modal-audio-controls {
    padding: 15px 25px;
  }
}

/* Magnetic Effect */
.magnetic {
  transition: transform 0.3s;
}

/* Tilt Effect */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .process-timeline {
    flex-direction: column;
    gap: 40px;
  }
  
  .process-connector {
    display: none;
  }
}

@media (max-width: 1024px) {
  .environmental-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Speaking animation for avatar */
.ai-avatar.speaking .avatar-circle {
  animation: speakingBounce 0.5s ease-in-out infinite;
}

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

@media (max-width: 768px) {
  .logo-image {
    height: 40px;
    width: auto;
  }
  
  .badge-logo {
    height: 35px;
    width: auto;
  }
  
  .cert-logo-image {
    height: 60px;
    width: auto;
    max-width: 100px;
  }
  
  .footer-logo {
    height: 60px;
    width: auto;
  }
  
  .footer-cert-img {
    height: 32px;
  }
  
  .cert-footer-logo {
    height: 40px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 49, 81, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
  }
  
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .services-grid,
  .projects-grid,
  .environmental-grid {
    grid-template-columns: 1fr;
  }
  
  .ceo-message {
    padding: 30px 25px;
  }
  
  .quote-icon {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
  }
  
  .cert-badges {
    grid-template-columns: 1fr;
  }
  
  .chat-window {
    width: calc(100vw - 40px);
    right: -10px;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .section {
    padding: 80px 0;
  }
}

/* ========================================
   AI TOUR GUIDE - KIRA (Futuristic White/Cyan Robot)
   Professional sales assistant styling
   ======================================== */

.ai-tour-guide {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
}

.avatar-container {
    position: fixed;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
}

.avatar-container.intro-mode {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.6);
}

.avatar-container.corner-mode {
    bottom: 30px;
    right: 30px;
    transform: scale(1);
}

.avatar-container.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Futuristic Humanoid Robot */
.avatar-robot {
    position: relative;
    width: 170px;
    height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: professionalFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 15px 40px rgba(0, 200, 255, 0.4));
}

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

/* White/Silver Head */
.robot-head {
    position: relative;
    width: 90px;
    height: 100px;
    background: linear-gradient(145deg, #ffffff, #e0e5ec);
    border-radius: 45% 45% 40% 40%;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.2),
        inset 0 -8px 20px rgba(0, 0, 0, 0.05),
        inset 0 2px 10px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 200, 255, 0.1);
}

.robot-head::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 15px;
    background: linear-gradient(90deg, 
        rgba(0, 200, 255, 0.1), 
        rgba(0, 200, 255, 0.3),
        rgba(0, 200, 255, 0.1));
    border-radius: 10px;
}

.robot-glow {
    position: absolute;
    top: -18px;
    left: -18px;
    right: -18px;
    bottom: -18px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.5), transparent);
    border-radius: 50%;
    animation: authorityGlow 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes authorityGlow {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1);
        filter: blur(12px);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
        filter: blur(18px);
    }
}

.robot-face {
    position: relative;
    width: 100%;
    height: 100%;
}

/* CYAN Glowing Eyes */
.robot-eye {
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 30% 30%, #00f0ff, #00d9ff, #00a8cc);
    border-radius: 50%;
    box-shadow: 
        0 0 20px #00d9ff,
        0 0 40px rgba(0, 217, 255, 0.6);
    animation: eyeBlink 4s infinite, eyeEngagement 3s ease-in-out infinite;
}

.robot-eye-left {
    top: 35px;
    left: 22px;
}

.robot-eye-right {
    top: 35px;
    right: 22px;
}

@keyframes eyeBlink {
    0%, 96%, 100% { height: 16px; }
    98% { height: 2px; }
}

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

/* Mouth */
.robot-mouth {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00d9ff, #00f0ff, #00d9ff, transparent);
    border-radius: 0 0 50% 50%;
    transition: all 0.3s ease;
}

.avatar-robot.speaking .robot-mouth {
    animation: confidentSpeech 0.35s ease-in-out infinite;
}

@keyframes confidentSpeech {
    0%, 100% { 
        width: 38px; 
        height: 3px;
        opacity: 0.9;
    }
    50% { 
        width: 44px; 
        height: 12px;
        opacity: 1;
        border-radius: 50%;
    }
}

/* Body */
.robot-body {
    width: 70px;
    height: 85px;
    background: linear-gradient(145deg, #ffffff, #e8eef5);
    border-radius: 15px 15px 20px 20px;
    margin-top: 8px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 2px 10px rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 200, 255, 0.2);
}

.robot-body::before,
.robot-body::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.3), transparent);
    left: 10%;
}

.robot-body::before { top: 15px; }
.robot-body::after { bottom: 15px; }

.robot-chest {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chest-light {
    width: 26px;
    height: 26px;
    background: radial-gradient(circle at 35% 35%, #00f0ff, #00d9ff, #0099cc);
    border-radius: 50%;
    box-shadow: 
        0 0 25px #00d9ff,
        0 0 50px rgba(0, 217, 255, 0.5);
    animation: confidentPulse 1.3s ease-in-out infinite;
}

.chest-light::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid rgba(0, 200, 255, 0.3);
    border-radius: 50%;
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes confidentPulse {
    0%, 100% { opacity: 0.8; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1.12); }
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Pointing Hand */
.robot-hand {
    position: absolute;
    top: 50%;
    right: -50px;
    width: 70px;
    height: 70px;
    opacity: 0;
    transform: translateY(-50%);
    transition: all 0.5s ease;
}

.robot-hand.pointing {
    opacity: 1;
    animation: professionalPoint 1.2s ease-in-out infinite;
}

@keyframes professionalPoint {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(15px); }
}

.hand-finger {
    width: 55px;
    height: 11px;
    background: linear-gradient(90deg, #ffffff, #e8eef5, #00d9ff);
    border-radius: 5px 30px 30px 5px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.hand-finger::before {
    content: '';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid #00f0ff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    filter: drop-shadow(0 0 15px #00d9ff);
    animation: pointerGlow 1s ease-in-out infinite;
}

@keyframes pointerGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Speech Bubble */
.avatar-speech {
    position: absolute;
    bottom: 250px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(25px);
    padding: 20px 28px;
    border-radius: 22px;
    box-shadow: 
        0 18px 60px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(0, 200, 255, 0.25);
    opacity: 0;
    transition: all 0.5s ease;
}

.avatar-speech.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.speech-content {
    color: #1a2530;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 600;
    text-align: center;
}

.speech-tail {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 18px solid rgba(255, 255, 255, 0.99);
}

/* Voice Indicator */
.voice-indicator {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-indicator.active {
    opacity: 1;
}

.voice-wave {
    width: 5px;
    height: 22px;
    background: linear-gradient(180deg, #00f0ff, #00d9ff, #0099cc);
    border-radius: 3px;
    animation: professionalVoice 0.7s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}

.voice-wave:nth-child(2) { animation-delay: 0.15s; }
.voice-wave:nth-child(3) { animation-delay: 0.3s; }

@keyframes professionalVoice {
    0%, 100% { height: 12px; opacity: 0.7; }
    50% { height: 30px; opacity: 1; }
}

/* Tour Controls */
.tour-controls {
    position: fixed;
    bottom: 260px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: all;
    opacity: 0;
    transition: all 0.5s ease;
}

.tour-controls.active {
    opacity: 1;
    transform: translateX(0);
}

.tour-btn {
    background: rgba(255, 255, 255, 0.99);
    border: 2.5px solid #00d9ff;
    padding: 13px 26px;
    border-radius: 32px;
    font-size: 15px;
    font-weight: 700;
    color: #1a2530;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 6px 25px rgba(0, 217, 255, 0.25);
}

.tour-btn:hover {
    background: linear-gradient(135deg, #00d9ff, #00f0ff);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.5);
}

/* Progress Bar */
.tour-progress {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    pointer-events: all;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tour-progress.active {
    opacity: 1;
}

.progress-bar {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d9ff, #00f0ff, #00d9ff);
    background-size: 300% 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease;
    animation: progressMotivation 2.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.9);
}

@keyframes progressMotivation {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Highlighting */
.tour-highlight::before {
    content: '';
    position: absolute;
    top: -18px;
    left: -18px;
    right: -18px;
    bottom: -18px;
    background: rgba(0, 217, 255, 0.12);
    border: 4px solid #00d9ff;
    border-radius: 18px;
    animation: authorityHighlight 1.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
}

@keyframes authorityHighlight {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.85; }
}

/* Responsive */
@media (max-width: 768px) {
    .avatar-container.intro-mode {
        transform: translate(-50%, -50%) scale(1.3);
    }

    .avatar-container.corner-mode {
        bottom: 20px;
        right: 20px;
        transform: scale(0.9);
    }

    .avatar-robot {
        width: 150px;
        height: 200px;
    }

    .avatar-speech {
        min-width: 240px;
        max-width: 320px;
        font-size: 15px;
    }

    .tour-controls {
        bottom: 220px;
        right: 20px;
    }

    .tour-progress {
        width: 280px;
    }
}
