: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: transparent;
  -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: transparent;
  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%;
}
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1; /* This is crucial - it places the canvas behind all your content */
  background-color: var(--brand-black);
}
/* 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: transparent; /* 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 */
/* UNIVERSAL CARD STYLES */
/* From Uiverse.io by MuhammadHasann */ 
/* From Uiverse.io by Cksunandh */ 
.m2 {
  position: relative;
  width: 20vmin; /* Reduced size */
  height: 20vmin; /* Reduced size */
  background: linear-gradient(135deg, #1e1e24 10%, #050505 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  animation: gradient-shift 5s ease-in-out infinite; /* Faster animation */
  background-size: 200% 200%; /* Gradient shift */
}

.m2 .m2_title__container .m2_title{
  font-size: 1rem;
  color: var(--white); 
}

.m2 .m2_title__container .m2_paragraph{
  margin-top: 0.25rem;
  width: 65%;

  font-size: 0.5rem;
  color: var(--paragraph);
}


.m2::before,
.m2::after {
  --size: 5px; /* Reduced glow size */
  content: "";
  position: absolute;
  top: calc(var(--size) / -2);
  left: calc(var(--size) / -2);
  width: calc(100% + var(--size));
  height: calc(100% + var(--size));
  background: radial-gradient(circle at 0 0, hsl(27deg 93% 60%), transparent),
    radial-gradient(circle at 100% 0, #00a6ff, transparent),
    radial-gradient(circle at 0 100%, #ff0056, transparent),
    radial-gradient(circle at 100% 100%, #6500ff, transparent);
}

.m2::after {
  --size: 2px; /* Reduced inner glow size */
  z-index: -1;
}

.m2::before {
  --size: 10px; /* Reduced outer glow size */
  z-index: -2;
  filter: blur(2vmin); /* Reduced blur */
  animation: blur-animation 3s ease-in-out alternate infinite; /* Faster blur animation */
}

/* Faster blur animation */
@keyframes blur-animation {
  to {
    filter: blur(3vmin);
    transform: scale(1.05);
  }
}

/* Faster gradient animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



/* Card From Universe */
/* From Uiverse.io by MuhammadHasann */ 

/* Card Universe */

/* --- Universal Glassmorphism Utility Class --- */
/* 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: transparent;
}
*, *::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);
    }
}
/* ===================================
   Studio Deck CTA Section
   =================================== */
.cta-deck-section {
    padding: 60px var(--space-20);
    background-color: transparent;
}

.cta-deck__title {
    font-size: var(--font-size-2xl);
    color: var(--brand-white);
    margin-bottom: var(--space-12);
}

.cta-deck__text {
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-24) auto;
    line-height: 1.7;
}
/* ===================================
   PDF Deck Modal Styles
   =================================== */
.deck-modal-content {
    width: 90%;
    height: 90%;
    max-width: 1100px;
    background-color: var(--brand-gray);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Important for border-radius */
    position: relative;
}

.deck-modal-content {
    width: 90%;
    height: 90%;
    max-width: 1100px;
    background-color: var(--brand-gray);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Important for border-radius */
    position: relative;
}

.deck-image-viewer {
    flex-grow: 1; /* Allows the image viewer to take up all available space */
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensures image doesn't overflow its container */
    padding: var(--space-16);
}

#deck-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Scales the image to fit without cropping or stretching */
    border-radius: var(--radius-sm);
}

.deck-modal-footer {
    padding: var(--space-16);
    text-align: center;
    background-color: var(--brand-black);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.deck-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-24);
  user-select: none; /* Prevents text selection on controls */
}

.deck-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.deck-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--brand-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.deck-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.deck-arrow--prev {
    left: 20px;
}

.deck-arrow--next {
    right: 20px;
}

/* ===================================
   Redesigned Partners Section
   =================================== */
.partners-section-redesigned {
    padding: 40px 0;
    text-align: center;
}

.partners-grid-redesigned {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-32);
    margin-top: var(--space-32);
}

