/* Fund Recovery Bureau - Complete Layout Redesign */
/* Professional, modern, and completely different from original */

/* CSS Custom Properties - New Design System */
:root {
    /* New Brand Color Palette - Professional Blue & Gold */
    --primary: #1E40AF;           /* Deep Blue */
    --secondary: #F59E0B;         /* Gold */
    --accent: #DC2626;            /* Red */
    --success: #059669;          /* Green */
    --warning: #D97706;          /* Orange */
    --danger: #DC2626;           /* Red */
    --info: #0284C7;            /* Sky Blue */
    
    /* Background Colors */
    --background: #F8FAFC;       /* Light Gray */
    --surface: #FFFFFF;           /* White */
    --surface-elevated: #F1F5F9;  /* Elevated surface */
    --surface-dark: #0F172A;      /* Dark surface */
    
    /* Text Colors */
    --text-primary: #0F172A;     /* Dark slate */
    --text-secondary: #475569;   /* Medium slate */
    --text-tertiary: #64748B;    /* Light slate */
    --text-muted: #94A3B8;       /* Muted slate */
    --text-inverse: #FFFFFF;     /* White text */
    
    /* Extended Color Palette */
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;
    --primary-200: #BFDBFE;
    --primary-300: #93C5FD;
    --primary-400: #60A5FA;
    --primary-500: #3B82F6;
    --primary-600: #2563EB;
    --primary-700: #1D4ED8;
    --primary-800: #1E40AF;
    --primary-900: #1E3A8A;
    
    --secondary-50: #FFFBEB;
    --secondary-100: #FEF3C7;
    --secondary-200: #FDE68A;
    --secondary-300: #FCD34D;
    --secondary-400: #FBBF24;
    --secondary-500: #F59E0B;
    --secondary-600: #D97706;
    --secondary-700: #B45309;
    --secondary-800: #92400E;
    --secondary-900: #78350F;
    
    /* Neutral Colors */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* Border Colors */
    --border-light: var(--gray-200);
    --border-medium: var(--gray-300);
    --border-dark: var(--gray-400);
    
    /* Shadow System */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-blue: 0 10px 25px -5px rgba(30, 64, 175, 0.3);
    --shadow-gold: 0 10px 25px -5px rgba(245, 158, 11, 0.3);
    
    /* Spacing System */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Poppins', var(--font-family);
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin: 0;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin: 0 0 var(--space-4) 0;
    line-height: var(--leading-relaxed);
}

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

/* COMPLETELY NEW NAVIGATION DESIGN */
.navbar {
    background: var(--surface) !important;
    border-bottom: 3px solid var(--primary);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary) !important;
    font-weight: var(--font-extrabold);
    font-size: var(--text-2xl);
    margin-left: 0 !important;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-3);
    box-shadow: var(--shadow-blue);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    z-index: 1;
}

.brand-text {
    font-family: var(--font-family-heading);
    font-weight: var(--font-extrabold);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: var(--font-semibold);
    padding: var(--space-3) var(--space-5) !important;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--text-sm);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* COMPLETELY NEW BUTTON DESIGN */
.btn {
    font-family: var(--font-family);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-6);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--text-sm);
}

.btn::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 var(--transition-slow);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
    color: var(--text-inverse);
    box-shadow: var(--shadow-blue);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--text-inverse);
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-600) 100%);
    color: var(--text-primary);
    box-shadow: var(--shadow-gold);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--text-primary);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--text-inverse);
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-inverse);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-inverse);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

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

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

/* COMPLETELY NEW HERO SECTION DESIGN */
.hero-section {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 50%, var(--surface) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%231E40AF" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: var(--leading-tight);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.brand-name {
    font-weight: var(--font-extrabold);
    color: var(--primary);
    display: block;
    margin-bottom: var(--space-2);
}

.tagline {
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    display: block;
    margin-top: var(--space-2);
    font-size: var(--text-xl);
    letter-spacing: normal;
    line-height: var(--leading-relaxed);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
    max-width: 600px;
}

