: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 */
/* Custom brand colors for n0th1ng studios */
:root {
  --brand-black: #000000;
  --brand-gray: #121212;
  --brand-white: #ffffff;
  --brand-gold: #d4af37;
  
  /* Override design system colors with brand colors */
  --color-background: var(--brand-black);
  --color-surface: var(--brand-gray);
  --color-text: var(--brand-white);
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-primary: var(--brand-gold);
  --color-primary-hover: #b8941f;
  --color-primary-active: #9d7f1a;
  
  /* Custom spacing and typography */
  --font-family-brand: 'Poppins', var(--font-family-base);
  --section-padding: 80px 0;
  --container-max-width: 1200px;
}

/* Base overrides */
html, body {
  font-family: var(--font-family-brand);
  background-color: var(--color-background);
  color: var(--color-text);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Container override */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-20);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  font-family: var(--font-family-brand);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-16) var(--space-32);
  background-color: transparent;
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all var(--duration-normal) var(--ease-standard);
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--brand-gold);
  text-decoration: none;
  background-color: transparent;
  transition: all var(--duration-fast) var(--ease-standard);
}

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

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--duration-fast) var(--ease-standard);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gold);
  transition: width var(--duration-normal) var(--ease-standard);
}

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

/* Hero Section */
.hero {
  height: 100vh; /* Changed from 111vh for a full screen height */
  width: 100%;
  position: relative; 
  overflow: hidden;
  display: flex; /* Added to help with centering content */
  align-items: center;
  justify-content: center;
}
.hero__content {
    position: absolute;
    bottom: var(--space-32); /* 32px from the bottom */
    right: var(--space-32);  /* 32px from the right */
    z-index: 3;
    text-align: right; /* Aligns the tagline and button to the right */
}
/* .hero__title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-16);
  background: linear-gradient(45deg, var(--brand-white), var(--brand-gold));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
} */

.hero__tagline {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-16); /* A little space above the button */
  font-weight: var(--font-weight-normal);
}

/* In style.css, replace the entire .hero__bg rule with this */

.hero__video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
     /* This keeps the blur effect you liked */
    z-index: 1; /* Places the video in the background */
}

/* Add an overlay on top of the video for text readability */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); 
    z-index: 2;
}

/* --- Desktop-Only Parallax Effect --- */
/* This media query applies the effect only to screens wider than 768px */
/* @media (min-width: 769px) {
  .hero__bg {
    background-attachment: fixed;
    /* We re-add over-scanning here for the desktop hover animation */
    /* top: -10%; */
    /* left: -10%; */
    /* width: 120%; */
    /* height: 120%; */
  /* } */
/* } */ */

/* Sections */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-32);
  color: var(--brand-gold);
}

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

/* About Section */
.about-text {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--color-text-secondary);
   /* Keeping max-width is good for readability */
  
  /* CORRECTED MARGIN: This removes the centering */
  margin: 0 0 var(--space-24) 0;
}

.founder-highlight {
  font-size: var(--font-size-md);
  color: var(--brand-gold);
  font-weight: var(--font-weight-medium);
  text-align: center;
}

.founder-highlight a {
  color: var(--brand-gold);
  text-decoration: none;
}

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

.portrait-placeholder {
  width: 200px;
  height: 200px;
  background: var(--color-bg-1);
  border-radius: 50%;
  margin: var(--space-32) auto;
  position: relative;
  overflow: hidden;
  background-size: cover;
}

/* ===================================================================
   INTERACTIVE SERVICES PAGE STYLES V3
   =================================================================== */

/* --- Main container that holds the two parts --- */
.interactive-services-container {
    padding-top: 100px; /* Space for the fixed header */
    width: 100%;
    background-color: var(--brand-black);
    padding-bottom: 2rem;
}

/* --- 1. The Viewport (Top Section) --- */
.service-viewport {
    position: relative;
    width: 100%;
    height: 65vh; /* Takes up a large portion of the screen height */
    background-color: var(--brand-black);
    overflow: hidden;
}

.service-content-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Animation settings */
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 1;
}

/* The active panel becomes visible */
.service-content-panel.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.service-content-panel__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    filter: blur(3px);
}

/* Dark overlay for text readability */
.service-content-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2;
}

.service-content-panel__content {
    position: relative;
    z-index: 3;
    padding: var(--space-32);
    max-width: 650px;
}

.service-content-panel__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--brand-white);
    margin-bottom: var(--space-16);
}

.service-content-panel__desc {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-24);
}

/* --- 2. The Navigation (Bottom Section) --- */
.service-nav {
    background-color: var(--brand-gray);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.service-nav .container {
    display: flex;
    justify-content: space-around;
}

.service-nav-item {
    flex: 1; /* Add this line to make items share space equally */
    padding: var(--space-32) var(--space-24);
    text-align: center;
    cursor: pointer;
    border-left: 1px solid var(--brand-black);
    position: relative;
    transition: background-color 0.3s ease;
}
.service-nav-item:first-child {
    border-left: none;
}

.service-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: background-color 0.4s ease;
}

