:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08);
  /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08);
  /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08);
  /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08);
  /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08);
  /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08);
  /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08);
  /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08);
  /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15);
    /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15);
    /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15);
    /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15);
    /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15);
    /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15);
    /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15);
    /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15);
    /* Dark cyan */

    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15);
  /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15);
  /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15);
  /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15);
  /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15);
  /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15);
  /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15);
  /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15);
  /* Dark cyan */

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-white);
  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);
}

/* Default Laptop/Desktop */
.brand-container {
    display: flex;
    align-items: center;
    gap: 12px; /* slight spacing */
}

.left-col {
    font-weight: 900;
    font-size: 2rem;
    color: #2c5d2b;
    padding-right: 10px; /* adjust KMK → line space */
    border-right: 2px solid #2c5d2b;
}

.right-col {
    padding-left: 10px; /* RED AREA: increase slightly */
}

.mill-name {
    font-weight: 600;
    font-size: 1.25rem; /* slight increase */
    color: #2c5d2b;
    white-space: nowrap;
}

.tagline {
    font-size: 0.95rem;
    color: var(--color-secondary);
    font-style: italic;
    margin-top: 2px;
}

/* MOBILE VIEW FIXES */
@media (max-width: 600px) {

    .brand-container {
        gap: 8px; /* reduced */
    }

    .left-col {
        padding-right: 6px; /* smaller on mobile */
        font-size: 1.7rem; /* slightly smaller but still bold */
    }

    .right-col {
        padding-left: 6px; /* RED AREA: slightly add space */
    }

    .mill-name {
        font-size: 1.1rem; /* increase a bit on mobile */
    }

    /* YELLOW AREA: move hamburger closer */
    #hamburger {
        margin-left: 4px;
    }
}



/* Responsive Container Widths */
@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm, 600px);
    padding: 0 1rem;
    margin: 0 auto;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: var(--container-md, 720px);
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg, 960px);
    padding: 0 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl, 1140px);
    padding: 0 2rem;
  }
}

/* Optional: ultra-wide screen support */
@media (min-width: 1536px) {
  .container {
    max-width: var(--container-2xl, 1320px);
  }
}


/* Ensures equal width inputs with nice padding */
.form-row .form-group input,
.form-row .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

/* Add focus effect for better UX */
.form-row .form-group input:focus,
.form-row .form-group select:focus {
  border-color: #6b8e23;
  /* Olive green accent */
  outline: none;
}

.phone-input {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.country-code {
  background: #f4f4f4;
  color: #333;
  padding: 10px 14px;
  font-weight: 600;
  border-right: 1px solid #ccc;
}

.phone-input .form-control {
  border: none;
  outline: none;
  flex: 1;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.phone-input .form-control:focus {
  border: none;
  outline: none;
}


/* 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 Rice Mill Website Styles */

/* Custom Color Variables for Rice Mill */
:root {
  /* Rice Mill Color Palette */
  --color-forest-green: #2D5016;
  --color-golden-amber: #D4A574;
  --color-steel-blue: #4A90A4;
  --color-earth-brown: #8B4513;
  --color-cream-white: #FFF8DC;
  --color-charcoal: #2F4F4F;
  --color-olive-gray: #708090;

  /* Override design system colors */
  --color-primary: var(--color-forest-green);
  --color-primary-hover: #1F3B0F;
  --color-primary-active: #0F1D08;
  --color-secondary: var(--color-golden-amber);
  --color-background: var(--color-cream-white);
  --color-text: var(--color-charcoal);
  --color-text-secondary: var(--color-olive-gray);
  --color-accent: var(--color-steel-blue);
  --color-accent-2: var(--color-earth-brown);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', var(--font-family-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}



/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 80, 22, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--space-16);
}

.nav-brand h2 {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

.nav-brand .tagline {
  font-size: var(--font-size-sm);
  color: var(--color-secondary);
  font-style: italic;
}

.nav-menu {
  display: flex;
  gap: var(--space-32);
  align-items: center;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  transition: all 0.3s ease;
}


/* Motto */
.motto {
  background: #eff5d3;
  /* 🌿 soft light green tone */
  text-align: center;
  padding: 16px 0;
  font-size: 1.1rem;
  color: #4b5320;
  font-family: 'Poppins', sans-serif;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  animation: fadeIn 1.2s ease-in-out;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
}

/* Text Styling */
.motto p {
  margin: 0;
  letter-spacing: 0.5px;
  font-weight: bold;
  font-style: italic;
  font-size: 25px;
  display: inline-block;
  transition: all 0.4s ease-in-out;
}

/* 📱 Mobile: Reduce width + font size */
@media (max-width: 600px) {
  .motto {
    width: 100vw !important;
    /* force full viewport width */
    margin-left: calc(-50vw + 50%);
    /* remove container padding */
    margin-right: calc(-50vw + 50%);
    padding: 12px 0;
  }

  .motto p {
    font-size: 12.5px;
  }
}


/* Hover / Active Effects */
.motto:hover p,
.motto.active p {
  transform: scale(1.1);
  color: #2c3e15;
  text-shadow: 0 0 10px rgba(76, 99, 45, 0.4);
}

.motto:hover,
.motto.active {
  background: #f3f8da;
}

/* Fade Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #eff5d3;
  /* 🌿 soft green background */
}

.hero-carousel {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.1);
  transition: all 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 80, 22, 0.7), rgba(74, 144, 164, 0.5));
}