/* NEW STATS DESIGN */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.stat-item {
    text-align: center;
    padding: var(--space-6);
    background: var(--surface);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.stat-item h3 {
    font-size: var(--text-4xl);
    color: var(--primary);
    margin-bottom: var(--space-2);
    font-weight: var(--font-extrabold);
}

.stat-item small {
    color: var(--text-tertiary);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--text-sm);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* NEW PROCESS SECTION DESIGN */
.process-section {
    padding: var(--space-24) 0;
    background: var(--surface);
    position: relative;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-50) 25%, transparent 25%, transparent 75%, var(--secondary-50) 75%);
    background-size: 20px 20px;
    opacity: 0.1;
}

.process-step {
    text-align: center;
    padding: var(--space-8);
    background: var(--surface);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-light);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-200);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    margin: 0 auto var(--space-6);
    box-shadow: var(--shadow-blue);
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    z-index: -1;
    opacity: 0.3;
}

.step-icon {
    font-size: var(--text-5xl);
    color: var(--primary);
    margin-bottom: var(--space-6);
}

.process-step h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-size: var(--text-2xl);
}

.process-step p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    font-size: var(--text-lg);
}

/* NEW FEATURES SECTION DESIGN */
.feature-card {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-light);
    transition: all var(--transition-normal);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--secondary-100) 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    font-size: var(--text-4xl);
    color: var(--primary);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.feature-card h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-size: var(--text-2xl);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    font-size: var(--text-lg);
    position: relative;
    z-index: 1;
}

/* NEW CTA SECTION DESIGN */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
    padding: var(--space-24) 0;
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 {
    color: var(--text-inverse);
    margin-bottom: var(--space-6);
    font-size: var(--text-5xl);
}

.cta-content .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    font-size: var(--text-xl);
}

.cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-accent {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-600) 100%);
    color: var(--text-primary);
    box-shadow: var(--shadow-gold);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--text-primary);
}

/* NEW TRUST SECTION DESIGN */
.trust-compliance-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--surface) 100%);
    padding: var(--space-24) 0;
    color: var(--text-primary);
    position: relative;
}

.trust-compliance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="shield" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M25 5 L45 15 L45 35 L25 45 L5 35 L5 15 Z" fill="none" stroke="%231E40AF" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23shield)"/></svg>');
}

.trust-badge {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-light);
    transition: all var(--transition-normal);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.trust-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.trust-badge:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.badge-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: white;
    font-size: var(--text-3xl);
    box-shadow: var(--shadow-blue);
}

.trust-badge h6 {
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
}

.trust-badge small {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

/* Enhanced footer visibility */
.footer {
    background: var(--surface-dark) !important;
    color: var(--text-inverse) !important;
    padding: var(--space-20) 0 var(--space-8);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.footer-content h5,
.footer-content h6 {
    color: var(--text-inverse) !important;
    margin-bottom: var(--space-4);
    font-weight: var(--font-bold);
}

.footer-content p,
.footer-content li {
    color: rgba(255, 255, 255, 1) !important;
    line-height: var(--leading-relaxed);
}

.footer-content a {
    color: rgba(255, 255, 255, 1) !important;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-content a:hover {
    color: var(--secondary) !important;
}

.footer-content .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.social-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    border-color: var(--secondary);
}

/* NEW CARDS DESIGN */
.card {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.card-header {
    background: var(--surface-elevated);
    border-bottom: 2px solid var(--border-light);
    padding: var(--space-6);
}

.card-header h5 {
    margin: 0;
    color: var(--text-primary);
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
}

.card-body {
    padding: var(--space-6);
}

/* NEW FORMS DESIGN */
.form-control {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    background: var(--surface);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-100);
    outline: none;
}

.form-label {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    background: var(--surface);
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-100);
    outline: none;
}

/* NEW ALERTS DESIGN */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-6);
    border-left: 4px solid;
    font-weight: var(--font-medium);
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left-color: var(--success);
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border-left-color: var(--danger);
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left-color: var(--info);
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-left-color: var(--warning);
}