.service-nav-item__number {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    transition: color 0.3s ease;
}

.service-nav-item__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-white);
    margin: 0;
    transition: color 0.3s ease;
}

/* Hover state */
.service-nav-item:hover {
    background-color: var(--color-surface);
}
.service-nav-item:hover .service-nav-item__title,
.service-nav-item:hover .service-nav-item__number {
    color: var(--brand-gold);
}

/* Active state */
.service-nav-item.is-active {
    background-color: var(--color-surface);
}

.service-nav-item.is-active::before {
    background-color: var(--brand-gold);
}

.service-nav-item.is-active .service-nav-item__title,
.service-nav-item.is-active .service-nav-item__number {
    color: var(--brand-gold);
}
/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {
    .service-nav .container {
        display: grid; /* Use Grid for a two-column layout */
        grid-template-columns: repeat(2, 1fr); /* This creates two equal columns */
        gap: 1px; /* Creates a thin line between items */
        background-color: var(--brand-black); /* This color will show through the gap */
        border-top: 1px solid var(--brand-black);
    }

    .service-nav-item {
        background-color: var(--brand-gray); /* Ensure items have their own background */
        text-align: center;
        padding: var(--space-24) var(--space-16);
    }

    /* Remove styles from the previous scrollable design */
    .service-nav-item::before,
    .service-nav .container::-webkit-scrollbar {
        display: none;
    }
}
/* Portfolio Section */
.portfolio-scroll {
  display: grid;
  gap: var(--space-24);
  padding: var(--space-20) 0; /* Adjusted padding for the new layout */
  
  /* Desktop: 4 columns as you wanted */
  grid-template-columns: repeat(4, 1fr); 
}

.portfolio-scroll::-webkit-scrollbar {
  height: 8px;
}

.portfolio-scroll::-webkit-scrollbar-track {
  background: var(--brand-gray);
}

.portfolio-scroll::-webkit-scrollbar-thumb {
  background: var(--brand-gold);
  border-radius: 4px;
}

.portfolio-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-standard);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item__media {
  width: 100%;
  height:200px;
  background: var(--color-bg-2);
  position: relative;
}

/*  --- thumbnail “frame” ---  */
.portfolio-item__media{
  width:100%;
  overflow:hidden;
  border-radius:8px;
  position:relative;
  background-size: cover;
  
}

.portfolio-item__media img{
  width:100%;
  height:100%;
  /* object-fit:auto;           fills frame without distortion      */
  object-position:center;     
  scale: 100%;
}

.portfolio-item__content {
  padding-top: 1rem;  /* space below image */
  padding-left: 0.75rem; /* space to the left of text */
  padding-right: 0.75rem; /* space to the right of text */
  text-align: center;    /* style as needed   */
}

.portfolio-item__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--brand-gold);
  margin-bottom: var(--space-8);
  
}

.portfolio-item__meta {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* CTA Section */
.cta-section {
  background-color: #1a1a1a; /* Dark gold background */
  border-radius: var(--radius-lg);
  margin: var(--space-32) var(--space-20);
  padding: var(--space-32);
}

.cta-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-16);
  color: var(--brand-gold);
}

.cta-text {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Testimonials */
.testimonials-carousel {
  display: flex;
  gap: var(--space-24);
  overflow-x: auto;
  padding: var(--space-20);
  scroll-snap-type: x mandatory;
}

.testimonial-card {
  min-width: 350px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  scroll-snap-align: start;
  border: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: var(--space-20);
  font-size: 4rem;
  color: var(--brand-gold);
  line-height: 1;
}

.testimonial-quote {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  margin-bottom: var(--space-16);
  color: var(--color-text-secondary);
  font-style: italic;
}

.testimonial-author {
  font-weight: var(--font-weight-semibold);
  color: var(--brand-gold);
}

.testimonial-company {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* Contact Section */
.contact-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding-bottom: 2rem;
}

.contact-form {
  max-width: 500px;
}

.contact-details {
  padding-left: var(--space-32);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  font-size: 1rem;
  justify-content:left;
  /* padding-bottom: 2rem; */
}

.contact-item a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

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

.contact-icon {
  font-size: 1.2rem;
  align-items: left;
  justify-content: center;
}

.Privacy-Policy{
  font-size: 0.95rem;
}

/* Form overrides */
.form-control {
  background-color: var(--brand-gray);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-text);
}

.form-control:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-label {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}

/* Button overrides */
.btn--primary {
  background: var(--brand-gold);
  color: var(--brand-black);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-base);
  text-decoration: none;
  display: inline-block;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  cursor: pointer;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Footer */
.site-footer {
  background: var(--brand-gray);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
  justify-content: center;
  align-items: center;
}

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