.partner-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-32);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    
    /* Flexbox sizing: it won't grow, it can shrink, and its ideal width is 350px */
    flex: 0 1 350px;

    /* This ensures the image and text inside the card are centered */
    text-align: center; 
}

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

.partner-card__logo-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-24);
    height: 100px; /* Fixed height container */
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-card__logo-wrapper img {
    max-height: 80px;
    width: auto;
    filter: grayscale(1) brightness(1.5);
    transition: filter 0.3s ease;
}

.partner-card:hover .partner-card__logo-wrapper img {
    filter: grayscale(0);
}

.partner-card__type {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--brand-white);
    margin: 0;
}

.partner-card__name {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-4);
}

/* Shine effect on logo for the redesigned cards */
.partner-card__logo-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: partner-shine 5s infinite linear;
    animation-delay: var(--animation-delay, 0s);
}
/* --- 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: transparent;
}

.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: transparent;
  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);
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(71deg, #080509, #1a171c, #080509);
  background-clip: padding-box;
  border-radius: 45px;
  padding: 40px;
}

.philosophy-item {
  position: relative;
  border: 2px solid transparent; /* keep this for spacing */
  border-radius: 45px;
  background: linear-gradient(71deg, #080509, #1a171c, #080509);
  background-clip: padding-box; /* important */
}

/* Thin gold border only */
.philosophy-item::after {
  content: "";
  position: absolute;
  top: -2px;      /* slightly outside */
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  border-radius: 47px; /* slightly bigger than card */
  background: linear-gradient(71deg, #110e0e, #afa220, #110e0e);
  padding: 2px;           /* this creates the "thin" effect */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude; /* keep center transparent */
}


.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: 2px solid transparent; /* spacing for gold border */
  position: relative;
  border-radius: 45px;
  background: linear-gradient(71deg, #080509, #1a171c, #080509);
  background-clip: padding-box;
  padding: 20px;
}

/* Thin gold border for accordion container */
.services-accordion::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  border-radius: 47px;
  background: linear-gradient(71deg, #110e0e, #afa220, #110e0e);
  padding: 2px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

.accordion-item {
  border-bottom: 2px solid transparent; /* spacing for border effect */
  position: relative;
  border-radius: 25px;
  background: linear-gradient(71deg, #080509, #1a171c, #080509);
  background-clip: padding-box;
  margin-bottom: 20px;
  overflow: hidden;
}

/* Thin gold border for each item */
.accordion-item::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  z-index: -1;
  border-radius: 27px;
  background: linear-gradient(71deg, #110e0e, #afa220, #110e0e);
  padding: 1px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

.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: transparent;
  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-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%;
}
/* ===================================
   Partners Section Styles
   =================================== */

.partners-section {
  padding: 40px 0;
  text-align: center;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-32);
  flex-wrap: wrap;
  margin-top: var(--space-32);
}

.partner-logo {
  /* ADD THESE TWO LINES */
  position: relative;
  overflow: hidden;

  /* These lines were already correct */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
}

.partner-logo img {
  display: block;
  max-height: 150px; /* Was 80px, adjust if you need larger/smaller */
  width: auto;
  filter: grayscale(1) brightness(1.2) contrast(1.1);
  transition: filter 0.3s ease;
}

.partner-type {
  font-size: var(--font-size-base); /* Was --font-size-sm */
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  margin: 0;
  text-align: center;
}

.partner-logo:hover img {
  /* Optional: Reveals original colors on hover */
  filter: grayscale(0);
}

/* This pseudo-element is the animated shine */
.partner-logo::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 150px; /* CHANGE: Match the logo's max-height */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: partner-shine 5s infinite linear;
  animation-delay: var(--animation-delay, 0s);
}
/* The animation that moves the shine across the logo */
@keyframes partner-shine {
  from {
    left: -75%;
  }
  to {
    left: 125%;
  }
}

.intro-section {
  background-color: transparent; /* Matches your site's background */
  padding: 80px 0; /* Uses your standard section padding */
}

.intro-section h2 {
  color: var(--brand-gold); /* Uses your primary brand accent color */
  font-size: var(--font-size-3xl); /* Matches other section titles */
  margin-bottom: var(--space-32); /* Standard spacing below a title */
}

.intro-section p {
  color: var(--color-text-secondary); /* Softer white for readability */
  font-size: var(--font-size-lg);
  line-height: 1.8;
  max-width: 750px; /* Constrains line length for easier reading */
  margin-left: auto;
  margin-right: auto;
}

/* Make the second paragraph have a bit of space above it */
.intro-section p + p {
    margin-top: var(--space-24);
}

.intro-section a {
  color: var(--brand-gold);
  font-weight: var(--font-weight-medium);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--duration-fast) var(--ease-standard);
}