/* NEW ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-up {
    animation: slideUp 1s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .process-step {
        padding: var(--space-6);
        margin-bottom: var(--space-6);
    }
    
    .feature-card {
        padding: var(--space-6);
        margin-bottom: var(--space-6);
    }
    
    .navbar-brand {
        font-size: var(--text-xl);
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-img {
        width: 24px;
        height: 24px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: var(--text-2xl);
    }
    
    .step-icon {
        font-size: var(--text-4xl);
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: var(--text-3xl);
    }
    
    .badge-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-2xl);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .process-step {
        padding: var(--space-4);
    }
    
    .feature-card {
        padding: var(--space-4);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--text-xl);
    }
    
    .step-icon {
        font-size: var(--text-3xl);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-2xl);
    }
    
    .badge-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-xl);
    }
    
    .cta-content h2 {
        font-size: var(--text-3xl);
    }
    
    .trust-badge {
        padding: var(--space-4);
    }
}

/* UTILITY CLASSES */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-info { background-color: var(--info) !important; }

.border-primary { border-color: var(--primary) !important; }
.border-secondary { border-color: var(--secondary) !important; }
.border-accent { border-color: var(--accent) !important; }

.shadow-primary { box-shadow: var(--shadow-blue) !important; }
.shadow-secondary { box-shadow: var(--shadow-gold) !important; }

/* ADDITIONAL COMPONENTS FOR SPECIFIC PAGES */

/* Team Page Specific Styles */
.team-hero-section {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    padding: var(--space-24) 0 var(--space-16);
    color: var(--text-primary);
    position: relative;
}

.team-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="team-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="3" fill="%231E40AF" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23team-pattern)"/></svg>');
}

.team-member-card {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-light);
    transition: all var(--transition-normal);
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-200);
}

.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto var(--space-6);
    border: 4px solid var(--primary-100);
    box-shadow: var(--shadow-md);
}

/* Reviews Page Specific Styles */
.reviews-hero-section {
    background: linear-gradient(135deg, var(--secondary-50) 0%, var(--primary-50) 100%);
    padding: var(--space-24) 0 var(--space-16);
    color: var(--text-primary);
    position: relative;
}

.reviews-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="reviews-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M20 0 L40 20 L20 40 L0 20 Z" fill="none" stroke="%23F59E0B" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23reviews-pattern)"/></svg>');
}

.review-card {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-light);
    transition: all var(--transition-normal);
    height: 100%;
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-200);
}

/* Track Page Specific Styles */
.case-dashboard {
    padding: var(--space-8) 0;
}

.info-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--secondary-100) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.info-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin: 0;
    font-weight: var(--font-medium);
}

.info-value {
    font-size: var(--text-base);
    color: var(--text-primary);
    font-weight: var(--font-semibold);
    margin: 0;
}

/* Progress Bar */
.custom-progress-container {
    height: 16px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-light);
}

.custom-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    position: absolute;
    top: 0;
    left: 0;
    transition: width var(--transition-normal);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: var(--space-8);
}

.timeline::before {
    content: '';
    position: absolute;
    left: var(--space-4);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-6);
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-8) + var(--space-2));
    top: var(--space-2);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: var(--radius-full);
    border: 4px solid var(--surface);
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
}

/* Evidence Grid */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
}

.evidence-item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.evidence-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-100) 0%, var(--primary-100) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

/* Form Sections */
.form-section {
    margin-bottom: var(--space-8);
}

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

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--secondary-100) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--border-medium);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-normal);
    background: var(--surface-elevated);
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

.upload-zone {
    cursor: pointer;
}

.upload-content h5 {
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.upload-content p {
    color: var(--text-tertiary);
    margin-bottom: var(--space-4);
}

/* File List */
.file-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
}

/* Priority and Assignment Cards */
.priority-card,
.assignment-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
}