.copyright {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* Status messages */
.status {
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-weight: var(--font-weight-medium);
}

.status--success {
  background: rgba(var(--color-success-rgb), 0.1);
  color: var(--color-success);
  border: 1px solid rgba(var(--color-success-rgb), 0.3);
}

.status--error {
  background: rgba(var(--color-error-rgb), 0.1);
  color: var(--color-error);
  border: 1px solid rgba(var(--color-error-rgb), 0.3);
}

/* Animations */
@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

/* Grid utility */
.grid {
  display: grid;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-16);
  }
  
  .hero__title {
    font-size: 3rem;
  }
  
  .hero__tagline {
    font-size: var(--font-size-lg);
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }
  
  .contact-details {
    padding-left: 0;
  }
  
  .main-nav {
    display: none;
  }
  
  .portfolio-item {
    min-width: 280px;
  }
  
  .testimonial-card {
    min-width: 280px;
  }
  
  .cta-title {
    font-size: var(--font-size-2xl);
  }
  
  .about-text {
    font-size: var(--font-size-md);
  }
  .hero__video-bg {
    /* On phones: Lock the width and let height be automatic */
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.5rem;
  }
  
  .portfolio-scroll,
  .testimonials-carousel {
    padding: var(--space-16);
  }
  
  .portfolio-item,
  .testimonial-card {
    min-width: 250px;
  }
}
/* Responsive adjustments for the portfolio grid */

/* For Tablets: Show 2 columns */
@media (max-width: 1024px) {
  .portfolio-scroll {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* For Mobiles: Show 1 column */
@media (max-width: 768px) {
  .portfolio-scroll {
    grid-template-columns: 1fr;
  }
}

/* /style.css */

/* Add this to the bottom of your stylesheet */

.about-content-block {
  margin-bottom: 2rem; /* 32px */
}

.about-service-title {
  color: var(--brand-gold);
  font-size: 1.25rem; /* 20px */
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.75rem; /* 12px */
}

.about-tagline {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-top: 2rem;
}

/* ===== Mobile Navigation Styles ===== */

/* Hamburger Button */
.hamburger-btn {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  color: var(--brand-gold);
  font-size: 1.5rem; /* 24px */
  cursor: pointer;
  z-index: 1001; /* Ensure it's on top */
}

/* Close Button (inside mobile nav) */
.close-btn {
  display: none; /* Hidden on desktop */
  position: absolute;
  top: var(--space-24);
  right: var(--space-24);
  background: none;
  border: none;
  color: var(--brand-gold);
  font-size: 2rem; /* 32px */
  cursor: pointer;
}

/* Responsive adjustments for the menu itself */
@media (max-width: 768px) {
  /* Show the hamburger button on mobile */
  .hamburger-btn {
    display: block;
  }

  /* Show the close button inside the mobile nav */
  .close-btn {
    display: block;
  }
  
  /* Remove the old rule that hid the nav completely */
  /* You can delete the ".main-nav { display: none; }" rule from your media query if it's still there */

  /* Style the navigation as a full-screen overlay */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--brand-black);
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Hide it off-screen by default */
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
  }

  /* "is-open" class will be toggled by JS to show the menu */
  .main-nav.is-open {
    transform: translateX(0);
  }

  /* Style the links for the mobile view */
  .main-nav ul {
    flex-direction: column;
    gap: var(--space-32);
    text-align: center;
  }

  .main-nav .nav-link {
    font-size: var(--font-size-2xl); /* Make links bigger */
  }
}

/* ===== Page Transition Styles ===== */

/* This class on the body triggers the fade-in animation on page load */
/* ===================================
   Page Fade Transition Styles
   =================================== */

/* This class on the body triggers the fade-in animation on page load */
/* body.page-transition {
  opacity: 0;
  animation: page-fade-in 0.4s ease-out forwards;
}

@keyframes page-fade-in {
  to {
    opacity: 1;
  }
}

/* This class will be added by JavaScript to trigger the fade-out */
/* body.page-fade-out {
  opacity: 1; /* Start fully visible */
  /* transition: opacity 0.4s ease-out; */
/* } */

/* body.page-fade-out.is-fading { */
  /* opacity: 0; Fade to invisible */
/* } */ 


.btn--primary {
  background: var(--brand-gold);
  color: var(--brand-black); /* Black text is readable on gold */
  font-weight: var(--font-weight-semibold);
}

.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--color-primary-hover); /* Slightly darker gold */
  color: var(--brand-black); /* Stay black for contrast */
}

@media (max-width: 768px) {
  /* .site-header {} */
  
  .hamburger-btn {
    position: absolute;
    top: 50%;
    right: var(--space-16); /* Distance from right edge */
    transform: translateY(-50%);
    margin: 0;
  }
  
  .logo {
    margin-left: var(--space-16);
  }
}


