/* ==========================================================================
   ZB Consulting Website Styles
   Dark-themed, minimalist design inspired by Morningside.ai
   ========================================================================== */

/* CSS Reset and Base Styles
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body, button, input, select, textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
}

/* Remove default styles */
ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

/* CSS Variables - Design System
   ========================================================================== */

:root {
    /* Brand Colors - Core Palette */
    --color-primary: #2D2D2D;          /* Charcoal grey matching logo */
    --color-white: #FFFFFF;             /* Pure white for contrast */
    
    /* Background Colors - Dark Theme Gradation */
    --color-background: #1A1A1A;        /* Main page background - deepest */
    --color-background-secondary: #1F1F1F; /* Slightly lighter background */
    --color-surface: #2D2D2D;           /* Card/surface backgrounds */
    --color-surface-elevated: #333333;  /* Elevated surface (modals, dropdowns) */
    --color-surface-hover: #3A3A3A;     /* Hover state for surfaces */
    --color-surface-active: #404040;    /* Active/pressed state for surfaces */
    
    /* Text Colors - High Contrast Hierarchy */
    --color-text: #FFFFFF;              /* Primary text - pure white */
    --color-text-high: #F5F5F5;         /* High emphasis text - near white */
    --color-text-medium: #CCCCCC;       /* Medium emphasis text */
    --color-text-secondary: #B8B8B8;    /* Secondary text - light grey */
    --color-text-muted: #999999;        /* Muted text - medium grey */
    --color-text-disabled: #666666;     /* Disabled text - dark grey */
    --color-text-inverse: #1A1A1A;      /* Text on light backgrounds */
    
    /* Accent Colors - Subtle Grey Palette */
    --color-accent: #404040;             /* Primary accent grey */
    --color-accent-light: #4D4D4D;      /* Lighter accent */
    --color-accent-lighter: #5A5A5A;    /* Even lighter accent */
    --color-accent-dark: #333333;       /* Darker accent */
    --color-accent-darker: #262626;     /* Even darker accent */
    
    /* Border Colors */
    --color-border: #404040;             /* Default border color */
    --color-border-light: #4D4D4D;      /* Lighter border */
    --color-border-lighter: #5A5A5A;    /* Even lighter border */
    --color-border-dark: #333333;       /* Darker border */
    --color-border-focus: #FFFFFF;      /* Focus state border */
    
    /* Interactive States */
    --color-hover: #3A3A3A;             /* General hover state */
    --color-active: #4D4D4D;            /* General active state */
    --color-focus: #FFFFFF;             /* Focus state color */
    --color-selected: #404040;          /* Selected state */
    
    /* Semantic Colors */
    --color-success: #10B981;           /* Success green */
    --color-success-dark: #059669;      /* Darker success */
    --color-success-light: #34D399;     /* Lighter success */
    --color-error: #EF4444;             /* Error red */
    --color-error-dark: #DC2626;        /* Darker error */
    --color-error-light: #F87171;       /* Lighter error */
    --color-warning: #F59E0B;           /* Warning amber */
    --color-warning-dark: #D97706;      /* Darker warning */
    --color-warning-light: #FBBF24;     /* Lighter warning */
    --color-info: #3B82F6;              /* Info blue */
    --color-info-dark: #2563EB;         /* Darker info */
    --color-info-light: #60A5FA;        /* Lighter info */
    
    /* Opacity Variants */
    --color-overlay: rgba(26, 26, 26, 0.8);      /* Dark overlay */
    --color-overlay-light: rgba(26, 26, 26, 0.6); /* Lighter overlay */
    --color-backdrop: rgba(0, 0, 0, 0.5);        /* Modal backdrop */
    --color-shadow: rgba(0, 0, 0, 0.3);          /* Shadow color */
    --color-glow: rgba(255, 255, 255, 0.1);      /* Subtle glow effect */

    /* Typography Scale */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    --font-size-6xl: 3.75rem;   /* 60px */
    --font-size-7xl: 4.5rem;    /* 72px */

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing Scale */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */

    /* Layout */
    --container-max-width: 1200px;
    --container-padding: var(--space-6);
    --section-padding-y: var(--space-20);
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.35s ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-header: 1010;
    --z-sticky: 1020;
    --z-floating: 1025;
    --z-fixed: 1030;
    --z-overlay: 1035;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* Utility Classes
   ========================================================================== */

/* Responsive Grid System & Containers
   ========================================================================== */

/* Base Container System */
.container {
    width: 100%;
    max-width: var(--container-max-width); /* 1200px */
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding); /* 24px */
    padding-right: var(--container-padding);
}