.intro-section a:hover {
  color: var(--color-primary-hover); /* Uses your defined hover color */
}
/* ===================================
   NEW ELEGANT TEAM PAGE REDESIGN
   =================================== */

/* --- 1. Hero Section --- */
.team-redesign__hero {
    padding: 160px 0 80px 0;
    background: linear-gradient(180deg, var(--brand-black) 0%, #0a0a0a 100%);
}
.team-redesign__hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--brand-white);
    margin-bottom: var(--space-16);
}
.team-redesign__hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- 2. Shared Section Styles --- */
.team-redesign__section {
    padding: 80px 0;
}
.team-redesign__section-title {
    font-size: var(--font-size-3xl);
    text-align: center;
    margin-bottom: 60px;
    color: var(--brand-white);
    font-weight: var(--font-weight-semibold);
    position: relative;
}
.team-redesign__section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--brand-gold);
}

/* --- 3. Founder Showcase --- */
/* --- 3. Founder Showcase --- */
.team-redesign__founder-section {
    padding: 60px 0;
    background-color: #0a0a0a;
}

/* New Wrapper to hold multiple founders */
.founders-grid-wrapper {
    display: grid;
    /* This ensures they sit side-by-side on desktops, stacks on tablets */
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 40px;
    width: 100%;
}

.founder-card--new {
    display: grid;
    /* Slightly reduced image size (250px) to ensure two cards fit side-by-side nicely */
    grid-template-columns: 250px 1fr; 
    align-items: center;
    gap: 40px;
    background-color: transparent;
    border-radius: var(--radius-lg);
    /* Optional: Add a subtle border to distinguish the two cards if needed */
    /* border: 1px solid rgba(212, 175, 55, 0.1); */
    padding: 20px;
}

.founder-card--new__image-wrapper {
    width: 250px; /* Matched to grid column */
    height: 250px;
    border-radius: 50%;
    border: 3px solid var(--brand-gold);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    overflow: hidden;
    margin: 0 auto; /* Center image in its cell */
}

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

.founder-card--new__name {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive font size */
    font-weight: var(--font-weight-bold);
    color: var(--brand-white);
    line-height: 1.1;
}

.founder-card--new__designation {
    font-size: 1.3rem;
    color: var(--brand-gold);
    margin: 8px 0 20px 0;
}