/* Mobile menu box */
@media (max-width: 768px) {
  .main-nav {
    background: rgba(0, 0, 0, 0.7); /* 70% opacity black */
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform .4s ease-in-out;
    z-index: 1001;
  }
  .main-nav.is-open {
    transform: translateX(0);
  }
  .mobile-menu-box {
    width: 90%;
    max-width: 320px;
    padding: var(--space-24);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
  }
  .mobile-nav-links {
    flex-direction: column;
    gap: var(--space-24);
    margin-top: var(--space-32);
    text-align: right;
  }
  .mobile-nav-links .nav-link {
    font-size: var(--font-size-lg);
    color: var(--brand-white);
  }
}

  .close-btn {
    position: static;
    align-self: flex-end;
    margin-top: auto;
    font-size: 1.75rem;
    color: var(--brand-white);
    background: none;
    border: none;
    cursor: pointer;
  }

  /* Add to bottom of style.css */

/* MOBILE NAV STYLING & BOX */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1001;
  }
  .main-nav.is-open {
    transform: translateX(0);
  }

  .mobile-menu-box {
    width: 90%;
    max-width: 320px;
    padding: var(--space-16) var(--space-24);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    position: relative;
  }

  /* Close “X” button above the links, aligned right */
  .mobile-menu-box .close-btn {
    background: none;
    border: none;
    color: var(--brand-white);
    font-size: 1.75rem;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: var(--space-16);
  }

  /* Menu links container */
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
  }

  /* Each link */
  .mobile-nav-links .nav-link {
    display: block;
    padding: var(--space-4) 0;
    font-size: var(--font-size-lg);
    text-align: left;
    color: var(--brand-white);
    text-decoration: none;
  }
  .mobile-nav-links .nav-link:hover {
    color: var(--brand-gold);
  }
}

/* Add this at the very end of style.css */

/* MOBILE NAV ADJUSTMENTS */
@media (max-width: 768px) {
  .main-nav {
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: flex-start;      /* bring container down */
    padding-top: var(--space-16); /* optional top padding */
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1001;
  }
  .main-nav.is-open {
    transform: translateX(0);
  }

  .mobile-menu-box {
    width: 90%;
    max-width: 320px;
    margin-top: var(--space-20);  /* moves box down from top */
    padding: var(--space-16) var(--space-24);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    position: relative;
  }

  /* Close “X” button at top right of box */
  .mobile-menu-box .close-btn {
    background: none;
    border: none;
    color: var(--brand-white);
    font-size: 1.75rem;
    cursor: pointer;
    align-self: flex-end;         /* right side */
    margin: 0 0 var(--space-12) 0;/* bottom gap before links */
  }

  /* Menu links container */
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);           /* reduced spacing between texts */
  }

  /* Each link */
  .mobile-nav-links .nav-link {
    display: block;
    padding: var(--space-2) 0;     /* minimal vertical padding */
    font-size: var(--font-size-lg);
    text-align: left;
    color: var(--brand-white);
    text-decoration: none;
  }
  .mobile-nav-links .nav-link:hover {
    color: var(--brand-gold);
  }
}


@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: var(--space-16);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1001;
  }
  .main-nav.is-open { transform: translateX(0); }

  .mobile-menu-box {
    width: 90%;
    max-width: 320px;
    margin-top: var(--space-20);
    padding: var(--space-16) var(--space-24);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .mobile-menu-box .close-btn {
    background: none;
    border: none;
    color: var(--brand-white);
    font-size: 1.75rem;
    cursor: pointer;
    align-self: flex-end;
    margin: 0 0 var(--space-12) 0;
  }
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }
  .mobile-nav-links .nav-link {
    display: block;
    padding: var(--space-2) 0;
    font-size: var(--font-size-lg);
    text-align: right;
    color: var(--brand-white);
    text-decoration: none;
  }
  .mobile-nav-links .nav-link:hover {
    color: var(--brand-gold);
  }
}
 /* ===========================================
   n0th1ng Studios — Complete Updated style.css
   Includes original Perplexity design system +
   custom brand overrides + finalized mobile nav
   ================================= */

/* ---------- Root Color & Typography Variables ---------- */
:root {
  /* Primitive Colors */
  --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);
  --hero-bg-scale:0.7;
  /* … (all other original --color-… tokens) … */

  /* Brand Overrides */
  --brand-black: #000000;
  --brand-gray: #121212;
  --brand-white: #ffffff;
  --brand-gold: #d4af37;

  /* Semantic Brand Tokens */
  --color-background: var(--brand-black);
  --color-surface: var(--brand-gray);
  --color-text: var(--brand-white);
  --color-text-secondary: rgba(255,255,255,0.7);
  --color-primary: var(--brand-gold);
  --color-primary-hover: #b8941f;
  --color-primary-active: #9d7f1a;
  --color-btn-primary-text: var(--brand-black);

  /* Typography */
  --font-family-base: "Poppins", "FKGroteskNeue", "Geist", -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-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;

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

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-lg: 12px;

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

/* ---------- Base Styles ---------- */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-background);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; scroll-behavior: smooth; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: var(--font-weight-semibold); line-height: 1.2; color: var(--color-text); }
p { margin: 0 0 var(--space-16) 0; }

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