/* Responsive Container Variants */
.container-sm {
    max-width: 640px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-md {
    max-width: 768px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-lg {
    max-width: 1024px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-xl {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Responsive Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--space-3) * -1);
    margin-right: calc(var(--space-3) * -1);
}

.row > * {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

/* No Gutters */
.row.no-gutters {
    margin-left: 0;
    margin-right: 0;
}

.row.no-gutters > * {
    padding-left: 0;
    padding-right: 0;
}

/* Grid Columns - Base (Mobile First) */
.col {
    flex: 1 0 0%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

.col-1 { flex: 0 0 8.333333%; width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; width: 16.666667%; }
.col-3 { flex: 0 0 25%; width: 25%; }
.col-4 { flex: 0 0 33.333333%; width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; width: 41.666667%; }
.col-6 { flex: 0 0 50%; width: 50%; }
.col-7 { flex: 0 0 58.333333%; width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; width: 66.666667%; }
.col-9 { flex: 0 0 75%; width: 75%; }
.col-10 { flex: 0 0 83.333333%; width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; width: 91.666667%; }
.col-12 { flex: 0 0 100%; width: 100%; }

/* Modern CSS Grid System */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-6);
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.grid-container-fluid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-6);
    width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Grid Gaps */
.grid-gap-0 { gap: 0; }
.grid-gap-1 { gap: var(--space-1); }
.grid-gap-2 { gap: var(--space-2); }
.grid-gap-3 { gap: var(--space-3); }
.grid-gap-4 { gap: var(--space-4); }
.grid-gap-6 { gap: var(--space-6); }
.grid-gap-8 { gap: var(--space-8); }
.grid-gap-12 { gap: var(--space-12); }

/* Content Sections */
.section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

.section-sm {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.section-lg {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
}

/* Content Width Limiters */
.content {
    max-width: 65ch; /* Optimal reading line length */
    margin: 0 auto;
}

.content-wide {
    max-width: 85ch;
    margin: 0 auto;
}

.content-narrow {
    max-width: 45ch;
    margin: 0 auto;
}

/* Responsive Breakpoint Adjustments */
@media (max-width: 1280px) {
    .container {
        max-width: 1024px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 768px;
    }
    
    .grid-container {
        grid-template-columns: repeat(8, 1fr);
        gap: var(--space-4);
    }
    
    .section {
        padding-top: var(--space-16);
        padding-bottom: var(--space-16);
    }
}

@media (max-width: 768px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl {
        max-width: 640px;
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    .container-fluid {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    .grid-container,
    .grid-container-fluid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-3);
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    .row {
        margin-left: calc(var(--space-2) * -1);
        margin-right: calc(var(--space-2) * -1);
    }
    
    .row > * {
        padding-left: var(--space-2);
        padding-right: var(--space-2);
    }
    
    .section {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }
    
    .section-sm {
        padding-top: var(--space-10);
        padding-bottom: var(--space-10);
    }
    
    .section-lg {
        padding-top: var(--space-20);
        padding-bottom: var(--space-20);
    }
}

@media (max-width: 640px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-fluid {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    .grid-container,
    .grid-container-fluid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }
    
    .row {
        margin-left: calc(var(--space-1) * -1);
        margin-right: calc(var(--space-1) * -1);
    }
    
    .row > * {
        padding-left: var(--space-1);
        padding-right: var(--space-1);
    }
}

@media (max-width: 480px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-fluid {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
    
    .grid-container,
    .grid-container-fluid {
        grid-template-columns: 1fr;
        gap: var(--space-2);
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
    
    .section {
        padding-top: var(--space-10);
        padding-bottom: var(--space-10);
    }
}

/* Responsive Grid Columns - Small (sm) */
@media (min-width: 576px) {
    .col-sm { flex: 1 0 0%; }
    .col-sm-auto { flex: 0 0 auto; width: auto; }
    .col-sm-1 { flex: 0 0 8.333333%; width: 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; width: 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; width: 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; width: 33.333333%; }
    .col-sm-5 { flex: 0 0 41.666667%; width: 41.666667%; }
    .col-sm-6 { flex: 0 0 50%; width: 50%; }
    .col-sm-7 { flex: 0 0 58.333333%; width: 58.333333%; }
    .col-sm-8 { flex: 0 0 66.666667%; width: 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; width: 75%; }
    .col-sm-10 { flex: 0 0 83.333333%; width: 83.333333%; }
    .col-sm-11 { flex: 0 0 91.666667%; width: 91.666667%; }
    .col-sm-12 { flex: 0 0 100%; width: 100%; }
}

/* Responsive Grid Columns - Medium (md) */
@media (min-width: 768px) {
    .col-md { flex: 1 0 0%; }
    .col-md-auto { flex: 0 0 auto; width: auto; }
    .col-md-1 { flex: 0 0 8.333333%; width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; width: 100%; }
}

/* Responsive Grid Columns - Large (lg) */
@media (min-width: 1024px) {
    .col-lg { flex: 1 0 0%; }
    .col-lg-auto { flex: 0 0 auto; width: auto; }
    .col-lg-1 { flex: 0 0 8.333333%; width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; width: 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; width: 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; width: 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; width: 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; width: 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; width: 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; width: 100%; }
}

/* Responsive Grid Columns - Extra Large (xl) */
@media (min-width: 1280px) {
    .col-xl { flex: 1 0 0%; }
    .col-xl-auto { flex: 0 0 auto; width: auto; }
    .col-xl-1 { flex: 0 0 8.333333%; width: 8.333333%; }
    .col-xl-2 { flex: 0 0 16.666667%; width: 16.666667%; }
    .col-xl-3 { flex: 0 0 25%; width: 25%; }
    .col-xl-4 { flex: 0 0 33.333333%; width: 33.333333%; }
    .col-xl-5 { flex: 0 0 41.666667%; width: 41.666667%; }
    .col-xl-6 { flex: 0 0 50%; width: 50%; }
    .col-xl-7 { flex: 0 0 58.333333%; width: 58.333333%; }
    .col-xl-8 { flex: 0 0 66.666667%; width: 66.666667%; }
    .col-xl-9 { flex: 0 0 75%; width: 75%; }
    .col-xl-10 { flex: 0 0 83.333333%; width: 83.333333%; }
    .col-xl-11 { flex: 0 0 91.666667%; width: 91.666667%; }
    .col-xl-12 { flex: 0 0 100%; width: 100%; }
}

/* Spacing Utilities - Comprehensive System
   ========================================================================== */

/* Margin Utilities */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }
.m-10 { margin: var(--space-10); }
.m-12 { margin: var(--space-12); }
.m-16 { margin: var(--space-16); }
.m-20 { margin: var(--space-20); }
.m-24 { margin: var(--space-24); }
.m-32 { margin: var(--space-32); }
.m-auto { margin: auto; }

/* Margin Top */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mt-20 { margin-top: var(--space-20); }
.mt-24 { margin-top: var(--space-24); }
.mt-32 { margin-top: var(--space-32); }
.mt-auto { margin-top: auto; }

/* Margin Bottom */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mb-20 { margin-bottom: var(--space-20); }
.mb-24 { margin-bottom: var(--space-24); }
.mb-32 { margin-bottom: var(--space-32); }
.mb-auto { margin-bottom: auto; }

/* Margin Left */
.ml-0 { margin-left: 0; }
.ml-1 { margin-left: var(--space-1); }
.ml-2 { margin-left: var(--space-2); }
.ml-3 { margin-left: var(--space-3); }
.ml-4 { margin-left: var(--space-4); }
.ml-5 { margin-left: var(--space-5); }
.ml-6 { margin-left: var(--space-6); }
.ml-8 { margin-left: var(--space-8); }
.ml-10 { margin-left: var(--space-10); }
.ml-12 { margin-left: var(--space-12); }
.ml-16 { margin-left: var(--space-16); }
.ml-20 { margin-left: var(--space-20); }
.ml-24 { margin-left: var(--space-24); }
.ml-32 { margin-left: var(--space-32); }
.ml-auto { margin-left: auto; }

/* Margin Right */
.mr-0 { margin-right: 0; }
.mr-1 { margin-right: var(--space-1); }
.mr-2 { margin-right: var(--space-2); }
.mr-3 { margin-right: var(--space-3); }
.mr-4 { margin-right: var(--space-4); }
.mr-5 { margin-right: var(--space-5); }
.mr-6 { margin-right: var(--space-6); }
.mr-8 { margin-right: var(--space-8); }
.mr-10 { margin-right: var(--space-10); }
.mr-12 { margin-right: var(--space-12); }
.mr-16 { margin-right: var(--space-16); }
.mr-20 { margin-right: var(--space-20); }
.mr-24 { margin-right: var(--space-24); }
.mr-32 { margin-right: var(--space-32); }
.mr-auto { margin-right: auto; }

/* Margin X-axis (horizontal) */
.mx-0 { margin-left: 0; margin-right: 0; }
.mx-1 { margin-left: var(--space-1); margin-right: var(--space-1); }
.mx-2 { margin-left: var(--space-2); margin-right: var(--space-2); }
.mx-3 { margin-left: var(--space-3); margin-right: var(--space-3); }
.mx-4 { margin-left: var(--space-4); margin-right: var(--space-4); }
.mx-5 { margin-left: var(--space-5); margin-right: var(--space-5); }
.mx-6 { margin-left: var(--space-6); margin-right: var(--space-6); }
.mx-8 { margin-left: var(--space-8); margin-right: var(--space-8); }
.mx-10 { margin-left: var(--space-10); margin-right: var(--space-10); }
.mx-12 { margin-left: var(--space-12); margin-right: var(--space-12); }
.mx-16 { margin-left: var(--space-16); margin-right: var(--space-16); }
.mx-20 { margin-left: var(--space-20); margin-right: var(--space-20); }
.mx-24 { margin-left: var(--space-24); margin-right: var(--space-24); }
.mx-32 { margin-left: var(--space-32); margin-right: var(--space-32); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Margin Y-axis (vertical) */
.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: var(--space-1); margin-bottom: var(--space-1); }
.my-2 { margin-top: var(--space-2); margin-bottom: var(--space-2); }
.my-3 { margin-top: var(--space-3); margin-bottom: var(--space-3); }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.my-5 { margin-top: var(--space-5); margin-bottom: var(--space-5); }
.my-6 { margin-top: var(--space-6); margin-bottom: var(--space-6); }
.my-8 { margin-top: var(--space-8); margin-bottom: var(--space-8); }
.my-10 { margin-top: var(--space-10); margin-bottom: var(--space-10); }
.my-12 { margin-top: var(--space-12); margin-bottom: var(--space-12); }
.my-16 { margin-top: var(--space-16); margin-bottom: var(--space-16); }
.my-20 { margin-top: var(--space-20); margin-bottom: var(--space-20); }
.my-24 { margin-top: var(--space-24); margin-bottom: var(--space-24); }
.my-32 { margin-top: var(--space-32); margin-bottom: var(--space-32); }
.my-auto { margin-top: auto; margin-bottom: auto; }

/* Padding Utilities */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.p-12 { padding: var(--space-12); }
.p-16 { padding: var(--space-16); }
.p-20 { padding: var(--space-20); }
.p-24 { padding: var(--space-24); }
.p-32 { padding: var(--space-32); }

/* Padding Top */
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-5 { padding-top: var(--space-5); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }
.pt-10 { padding-top: var(--space-10); }
.pt-12 { padding-top: var(--space-12); }
.pt-16 { padding-top: var(--space-16); }
.pt-20 { padding-top: var(--space-20); }
.pt-24 { padding-top: var(--space-24); }
.pt-32 { padding-top: var(--space-32); }

/* Padding Bottom */
.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--space-1); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-5 { padding-bottom: var(--space-5); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }
.pb-10 { padding-bottom: var(--space-10); }
.pb-12 { padding-bottom: var(--space-12); }
.pb-16 { padding-bottom: var(--space-16); }
.pb-20 { padding-bottom: var(--space-20); }
.pb-24 { padding-bottom: var(--space-24); }
.pb-32 { padding-bottom: var(--space-32); }

/* Padding Left */
.pl-0 { padding-left: 0; }
.pl-1 { padding-left: var(--space-1); }
.pl-2 { padding-left: var(--space-2); }
.pl-3 { padding-left: var(--space-3); }
.pl-4 { padding-left: var(--space-4); }
.pl-5 { padding-left: var(--space-5); }
.pl-6 { padding-left: var(--space-6); }
.pl-8 { padding-left: var(--space-8); }
.pl-10 { padding-left: var(--space-10); }
.pl-12 { padding-left: var(--space-12); }
.pl-16 { padding-left: var(--space-16); }
.pl-20 { padding-left: var(--space-20); }
.pl-24 { padding-left: var(--space-24); }
.pl-32 { padding-left: var(--space-32); }

/* Padding Right */
.pr-0 { padding-right: 0; }
.pr-1 { padding-right: var(--space-1); }
.pr-2 { padding-right: var(--space-2); }
.pr-3 { padding-right: var(--space-3); }
.pr-4 { padding-right: var(--space-4); }
.pr-5 { padding-right: var(--space-5); }
.pr-6 { padding-right: var(--space-6); }
.pr-8 { padding-right: var(--space-8); }
.pr-10 { padding-right: var(--space-10); }
.pr-12 { padding-right: var(--space-12); }
.pr-16 { padding-right: var(--space-16); }
.pr-20 { padding-right: var(--space-20); }
.pr-24 { padding-right: var(--space-24); }
.pr-32 { padding-right: var(--space-32); }

/* Padding X-axis (horizontal) */
.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: var(--space-1); padding-right: var(--space-1); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-5 { padding-left: var(--space-5); padding-right: var(--space-5); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }
.px-10 { padding-left: var(--space-10); padding-right: var(--space-10); }
.px-12 { padding-left: var(--space-12); padding-right: var(--space-12); }
.px-16 { padding-left: var(--space-16); padding-right: var(--space-16); }
.px-20 { padding-left: var(--space-20); padding-right: var(--space-20); }
.px-24 { padding-left: var(--space-24); padding-right: var(--space-24); }
.px-32 { padding-left: var(--space-32); padding-right: var(--space-32); }

/* Padding Y-axis (vertical) */
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-5 { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-10 { padding-top: var(--space-10); padding-bottom: var(--space-10); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.py-24 { padding-top: var(--space-24); padding-bottom: var(--space-24); }
.py-32 { padding-top: var(--space-32); padding-bottom: var(--space-32); }

/* Layout Utilities - Comprehensive System
   ========================================================================== */

/* Display Utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.inline-grid { display: inline-grid; }
.table { display: table; }
.table-row { display: table-row; }
.table-cell { display: table-cell; }
.hidden { display: none; }

/* Flexbox Layout */
.flex-row { flex-direction: row; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }

.flex-wrap { flex-wrap: wrap; }
.flex-wrap-reverse { flex-wrap: wrap-reverse; }
.flex-nowrap { flex-wrap: nowrap; }

/* Flex Grow/Shrink */
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }
.flex-grow { flex-grow: 1; }
.flex-grow-0 { flex-grow: 0; }
.flex-shrink { flex-shrink: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Justify Content */
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

/* Align Items */
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }

/* Align Content */
.content-start { align-content: flex-start; }
.content-end { align-content: flex-end; }
.content-center { align-content: center; }
.content-between { align-content: space-between; }
.content-around { align-content: space-around; }
.content-evenly { align-content: space-evenly; }

/* Align Self */
.self-auto { align-self: auto; }
.self-start { align-self: flex-start; }
.self-end { align-self: flex-end; }
.self-center { align-self: center; }
.self-stretch { align-self: stretch; }
.self-baseline { align-self: baseline; }

/* Grid Layout */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.grid-rows-1 { grid-template-rows: repeat(1, minmax(0, 1fr)); }
.grid-rows-2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.grid-rows-3 { grid-template-rows: repeat(3, minmax(0, 1fr)); }
.grid-rows-4 { grid-template-rows: repeat(4, minmax(0, 1fr)); }
.grid-rows-5 { grid-template-rows: repeat(5, minmax(0, 1fr)); }
.grid-rows-6 { grid-template-rows: repeat(6, minmax(0, 1fr)); }

/* Grid Column Span */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-full { grid-column: 1 / -1; }

/* Grid Row Span */
.row-span-1 { grid-row: span 1 / span 1; }
.row-span-2 { grid-row: span 2 / span 2; }
.row-span-3 { grid-row: span 3 / span 3; }
.row-span-4 { grid-row: span 4 / span 4; }
.row-span-5 { grid-row: span 5 / span 5; }
.row-span-6 { grid-row: span 6 / span 6; }
.row-span-full { grid-row: 1 / -1; }

/* Gap */
.gap-0 { gap: 0; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }
.gap-20 { gap: var(--space-20); }
.gap-24 { gap: var(--space-24); }
.gap-32 { gap: var(--space-32); }

.gap-x-0 { column-gap: 0; }
.gap-x-1 { column-gap: var(--space-1); }
.gap-x-2 { column-gap: var(--space-2); }
.gap-x-3 { column-gap: var(--space-3); }
.gap-x-4 { column-gap: var(--space-4); }
.gap-x-5 { column-gap: var(--space-5); }
.gap-x-6 { column-gap: var(--space-6); }
.gap-x-8 { column-gap: var(--space-8); }
.gap-x-10 { column-gap: var(--space-10); }
.gap-x-12 { column-gap: var(--space-12); }
.gap-x-16 { column-gap: var(--space-16); }
.gap-x-20 { column-gap: var(--space-20); }
.gap-x-24 { column-gap: var(--space-24); }
.gap-x-32 { column-gap: var(--space-32); }

.gap-y-0 { row-gap: 0; }
.gap-y-1 { row-gap: var(--space-1); }
.gap-y-2 { row-gap: var(--space-2); }
.gap-y-3 { row-gap: var(--space-3); }
.gap-y-4 { row-gap: var(--space-4); }
.gap-y-5 { row-gap: var(--space-5); }
.gap-y-6 { row-gap: var(--space-6); }
.gap-y-8 { row-gap: var(--space-8); }
.gap-y-10 { row-gap: var(--space-10); }
.gap-y-12 { row-gap: var(--space-12); }
.gap-y-16 { row-gap: var(--space-16); }
.gap-y-20 { row-gap: var(--space-20); }
.gap-y-24 { row-gap: var(--space-24); }
.gap-y-32 { row-gap: var(--space-32); }

/* Position Utilities */
.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }

/* Position Values */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { right: 0; left: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-auto { top: auto; }
.right-auto { right: auto; }
.bottom-auto { bottom: auto; }
.left-auto { left: auto; }

/* Float */
.float-right { float: right; }
.float-left { float: left; }
.float-none { float: none; }
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* Clear */
.clear-left { clear: left; }
.clear-right { clear: right; }
.clear-both { clear: both; }
.clear-none { clear: none; }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Overflow */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }
.overflow-x-visible { overflow-x: visible; }
.overflow-y-visible { overflow-y: visible; }
.overflow-x-scroll { overflow-x: scroll; }
.overflow-y-scroll { overflow-y: scroll; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Vertical Alignment */
.align-baseline { vertical-align: baseline; }
.align-top { vertical-align: top; }
.align-middle { vertical-align: middle; }
.align-bottom { vertical-align: bottom; }
.align-text-top { vertical-align: text-top; }
.align-text-bottom { vertical-align: text-bottom; }

/* Width */
.w-auto { width: auto; }
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.w-min { width: min-content; }
.w-max { width: max-content; }
.w-fit { width: fit-content; }

.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333333%; }
.w-2\/3 { width: 66.666667%; }
.w-1\/4 { width: 25%; }
.w-2\/4 { width: 50%; }
.w-3\/4 { width: 75%; }
.w-1\/5 { width: 20%; }
.w-2\/5 { width: 40%; }
.w-3\/5 { width: 60%; }
.w-4\/5 { width: 80%; }
.w-1\/6 { width: 16.666667%; }
.w-2\/6 { width: 33.333333%; }
.w-3\/6 { width: 50%; }
.w-4\/6 { width: 66.666667%; }
.w-5\/6 { width: 83.333333%; }

/* Height */
.h-auto { height: auto; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-min { height: min-content; }
.h-max { height: max-content; }
.h-fit { height: fit-content; }

/* Min/Max Width */
.min-w-0 { min-width: 0; }
.min-w-full { min-width: 100%; }
.min-w-min { min-width: min-content; }
.min-w-max { min-width: max-content; }
.min-w-fit { min-width: fit-content; }

.max-w-none { max-width: none; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-full { max-width: 100%; }
.max-w-screen-sm { max-width: 640px; }
.max-w-screen-md { max-width: 768px; }
.max-w-screen-lg { max-width: 1024px; }
.max-w-screen-xl { max-width: 1280px; }

/* Min/Max Height */
.min-h-0 { min-height: 0; }
.min-h-full { min-height: 100%; }
.min-h-screen { min-height: 100vh; }

.max-h-full { max-height: 100%; }
.max-h-screen { max-height: 100vh; }

/* Z-Index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-auto { z-index: auto; }

/* Responsive Design Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

/* Smooth Transitions */
a, button, input, select, textarea {
    transition: all var(--transition-base);
}

/* Selection Styles */
::selection {
    background-color: var(--color-text);
    color: var(--color-background);
}

/* Mobile-First Fluid Typography System */
@media (max-width: 768px) {
    :root {
        /* Fluid typography using clamp() for responsive scaling */
        --font-size-xs: clamp(0.75rem, 2vw, 0.875rem);
        --font-size-sm: clamp(0.875rem, 2.5vw, 1rem);
        --font-size-base: clamp(1rem, 3vw, 1.125rem);
        --font-size-lg: clamp(1.125rem, 3.5vw, 1.25rem);
        --font-size-xl: clamp(1.25rem, 4vw, 1.5rem);
        --font-size-2xl: clamp(1.5rem, 4.5vw, 1.875rem);
        --font-size-3xl: clamp(1.875rem, 5vw, 2.25rem);
        --font-size-4xl: clamp(2.25rem, 6vw, 2.5rem);
        --font-size-5xl: clamp(2.5rem, 7vw, 3rem);
        --font-size-6xl: clamp(3rem, 8vw, 3.5rem);
        --font-size-7xl: clamp(3.5rem, 9vw, 4rem);
        
        /* Optimized line heights for mobile reading */
        --line-height-tight: 1.25;
        --line-height-snug: 1.375;
        --line-height-normal: 1.5;
        --line-height-relaxed: 1.625;
        --line-height-loose: 2;
        
        /* Mobile-specific letter spacing */
        --letter-spacing-tight: -0.025em;
        --letter-spacing-normal: 0;
        --letter-spacing-wide: 0.025em;
    }
}

@media (max-width: 480px) {
    :root {
        /* Further optimization for small screens */
        --font-size-xs: clamp(0.75rem, 1.8vw, 0.8rem);
        --font-size-sm: clamp(0.875rem, 2.2vw, 0.95rem);
        --font-size-base: clamp(1rem, 2.8vw, 1.1rem);
        --font-size-lg: clamp(1.125rem, 3.2vw, 1.2rem);
        --font-size-xl: clamp(1.25rem, 3.8vw, 1.4rem);
        --font-size-2xl: clamp(1.5rem, 4.2vw, 1.75rem);
        --font-size-3xl: clamp(1.875rem, 4.8vw, 2rem);
        --font-size-4xl: clamp(2.25rem, 5.5vw, 2.25rem);
        --font-size-5xl: clamp(2.5rem, 6.2vw, 2.75rem);
        --font-size-6xl: clamp(3rem, 7vw, 3.25rem);
        --font-size-7xl: clamp(3.5rem, 8vw, 3.75rem);
        
        /* Tighter line heights for small screens */
        --line-height-tight: 1.2;
        --line-height-snug: 1.3;
        --line-height-normal: 1.4;
        --line-height-relaxed: 1.5;
        --line-height-loose: 1.8;
        
        --section-padding-y: var(--space-16);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-text-secondary: #E5E5E5;
        --color-border: #666666;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Logo Styles
   ========================================================================== */

.logo {
    display: block;
    max-width: 100%;
    height: auto;
    transition: all var(--transition-base);
}

/* Header Logo */
.logo-header {
    height: 85px;
    width: auto;
    max-width: 180px;
    transition: all var(--transition-base);
}

.logo-header:hover {
    transform: scale(1.05);
}

/* Footer Logo */
.logo-footer {
    height: 90px;
    width: auto;
    max-width: 160px;
    margin-bottom: var(--space-3);
    transition: all var(--transition-base);
}

.logo-footer:hover {
    transform: scale(1.02);
}

/* Responsive Logo Sizing */
@media (max-width: 768px) {
    .logo-header {
        height: 60px;  /* Increased from 50px */
        max-width: 180px;
    }
    
    .logo-footer {
        height: 36px;
        max-width: 130px;
    }
}

@media (max-width: 480px) {
    .logo-header {
        height: 55px;  /* Increased from 45px */
        max-width: 150px;
    }
    
    .logo-footer {
        height: 32px;
        max-width: 110px;
    }
}

/* Logo Loading States */
.logo {
    opacity: 0;
    animation: logoFadeIn 0.6s ease forwards;
}

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

/* High Contrast Mode Support for Logos */
@media (prefers-contrast: high) {
    .logo-header,
    .logo-footer {
        opacity: 1;
    }
}

/* Reduced Motion Support for Logos */
@media (prefers-reduced-motion: reduce) {
    .logo {
        animation: none !important;
        transition: none !important;
    }
    
    .logo-header:hover,
    .logo-footer:hover {
        transform: none !important;
    }
}

/* Button System
   ========================================================================== */

/* Base Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Primary Button */
.btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    font-weight: var(--font-weight-semibold);
}

.btn-primary:hover {
    opacity: 0.9;
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* Secondary Button */
.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

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

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

/* Ghost Button */
.btn-ghost {
    background-color: transparent;
    color: var(--color-text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    background-color: var(--color-surface);
    color: var(--color-text);
}

.btn-ghost:active {
    background-color: var(--color-surface-hover);
}

/* Success Button */
.btn-success {
    background-color: var(--color-success);
    color: var(--color-white);
    border-color: var(--color-success);
}

.btn-success:hover {
    background-color: var(--color-success-dark);
    border-color: var(--color-success-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:active {
    transform: translateY(0);
    background-color: var(--color-success-dark);
}

/* Danger Button */
.btn-danger {
    background-color: var(--color-error);
    color: var(--color-white);
    border-color: var(--color-error);
}

.btn-danger:hover {
    background-color: var(--color-error-dark);
    border-color: var(--color-error-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
    background-color: var(--color-error-dark);
}

/* Button Sizes */
.btn-xs {
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

/* Button Width Modifiers */
.btn-full {
    width: 100%;
}

.btn-auto {
    width: auto;
}

/* Button Loading States */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading .btn-text {
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: btn-spinner 1s linear infinite;
}

@keyframes btn-spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button with Icons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-icon-only {
    padding: var(--space-3);
    width: auto;
    aspect-ratio: 1;
}

.btn-icon-left .icon {
    margin-right: var(--space-2);
}

.btn-icon-right .icon {
    margin-left: var(--space-2);
}

/* Floating Action Button */
.btn-floating {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: var(--z-fixed);
}

.btn-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    vertical-align: middle;
}

.btn-group .btn {
    position: relative;
    flex: 1 1 auto;
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.btn-group .btn:not(:first-child) {
    margin-left: -1px;
}

.btn-group .btn:hover,
.btn-group .btn:focus,
.btn-group .btn:active {
    z-index: 1;
}

/* Loading States */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spin 1s linear infinite;
}

@keyframes btn-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading .btn-text {
    opacity: 0;
}

/* Animated Button Effects */
.btn-shimmer {
    background: linear-gradient(
        90deg,
        var(--color-surface) 0%,
        var(--color-surface-hover) 50%,
        var(--color-surface) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.btn-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Gradient Buttons */
.btn-gradient {
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent-dark));
    color: var(--color-text);
    border: none;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-darker));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Glass Morphism Button */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Special ZB Consulting Buttons */
.btn-consultation {
    background: linear-gradient(135deg, var(--color-white), var(--color-text-high));
    color: var(--color-primary);
    border: none;
    font-weight: var(--font-weight-semibold);
    position: relative;
    overflow: hidden;
}

.btn-consultation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-consultation:hover::before {
    left: 100%;
}

.btn-consultation:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

/* Responsive Button Adjustments */
@media (max-width: 768px) {
    .btn {
        padding: var(--space-3) var(--space-5);
        font-size: var(--font-size-sm);
    }
    
    .btn-lg {
        padding: var(--space-4) var(--space-6);
        font-size: var(--font-size-base);
    }
    
    .btn-xl {
        padding: var(--space-4) var(--space-8);
        font-size: var(--font-size-lg);
    }
    
    .btn-floating {
        width: 48px;
        height: 48px;
        bottom: var(--space-4);
        right: var(--space-4);
    }
}

@media (max-width: 480px) {
    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--font-size-sm);
    }
    
    .btn-lg,
    .btn-xl {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-size-base);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary {
        border-width: 2px;
    }
    
    .btn-secondary,
    .btn-outline {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .btn-loading::before {
        animation: none;
    }
    
    .btn-shimmer {
        animation: none;
        background: var(--color-surface);
    }
    
    .btn-pulse {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .btn {
        background: white !important;
        color: black !important;
        border: 1px solid black !important;
        box-shadow: none !important;
        transform: none !important;
    }
    
    .btn-floating {
        display: none !important;
    }
}

/* Loading States & Error Messages
   ========================================================================== */

/* Loading Spinner Component */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 1.5px;
}

.loading-spinner-lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.loading-spinner-xl {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 45, 45, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-overlay);
    backdrop-filter: blur(2px);
}

.loading-overlay.full-screen {
    position: fixed;
    z-index: var(--z-modal);
}

/* Loading States for Components */
.loading-state {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading-state::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-surface) 25%,
        var(--color-surface-hover) 50%,
        var(--color-surface) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--border-radius);
}

@keyframes skeleton-loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: var(--space-2);
}

.skeleton-text:last-child {
    margin-bottom: 0;
    width: 80%;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: var(--space-3);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    height: 120px;
    width: 100%;
}

/* Progress Indicators */
.progress {
    width: 100%;
    height: 8px;
    background: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--color-text);
    transition: width 0.3s ease;
    border-radius: var(--border-radius);
}

.progress-indeterminate .progress-bar {
    width: 30%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-text),
        transparent
    );
    animation: progress-indeterminate 1.5s ease-in-out infinite;
}

@keyframes progress-indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(333%); }
}