.founder-card--new__bio {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.founder-card--new__socials {
    display: flex;
    gap: 20px;
}

.founder-card--new__socials a {
    color: var(--color-text-secondary);
    font-size: 1.6rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

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

/* Responsive: Stack columns on smaller screens */
@media (max-width: 992px) {
    .founders-grid-wrapper {
        grid-template-columns: 1fr; /* Stack the two founders */
    }
    
    .founder-card--new {
        grid-template-columns: 1fr; /* Stack image and text within card */
        text-align: center;
        gap: 30px;
    }
    
    .founder-card--new__socials {
        justify-content: center;
    }
}

/* --- 4. Core Leadership Grid --- */
/* ===================================
   FINAL - Core Leadership Section (Centered Design)
   =================================== */

.team-redesign__core-grid {
    display: grid;
    /* This creates 2 columns on desktop, and stacks to 1 on smaller screens */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    justify-content: center;
}

.core-card--new {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--color-surface);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px 24px; /* More vertical padding */
    transition: all 0.3s ease;
}

.core-card--new:hover {
    transform: translateY(-8px);
    border-color: var(--brand-gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.3); /* Added a gold glow */
}

.core-card--new__image-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 24px;
    border: 3px solid var(--brand-gold);
    transition: transform 0.3s ease;
}

.core-card--new:hover .core-card--new__image-wrapper {
    transform: scale(1.05);
}

.core-card--new__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.core-card--new__name {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--brand-white);
    margin: 0;
}

.core-card--new__designation {
    color: var(--brand-gold);
    margin: 8px 0 24px 0;
}

.core-card--new__socials {
    display: flex;
    gap: 24px;
}

.core-card--new__socials a {
    color: var(--color-text-secondary);
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.core-card--new__socials a:hover {
    color: var(--brand-gold);
    transform: scale(1.1);
}

/* --- 5. Main Creative Team Grid --- */
.team-redesign__main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}
.member-card--new {
    position: relative;
    height: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-surface);
}
.member-card--new__image-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.member-card--new__image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.member-card--new__overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: var(--space-24);
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    transform: translateY(40%); /* Hides socials by default */
    transition: transform 0.4s ease;
}
.member-card--new__name {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--brand-white);
    margin: 0;
}
.member-card--new__designation {
    color: var(--brand-gold);
    margin-top: 4px;
}
.member-card--new__socials {
    margin-top: 16px;
    display: flex;
    gap: 16px;
}
.member-card--new__socials a {
    color: var(--brand-white);
    font-size: 1.2rem;
}
/* Interaction styles for Main Team cards */
.member-card--new:hover .member-card--new__image {
    transform: scale(1.1);
    filter: brightness(0.8);
}
.member-card--new:hover .member-card--new__overlay {
    transform: translateY(0);
}

/* --- 6. Responsive Adjustments --- */
@media (max-width: 992px) {
    .founder-card--new {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .founder-card--new__image-wrapper {
        margin: 0 auto;
    }
    .founder-card--new__socials {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .team-redesign__core-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Interactive Gradient Card Section (Gold Theme)
   =================================== */

.interactive-notice-container {
  display: flex;
  justify-content: center;
  gap: var(--space-32);
  flex-wrap: wrap; /* Allows cards to stack on smaller screens */
}

.gradient-card {
  position: relative;
  width: 380px;
  min-height: 280px;
  padding: var(--space-24) var(--space-32);
  border-radius: 32px;
  overflow: hidden;
  background-color: #0e131f;
  /* Shadow color changed to gold/yellow */
  box-shadow: 0 -10px 100px 10px rgba(212, 175, 55, 0.15), 0 0 10px 0 rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
}

/* Card Layers */
.gradient-card-overlay-glass,
.gradient-card-overlay-noise,
.gradient-card-glow-bottom,
.gradient-card-glow-central,
.gradient-card-border-glow {
  position: absolute;
  inset: 0;
  pointer-events: none; /* Allows clicking through the effect layers */
}

.gradient-card-overlay-glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 40%);
  backdrop-filter: blur(2px);
  z-index: 4;
}

.gradient-card-overlay-noise {
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 3;
}

/* Glow colors changed to gold/yellow */
.gradient-card-glow-bottom {
  background: 
    radial-gradient(ellipse at bottom right, rgba(212, 175, 55, 0.5) -10%, transparent 70%),
    radial-gradient(ellipse at bottom left, rgba(255, 204, 51, 0.5) -10%, transparent 70%);
  filter: blur(50px);
  z-index: 1;
  opacity: 0.8;
}

/* Glow color changed to gold/yellow */
.gradient-card-glow-central {
  background: radial-gradient(circle at bottom center, rgba(212, 175, 55, 0.6) -20%, transparent 60%);
  filter: blur(55px);
  z-index: 2;
  transform: translateY(10%);
  opacity: 0.75;
}

/* Border glow colors changed to gold/yellow */
.gradient-card-border-glow {
  bottom: 0;
  top: auto; /* override 'inset' */
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 223, 102, 0.7) 50%, transparent 100%);
  box-shadow: 0 0 15px 3px rgba(212, 175, 55, 0.6), 0 0 25px 5px rgba(212, 175, 55, 0.5), 0 0 35px 7px rgba(255, 204, 51, 0.3);
  z-index: 5;
}