/* ---------- 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: var(--font-weight-medium);
  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: 0 0 0 3px rgba(33,128,141,0.4); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--color-primary-hover) !important;
  color: var(--color-btn-primary-text) !important;
}
.btn--primary:active {
  background: var(--color-primary-active) !important;
}

/* ---------- Form Controls, Cards, Utilities, etc. ---------- */
/* … include all original Perplexity.css for forms, cards, grids, utilities … */

/* ---------- Custom Overrides for n0th1ng Studios ---------- */
/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  padding: var(--space-16) var(--space-32);
  margin-bottom: 10px;
  background-color: transparent; backdrop-filter: blur(10px); z-index: 1000;
  transition: all var(--duration-normal) var(--ease-standard);
}
.logo { font-family: var(--font-family-base); font-weight: var(--font-weight-bold); font-size: var(--font-size-xl); color: var(--brand-gold); transition: color var(--duration-fast) var(--ease-standard); }
.logo:hover { color: var(--color-primary-hover); }

/* Mobile Hamburger & Menu (final) */
.hamburger-btn { display: none; background: none; border: none; color: var(--brand-gold); font-size: 1.5rem; cursor: pointer; z-index: 1001; }
.close-btn { display: none; }
@media (max-width: 768px) {
  .hamburger-btn { display: block; }
  .site-header .container { justify-content: space-between; padding: var(--space-18); position: left; }

  /* Mobile Nav Backdrop & Box */
  .main-nav {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex; justify-content: center; align-items: flex-start;
    padding-top: var(--space-16);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1001;
  }
  .main-nav.is-open { transform: translateX(0); 
  background: rgba(0, 0, 0, 0.5);
  }

  .mobile-menu-box {
    width: 90%; max-width: 320px;
    background: rgba(0, 0, 0, 0.5);
    margin-top: var(--space-20);
    padding: var(--space-16) var(--space-24);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    display: flex; flex-direction: column;
  }

  /* Close “X” Button */
  .mobile-menu-box .close-btn {
    display: block;
    background: none; border: none;
    color: var(--brand-white); font-size: 1.75rem;
    cursor: pointer; align-self: flex-end;
    margin-bottom: var(--space-12);
  }

  /* Nav Links */
  .mobile-nav-links {
    display: flex; flex-direction: column; gap: var(--space-8);
  }
  .mobile-nav-links .nav-link {
    display: block; padding: var(--space-2) 0;
    font-size: var(--font-size-lg); text-align: left;
    color: var(--brand-white);
  }
  .mobile-nav-links .nav-link:hover {
    color: var(--brand-gold);
  }
}

/* Ensure all desktop nav CSS remains unaffected */
@media (min-width: 769px) {
  /* .main-nav { original desktop nav styling } */
  .main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-16); }
  .nav-link { color: var(--color-text-secondary); position: relative; transition: color var(--duration-fast) var(--ease-standard); }
  .nav-link:hover, .nav-link.active { color: var(--brand-gold); }
  .nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--brand-gold); transition: width var(--duration-normal) var(--ease-standard); }
  .nav-link:hover::after, .nav-link.active::after { width: 100%; }
}

/* ---------- Responsive & Miscellaneous ---------- */
/* … include any remaining responsive rules from original code … */

/* @media (max-width: 768px) {
  .hero__bg {
    height: auto; /* allow height to adjust */
    /* width: 100%; full width */
    /* background-size: contain;      ensure it fills container */
    /* background-position: center; center the focal point */
    /* background-repeat: no-repeat; */
    /* if you want the entire image visible, use “contain” instead: */
    /* background-size: contain; 
  }
} */

/* New Institution Card Styles */
.institution-card {
  border-radius: var(--radius-lg);
  color: var(--brand-white);
  padding: var(--space-24);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(212, 175, 55, 0.3);
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.institution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--brand-gold);
}

.institution-card__content {
  position: relative;
  z-index: 2;
}

.institution-card__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--brand-white);
  margin-bottom: var(--space-8);
}

.institution-card__roles {
  font-size: var(--font-size-md);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-16);
  line-height: 1.4;
}

.institution-card__count {
  display: inline-block;
  background-color: var(--brand-gold);
  color: var(--brand-black);
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

/* Portfolio Grid Layout */
/* We already have .portfolio-scroll, let's just ensure it looks good */
.portfolio-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-24);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background-color: var(--brand-gray);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  width: 75vw; /* This means 95% of the viewport's width */
  height: 75vh; /* This means 95% of the viewport's height */
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.5);
  transform: scale(1);
  transition: transform 0.3s ease-in-out;
}

.modal-overlay.hidden .modal-content {
    transform: scale(0.95);
}


.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: var(--brand-white);
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
}

.modal-title {
  color: var(--brand-gold);
  margin-bottom: var(--space-24);
  padding-right: 40px; /* Space for close button */
}

.modal-projects-grid {
  display: grid;
  /* This creates columns with a fixed width, preventing stretching */
  grid-template-columns: repeat(auto-fit, 300px); 
  gap: var(--space-24);
  /* This centers the items if the row isn't full */
  justify-content: left; 
}