.priority-header,
.assignment-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.priority-value,
.assignment-value {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

/* Badges */
.badge {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-primary { background: var(--primary) !important; }
.badge.bg-secondary { background: var(--secondary) !important; }
.badge.bg-success { background: var(--success) !important; }
.badge.bg-warning { background: var(--warning) !important; }
.badge.bg-danger { background: var(--danger) !important; }
.badge.bg-info { background: var(--info) !important; }

/* Status Badges */
.priority-high { background: var(--danger) !important; color: white; }
.priority-medium { background: var(--warning) !important; color: white; }
.priority-low { background: var(--success) !important; color: white; }

/* Global Presence */
.global-presence {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.flags-container {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.flag-icon {
    width: 40px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: var(--shadow-sm);
}

.flag-us { background: linear-gradient(to bottom, #B22234 33%, white 33%, white 66%, #B22234 66%); }
.flag-uk { background: linear-gradient(45deg, #012169 25%, white 25%, white 50%, #C8102E 50%, #C8102E 75%, white 75%); }
.flag-ca { background: linear-gradient(to right, #FF0000 25%, white 25%, white 75%, #FF0000 75%); }
.flag-ng { background: linear-gradient(to right, #008751 50%, white 50%); }
.flag-au { background: linear-gradient(to right, #012169 25%, white 25%, white 75%, #012169 75%); }
.flag-de { background: linear-gradient(to bottom, #000000 33%, #DD0000 33%, #DD0000 66%, #FFCE00 66%); }
.flag-fr { background: linear-gradient(to right, #002395 33%, white 33%, white 66%, #ED2939 66%); }
.flag-jp { background: #BC002D; }

/* Micro Text */
.micro-text {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    border: 2px solid var(--primary-100);
    backdrop-filter: blur(10px);
}

.micro-text small {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.micro-text i {
    color: var(--primary);
}

/* Testimonial Cards */
.testimonial-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-light);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.testimonial-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.stars i {
    margin-right: 2px;
}

.testimonial-text {
    color: var(--text-primary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    flex-grow: 1;
    font-style: italic;
}

.testimonial-author {
    margin-top: auto;
}

.author-name {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

.author-location {
    color: var(--text-tertiary);
    font-size: var(--text-xs);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
}

.hero-icon-container {
    position: relative;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--secondary-100) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-2xl);
    border: 4px solid var(--surface);
}

.hero-main-icon {
    font-size: var(--text-6xl);
    color: var(--primary);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--surface);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--border-light);
    animation: float 4s ease-in-out infinite;
}

.floating-icon-1 {
    top: 30px;
    right: 30px;
    animation-delay: 0s;
}

.floating-icon-2 {
    bottom: 30px;
    left: 30px;
    animation-delay: 1.5s;
}

.floating-icon-3 {
    top: 50%;
    right: -40px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.floating-icon i {
    color: var(--primary);
    font-size: var(--text-2xl);
}

/* Progress Stages */
.progress-stages {
    margin-top: var(--space-6);
}

.stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 0.5;
    transition: all var(--transition-normal);
}

.stage.active,
.stage.completed {
    opacity: 1;
}

.stage i {
    width: 50px;
    height: 50px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--transition-normal);
    border: 2px solid var(--border-light);
}

.stage.active i {
    background: var(--primary-100);
    color: var(--primary);
    border-color: var(--primary-200);
}

.stage.completed i {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.stage small {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stage.active small,
.stage.completed small {
    color: var(--text-primary);
}

/* Additional responsive adjustments */
@media (max-width: 768px) {
    .hero-visual {
        height: 400px;
        margin-bottom: var(--space-8);
    }
    
    .hero-icon-container {
        width: 200px;
        height: 200px;
    }
    
    .hero-main-icon {
        font-size: var(--text-5xl);
    }
    
    .floating-icon {
        width: 60px;
        height: 60px;
    }
    
    .floating-icon i {
        font-size: var(--text-xl);
    }
    
    .testimonial-cards {
        gap: var(--space-3);
    }
    
    .testimonial-card {
        padding: var(--space-4);
    }
    
    .trust-badge {
        padding: var(--space-4);
    }
    
    .badge-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-xl);
    }
    
    .team-member-photo {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .hero-visual {
        height: 300px;
    }
    
    .hero-icon-container {
        width: 150px;
        height: 150px;
    }
    
    .hero-main-icon {
        font-size: var(--text-4xl);
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
    }
    
    .floating-icon i {
        font-size: var(--text-lg);
    }
    
    .testimonial-card {
        padding: var(--space-3);
    }
    
    .trust-badge {
        padding: var(--space-3);
    }
    
    .badge-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-lg);
    }
    
    .team-member-photo {
        width: 100px;
        height: 100px;
    }
}

/* CTA Section Mobile Button Adjustments */
@media (max-width: 768px) {
    .cta-section .btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        min-width: auto !important;
        max-width: 280px !important;
        width: 100% !important;
    }
    
    .cta-section .btn i {
        font-size: 0.75rem !important;
        margin-right: 0.4rem !important;
    }
    
    .cta-section .cta-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
        padding: 0 1rem !important;
    }
}

@media (max-width: 576px) {
    .cta-section .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
        max-width: 100% !important;
        border-radius: 5px !important;
    }
    
    .cta-section .btn i {
        font-size: 0.7rem !important;
        margin-right: 0.3rem !important;
    }
    
    .cta-section .cta-actions {
        gap: 0.5rem !important;
        padding: 0 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .cta-section .btn {
        padding: 0.45rem 0.9rem !important;
        font-size: 0.75rem !important;
    }
    
    .cta-section .btn i {
        font-size: 0.65rem !important;
        margin-right: 0.25rem !important;
    }
    
    .cta-section .cta-actions {
        gap: 0.4rem !important;
    }
}

/* Responsive footer layout */
/* Desktop: Normal horizontal layout (lg and above) */
@media (min-width: 992px) {
    .footer-content .row {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .footer-content .col-lg-3 {
        flex: 0 0 25%;
    }
    
    .footer-content .col-lg-2 {
        flex: 0 0 16.666667%;
    }
}

/* Tablet: 2 columns per row (md) */
@media (max-width: 991px) and (min-width: 768px) {
    .footer-content .row > div {
        margin-bottom: 2rem;
    }
    
    .footer-content h5,
    .footer-content h6 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-3);
    }
    
    .footer-content p,
    .footer-content li {
        font-size: var(--text-sm);
        margin-bottom: var(--space-2);
    }
    
    .social-links {
        justify-content: flex-start;
        margin-top: var(--space-3);
    }
}

/* Ensure footer grid doesn't interfere with existing layout */
@media (max-width: 767px) {
    .footer-content .row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 1.5rem !important;
        text-align: center !important;
        margin: 0 !important;
    }
    
    /* Reset Bootstrap margins that might interfere */
    .footer-content .row > * {
        margin-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Brand section spans both columns and is centered */
    .footer-content .col-lg-3:first-child {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        text-align: center !important;
    }
    
    /* Services section - first position in 2x2 grid */
    .footer-content .col-lg-2:nth-child(2) {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
    
    /* Company section - second position in 2x2 grid */
    .footer-content .col-lg-2:nth-child(3) {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }
    
    /* Resources section - third position in 2x2 grid */
    .footer-content .col-lg-2:nth-child(4) {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
    
    /* Contact section - fourth position in 2x2 grid */
    .footer-content .col-lg-3:last-child {
        grid-column: 2 !important;
        grid-row: 3 !important;
    }
    
    /* Style the footer content elements */
    .footer-content .col-lg-3,
    .footer-content .col-lg-2 {
        margin-bottom: 0 !important;
        width: 100% !important;
    }
    
    .footer-content h5,
    .footer-content h6 {
        font-size: var(--text-base);
        margin-bottom: var(--space-2);
    }
    
    .footer-content p,
    .footer-content li {
        font-size: var(--text-sm);
        margin-bottom: var(--space-1);
    }
    
    .footer-content ul {
        padding-left: 0;
        list-style: none;
    }
    
    .social-links {
        justify-content: center;
        margin-top: var(--space-2);
    }
}

/* Extra small mobile: Maintain same layout with smaller spacing */
@media (max-width: 576px) {
    .footer-content .row {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 1rem !important;
    }
    
    /* Brand section spans both columns and is centered */
    .footer-content .col-lg-3:first-child {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        text-align: center !important;
    }
    
    /* Services section - first position in 2x2 grid */
    .footer-content .col-lg-2:nth-child(2) {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
    
    /* Company section - second position in 2x2 grid */
    .footer-content .col-lg-2:nth-child(3) {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }
    
    /* Resources section - third position in 2x2 grid */
    .footer-content .col-lg-2:nth-child(4) {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
    
    /* Contact section - fourth position in 2x2 grid */
    .footer-content .col-lg-3:last-child {
        grid-column: 2 !important;
        grid-row: 3 !important;
    }
    
    .footer-content h5,
    .footer-content h6 {
        font-size: var(--text-sm);
        margin-bottom: var(--space-1);
    }
    
    .footer-content p,
    .footer-content li {
        font-size: var(--text-xs);
        margin-bottom: var(--space-1);
    }
    
    .social-links {
        gap: var(--space-2);
    }
    
    .social-links a {
        padding: var(--space-1);
    }
}