/* Card Content Styling */
.gradient-card-content {
  position: relative;
  z-index: 10;
}

.gradient-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-20);
  background: linear-gradient(225deg, #171c2c 0%, #121624 100%);
  box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.25), inset 1px 1px 3px rgba(255, 255, 255, 0.12), inset -2px -2px 4px rgba(0, 0, 0, 0.5);
  font-size: 1.2rem;
  color: var(--brand-white);
}

.gradient-card-content h3 {
  color: var(--brand-white);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-12);
}

.gradient-card-content p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
/* MEMBER LOGIN STYLES */
.login-card {
  background-color: var(--color-surface);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--brand-gold);
}

.login-form .form-control {
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  background-color: var(--brand-black);
  color: var(--brand-gold);
  border: 1px solid rgba(212, 175, 55, 0.2);
  height: 60px;
}

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

/* Shake Animation for wrong password */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
  75% { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}

/* ===================================
   DASHBOARD & MAIL CLIENT STYLES
   =================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-32);
    min-height: 60vh;
}

/* Sidebar Navigation */
.dashboard-sidebar {
    background: var(--color-surface);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-16);
    height: fit-content;
}

.dash-nav-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: var(--radius-base);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--brand-white);
}

.dash-nav-btn.active {
    background: var(--brand-gold);
    color: var(--brand-black);
    font-weight: 600;
}

/* Tab Content Logic */
.dash-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.dash-tab-content.active {
    display: block;
}