.portfolio-item-modal {
  display: block;
  text-decoration: none;
  background: #1a1a1a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.portfolio-item-modal:hover {
  border-color: var(--brand-gold);
}

/* ADD THIS CSS FOR THE CUSTOM VIDEO MODAL */

.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.video-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  
  /* Add a border, rounded corners, and a glow effect */
  border: 2px solid var(--brand-gold);
  border-radius: var(--radius-lg); /* Matches the site's border radius */
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4); /* Gold glow effect */
  overflow: hidden; /* Ensures the border-radius applies to the video */
}

.video-modal-close-btn {
  position: absolute;
  top: -45px; /* Adjusted position */
  right: 0;
  font-size: 2rem; /* Slightly smaller */
  color: #aaa;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid #444;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px; /* Vertically centers the '×' */
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-modal-close-btn:hover {
  color: var(--brand-white);
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  transform: rotate(90deg);
}

.video-player {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* ===== Sticky Footer Fix ===== */
html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

.maintenance-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-16);
  color: var(--brand-gold);
  display:flex;
  justify-items: left;
  align-items: center;
}
.hero__content--top-left {
    position: absolute;
    top: var(--space-32);
    left: var(--space-32);
    z-index: 3;
    text-align: left; /* This aligns the text inside the container */
}
/* ===================================================================
   6. SERVICE SHOWCASE LAYOUT (Services Page)
   =================================================================== */

.service-showcase {
    padding-top: 120px; /* Offset for fixed header */
}

.section-header {
    margin-bottom: 60px; /* Space between header and first feature */
}

.service-feature {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Visual column is smaller */
    align-items: center;
    gap: 60px;
    padding: 60px 0;
    border-bottom: 1px solid var(--color-border);
}

.service-feature:last-child {
    border-bottom: none;
}

/* Modifier class to reverse the column order */
.service-feature--reversed {
    grid-template-columns: 1.2fr 1fr;
}

.service-feature--reversed .service-feature__visual {
    order: 2; /* Flips the visual to the second column */
}

.service-feature__visual {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    position: relative; /* Add this line */
    overflow: hidden;
}

/* Add this new rule for the vignette effect */
.service-feature__visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 80px 30px rgba(0, 0, 0, 0.75);
    pointer-events: none; /* Ensures the overlay doesn't interfere with mouse clicks */
}

/* ADD THIS NEW BLOCK */
.service-feature__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is key: it scales the image to fill the box without distortion */
    transition: transform 0.4s ease;
    background-color: var(--color-surface);
    border-radius: inherit;
    border: 2px solid var(--brand-gold); /* Ensures the image inherits the container's rounded corners */
    box-shadow: inset 0 0 80px 30px rgba(0, 0, 0, 0.75);
}
/* DELETE THIS ENTIRE RULE
.service-feature:hover .service-feature__visual {
    border-color: var(--brand-gold);
} */

.service-feature__title {
    font-size: var(--font-size-3xl);
    color: var(--brand-gold);
    margin-bottom: var(--space-16);
}

.service-feature__desc {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-24);
}

/* Responsive adjustments for the showcase layout */
@media (max-width: 992px) {
    .service-feature,
    .service-feature--reversed {
        gap: 40px;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .service-feature,
    .service-feature--reversed {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        text-align: center;
    }

    .service-feature--reversed .service-feature__visual {
        order: -1; /* Ensure visual is always on top on mobile */
    }

    .service-feature__content {
        margin-top: 30px;
    }

    .service-feature__title {
        font-size: var(--font-size-2xl);
    }
}
/* --- Centered CTA Button on Portfolio Page --- */
.cta-button-wrapper {
    text-align: center;
    margin-bottom: 40px; /* Creates space between the button and the project grid */
}
.video-player {
  display: flex;
  justify-content: center; /* Horizontally centers the image */
  align-items: center;    /* Vertically centers the image */
  width: 100%;
  height: 100%;
}
/* Add to the bottom of style.css */

/* =======================================================
   Vanity Stats Section (Final Cleaned Version)
   ======================================================= */

.vanity-stats-section {
  padding: 60px 0;
  background-color: var(--brand-black);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32);
  margin-top: 40px;
}

/* --- The Main Container (Holds space in the grid) --- */
.stat-item {
  position: relative; /* Acts as an anchor for the floating card */
  cursor: pointer;
  /* KEY FIX: This reserves vertical space to prevent layout shift. */
  min-height: 160px; 
}

/* --- The Inner Wrapper (This is what animates) --- */
.stat-item__content {
  /* KEY FIX: 'absolute' lifts the card out of the page flow, so it can't push other elements. */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* These flex properties vertically center the content before the description appears */
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  text-align: center;
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  background-color: transparent;
  border: 1px solid transparent;
  
  /* Animate all property changes for a smooth effect */
  transition: transform 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, heights ease;
}