/* Error Message System */
.error-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-left: 4px solid var(--color-error);
    border-radius: var(--border-radius);
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
}

.error-message-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

.error-message-content {
    flex: 1;
}

.error-message-title {
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-1);
}

.error-message-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-message-list li {
    margin-bottom: var(--space-1);
    position: relative;
    padding-left: var(--space-4);
}

.error-message-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-error);
}

/* Success Message */
.success-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-left: 4px solid var(--color-success);
    border-radius: var(--border-radius);
    color: var(--color-success);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
}

/* Warning Message */
.warning-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 4px solid var(--color-warning);
    border-radius: var(--border-radius);
    color: var(--color-warning);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
}

/* Info Message */
.info-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-left: 4px solid var(--color-info);
    border-radius: var(--border-radius);
    color: var(--color-info);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
}

/* Inline Error Messages */
.input-error {
    color: var(--color-error);
    font-size: var(--font-size-xs);
    margin-top: var(--space-1);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.input-error-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Form Validation States */
.form-group.has-error .form-control {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group.has-success .form-control {
    border-color: var(--color-success);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group.has-warning .form-control {
    border-color: var(--color-warning);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Form Messages */
.form-messages {
    margin-top: var(--space-4);
    padding: 0;
}

.form-message {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    animation: slideInUp 0.3s ease-out;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--color-success);
}

.form-message.error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--color-error);
}

.form-message.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
}

.form-message-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

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

/* Loading Text */
.loading-text {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.loading-dots {
    display: inline-flex;
    gap: 2px;
}

.loading-dots span {
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    color: var(--color-text-muted);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    opacity: 0.5;
}

.empty-state-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.empty-state-description {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-6);
}

/* Network Status */
.network-status {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--space-2) var(--space-4);
    background: var(--color-error);
    color: var(--color-white);
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    z-index: var(--z-toast);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.network-status.offline {
    transform: translateY(0);
}

.network-status.reconnecting {
    background: var(--color-warning);
    color: var(--color-primary);
}

.network-status.online {
    background: var(--color-success);
    transform: translateY(0);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    max-width: 400px;
    width: 100%;
}

.toast {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    animation: toast-slide-in 0.3s ease;
}

.toast.toast-error {
    border-left: 4px solid var(--color-error);
}

.toast.toast-success {
    border-left: 4px solid var(--color-success);
}

.toast.toast-warning {
    border-left: 4px solid var(--color-warning);
}

.toast.toast-info {
    border-left: 4px solid var(--color-info);
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .toast-container {
        top: var(--space-4);
        right: var(--space-4);
        left: var(--space-4);
        max-width: none;
    }
    
    .loading-overlay {
        backdrop-filter: blur(1px);
    }
    
    .error-message,
    .success-message,
    .warning-message,
    .info-message {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-xs);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner,
    .skeleton,
    .progress-indeterminate .progress-bar,
    .loading-dots span {
        animation: none;
    }
    
    .toast {
        animation: none;
    }
    
    .network-status {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .error-message {
        background: transparent;
        border-width: 2px;
    }
    
    .success-message,
    .warning-message,
    .info-message {
        background: transparent;
        border-width: 2px;
    }
    
    .loading-spinner {
        border-width: 3px;
    }
}

/* Form System
   ========================================================================== */

/* Base Form Styles */
.form-group {
    margin-bottom: var(--space-6);
    position: relative;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--space-3) * -1);
    margin-right: calc(var(--space-3) * -1);
}