/* Notices Styles */
.notice-card {
    background: var(--brand-gray);
    border-left: 4px solid var(--brand-gold);
    padding: var(--space-20);
    margin-bottom: var(--space-16);
    border-radius: 4px;
}
.notice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.notice-tag.urgent { color: #ff4d4d; font-weight: bold; }
.notice-date { color: #666; }

/* === MAIL COMPOSER (Gmail Clone) === */
.mail-composer-container {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.mail-header {
    background: #222;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.mail-header h2 {
    font-size: 1rem;
    color: #ddd;
    margin: 0;
}

.window-controls { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mail-form {
    padding: 0;
}

.mail-input-group {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #333;
}

.mail-input-group label {
    width: 60px;
    color: #888;
    font-size: 0.9rem;
}

.mail-input-group input {
    background: transparent;
    border: none;
    color: var(--brand-white);
    width: 100%;
    font-size: 0.95rem;
    font-family: inherit;
}
.mail-input-group input:focus { outline: none; }

.toggle-row { padding: 4px 16px; justify-content: flex-end; }
.toggle-cc-bcc { font-size: 0.8rem; color: #888; cursor: pointer; }
.toggle-cc-bcc:hover { color: var(--brand-white); }

.editor-toolbar {
    padding: 8px 16px;
    border-bottom: 1px solid #333;
    display: flex;
    gap: 12px;
}
.editor-toolbar button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
}
.editor-toolbar button:hover { color: var(--brand-white); }

.mail-body-wrapper {
    min-height: 300px;
    background: #1a1a1a;
}

.mail-body-textarea {
    width: 100%;
    height: 300px;
    background: transparent;
    border: none;
    color: #eee;
    padding: 16px;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}
.mail-body-textarea:focus { outline: none; }

/* Attachments */
.attachment-area {
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.file-chip {
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.file-chip i { cursor: pointer; color: #ff4d4d; }

/* Footer */
.mail-footer {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
}
.footer-left { display: flex; align-items: center; gap: 16px; }
.send-btn {
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 600;
}
.icon-btn, .attach-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.icon-btn:hover, .attach-btn:hover { color: var(--brand-white); }
.delete-btn:hover { color: #ff4d4d; }

/* Mobile Response */
@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-sidebar {
        display: flex;
        overflow-x: auto;
        padding: 8px;
    }
    .dash-nav-btn { width: auto; white-space: nowrap; margin-bottom: 0; margin-right: 8px; }
}

/* RICH TEXT EDITOR STYLES */
.mail-body-editor {
    width: 100%;
    min-height: 300px;
    background: transparent;
    border: none;
    color: #eee;
    padding: 16px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    outline: none;
    overflow-y: auto;
}

/* Placeholder behavior */
.mail-body-editor:empty:before {
    content: "Write your email here...";
    color: #555;
    pointer-events: none;
    display: block;
}

/* Style images inserted into the mail */
.mail-body-editor img {
    max-width: 100%;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #444;
}

/* Style links inside the mail */
.mail-body-editor a {
    color: var(--brand-gold);
    text-decoration: underline;
}

/* List styling inside the editor */
.mail-body-editor ul {
    padding-left: 20px;
    margin: 10px 0;
}

/* NOTICE BOARD STYLES */
.notice-card {
    background: var(--brand-gray);
    border-left: 4px solid var(--color-border); /* Default border */
    padding: var(--space-24);
    margin-bottom: var(--space-20);
    border-radius: var(--radius-base);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-left-width: 4px; /* Distinct left border */
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.notice-title {
    color: var(--brand-white);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.notice-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.notice-date {
    color: #666;
    font-size: 0.85rem;
    font-family: var(--font-family-mono);
}

/* Priority Tags */
.notice-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* URGENT STYLE (Red) */
.notice-tag.urgent {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
}
/* When card has urgent tag, make left border red too */
.notice-card:has(.notice-tag.urgent) {
    border-left-color: #ff4d4d;
}

/* INFO STYLE (Blue/Cyan) */
.notice-tag.info {
    background: rgba(50, 184, 198, 0.15);
    color: #32b8c6;
    border: 1px solid rgba(50, 184, 198, 0.3);
}
.notice-card:has(.notice-tag.info) {
    border-left-color: #32b8c6;
}

/* Link Button Style */
.notice-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.notice-link-btn:hover {
    background: var(--brand-gold);
    color: var(--brand-black);
}
/* ===================================
   ASSETS & LINKS (RESOURCES) STYLES
   =================================== */

.resource-category {
    margin-bottom: var(--space-32);
}

.resource-category-title {
    color: var(--brand-gold);
    font-size: 1.2rem;
    margin-bottom: var(--space-16);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.resource-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-24);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.resource-info {
    flex-grow: 1; /* Pushes the button to the bottom so all cards align */
    margin-bottom: var(--space-24);
}

.resource-info h4 {
    color: var(--brand-white);
    margin-bottom: var(--space-8);
    font-size: 1.15rem;
}

.resource-info p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.resource-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(212, 175, 55, 0.1);
    color: var(--brand-gold);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.resource-btn:hover {
    background: var(--brand-gold);
    color: var(--brand-black);
}
/* Container for multiple resource buttons */
.resource-actions {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Space between multiple buttons */
    margin-top: auto; /* Pushes the buttons to the bottom of the card */
}

/* Make sure the text inside the button aligns left while the icon stays right */
.resource-btn span {
    text-align: left;
    flex-grow: 1;
}