.slide-content {
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 800px;
  padding: 0 var(--space-20);
  animation: slideInUp 1s ease-out 0.5s both;
}

.slide-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-16);
  text-shadow: 2px 2px 4px rgba(240, 239, 239, 0.115);
}

.slide-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: var(--space-32);
  opacity: 0.9;
}

.slide-cta {
  font-size: var(--font-size-lg);
  padding: var(--space-16) var(--space-32);
  background: var(--color-secondary);
  color: var(--color-text);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1px;
}

.slide-cta:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.carousel-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.carousel-btn.prev {
  left: var(--space-32);
}

.carousel-btn.next {
  right: var(--space-32);
}

.carousel-dots {
  position: absolute;
  bottom: var(--space-32);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-12);
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: white;
  transform: scale(1.2);
}

/* Stats Section */
.stats-section {
  padding: var(--space-32) 0;
  background: var(--color-bg-1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-32);
}

.stat-card {
  background: white;
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(45, 80, 22, 0.1);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: var(--space-16);
}

.stat-value {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-8);
}

.stat-label {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-primary);
  margin-bottom: var(--space-32);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 2px;
}

/* About Section */
.about-section {
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  align-items: center;
  margin-top: var(--space-32);
}

.about-text h3 {
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-16);
}

.about-text p {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  margin-bottom: var(--space-20);
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
  margin-top: var(--space-32);
}

.mission,
.vision {
  padding: var(--space-20);
  background: var(--color-bg-2);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.mission h4,
.vision h4 {
  color: var(--color-primary);
  margin-bottom: var(--space-8);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}



/* 🎞️ Brand Slider */

/* Products Section */
.products-section {
  background: var(--color-bg-3);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-32);
  margin-top: var(--space-32);
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-overlay {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.product-overlay .btn {
  background: #f7a31b;
  /* orange */
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.product-overlay .btn:hover {
  background: #e69000;
  transform: scale(1.05);
}

.product-info {
  padding: var(--space-24);
}

.product-info h3 {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-8);
}

.product-grade {
  color: var(--color-secondary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-12);
}

.product-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-16);
  line-height: 1.6;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.feature {
  background: var(--color-bg-1);
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}

/* 🔒 Disabled Product Card */
.product-card.disabled {
  pointer-events: none;
  /* disables clicks */
  opacity: 0.6;
  /* faded look */
  position: relative;
  filter: grayscale(70%);
  /* makes it look inactive */
  transition: all 0.3s ease;
}

.product-card.disabled:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

/* 🏷️ Upcoming Badge */
.upcoming-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #c0392b;
  /* dark red */
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Optional - add a faint blur overlay on the image */
.product-card.disabled .product-overlay {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}



/* Partners Section */
.partners-section {
  background: var(--color-bg-7);
  text-align: center;
  padding: var(--space-64) 0;
  position: relative;
  overflow: hidden;
}

/* Subtitle */
.partners-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-40);
  font-style: italic;
}

/* Grid Layout */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-32);
  justify-items: center;
  align-items: stretch;
  margin-bottom: var(--space-48);
}

/* Partner Cards */
.partner-card {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-24);
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Hover “dance” animation */
@keyframes dance {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

.partner-card:hover {
  animation: dance 0.8s ease-in-out infinite;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

/* Logo */
.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-16);
}

.logo-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text styling */
.partner-info h3 {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-8);
}

.delivery-time {
  color: var(--color-secondary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-8);
}

.slogan {
  color: var(--color-text-secondary);
  font-style: italic;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-16);
}

/* Button */
.partner-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-weight: var(--font-weight-medium);
  transition: background 0.3s ease, transform 0.3s ease;
}

.partner-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-3px);
}

/* CTA */
.partners-cta {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.partners-cta h3 {
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-12);
}

.partners-cta p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
}