/* --- The "Pop-Up Card" effect on the Inner Wrapper --- */
.stat-item:hover .stat-item__content,
.stat-item.is-active .stat-item__content {
  height: auto;
  min-height: 100%;
  transform: translateY(-10px) scale(1.05);
  background-color: var(--color-surface);
  border-color: var(--brand-gold);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  z-index: 10; /* Ensures the active card appears above its neighbors */
}

/* --- Stat Value (e.g., "250K+") with Animated Shine --- */
.stat-item__value {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  background: linear-gradient( 110deg, #999999 30%, #e0e0e0 50%, #999999 70% );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shine-animation 4s linear infinite;
}

@keyframes text-shine-animation {
  to { background-position: -200% center; }
}

/* --- Stat Label (e.g., "Audience Reach") --- */
.stat-item__label {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  margin-top: var(--space-8);
  line-height: 1.4;
  background: linear-gradient( to bottom, var(--brand-white), var(--color-text-secondary) );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Stat Description (Hidden by default) --- */
.stat-item__desc {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-secondary);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, height 0.4s ease, margin-top 0.4s ease;
}

/* --- Revealing the Description inside the card --- */
.stat-item:hover .stat-item__desc,
.stat-item.is-active .stat-item__desc {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-top: var(--space-16);
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-24);
  }
}

@media (max-width: 768px) {
  .vanity-stats-section { padding: 40px 0; }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }
  .stat-item__value { font-size: 2.5rem; }
  .stat-item:hover .stat-item__content,
  .stat-item.is-active .stat-item__content {
     transform: translateY(-10px); /* No scale on mobile */
  }
}

/* ===================================
   About Page Redesign Styles
   =================================== */

/* --- 1. About Hero Section --- */
.about-hero-section {
  padding: 180px 0 100px 0;
  background: linear-gradient(to bottom, var(--brand-gray), var(--brand-black));
  text-align: center;
}

.about-page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-weight-bold);
  color: var(--brand-white);
  margin-bottom: var(--space-16);
}

.about-page-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- 2. Founder Section --- */
.founder-section {
  padding: 80px 0;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 60px;
}

.founder-image {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--brand-gold);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-content p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-24);
}

.founder-highlight-box {
  background-color: var(--color-surface);
  padding: var(--space-12) var(--space-16);
  border-left: 4px solid var(--brand-gold);
  border-radius: 0 var(--radius-base) var(--radius-base) 0;
}

.founder-name {
  font-weight: var(--font-weight-semibold);
  color: var(--brand-white);
  margin: 0;
}

.founder-social {
  color: var(--brand-gold);
  font-size: var(--font-size-sm);
}
.founder-social:hover {
  color: var(--color-primary-hover);
}

/* --- 3. Philosophy Section --- */
.philosophy-section {
  background-color: var(--color-surface);
  padding: 80px 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32);
  margin-top: 40px;
}

.philosophy-item {
  padding: var(--space-24);
}

.philosophy-icon {
  font-size: 2.5rem;
  color: var(--brand-gold);
  margin-bottom: var(--space-16);
}

.philosophy-item h3 {
  font-size: var(--font-size-xl);
  color: var(--brand-white);
  margin-bottom: var(--space-12);
}

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

/* --- 4. Services Accordion --- */
.services-detailed-section {
  padding: 80px 0;
}

.services-accordion {
  max-width: 800px;
  margin: 40px auto 0 auto;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.accordion-item {
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-20);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  color: var(--brand-white);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: rgba(212, 175, 55, 0.05);
}