.form-row > .form-group {
    flex: 1;
    padding-left: var(--space-3);
    padding-right: var(--space-3);
    margin-bottom: var(--space-6);
}

/* Form Labels */
.form-label {
    display: block;
    margin-bottom: var(--space-2);
    margin-top: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.form-label.required::after {
    content: ' *';
    color: var(--color-error);
    font-weight: var(--font-weight-semibold);
}

/* Base Input Styles */
.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-surface);
    background-clip: padding-box;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    appearance: none;
    transition: all var(--transition-base);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 1;
    font-weight: var(--font-weight-normal);
}

/* Focus States */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: 2px solid #888;
    outline-offset: 2px;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    background-color: var(--color-surface-hover);
    color: var(--color-text-high);
}

/* Hover States */
.form-input:hover:not(:focus):not(:disabled),
.form-select:hover:not(:focus):not(:disabled),
.form-textarea:hover:not(:focus):not(:disabled) {
    border-color: var(--color-border-light);
    background-color: var(--color-surface-hover);
}

/* Disabled States */
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent);
    color: var(--color-text-disabled);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-input:disabled::placeholder,
.form-textarea:disabled::placeholder {
    color: var(--color-text-disabled);
}

/* Input Sizes */
.form-input-sm,
.form-select-sm,
.form-textarea-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
}

.form-input-lg,
.form-select-lg,
.form-textarea-lg {
    padding: var(--space-4) var(--space-5);
    font-size: var(--font-size-lg);
}

/* Select Styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-3) center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: var(--space-10);
}

.form-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Textarea */
.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-textarea-sm {
    min-height: 80px;
}

.form-textarea-lg {
    min-height: 160px;
}

/* Input Groups */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-input {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
}

.input-group-prepend,
.input-group-append {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    color: var(--color-text-secondary);
    text-align: center;
    white-space: nowrap;
    background-color: var(--color-accent);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.input-group-prepend .input-group-text {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.input-group-append .input-group-text {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
}

.input-group-prepend + .form-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .form-input + .input-group-append .input-group-text {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Floating Labels */
.form-floating {
    position: relative;
}

.form-floating > .form-input,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding: 1rem var(--space-4) 0.25rem;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem var(--space-4);
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity var(--transition-base), transform var(--transition-base);
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
    line-height: 1.5;
}

.form-floating > .form-input:focus ~ label,
.form-floating > .form-input:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--color-text-secondary);
}

/* Validation States */
.form-input.is-valid,
.form-select.is-valid,
.form-textarea.is-valid {
    border-color: var(--color-success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='m2.3 6.73.4-.4 1.1 1.1L6.7 2.5l.4.4-3.5 3.5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-input.is-valid:focus,
.form-select.is-valid:focus,
.form-textarea.is-valid:focus {
    border-color: var(--color-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: var(--color-error);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23ef4444' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m6 3v3m0 2v0'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-input.is-invalid:focus,
.form-select.is-invalid:focus,
.form-textarea.is-invalid:focus {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

/* Feedback Messages */
.valid-feedback {
    display: none;
    width: 100%;
    margin-top: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--color-success);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--color-error);
}

.was-validated .form-input:valid ~ .valid-feedback,
.was-validated .form-select:valid ~ .valid-feedback,
.was-validated .form-textarea:valid ~ .valid-feedback,
.form-input.is-valid ~ .valid-feedback,
.form-select.is-valid ~ .valid-feedback,
.form-textarea.is-valid ~ .valid-feedback {
    display: block;
}

.was-validated .form-input:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback,
.was-validated .form-textarea:invalid ~ .invalid-feedback,
.form-input.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback,
.form-textarea.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Checkboxes and Radio Buttons */
.form-check {
    display: block;
    margin-bottom: var(--space-3);
    position: relative;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: var(--color-surface);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid var(--color-border);
    appearance: none;
    color-adjust: exact;
    transition: all var(--transition-base);
    cursor: pointer;
}

.form-check-input[type="checkbox"] {
    border-radius: var(--border-radius-sm);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:active {
    filter: brightness(90%);
}

.form-check-input:focus {
    border-color: var(--color-border-focus);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.form-check-input:checked {
    background-color: var(--color-white);
    border-color: var(--color-white);
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%232d2d2d' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%232d2d2d'/%3e%3c/svg%3e");
}

.form-check-input:indeterminate {
    background-color: var(--color-white);
    border-color: var(--color-white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%232d2d2d' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
}

.form-check-input:disabled {
    pointer-events: none;
    filter: none;
    opacity: 0.5;
}

.form-check-input[disabled] ~ .form-check-label,
.form-check-input:disabled ~ .form-check-label {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-check-label {
    color: var(--color-text);
    cursor: pointer;
    font-size: var(--font-size-base);
    margin-left: var(--space-2);
}

/* Switch Toggle */
.form-switch {
    padding-left: 2.5em;
}

.form-switch .form-check-input {
    width: 2em;
    margin-left: -2.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%2840, 40, 40, 1%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: background-position var(--transition-base) ease-in-out;
}

.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%2840, 40, 40, 1%29'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%232d2d2d'/%3e%3c/svg%3e");
}

/* File Input */
.form-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: calc(1.5em + var(--space-6) + 2px);
    margin-bottom: 0;
}

.form-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(1.5em + var(--space-6) + 2px);
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.form-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(1.5em + var(--space-6) + 2px);
    padding: var(--space-3) var(--space-4);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    color: var(--color-text-muted);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    cursor: pointer;
}

.form-file-label::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: calc(1.5em + var(--space-6));
    padding: var(--space-3) var(--space-4);
    line-height: 1.5;
    color: var(--color-text);
    content: "Browse";
    background-color: var(--color-accent);
    border-left: inherit;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Range Input */
.form-range {
    width: 100%;
    height: 1.5rem;
    padding: 0;
    background-color: transparent;
    appearance: none;
    cursor: pointer;
}

.form-range:focus {
    outline: 0;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px var(--color-background), 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 1px var(--color-background), 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.form-range::-webkit-slider-track {
    width: 100%;
    height: 0.5rem;
    color: transparent;
    cursor: pointer;
    background-color: var(--color-accent);
    border-color: transparent;
    border-radius: 1rem;
}

.form-range::-webkit-slider-thumb {
    width: 1rem;
    height: 1rem;
    margin-top: -0.25rem;
    background-color: var(--color-white);
    border: 0;
    border-radius: 1rem;
    appearance: none;
    transition: background-color var(--transition-base) ease-in-out, border-color var(--transition-base) ease-in-out, box-shadow var(--transition-base) ease-in-out;
}

.form-range::-moz-range-track {
    width: 100%;
    height: 0.5rem;
    color: transparent;
    cursor: pointer;
    background-color: var(--color-accent);
    border-color: transparent;
    border-radius: 1rem;
}

.form-range::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    background-color: var(--color-white);
    border: 0;
    border-radius: 1rem;
    appearance: none;
    transition: background-color var(--transition-base) ease-in-out, border-color var(--transition-base) ease-in-out, box-shadow var(--transition-base) ease-in-out;
}

/* Mobile-First Form Optimizations */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
    }
    
    .form-row > .form-group {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: var(--space-4);
    }
    
    /* Enhanced mobile form inputs */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: var(--space-4) var(--space-3); /* Larger touch targets */
        min-height: 48px; /* Minimum touch target height */
        border-radius: 8px; /* Slightly larger border radius for mobile */
        line-height: 1.5;
    }
    
    /* Improved form labels for mobile */
    .form-label {
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-medium);
        margin-bottom: var(--space-3);
        color: var(--color-text-high);
    }
    
    /* Mobile-specific button spacing */
    .btn-full {
        margin-top: var(--space-6);
        min-height: 52px; /* Larger CTA touch target */
        font-size: var(--font-size-lg);
        font-weight: var(--font-weight-semibold);
    }
    
    /* Progressive form reveal - hide non-essential fields initially */
    .form-group.optional {
        display: none;
    }
    
    .form-group.optional.revealed {
        display: block;
        animation: slideInForm 0.3s ease-out;
    }
    
    /* Mobile form focus improvements */
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        transform: scale(1.02); /* Subtle scale for focus feedback */
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 
                    0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 480px) {
    .form-group {
        margin-bottom: var(--space-3);
    }
    
    /* Larger touch targets for small screens */
    .form-input,
    .form-select,
    .form-textarea {
        padding: var(--space-4);
        font-size: 16px; /* Consistent 16px to prevent zoom */
        min-height: 52px; /* Even larger touch targets on small screens */
        border-radius: 12px; /* More rounded for better thumb interaction */
    }
    
    .form-textarea {
        min-height: 120px; /* Adequate space for text input */
        resize: vertical; /* Allow vertical resize only */
    }
    
    /* Optimize form labels for small screens */
    .form-label {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-2);
    }
    
    /* Enhanced button styling for small screens */
    .btn-full {
        min-height: 56px; /* Maximum accessibility touch target */
        font-size: var(--font-size-xl);
        padding: var(--space-4) var(--space-6);
        border-radius: 12px;
        margin-top: var(--space-8);
    }
    
    /* Improved spacing for small screen forms */
    .contact-form-container,
    .quick-quote-container {
        padding: var(--space-4);
    }
    
    /* Stack form elements with better spacing */
    .contact-content {
        gap: var(--space-6);
    }
}

/* Mobile Form Animations */
@keyframes slideInForm {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px; /* Adjust based on content */
    }
}

/* Progressive Form Validation Styles - Modern UX Approach */

/* Gentle validation states for form fields */
.form-input.field-empty,
.form-select.field-empty,
.form-textarea.field-empty {
    border-color: var(--color-border);
    background-color: var(--color-surface);
    transition: all 0.3s ease;
}

.form-input.field-typing,
.form-select.field-typing,
.form-textarea.field-typing {
    border-color: #3b82f6; /* Blue for active typing */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: var(--color-surface-hover);
    transition: all 0.3s ease;
}

.form-input.field-needs-attention,
.form-select.field-needs-attention,
.form-textarea.field-needs-attention {
    border-color: #f59e0b; /* Warm amber instead of harsh red */
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    background-color: var(--color-surface);
    transition: all 0.3s ease;
    animation: gentleShake 0.5s ease-in-out;
}

.form-input.field-valid,
.form-select.field-valid,
.form-textarea.field-valid {
    border-color: #10b981; /* Green for valid */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background-color: var(--color-surface);
    transition: all 0.3s ease;
}

/* Gentle shake animation instead of harsh highlighting */
@keyframes gentleShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Modern helper text styling */
.helper-text {
    display: flex;
    align-items: center;
    margin-top: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: 6px;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    transition: all 0.3s ease;
}

.helper-text.helper-empty {
    background: rgba(156, 163, 175, 0.1);
    border-left: 3px solid #9ca3af;
    color: var(--color-text-muted);
}

.helper-text.helper-guidance {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
    color: #d97706;
}

.helper-text.helper-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
    color: #059669;
}

.helper-icon {
    margin-right: var(--space-2);
    font-size: 14px;
}