/* Floating Grains Animation */
.floating-grains {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.grain {
  position: absolute;
  font-size: 2rem;
  opacity: 0.3;
  animation: float 15s infinite linear;
}

.grain-1 {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.grain-2 {
  left: 30%;
  animation-delay: 3s;
  animation-duration: 18s;
}

.grain-3 {
  left: 50%;
  animation-delay: 6s;
  animation-duration: 15s;
}

.grain-4 {
  left: 70%;
  animation-delay: 9s;
  animation-duration: 20s;
}

.grain-5 {
  left: 90%;
  animation-delay: 12s;
  animation-duration: 14s;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Continuous sliding animation after initial load */
.partner-card.continuous-slide {
  animation: continuousSlide 20s infinite linear;
}

@keyframes continuousSlide {
  0% {
    transform: translateX(-100vw);
  }

  100% {
    transform: translateX(100vw);
  }
}

/* 🌾 Infrastructure Section */
.infrastructure-section {
  background: #fff;
  text-align: center;
  padding: 40px 0;
}

/* Slider Container */
.infra-slider-horizontal {
  position: relative;
  width: 1000px;
  /* height: 670px; */
  margin: 50px auto;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  background: #eff5d3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slider Window */
.infra-slider-window {
  width: 100%;
  height: 58%;
  overflow: hidden;
  position: relative;
}

/* Slide Row */
.infra-slides-horizontal {
  display: flex;
  flex-direction: row;
  transition: transform 0.6s ease-in-out;
}

/* Each Image */
.infra-image-horizontal {
  flex: 0 0 100%;
  /* each image takes full width */
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: #eff5d3; */
}

.infra-image-horizontal img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.infra-image-horizontal img:hover {
  transform: scale(1.03);
}

/* 🔽 Arrows */
.arrow-btn {
  position: absolute;
  background: transparent;
  color: #3b3b3b;
  border: none;
  cursor: pointer;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-btn:hover {
  color: #1e3310;
  transform: scale(1.15);
}

/* Left & Right Position */
.arrow-btn.left {
  left: 10px;
}

.arrow-btn.right {
  right: 10px;
}

/* 📱 Responsive */
@media (max-width: 1024px) {
  .infra-slider-horizontal {
    width: 400px;
    height: 380px;
  }
}

@media (max-width: 768px) {
  .infra-slider-horizontal {
    width: 280px;
    height: 320px;
    margin: 30px auto;
    border-radius: 10px;
  }

  .infra-image-horizontal img {
    width: 100%;
  }

  .arrow-btn {
    width: 28px;
    height: 28px;
  }

  .arrow-btn svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .infra-slider-horizontal {
    width: 350px;
    height: 380px;
  }

  .arrow-btn {
    width: 26px;
    height: 26px;
  }
}



/* Gallery Section */
/* 🌾 Enhanced Gallery Section */
.gallery {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--background-light) 0%, #e8f5e8 100%);
}

/* Section Subtitle */
.gallery-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  animation: fadeIn 1s ease;
}

/* Category Buttons */
.gallery-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.category-btn {
  background: var(--white);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.1), transparent);
  transition: left 0.5s;
}

.category-btn:hover::before {
  left: 100%;
}

/* Active / Hover Styles */
.category-btn.active,
.category-btn:hover {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

/* Ensure Active Class from JS is Consistent */
.category-btn.active {
  background: var(--primary-color, #2e7d32);
  color: white;
}

/* Gallery Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Gallery Items */
.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;

  /* 🔥 Smooth fade + scale animation for filtering */
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Subtle Gradient Layer */
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(46, 125, 50, 0.1), rgba(255, 152, 0, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* Hover Lift Effect */
.gallery-item:hover {
  transform: translateY(-10px) scale(1.02) rotate(1deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Image Styling */
.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: grayscale(0.1);
}

.gallery-item:hover img {
  transform: scale(1.1) rotate(-1deg);
  filter: grayscale(0);
}

/* Overlay Text Animation */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: var(--white);
  padding: 3rem 2rem 2rem;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Overlay Title Animation */
.gallery-overlay h4 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-overlay h4 {
  transform: translateY(0);
}

/* Overlay Description Animation */
.gallery-overlay p {
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease 0.2s;
  color: #ffffff;
  /* ✅ Makes description text pure white */
}

.gallery-item:hover .gallery-overlay p {
  opacity: 0.9;
  transform: translateY(0);
  color: #ffffff;
  /* ✅ Ensures it stays white even when animating in */
}


/* Subtle Fade-in Keyframe */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Services Section */
.services-section {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-32);
}

.service-card {
  background: var(--color-bg-5);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(45, 80, 22, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: white;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: var(--space-16);
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-12);
}

.service-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* 🌾 Contact Section */
.contact-section {
  background: linear-gradient(180deg, #faf9f4, #fdfdfb);
  padding: 90px 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

/* Title */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2f501c;
  margin-bottom: 50px;
  position: relative;
  letter-spacing: 0.5px;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #4d7c2a;
  margin: 15px auto 0;
  border-radius: 3px;
}

/* Layout */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

/* 🌱 Left Side – Info */
.contact-info {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  text-align: left;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.contact-item {
  display: flex;
  align-items: center;
  /* ✅ Center-align icon and text vertically */
  gap: 12px;
  /* ✅ Add space between icon and text */
  margin-bottom: 25px;
}

.contact-icon {
  background: #2d5016;
  /* ✅ Matches your theme primary color */
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  /* ✅ Prevent icon from shrinking */
}

.contact-item div {
  display: flex;
  flex-direction: column;
}

.contact-item h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #2f501c;
  font-weight: 600;
}

.contact-item p {
  margin: 2px 0;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.4;
}


/* 🌾 Right Side – Form */
.contact-form {
  flex: 1;
  min-width: 340px;
  max-width: 500px;
  background: #ffffff;
  border-radius: 18px;
  padding: 35px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #2f501c;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: #fafafa;
}

.form-control:focus {
  border-color: #4d7c2a;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(77, 124, 42, 0.3);
  outline: none;
}

/* 🌿 Phone Input Group */
.phone-input {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.phone-input:focus-within {
  border-color: #4d7c2a;
  box-shadow: 0 0 5px rgba(77, 124, 42, 0.3);
}

.country-code {
  padding: 10px 12px;
  background: #f1f9f1;
  border-right: 1px solid #ccc;
  border-radius: 10px 0 0 10px;
  color: #2f501c;
  font-weight: 600;
}

/* Input inside phone */
.phone-input input {
  border: none;
  outline: none;
  flex: 1;
  padding: 10px 12px;
  border-radius: 0 10px 10px 0;
  background: transparent;
}

/* 🌿 Buttons */
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

/* Email Button */
.btn--primary {
  background-color: #4d7c2a;
}

.btn--primary:hover {
  background-color: #3c611f;
  transform: translateY(-2px);
}

/* WhatsApp Button */
.btn--success {
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn--success:hover {
  background-color: #1ebe57;
  transform: translateY(-2px);
}

/* 🌸 Error Highlight + Shake */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

input.error,
textarea.error,
select.error {
  border: 2px solid #ff3333 !important;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
  animation: shake 0.3s ease;
}

/* Mobile */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
    align-items: center;
  }

  .contact-info,
  .contact-form {
    max-width: 90%;
  }

  .btn {
    font-size: 15px;
  }
}


/* Footer */
.footer {
  background: var(--color-primary);
  color: white;
  padding: var(--space-32) 0 var(--space-16);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-32);
  margin-bottom: var(--space-32);
}

.footer-section h3,
.footer-section h4 {
  color: var(--color-secondary);
  margin-bottom: var(--space-16);
}

/* Default list style */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Quick Links – 3 per row */
.footer-section.quick-links ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8) var(--space-16);
}

/* Certifications – one per line */
.footer-section.certifications ul {
  display: block;
}

.footer-section ul li {
  margin-bottom: var(--space-8);
  text-align: left;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-section ul li a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-16);
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive layout for smaller screens */
@media (max-width: 600px) {
  .footer-section.quick-links ul {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes flyInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100vw) rotateY(-15deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
  }
}

@keyframes flyInFromRight {
  from {
    opacity: 0;
    transform: translateX(100vw) rotateY(15deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-flyInFromLeft {
  animation: flyInFromLeft 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-flyInFromRight {
  animation: flyInFromRight 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-20);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: flex;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .carousel-btn.prev {
    left: var(--space-16);
  }

  .carousel-btn.next {
    right: var(--space-16);
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .products-grid,
  .infrastructure-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  /* Partners section mobile responsive */
  .partners-container {
    height: auto;
    min-height: 800px;
  }

  .partner-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto var(--space-20);
    transform: none !important;
    opacity: 1 !important;
  }

  .partner-card[data-partner="blinkit"],
  .partner-card[data-partner="zepto"],
  .partner-card[data-partner="instamart"],
  .partner-card[data-partner="bigbasket"],
  .partner-card[data-partner="grofers"] {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
  }

  .flying-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    perspective: none;
  }
}

@media (max-width: 480px) {
  .slide-title {
    font-size: 2rem;
  }

  .slide-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    width: 90%;
    padding: var(--space-16);
  }

  .partners-container {
    min-height: 700px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation for images */
/* img {
  opacity: 0;
  transition: opacity 0.3s ease;
} */

img.loaded {
  opacity: 1;
}

/*/ slides/*/
.slider {
  width: 600px;
  height: 350px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.slides {
  width: 200%;
  height: 100%;
  display: flex;
  animation: slide 4s infinite;
}

.slides img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }

  45% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-50%);
  }

  95% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}