.accordion-header i {
  color: var(--brand-gold);
  transition: transform 0.4s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.accordion-content p {
  padding: 0 var(--space-20) var(--space-20) var(--space-20);
  margin: 0;
}

/* Accordion Open State */
.accordion-item.is-open .accordion-header i {
  transform: rotate(180deg);
}

.accordion-item.is-open .accordion-content {
  max-height: 300px; /* Adjust if content is taller */
}

/* --- 5. Credibility Section --- */
.credibility-section {
  background-color: var(--color-surface);
  padding: 60px 0;
}

.credibility-box {
  display: inline-flex;
  align-items: center;
  gap: var(--space-16);
  background-color: var(--brand-black);
  padding: var(--space-16) var(--space-24);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.credibility-box i {
  color: var(--brand-gold);
  font-size: 1.5rem;
}

.credibility-box p {
  margin: 0;
  color: var(--color-text-secondary);
}
.credibility-box p strong {
  color: var(--brand-white);
  font-weight: var(--font-weight-medium);
}


/* --- Responsive Adjustments for About Page --- */
@media (max-width: 992px) {
  .founder-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .founder-content {
    margin-top: 40px;
  }
  .founder-highlight-box {
    display: inline-block;
  }
  .section-title {
    text-align: center !important;
  }
}

@media (max-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .philosophy-item {
    padding: var(--space-16) 0;
  }
}

/* ===================================
   Swup.js Page Transition Styles
   =================================== */

/* This defines the fade animation */
.transition-fade {
  transition: opacity 0.4s;
  opacity: 1;
}

/* Swup adds this class to the html tag when a page is leaving */
html.is-leaving .transition-fade {
  opacity: 0;
}
.team-hero-section {
    padding-top: 140px; /* More space below the fixed header */
    padding-bottom: 60px;
    background: linear-gradient(180deg, var(--brand-gray) 0%, var(--brand-black) 100%);
}

.section-heading {
    font-size: var(--font-size-3xl);
    color: var(--brand-white);
    margin-bottom: 40px;
    font-weight: var(--font-weight-semibold);
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brand-gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* --- 2. Founder Showcase Section --- */
.founder-section {
    padding: 60px 0;
    background-color: var(--brand-black);
}

.founder-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--color-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.founder-card__image-wrapper {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--brand-gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.founder-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-card__name {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--brand-white);
}

.founder-card__designation {
    font-size: var(--font-size-xl);
    color: var(--brand-gold);
    margin-top: 8px;
    margin-bottom: 24px;
}

.founder-card__bio {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.founder-card__socials {
    display: flex;
    gap: 24px;
}

.founder-card__socials a {
    color: var(--color-text-secondary);
    font-size: 1.5rem; /* Larger icons for the founder */
    transition: color 0.3s ease, transform 0.3s ease;
}

.founder-card__socials a:hover {
    color: var(--brand-gold);
    transform: translateY(-4px);
}

/* --- 3. Core Leadership & Main Team Grids --- */
.core-team-section {
    padding: 60px 0;
}
.team-grid-section {
    padding: 60px 0;
}
.core-team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* --- 4. NEW Interactive Team Card --- */
/* =======================================================
   FINAL & DEFINITIVE Team Card Layout
   ======================================================= */

.team-card {
    display: flex;
    flex-direction: column; /* Stacks image and content vertically */
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.15);
    overflow: hidden;
    transition: all 0.4s ease;

    /* KEY: A fixed, non-negotiable height for every card to guarantee uniformity. */
    height: 460px; 
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--brand-gold);
}

.team-card__image-wrapper {
    width: 100%;
    position: relative;
    /* KEY: This area will grow to fill the space left by the fixed-height content below. */
    flex-grow: 1; 
    overflow: hidden;
}

.team-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card__image {
    transform: scale(1.15);
}

.team-card__content {
    display: flex;
    flex-direction: column;
    text-align: left;
    /* KEY: A fixed height for the content area. It will not resize. */
    height: 100px;
    width: 300px ; 
    flex-shrink: 0; /* Prevents this area from shrinking */
    padding: 24px;
}

.team-card__text-wrapper {
    flex-grow: 1; /* Pushes socials to the bottom */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card__name {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--brand-white);
    margin: 0;
}

.team-card__designation {
    color: var(--brand-gold);
    margin-top: 4px;
    font-size: 1rem;
    min-height: 24px; /* Ensures space even if designation is short */
}

.team-card__socials {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    margin-top: auto; /* Pushes itself to the bottom of the content area */
    border-top: 1px solid transparent;
    display: flex;
    justify-content: center;
    gap: 20px;
    transition: opacity 0.4s ease, max-height 0.4s ease, padding-top 0.4s ease, border-color 0.4s ease;
}

.team-card:hover .team-card__socials {
    opacity: 1;
    max-height: 100px;
    padding-top: 0.7rem;
    border-color: rgba(212, 175, 55, 0.2);
}

.team-card__socials a {
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    padding-bottom: 0.7rem;
}

.team-card__socials a:hover {
    color: var(--brand-gold);
    transform: scale(1.2);
}

/* --- 5. Responsive Adjustments --- */
@media (max-width: 900px) {
    .founder-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .founder-card__socials {
        justify-content: center;
    }
}
.team-divider {
    border: none;
    height: 1px;
    width: 70%;
    margin: 4rem auto;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.5), transparent);
}
/* MODIFIED LOGO LINK STYLING */
.logo {
  position: relative; /* Allows positioning of the shine element inside it */
  overflow: hidden;   /* Prevents the shine from appearing outside the logo */
  border-radius: 50%;
}

/* 2. Create the shine element itself */
.logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%; /* Start the shine off-screen to the left */
  width: 75%;
  height: 100%;
  border-radius: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg); /* Angle the shine */
  animation: logo-shine 5s infinite linear; /* Apply the animation */
}

/* 3. Define the animation that moves the shine */
@keyframes logo-shine {
  from {
    left: -150%; /* Start position */
  }
  to {
    left: 150%; /* End position (swept across) */
  }
}

/* NEW LOGO IMAGE STYLING */
.logo-img {
  height: 50px; /* Controls the height of the logo */
  width: auto;  /* Maintains aspect ratio */
  border-radius: 10%;
  object-fit: cover;
  vertical-align: middle; /* Improves alignment within the header */
}
.logo-foot{
  position:relative;
  overflow:hidden;
  scale: 150%;
}