/* Success indicator styles */
.success-indicator {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group.has-success .success-indicator {
    opacity: 1;
}

/* Mobile-specific form validation styles */
@media (max-width: 768px) {
    .helper-text {
        font-size: var(--font-size-sm);
        margin-top: var(--space-2);
        padding: var(--space-2) var(--space-3);
    }
    
    .success-message,
    .error-message {
        margin: var(--space-4) 0;
        padding: var(--space-4);
        border-radius: 8px;
        font-size: var(--font-size-base);
    }
    
    .success-message {
        background: rgba(34, 197, 94, 0.1);
        border: 1px solid rgba(34, 197, 94, 0.3);
        color: var(--color-success);
    }
    
    .error-message {
        background: rgba(245, 158, 11, 0.1); /* Changed from harsh red to amber */
        border: 1px solid rgba(245, 158, 11, 0.3);
        color: #d97706;
    }
    
    /* Legacy input-error class updated for gentler styling */
    .input-error {
        font-size: var(--font-size-sm);
        margin-top: var(--space-2);
        padding: var(--space-2) var(--space-3);
        background: rgba(245, 158, 11, 0.1);
        border-radius: 6px;
        border-left: 3px solid #f59e0b;
        color: #d97706;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-input,
    .form-select,
    .form-textarea {
        border-width: 2px;
    }
    
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-width: 2px;
        box-shadow: 0 0 0 2px var(--color-focus);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .form-input,
    .form-select,
    .form-textarea,
    .form-check-input,
    .form-switch .form-check-input {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .form-input,
    .form-select,
    .form-textarea {
        background: white !important;
        border: 1px solid black !important;
        color: black !important;
    }
}

/* Typography System
   ========================================================================== */

/* Base Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--color-text-medium);
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

h3 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-medium);
}

h5 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
}

h6 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}

/* Paragraph and Body Text */
p {
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    color: var(--color-text-medium);
}

.lead {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.small {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* Typography Utility Classes */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }
.text-5xl { font-size: var(--font-size-5xl); }
.text-6xl { font-size: var(--font-size-6xl); }
.text-7xl { font-size: var(--font-size-7xl); }

/* Font Weight Utilities */
.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Text Color Utilities */
.text-primary { color: var(--color-text); }
.text-high { color: var(--color-text-high); }
.text-medium { color: var(--color-text-medium); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-disabled { color: var(--color-text-disabled); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-warning { color: var(--color-warning); }
.text-info { color: var(--color-info); }

/* Line Height Utilities */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.2; }
.leading-snug { line-height: 1.4; }
.leading-normal { line-height: 1.6; }
.leading-relaxed { line-height: 1.8; }
.leading-loose { line-height: 2; }

/* Letter Spacing Utilities */
.tracking-tighter { letter-spacing: -0.04em; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.02em; }
.tracking-wider { letter-spacing: 0.04em; }
.tracking-widest { letter-spacing: 0.08em; }

/* Special Typography Styles */
.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-text);
    transition: opacity 0.4s ease-out, pointer-events 0.4s ease-out;
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.section-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.card-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    color: var(--color-text);
}

.form-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    color: var(--color-text);
    margin-top: 48px;
}

.tagline {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

/* Links */
a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-text-high);
}

a:focus {
    color: var(--color-text-high);
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

/* Lists */
ul, ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

li {
    margin-bottom: var(--space-2);
    color: var(--color-text-medium);
}

/* Custom list styles for feature lists */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: var(--font-weight-bold);
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: var(--space-6);
    margin: var(--space-6) 0;
    font-size: var(--font-size-lg);
    font-style: italic;
    color: var(--color-text-secondary);
}

/* Code and Pre */
code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: var(--font-size-sm);
    background-color: var(--color-surface);
    color: var(--color-text-high);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--border-radius-sm);
}

pre {
    background-color: var(--color-surface);
    color: var(--color-text-high);
    padding: var(--space-4);
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: var(--space-4) 0;
}

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

/* Mobile-First Typography Application */
@media (max-width: 768px) {
    /* Hero section optimized for mobile reading */
    .hero-title {
        font-size: var(--font-size-5xl);
        line-height: var(--line-height-tight);
        letter-spacing: var(--letter-spacing-tight);
        margin-bottom: var(--space-4);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
        line-height: var(--line-height-relaxed);
        letter-spacing: var(--letter-spacing-normal);
        max-width: 90%; /* Better mobile reading width */
    }
    
    /* Section titles optimized for mobile hierarchy */
    .section-title {
        font-size: var(--font-size-3xl);
        line-height: var(--line-height-snug);
        letter-spacing: var(--letter-spacing-tight);
        margin-bottom: var(--space-4);
    }
    
    .section-subtitle {
        font-size: var(--font-size-lg);
        line-height: var(--line-height-relaxed);
        letter-spacing: var(--letter-spacing-normal);
        max-width: 95%; /* Slightly wider for subtitles */
    }
    
    /* Heading hierarchy for mobile */
    h1 {
        font-size: var(--font-size-4xl);
        line-height: var(--line-height-tight);
        letter-spacing: var(--letter-spacing-tight);
        margin-bottom: var(--space-4);
    }
    
    h2 {
        font-size: var(--font-size-3xl);
        line-height: var(--line-height-snug);
        letter-spacing: var(--letter-spacing-tight);
        margin-bottom: var(--space-3);
    }
    
    h3 {
        font-size: var(--font-size-2xl);
        line-height: var(--line-height-normal);
        letter-spacing: var(--letter-spacing-normal);
        margin-bottom: var(--space-3);
    }
    
    h4 {
        font-size: var(--font-size-xl);
        line-height: var(--line-height-normal);
        margin-bottom: var(--space-2);
    }
    
    h5, h6 {
        font-size: var(--font-size-lg);
        line-height: var(--line-height-normal);
        margin-bottom: var(--space-2);
    }
    
    /* Body text optimized for mobile reading */
    p {
        font-size: var(--font-size-base);
        line-height: var(--line-height-relaxed);
        letter-spacing: var(--letter-spacing-normal);
        margin-bottom: var(--space-4);
        max-width: 100%; /* Full width on mobile for better space utilization */
    }
    
    /* List text optimization */
    li {
        line-height: var(--line-height-relaxed);
        margin-bottom: var(--space-2);
    }
    
    /* Form labels and helper text */
    .form-label {
        font-size: var(--font-size-base);
        line-height: var(--line-height-normal);
        font-weight: var(--font-weight-medium);
    }
    
    /* Button text optimization */
    .btn {
        font-size: var(--font-size-base);
        line-height: var(--line-height-normal);
        letter-spacing: var(--letter-spacing-wide);
    }
}

@media (max-width: 480px) {
    /* Further optimization for small screens */
    .hero-title {
        font-size: var(--font-size-4xl);
        line-height: var(--line-height-tight);
        margin-bottom: var(--space-3);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        line-height: var(--line-height-relaxed);
        max-width: 100%;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
        line-height: var(--line-height-snug);
        margin-bottom: var(--space-3);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
        line-height: var(--line-height-relaxed);
        max-width: 100%;
    }
    
    /* Tighter heading hierarchy for small screens */
    h1 {
        font-size: var(--font-size-3xl);
        line-height: var(--line-height-tight);
        margin-bottom: var(--space-3);
    }
    
    h2 {
        font-size: var(--font-size-2xl);
        line-height: var(--line-height-snug);
        margin-bottom: var(--space-2);
    }
    
    h3 {
        font-size: var(--font-size-xl);
        line-height: var(--line-height-normal);
        margin-bottom: var(--space-2);
    }
    
    /* Optimized body text for small screens */
    p {
        font-size: var(--font-size-base);
        line-height: var(--line-height-relaxed);
        margin-bottom: var(--space-3);
    }
    
    /* Button text for small screens */
    .btn {
        font-size: var(--font-size-base);
        line-height: var(--line-height-normal);
    }
    
    /* Form optimization */
    .form-label {
        font-size: var(--font-size-sm);
        line-height: var(--line-height-normal);
    }
}

/* Navigation System
   ========================================================================== */

/* Header */
.header {
    position: static;
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(45, 45, 45, 0.98);
}

/* Navigation */
.nav {
    height: var(--nav-height, 72px);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xl);
    color: var(--color-text);
    transition: opacity 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}


/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-8);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: var(--space-2) 0;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    position: relative;
}

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

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

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


/* CTA Button in Nav */
.nav-cta {
    margin-left: var(--space-6);
}

.nav-cta .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
}

/* Mobile Navigation - Slide-in from Right */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--space-4);
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .nav-menu {
        display: none;
    }
    
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 var(--space-3);
    }
    
    .nav {
        height: 64px;
    }
    
    .logo-header {
        height: 55px;  /* Consistent with mobile breakpoint */
    }
}


/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: var(--space-6);
    left: var(--space-6);
    width: 48px;
    height: 48px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: var(--z-fixed);
    backdrop-filter: blur(8px);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--color-surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: var(--space-4);
        left: var(--space-4);
        width: 40px;
        height: 40px;
        font-size: var(--font-size-base);
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: var(--space-4) 0;
    font-size: var(--font-size-sm);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin: 0 var(--space-2);
    color: var(--color-text-muted);
}

.breadcrumb-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--color-text);
}

.breadcrumb-item.active {
    color: var(--color-text-muted);
}

/* Header scrolls naturally with page content */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}


/* Hero Section
   ========================================================================== */

/* Hero Container */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a1a1a 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 45, 45, 0.3);
    backdrop-filter: blur(1px);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    margin-bottom: var(--space-6);
    backdrop-filter: blur(10px);
}

.hero-badge-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

/* Hero Title */
.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
    color: var(--color-text);
}

.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title-emphasis {
    /* Simplified styling - removed gradient to fix highlighting issue */
    color: var(--color-text);
    position: relative;
    font-weight: inherit;
}

/* Removed gradient fallback - no longer needed */

.hero-title-emphasis::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    animation: underlineExpand 1.5s ease 1s forwards;
}

@keyframes underlineExpand {
    to {
        width: 100%;
    }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, pointer-events 0.4s ease-out;
}

.hero-subtitle strong {
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
}

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

.hero-stat-number {
    display: block;
    font-size: calc(var(--font-size-3xl) * 1.2);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: 1;
}

.hero-stat-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
    letter-spacing: 0.02em;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta .btn {
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.hero-cta .btn-icon {
    transition: transform 0.2s ease;
}

.hero-cta .btn:hover .btn-icon {
    transform: translateX(2px);
}

/* Trust Badges */
.hero-trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    opacity: 0;
    transform: translateY(20px);
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.trust-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-1);
    opacity: 0.9;
}

.trust-text {
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Mobile responsive trust badges */
@media (max-width: 768px) {
    .hero-trust-badges {
        gap: var(--space-4);
    }
    
    .trust-badge {
        font-size: var(--font-size-xs);
    }
    
    .trust-icon {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-trust-badges {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .trust-badge {
        flex-direction: row;
        gap: var(--space-2);
    }
    
    .trust-icon {
        margin-bottom: 0;
        font-size: 1rem;
    }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    opacity: 0;
    transform: translateY(20px);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-text {
    letter-spacing: 0.02em;
}

.scroll-arrow {
    animation: scrollArrow 2s ease-in-out infinite;
}

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

@keyframes scrollArrow {
    0%, 20%, 50%, 80%, 100% {
        opacity: 1;
    }
    40% {
        opacity: 0.7;
    }
    60% {
        opacity: 0.8;
    }
}

/* Hero Animation Classes */
.hero-title-animate {
    animation: heroSlideUp 0.8s ease forwards;
}

.hero-fade-in {
    animation: heroFadeIn 0.8s ease forwards;
}

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

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

/* Animated Background Elements */
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: -3%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Responsive Hero Design */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
    }
    
    .hero-content {
        padding: var(--space-6) var(--space-3);
    }
    
    .hero-title {
        font-size: var(--font-size-5xl);
        margin-bottom: var(--space-4);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-6);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
        margin-bottom: var(--space-6);
    }
    
    .hero-stat {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-3);
    }
    
    .hero-stat-number {
        font-size: var(--font-size-2xl);
    }
    
    .hero-stat-label {
        margin-top: 0;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        margin-bottom: var(--space-8);
        gap: var(--space-3);
    }
    
    /* Enhanced mobile CTA styling */
    .hero-cta .btn {
        width: 100%;
        max-width: 320px; /* Slightly wider for better mobile experience */
        min-height: 56px; /* Larger touch target */
        font-size: var(--font-size-lg);
        font-weight: var(--font-weight-semibold);
        border-radius: 12px;
        padding: var(--space-4) var(--space-6);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Primary CTA emphasis on mobile */
    .hero-cta .btn-primary {
        transform: scale(1.05); /* Slightly larger primary CTA */
        box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
    }
    
    .hero-cta .btn-primary:active {
        transform: scale(1.02);
    }
    
    /* Secondary CTA styling */
    .hero-cta .btn-secondary {
        background: transparent;
        border: 2px solid var(--color-border-light);
        color: var(--color-text-secondary);
    }
    
    .hero-cta .btn-secondary:hover,
    .hero-cta .btn-secondary:focus {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--color-text-secondary);
        color: var(--color-text);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .hero-badge {
        padding: var(--space-1) var(--space-3);
    }
    
    .hero-badge-text {
        font-size: var(--font-size-xs);
    }
    
    .hero-stats {
        gap: var(--space-2);
    }
    
    .hero-stat-number {
        font-size: var(--font-size-xl);
    }
    
    .hero-stat-label {
        font-size: var(--font-size-xs);
    }
    
    /* Maximum mobile optimization for CTAs */
    .hero-cta .btn {
        max-width: 100%;
        min-height: 60px; /* Maximum touch target for small screens */
        font-size: var(--font-size-xl);
        border-radius: 16px; /* More rounded for thumb-friendly interaction */
    }
    
    /* Enhanced visual hierarchy on small screens */
    .hero-cta .btn-primary {
        background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-hover) 100%);
        border: 2px solid var(--color-text);
        color: var(--color-text);
        font-weight: var(--font-weight-bold);
        letter-spacing: 0.02em;
        transform: scale(1.0); /* Reset scale for very small screens */
        margin-bottom: var(--space-2);
    }
    
    .hero-cta .btn-secondary {
        font-size: var(--font-size-base);
        min-height: 52px; /* Slightly smaller secondary CTA */
        opacity: 0.9;
    }
}

/* Mobile Sticky CTA - Appears after hero scroll */
@media (max-width: 768px) {
    .mobile-sticky-cta {
        position: fixed;
        bottom: var(--space-4);
        left: var(--space-4);
        right: var(--space-4);
        z-index: var(--z-floating);
        transform: translateY(100px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-sticky-cta.visible {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-sticky-cta .btn {
        width: 100%;
        min-height: 56px;
        font-size: var(--font-size-lg);
        font-weight: var(--font-weight-bold);
        background: var(--color-surface);
        border: 2px solid var(--color-text);
        color: var(--color-text);
        border-radius: 16px;
        padding: var(--space-4) var(--space-6);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                    0 4px 16px rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(12px);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-2);
        transition: all 0.2s ease;
    }
    
    .mobile-sticky-cta .btn:hover,
    .mobile-sticky-cta .btn:focus {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 
                    0 6px 20px rgba(255, 255, 255, 0.15);
    }
    
    .mobile-sticky-cta .btn:active {
        transform: translateY(0);
    }
    
    /* Hide on very small screens if space is limited */
    @media (max-height: 600px) {
        .mobile-sticky-cta {
            bottom: var(--space-2);
            left: var(--space-2);
            right: var(--space-2);
        }
        
        .mobile-sticky-cta .btn {
            min-height: 48px;
            font-size: var(--font-size-base);
            padding: var(--space-3) var(--space-4);
        }
    }
}

/* Hero Parallax Effect */
@media (prefers-reduced-motion: no-preference) {
    .hero-background {
        transform: translateZ(0);
        will-change: transform;
    }
}

/* High Performance Animations */
.hero-title-animate,
.hero-fade-in {
    will-change: opacity, transform;
}

.hero-title-animate:nth-child(1) {
    animation-delay: 0s;
}

.hero-title-animate:nth-child(2) {
    animation-delay: 0.2s;
}

/* Print Styles for Hero */
@media print {
    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
        background: white !important;
        page-break-after: always;
    }
    
    .hero-background,
    .hero-overlay,
    .hero-scroll-indicator {
        display: none !important;
    }
    
    .hero-title {
        color: black !important;
        font-size: 24pt !important;
    }
    
    .hero-subtitle {
        color: black !important;
        font-size: 14pt !important;
    }
    
    .hero-cta {
        display: none !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero-title-animate,
    .hero-fade-in,
    .scroll-indicator,
    .hero::before,
    .hero::after {
        animation: none !important;
    }
    
    .hero-title-line,
    .hero-subtitle,
    .hero-stats,
    .hero-cta,
    .hero-scroll-indicator {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .hero-title-emphasis::after {
        width: 100% !important;
        animation: none !important;
    }
}

/* Services Section
   ========================================================================== */

/* Section Base Styles */
.section {
    padding: var(--space-16) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    margin-bottom: var(--space-4);
    backdrop-filter: blur(10px);
}

.section-badge-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services {
    background: var(--color-primary);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
    align-items: stretch;
}

/* Service Card */
.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

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

/* Service Header */
.service-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.service-icon .icon {
    width: 28px;
    height: 28px;
    color: var(--color-text);
}

.service-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    padding: var(--space-1) var(--space-2);
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.service-badge-expert {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

/* Service Content */
.service-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.service-description {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6) 0;
}

.service-features li {
    position: relative;
    padding: var(--space-2) 0 var(--space-2) var(--space-6);
    color: var(--color-text-medium);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: var(--space-2);
    color: var(--color-text);
    font-weight: var(--font-weight-bold);
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Service Meta */
.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-6);
}

.service-duration {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
}

.service-price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

/* Service CTA */
.service-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    padding: var(--space-3) var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.service-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    color: var(--color-text);
    text-decoration: none;
}

.service-cta svg {
    transition: transform 0.2s ease;
}

.service-cta:hover svg {
    transform: translateX(2px);
}

/* Services Footer */
.services-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

.services-guarantee {
    text-align: left;
}

.guarantee-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.guarantee-text {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.services-cta {
    text-align: right;
}

.services-cta-note {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-2);
    margin-bottom: 0;
}

/* Service Card Hover Effects */
.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

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

.service-card:hover .service-features li::before {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Services Design */
@media (max-width: 768px) {
    .section {
        padding: var(--space-12) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-8);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        margin-bottom: var(--space-8);
    }
    
    .service-card {
        padding: var(--space-6);
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .service-badge {
        align-self: flex-end;
    }
    
    .service-title {
        font-size: var(--font-size-xl);
    }
    
    .service-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .services-footer {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    .services-guarantee {
        text-align: center;
    }
    
    .services-cta {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .service-card {
        padding: var(--space-4);
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
    }
    
    .service-icon .icon {
        width: 24px;
        height: 24px;
    }
    
    .service-title {
        font-size: var(--font-size-lg);
    }
    
    .service-features li {
        padding-left: var(--space-5);
    }
    
    .services-footer {
        padding: var(--space-6);
    }
}

/* Print Styles for Services */
@media print {
    .services {
        background: white !important;
        color: black !important;
    }
    
    .service-card {
        background: white !important;
        border: 1px solid black !important;
        break-inside: avoid;
        margin-bottom: var(--space-4);
    }
    
    .service-icon {
        background: #f0f0f0 !important;
    }
    
    .service-cta {
        display: none !important;
    }
    
    .services-footer {
        page-break-before: always;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .service-icon,
    .service-cta,
    .service-cta svg {
        transition: none;
    }
    
    .service-card:hover .service-icon {
        transform: none;
    }
    
    .service-cta:hover svg {
        transform: none;
    }
}

/* About Section
   ========================================================================== */

/* About Section Base */
.about {
    background: linear-gradient(135deg, #1a1a1a 0%, var(--color-primary) 50%, #1a1a1a 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* About Grid Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
    align-items: stretch;
}

/* Credentials Section */
.about-credentials {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.credentials-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.credentials-subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.credentials-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    flex: 1;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    flex: 1;
}

.credential-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.credential-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.credential-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-text);
}

.credential-content {
    flex: 1;
}

.credential-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-1);
    line-height: 1.3;
}

.credential-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Efficiency Section */
.about-efficiency {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.efficiency-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.efficiency-subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.efficiency-metrics {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    flex: 1;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    flex: 1;
}

.metric-visual {
    width: 60px;
    height: 60px;
    position: relative;
    flex-shrink: 0;
}

.metric-progress {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        var(--color-text) 0deg,
        var(--color-text) calc(var(--progress, 0) * 3.6deg),
        rgba(255, 255, 255, 0.1) calc(var(--progress, 0) * 3.6deg),
        rgba(255, 255, 255, 0.1) 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.metric-progress::before {
    content: '';
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    position: absolute;
}

.metric-content {
    flex: 1;
}

.metric-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: 1;
}

.metric-label {
    display: block;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    margin-top: var(--space-1);
}

.metric-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: var(--space-1) 0 0 0;
}

/* Process Section */
.about-process {
    margin-bottom: var(--space-16);
}

.process-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--space-2);
}

.process-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--space-12);
    line-height: 1.6;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.process-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.step-number {
    position: absolute;
    top: -12px;
    left: var(--space-6);
    background: var(--color-text);
    color: var(--color-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.step-content {
    padding-top: var(--space-2);
}

.step-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.step-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Testimonials Section */
.about-testimonials {
    margin-bottom: var(--space-16);
}

.testimonials-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--space-12);
}

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

.testimonial-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.testimonial-content {
    margin-bottom: var(--space-4);
}

.testimonial-text {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.testimonial-text::before {
    content: '"';
    color: var(--color-text);
    font-size: var(--font-size-2xl);
    line-height: 0;
}

.testimonial-text::after {
    content: '"';
    color: var(--color-text);
    font-size: var(--font-size-2xl);
    line-height: 0;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-4);
}

.author-name {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.author-title {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* About CTA */
.about-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: var(--space-12) var(--space-8);
    backdrop-filter: blur(10px);
}

.about-cta-content {
    max-width: 500px;
    margin: 0 auto;
}

.about-cta-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.about-cta-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

/* Responsive About Design */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        margin-bottom: var(--space-12);
    }
    
    .about-credentials,
    .about-efficiency {
        padding: var(--space-6);
    }
    
    .credentials-title,
    .efficiency-title {
        font-size: var(--font-size-xl);
    }
    
    .credential-item,
    .metric-item {
        padding: var(--space-3);
        gap: var(--space-3);
    }
    
    .credential-icon {
        width: 40px;
        height: 40px;
    }
    
    .credential-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .metric-visual {
        width: 50px;
        height: 50px;
    }
    
    .metric-number {
        font-size: var(--font-size-2xl);
    }
    
    .process-title {
        font-size: var(--font-size-2xl);
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .process-step {
        padding: var(--space-4);
    }
    
    .testimonials-title {
        font-size: var(--font-size-2xl);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .about-cta {
        padding: var(--space-8) var(--space-4);
    }
    
    .about-cta-title {
        font-size: var(--font-size-xl);
    }
}

@media (max-width: 480px) {
    .efficiency-metrics {
        gap: var(--space-4);
    }
    
    .metric-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-2);
    }
    
    .process-step {
        padding: var(--space-3);
    }
    
    .step-number {
        top: -10px;
        left: var(--space-4);
        width: 28px;
        height: 28px;
        font-size: var(--font-size-sm);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }
    
    .testimonial-item {
        padding: var(--space-4);
    }
    
    .testimonial-text {
        font-size: var(--font-size-sm);
    }
}

/* Print Styles for About */
@media print {
    .about {
        background: white !important;
        color: black !important;
    }
    
    .about-credentials,
    .about-efficiency,
    .process-step,
    .testimonial-item,
    .about-cta {
        background: white !important;
        border: 1px solid black !important;
        break-inside: avoid;
    }
    
    .credential-icon,
    .metric-visual {
        background: #f0f0f0 !important;
    }
    
    .about-cta .btn {
        display: none !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .credential-item,
    .process-step,
    .testimonial-item {
        transition: none;
    }
    
    .credential-item:hover,
    .process-step:hover,
    .testimonial-item:hover {
        transform: none;
    }
}

/* Footer Section
   ========================================================================== */

/* Footer Base */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, var(--color-primary) 100%);
    color: var(--color-text);
    padding: 40px 0 32px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

/* Footer Content Layout */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: var(--space-12);
    position: relative;
    z-index: 2;
    align-items: start;
}

/* Footer Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    max-width: 250px;
    padding-bottom: var(--space-1);
}

.footer-logo {
    margin-bottom: var(--space-1);
    text-align: left;
}

.footer-logo .logo-footer {
    width: 130px;
    height: auto;
}

.footer-tagline {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: left;
}

.footer-description {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-align: left;
    line-height: 1.5;
    margin: 0;
}

.footer-description {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

/* Footer Contact and Service Sections */
.footer-contact,
.footer-service {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.contact-header {
    font-size: 12px;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: 3.5px;
    margin-bottom: var(--space-2);
    font-weight: 500;
}

/* Quick Quote Container Spacing */
.quick-quote-container {
    margin-bottom: 64px;
    position: relative;
    background: rgba(255, 255, 255, 0.015);
    padding: var(--space-6);
    border-radius: var(--border-radius-lg);
}

.quick-quote-container::after {
    content: '';
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.contact-link {
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.contact-link:hover {
    color: #007AFF;
    text-decoration: underline;
}

.contact-text {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    margin: 0;
}

.contact-subtext {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: var(--space-1);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

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

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-1);
    font-weight: var(--font-weight-medium);
}

.contact-link {
    font-size: var(--font-size-base);
    color: var(--color-text);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--color-text-secondary);
}

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

/* Footer Links Section */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.footer-section {
    margin-bottom: var(--space-6);
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    line-height: 1.3;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.2s ease;
    display: block;
    padding: var(--space-1) 0;
}

.footer-link:hover {
    color: var(--color-text);
}

.footer-text {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    display: block;
    padding: var(--space-1) 0;
}

/* Footer Lead Form */
.footer-lead-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    backdrop-filter: blur(10px);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.footer-form-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.footer-form-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.footer-form-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.footer-quick-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-input,
.footer-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    border-radius: var(--border-radius);
    padding: var(--space-3);
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.footer-input::placeholder {
    color: var(--color-text-muted);
}

.footer-input:focus,
.footer-select:focus {
    outline: none;
    border-color: var(--color-text);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Footer select dropdown options styling for visibility */
.footer-select option {
    background-color: var(--color-surface);
    color: var(--color-text);
    padding: var(--space-2) var(--space-3);
    border: none;
}

.footer-select option:hover,
.footer-select option:focus {
    background-color: var(--color-primary);
    color: var(--color-background);
}

/* Footer Newsletter Section */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.newsletter-description {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin: 0 0 var(--space-2) 0;
    line-height: 1.4;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.newsletter-inline {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    max-width: 160px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--color-text);
    font-size: 12px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 40px;
}

.newsletter-input:focus {
    outline: none;
    border-color: #007AFF;
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-input::placeholder {
    color: var(--color-text-muted);
}

.newsletter-button {
    padding: 8px 16px;
    background: #007AFF;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 40px;
    min-width: 90px;
}

.newsletter-button:hover {
    background: #0056CC;
}

.newsletter-button:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

.newsletter-input:focus {
    outline: none;
    border-color: #007AFF;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

/* Enhanced keyboard navigation */
.contact-link:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Ensure high contrast for accessibility */
@media (prefers-contrast: high) {
    .newsletter-button {
        background: #000000;
        color: #ffffff;
        border: 2px solid #ffffff;
    }
    
    .newsletter-button:hover {
        background: #ffffff;
        color: #000000;
    }
}

.footer-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.footer-form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-2);
    text-align: center;
}

.footer-form-note svg {
    color: var(--color-text-secondary);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    flex: 1;
    margin-top: 1px;
}

.footer-copyright p {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

.footer-disclaimer {
    margin-top: var(--space-1) !important;
    font-size: var(--font-size-xs) !important;
    color: var(--color-text-disabled) !important;
}

.footer-credentials {
    display: flex;
    gap: 20px;
    align-items: center;
}

.credential-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    min-width: 60px;
}

.badge-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: 1;
}

.badge-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Responsive Footer Design */
@media (max-width: 768px) {
    .footer {
        padding: var(--space-12) 0 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        margin-bottom: var(--space-8);
    }
    
    .footer-brand {
        text-align: center;
        order: 1;
    }
    
    .footer-links {
        order: 2;
        flex-direction: row;
        justify-content: space-between;
        gap: var(--space-6);
    }
    
    .footer-section {
        flex: 1;
        margin-bottom: 0;
    }
    
    .footer-lead-form {
        order: 3;
        padding: var(--space-4);
    }
    
    .footer-contact {
        gap: var(--space-3);
    }
    
    .contact-item {
        padding: var(--space-2);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .footer-credentials {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: var(--space-8) 0 0 0;
    }
    
    .footer-content {
        gap: var(--space-6);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .footer-lead-form {
        padding: var(--space-3);
    }
    
    .footer-form-title {
        font-size: var(--font-size-lg);
    }
    
    .footer-credentials {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    .credential-badge {
        min-width: 50px;
        padding: var(--space-1) var(--space-2);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-2);
    }
    
    .contact-icon {
        margin-top: 0;
    }
}

/* Print Styles for Footer */
@media print {
    .footer {
        background: white !important;
        color: black !important;
        border-top: 2px solid black !important;
        page-break-before: always;
    }
    
    .footer-lead-form {
        display: none !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .contact-item {
        background: transparent !important;
        border: 1px solid #ccc !important;
    }
    
    .credential-badge {
        background: #f0f0f0 !important;
        border: 1px solid #ccc !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .contact-item {
        transition: none;
    }
    
    .contact-item:hover {
        transform: none;
    }
    
    .footer-input,
    .footer-select,
    .footer-link {
        transition: none;
    }
}

/* Print Typography */
@media print {
    body {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 12pt;
        line-height: 1.5;
        color: black;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
}

/* Print Styles */
@media print {
    *, *::before, *::after {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    
    /* Print Logo Adjustments */
    .logo-header,
    .logo-footer {
        height: auto !important;
        max-width: 120px !important;
    }
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE ENHANCEMENTS
   Task 3.7: Comprehensive mobile optimization for ZB Consulting
   ========================================================================== */

/* Mobile Typography Fluid System */
@media (max-width: 768px) {
    /* Fluid Typography for Mobile Screens */
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.75rem);
        line-height: 1.1;
        margin-bottom: var(--space-4);
    }
    
    .section-title {
        font-size: clamp(1.875rem, 6vw, 2.25rem);
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: clamp(1rem, 4vw, 1.125rem);
        line-height: 1.5;
    }
    
    .service-title,
    .card-title {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
        line-height: 1.3;
    }
    
    /* Mobile Reading Optimization */
    p {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
        line-height: 1.6;
        max-width: 65ch;
    }
    
    .lead {
        font-size: clamp(1rem, 4vw, 1.125rem);
        line-height: 1.5;
    }
}

/* Mobile Hero Section Enhancements */
@media (max-width: 768px) {
    .hero {
        min-height: 100dvh; /* Dynamic viewport height for mobile */
        padding-top: var(--space-20);
        padding-bottom: var(--space-16);
    }
    
    .hero-content {
        text-align: center;
        max-width: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
        margin: var(--space-8) 0;
    }
    
    .hero-stat {
        min-width: auto;
        padding: var(--space-4);
        background: rgba(45, 45, 45, 0.3);
        border-radius: var(--border-radius);
        backdrop-filter: blur(10px);
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-3);
        align-items: stretch;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        min-height: 56px; /* Touch target optimization */
    }
    
    .hero-scroll-indicator {
        margin-top: var(--space-8);
    }
}

/* Mobile Services Section Optimization */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .service-card {
        padding: var(--space-6);
        margin-bottom: var(--space-4);
    }
    
    .service-header {
        margin-bottom: var(--space-4);
    }
    
    .service-features {
        margin: var(--space-4) 0;
    }
    
    .service-features li {
        padding: var(--space-2) 0 var(--space-2) var(--space-6);
        border-bottom: 1px solid var(--color-border);
    }
    
    .service-features li:last-child {
        border-bottom: none;
    }
    
    .service-meta {
        flex-direction: column;
        gap: var(--space-2);
        margin: var(--space-4) 0;
    }
    
    .service-cta {
        width: 100%;
        min-height: 52px;
        justify-content: center;
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-medium);
    }
    
    .services-footer {
        flex-direction: column;
        text-align: center;
        gap: var(--space-6);
        margin-top: var(--space-12);
    }
    
    .services-guarantee {
        margin-bottom: var(--space-6);
    }
    
    .services-cta .btn {
        width: 100%;
        min-height: 56px;
    }
}

/* Mobile About Section Enhancements */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .credentials-list {
        gap: var(--space-4);
    }
    
    .credential-item {
        padding: var(--space-4);
        background: var(--color-surface);
        border-radius: var(--border-radius);
    }
    
    .efficiency-metrics {
        gap: var(--space-6);
    }
    
    .metric-item {
        text-align: center;
        padding: var(--space-4);
        background: var(--color-surface);
        border-radius: var(--border-radius);
    }
    
    .process-steps {
        gap: var(--space-6);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .testimonial-item {
        padding: var(--space-6);
        text-align: center;
    }
}

/* Mobile Contact Section & Form Optimization */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .contact-form-container,
    .quick-quote-container {
        order: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    /* Touch-Optimized Form Elements */
    .form-input,
    .form-select,
    .form-textarea {
        min-height: 52px;
        font-size: 16px; /* Prevents iOS zoom */
        padding: var(--space-4);
        border-radius: var(--border-radius);
    }
    
    .form-textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .form-label {
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-medium);
        margin-bottom: var(--space-2);
    }
    
    /* Mobile Button Optimization */
    .btn {
        min-height: 52px;
        padding: var(--space-4) var(--space-6);
        font-size: var(--font-size-base);
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: all var(--transition-base);
    }
    
    .btn-primary {
        min-height: 56px;
        font-weight: var(--font-weight-medium);
    }
    
    .btn-full {
        width: 100%;
        justify-content: center;
    }
    
    /* Form Validation Mobile Styles */
    .form-group.has-error .form-input,
    .form-group.has-error .form-select,
    .form-group.has-error .form-textarea {
        border-color: var(--color-error);
        box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
    }
    
    .input-error {
        color: var(--color-error);
        font-size: var(--font-size-sm);
        margin-top: var(--space-1);
        display: flex;
        align-items: center;
        gap: var(--space-1);
    }
    
    .input-error::before {
        content: '⚠';
        font-size: var(--font-size-sm);
    }
}

/* Mobile Footer Optimization */
@media (max-width: 768px) {
    .footer-content {
        gap: var(--space-6);
    }
    
    .footer-contact {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        max-width: 400px;
    }
    
    .footer {
        padding: 32px 0 24px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: left;
    }
    
    .footer-logo .logo-footer {
        width: 80px;
    }
    
    .footer-tagline {
        font-size: 18px;
    }
    
    .footer-description {
        font-size: 13px;
    }
    
    .newsletter-inline {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .newsletter-button {
        width: 100%;
    }
}
    
    .footer-brand {
        order: 1;
    }
    
    .footer-links {
        order: 2;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .footer-lead-form {
        order: 3;
        max-width: none;
    }
    
    .footer-quick-form .form-group {
        margin-bottom: var(--space-3);
    }
    
    .footer-input,
    .footer-select {
        min-height: 48px;
        font-size: 16px;
        padding: var(--space-3) var(--space-4);
    }
    
    .footer-submit {
        min-height: 52px;
        width: 100%;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .footer-credentials {
        justify-content: center;
    }
}



/* Mobile Scroll Optimization */
@media (max-width: 768px) {
    .scroll-top {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 48px;
        height: 48px;
        background: var(--color-surface);
        color: var(--color-text);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-md);
        font-size: var(--font-size-lg);
        font-weight: var(--font-weight-bold);
        transition: all var(--transition-base);
    }
    
    .scroll-top:hover {
        background: var(--color-surface-hover);
        transform: translateY(-2px);
    }
}

/* Mobile Touch Feedback */
@media (max-width: 768px) {
    .btn:active,
    .service-cta:active,
    .nav-link:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Enhanced Focus States for Keyboard Navigation */
    .btn:focus,
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus,
    .nav-link:focus {
        outline: 3px solid var(--color-focus);
        outline-offset: 2px;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce motion for better performance */
    .hero-background {
        transform: none !important;
    }
    
    /* Optimize scroll performance */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Optimize touch scrolling */
    body {
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Prevent horizontal scroll */
    body,
    html {
        overflow-x: hidden;
    }
}

/* Mobile-Specific Animations */
@media (max-width: 768px) {
    .hero-title-animate {
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    .hero-fade-in {
        animation: fadeIn 0.6s ease-out forwards;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-fluid {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.1;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .hero-stats {
        gap: var(--space-3);
    }
    
    .hero-stat {
        padding: var(--space-3);
    }
    
    
    
    .service-card,
    .testimonial-item,
    .credential-item,
    .metric-item,
    .process-step {
        padding: var(--space-4);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

/* Landscape Phone Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: var(--space-12);
        padding-bottom: var(--space-8);
    }
    
    .hero-content {
        max-width: 90%;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-4);
    }
    
    
    .nav-item {
        width: auto;
        margin: var(--space-2);
    }
    
    .nav-cta {
        margin-top: 0;
        width: auto;
    }
}

/* Accessibility Enhancements for Mobile */
@media (max-width: 768px) {
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .btn,
        .form-input,
        .form-select,
        .form-textarea {
            border: 2px solid var(--color-text);
        }
        
        .service-card,
        .testimonial-item {
            border: 1px solid var(--color-border);
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .hero-title-animate,
        .hero-fade-in,
        .btn {
            animation: none;
            transition: none;
        }
        
        .btn:active {
            transform: none;
        }
    }
    
    /* Dark mode support (if device preference) */
    @media (prefers-color-scheme: dark) {
        /* Colors are already optimized for dark theme */
    }
}

/* ========================================================================== 
   Enhanced Hero Parallax Effects - Task 5.3
   ========================================================================== */

/* Enhanced hero background for parallax effect */
.hero {
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.hero-background {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(45, 45, 45, 0.8) 0%, rgba(26, 26, 26, 0.95) 70%);
    z-index: -2;
    will-change: transform;
    backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.4) 0%,
        rgba(45, 45, 45, 0.6) 50%,
        rgba(26, 26, 26, 0.8) 100%
    );
    z-index: -1;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Hero content elements prepared for parallax */
.hero-content {
    position: relative;
    z-index: 1;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.hero-title {
    will-change: transform;
    backface-visibility: hidden;
}

.hero-stats {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.hero-stat {
    will-change: transform;
    backface-visibility: hidden;
}

/* Additional background patterns for depth */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    opacity: 0.8;
    will-change: transform;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.01) 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.02) 75%,
        transparent 100%
    );
    will-change: transform;
}

/* Enhanced performance for parallax elements */
.hero-background,
.hero-overlay,
.hero-content,
.hero-title,
.hero-stats,
.hero-stat {
    transform: translate3d(0, 0, 0);
}

/* Parallax scroll indicator enhanced animation */
.hero-scroll-indicator {
    position: relative;
    z-index: 2;
    will-change: transform;
}

.scroll-indicator {
    animation: parallaxBounce 2s ease-in-out infinite;
}

@keyframes parallaxBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Mobile optimizations for parallax */
@media (max-width: 768px) {
    .hero-background {
        top: -10%;
        left: -5%;
        width: 110%;
        height: 110%;
    }
    
    /* Reduce parallax intensity on mobile for better performance */
    .hero-content,
    .hero-title,
    .hero-stats {
        will-change: opacity;
    }
}

/* Reduced motion - disable parallax entirely */
@media (prefers-reduced-motion: reduce) {
    .hero-background,
    .hero-overlay,
    .hero-content,
    .hero-title,
    .hero-stats,
    .hero-stat {
        transform: none !important;
        will-change: auto !important;
    }
    
    .scroll-indicator {
        animation: none !important;
    }
}

/* High performance mode for low-end devices */
@media (max-width: 480px) and (max-device-width: 768px) {
    .hero-background::before,
    .hero-background::after {
        display: none;
    }
    
    .hero-background {
        background: radial-gradient(ellipse at center, rgba(45, 45, 45, 0.6) 0%, rgba(26, 26, 26, 0.9) 70%);
    }
}

/* Mobile-First Complete Implementation */

/* ========================================================================== 
   Scroll-Based Fade-In Animations - Task 5.1
   ========================================================================== */

/* Initial hidden state for elements to animate */
.fade-in-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--animation-delay, 0ms);
}

/* Fade-in animation when element enters viewport */
.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Fade-in with upward motion for service cards and process steps */
.animate-fade-in-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Section headers get a subtle scale animation */
.section-header.fade-in-hidden {
    transform: translateY(20px) scale(0.95);
}

.section-header.animate-fade-in {
    transform: translateY(0) scale(1);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Service cards get enhanced animation with shadow */
.service-card.fade-in-hidden {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    box-shadow: none;
}

.service-card.animate-fade-in,
.service-card.animate-fade-in-up {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.6s ease-out;
}

/* Process steps get a slide-in from left animation */
.process-step.fade-in-hidden {
    opacity: 0;
    transform: translateX(-30px) translateY(20px);
}

.process-step.animate-fade-in,
.process-step.animate-fade-in-up {
    opacity: 1;
    transform: translateX(0) translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* About section elements get subtle entrance */
.about-credentials.fade-in-hidden,
.about-efficiency.fade-in-hidden {
    opacity: 0;
    transform: translateY(25px);
}

.about-credentials.animate-fade-in,
.about-efficiency.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Testimonials fade in with slight rotation */
.about-testimonials.fade-in-hidden {
    opacity: 0;
    transform: translateY(30px) rotate(-1deg);
}

.about-testimonials.animate-fade-in {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Contact forms get emphasized entrance */
.contact-form-container.fade-in-hidden,
.quick-quote-container.fade-in-hidden {
    opacity: 0;
    transform: translateY(35px) scale(0.98);
}

.contact-form-container.animate-fade-in,
.quick-quote-container.animate-fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Footer elements cascade in */
.footer-brand.fade-in-hidden {
    opacity: 0;
    transform: translateY(20px);
}

.footer-links.fade-in-hidden {
    opacity: 0;
    transform: translateY(25px);
}

.footer-lead-form.fade-in-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.footer-brand.animate-fade-in,
.footer-links.animate-fade-in,
.footer-lead-form.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Enhanced animations for reduced motion users */
@media (prefers-reduced-motion: reduce) {
    .fade-in-hidden,
    .animate-fade-in,
    .animate-fade-in-up {
        transition: opacity 0.3s ease;
        transform: none !important;
    }
    
    .fade-in-hidden {
        opacity: 0.7;
    }
    
    .animate-fade-in,
    .animate-fade-in-up {
        opacity: 1;
    }
}

/* Enhanced performance with will-change for smooth animations */
.fade-in-hidden {
    will-change: opacity, transform;
}

.animate-fade-in,
.animate-fade-in-up {
    will-change: auto;
}

/* Specific keyframe animations for special effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Additional subtle animation for hero elements that weren't covered */
.hero-badge,
.hero-scroll-indicator {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-badge {
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-scroll-indicator {
    animation-delay: 1.2s;
    opacity: 0;
}

/* ========================================================================== 
   Enhanced Hover Effects - Task 5.2
   ========================================================================== */

/* Enhanced Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    will-change: transform;
}

/* Ripple effect for buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.4s ease, height 0.4s ease, top 0.4s ease, left 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
}

/* Enhanced primary button hover */
.btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background-color: var(--color-text-high);
    border-color: var(--color-text-high);
    color: var(--color-primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

/* Enhanced secondary button hover */
.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-secondary:hover {
    background-color: var(--color-surface-hover);
    border-color: var(--color-border-light);
    color: var(--color-text-high);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover::after {
    transform: translateX(100%);
}

/* Consultation button special effects */
.btn-consultation {
    position: relative;
    background: linear-gradient(135deg, var(--color-white), #f8f8f8);
    overflow: hidden;
}

.btn-consultation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-consultation:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

.btn-consultation:hover::before {
    left: 100%;
}

/* Enhanced Service Card Hover Effects */
.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.1));
    border-radius: var(--border-radius-lg);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

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

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

/* Service card icon hover effects */
.service-icon {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Service title and description hover effects */
.service-title {
    transition: all 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--color-text);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.service-description {
    transition: all 0.3s ease;
}

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

/* Service features list hover effects */
.service-features {
    transition: all 0.3s ease;
}

.service-features li {
    transition: all 0.2s ease;
    position: relative;
}

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

.service-features li::before {
    transition: all 0.3s ease;
}

.service-card:hover .service-features li::before {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Service CTA button hover within cards */
.service-cta {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s ease;
}

.service-card:hover .service-cta {
    transform: translateY(-2px);
    color: var(--color-text);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.service-card:hover .service-cta::before {
    left: 100%;
}

/* Enhanced form element hover effects */
.form-input,
.form-select,
.form-textarea {
    transition: all var(--transition-base);
    position: relative;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--color-border-light);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Navigation link hover effects */
.nav-link {
    position: relative;
    transition: all var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--color-text);
    transform: translateY(-2px);
}

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

/* Footer link hover effects */
.footer-link {
    transition: all var(--transition-base);
    position: relative;
}

.footer-link:hover {
    color: var(--color-text);
    transform: translateX(5px);
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-link:hover::before {
    opacity: 1;
    left: -20px;
}

/* Testimonial card hover effects */
.testimonial-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonial-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* Credential item hover effects */
.credential-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.credential-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.credential-item:hover .credential-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

/* Process step hover effects */
.process-step {
    transition: all 0.3s ease;
    cursor: pointer;
}

.process-step:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.03);
}

.process-step:hover .step-number {
    background: var(--color-text);
    color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}


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

/* Mobile sticky CTA hover */
.mobile-sticky-cta .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .service-card,
    .nav-link,
    .footer-link,
    .testimonial-item,
    .credential-item,
    .process-step {
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    }
    
    .btn:hover,
    .service-card:hover,
    .testimonial-item:hover,
    .credential-item:hover,
    .process-step:hover {
        transform: none;
    }
    
    .btn::before,
    .btn::after,
    .service-card::before,
    .service-card::after,
    .service-cta::before,
    .nav-link::after {
        display: none;
    }
}

/* ==========================================================================
   Form Message Containers
   ========================================================================== */

.form-message {
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.form-message.visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
}

.form-message-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.form-message-content.success {
    background-color: #10b981;
    color: white;
    border-color: #059669;
}

.form-message-content.error {
    background-color: #ef4444;
    color: white;
    border-color: #dc2626;
}

.form-message-content.loading {
    background-color: #3b82f6;
    color: white;
    border-color: #2563eb;
}

.form-message-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Dark mode adjustments for form messages */
@media (prefers-color-scheme: dark) {
    .form-message-content.success {
        background-color: #059669;
        border-color: #047857;
    }
    
    .form-message-content.error {
        background-color: #dc2626;
        border-color: #b91c1c;
    }
    
    .form-message-content.loading {
        background-color: #2563eb;
        border-color: #1d4ed8;
    }
}

/* ==========================================================================
   Form Validation Styles
   ========================================================================== */

/* Error state for form groups */
.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    background-color: rgba(239, 68, 68, 0.05);
}

.form-group.has-error .form-input:focus,
.form-group.has-error .form-select:focus,
.form-group.has-error .form-textarea:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    outline: none;
}

.form-group.has-error .form-label {
    color: #ef4444;
}

/* Input error messages */
.input-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #ef4444;
    line-height: 1.4;
}

.input-error::before {
    content: "⚠";
    font-size: 1rem;
    flex-shrink: 0;
}

/* Success state for form groups */
.form-group.has-success .form-input,
.form-group.has-success .form-select,
.form-group.has-success .form-textarea {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group.has-success .form-input:focus,
.form-group.has-success .form-select:focus,
.form-group.has-success .form-textarea:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Dark mode adjustments for validation */
@media (prefers-color-scheme: dark) {
    .form-group.has-error .form-input,
    .form-group.has-error .form-select,
    .form-group.has-error .form-textarea {
        border-color: #dc2626;
        background-color: rgba(220, 38, 38, 0.1);
    }
    
    .form-group.has-error .form-input:focus,
    .form-group.has-error .form-select:focus,
    .form-group.has-error .form-textarea:focus {
        border-color: #dc2626;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
    }
    
    .form-group.has-error .form-label {
        color: #f87171;
    }
    
    .input-error {
        color: #f87171;
    }
    
    .form-group.has-success .form-input,
    .form-group.has-success .form-select,
    .form-group.has-success .form-textarea {
        border-color: #059669;
    }
    
    .form-group.has-success .form-input:focus,
    .form-group.has-success .form-select:focus,
    .form-group.has-success .form-textarea:focus {
        border-color: #059669;
        box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
    }
}

/* =================================================================
   DROPDOWN FIX - Ensure dropdown options remain visible
   ================================================================= */

/* Fix dropdown option visibility with proper contrast */
.form-select option,
.footer-select option {
    background-color: var(--color-background) !important;
    color: var(--color-text) !important;
    padding: var(--space-2) var(--space-3);
}

.form-select option:hover,
.form-select option:focus,
.form-select option:checked,
.footer-select option:hover,
.footer-select option:focus {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
}

/* Ensure dropdown options remain visible with error/validation states */
.form-group.has-error .form-select option,
.form-group.has-success .form-select option,
.form-group.has-warning .form-select option {
    background-color: var(--color-background) !important;
    color: var(--color-text) !important;
}

.form-group.has-error .form-select option:hover,
.form-group.has-error .form-select option:focus,
.form-group.has-error .form-select option:checked,
.form-group.has-success .form-select option:hover,
.form-group.has-success .form-select option:focus,
.form-group.has-success .form-select option:checked,
.form-group.has-warning .form-select option:hover,
.form-group.has-warning .form-select option:focus,
.form-group.has-warning .form-select option:checked {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
}

/* Dark mode specific fixes */
@media (prefers-color-scheme: dark) {
    .form-select option,
    .footer-select option {
        background-color: #1f1f1f !important;
        color: #ffffff !important;
    }
    
    .form-select option:hover,
    .form-select option:focus,
    .form-select option:checked,
    .footer-select option:hover,
    .footer-select option:focus {
        background-color: var(--color-primary) !important;
        color: #ffffff !important;
    }
}

/* ==========================================================================
   Lazy Loading Image Styles
   ========================================================================== */

/* Base lazy image styling */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Loading state with subtle pulse animation */
img.lazy-loading {
    opacity: 0.3;
    animation: lazy-pulse 1.5s ease-in-out infinite;
}

/* Loaded state */
img.lazy-loaded {
    opacity: 1;
}

/* Error state */
img.lazy-error {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* Pulse animation for loading images */
@keyframes lazy-pulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
    }
}

/* Ensure logos maintain their styling during lazy loading */
.logo.lazy-loading,
.logo.lazy-loaded {
    opacity: 1; /* Override lazy loading opacity for logos */
}

/* Performance optimization for lazy images */
img[data-src] {
    background-color: var(--color-surface);
    background-image: linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.05) 25%, 
                      rgba(255,255,255,0.05) 50%, transparent 50%, transparent 75%, 
                      rgba(255,255,255,0.05) 75%);
    background-size: 20px 20px;
    animation: lazy-shimmer 2s infinite linear;
}

/* Shimmer effect for placeholder */
@keyframes lazy-shimmer {
    0% {
        background-position: -20px 0;
    }
    100% {
        background-position: 20px 0;
    }
}