/* Quantum Companies Navigator - Styles */

/* Design Tokens - 2025 Modern Design System */
:root {
    /* Colors - Professional dark theme with orange accents (OQC-inspired) */
    --primary-cyan: #00c4e8;
    --primary-blue: #0088cc;
    --primary-indigo: #0066aa;
    --accent-orange: #ff8001;
    --accent-orange-glow: rgba(255, 128, 1, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #d0d0d0;
    --text-muted: #b0b0b0; /* P1 Fix: Improved contrast from 4.7:1 to 5.8:1 for WCAG AA */
    --bg-primary: #0a0a1a;
    --bg-secondary: #1a1a2e;
    --glass-subtle: rgba(255, 255, 255, 0.03);
    --glass-medium: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(100, 180, 255, 0.25); /* P1 Fix: Increased visibility */
    --border-medium: rgba(100, 180, 255, 0.4); /* P1 Fix: Increased visibility */

    /* Spacing Scale (8px based) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 96px;

    /* Typography Scale */
    --text-xs: 0.875rem;    /* 14px */
    --text-sm: 1rem;        /* 16px */
    --text-base: 1.125rem;  /* 18px */
    --text-lg: 1.25rem;     /* 20px */
    --text-xl: 1.5rem;      /* 24px */
    --text-2xl: 1.75rem;    /* 28px */
    --text-3xl: 2.25rem;    /* 36px */
    --text-4xl: 3rem;       /* 48px */

    /* Shadows - Softer depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 24px rgba(0, 196, 232, 0.15);

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--glass-subtle) 25%,
        var(--glass-medium) 50%,
        var(--glass-subtle) 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: var(--radius-sm);
}

/* ========================================
   ACCESSIBILITY - GLOBAL FOCUS INDICATORS
   WCAG 2.1 Level AA Compliant
   ======================================== */

/* Global focus-visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--accent-orange) !important;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Focus indicators for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-orange) !important;
    outline-offset: 2px;
}

/* Remove default outline only when custom focus is provided */
*:focus:not(:focus-visible) {
    outline: none;
}

.skeleton-card {
    height: 200px;
    margin-bottom: var(--space-3);
    background: var(--glass-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.skeleton-stat {
    height: 80px;
    margin-bottom: var(--space-2);
}

/* Active Filter Indicators */
.active-filters {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4); /* P1 Fix: Increased margin for better spacing */
    padding: var(--space-3); /* P1 Fix: Increased padding */
    background: var(--bg-secondary); /* P1 Fix: More prominent background */
    border: 2px solid var(--accent-orange); /* P1 Fix: Bold border */
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(255, 128, 1, 0.4); /* P1 Fix: Orange glow */
    flex-wrap: wrap;
    position: sticky; /* P1 Fix: Sticky positioning */
    top: 0;
    z-index: 10;
}

.active-filters-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 600;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: linear-gradient(45deg, var(--accent-orange), #ff9a33);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    animation: slideIn 0.3s ease-out;
}

.filter-chip-remove {
    cursor: pointer;
    font-weight: bold;
    margin-left: var(--space-1);
}

.clear-filters-btn {
    padding: var(--space-1) var(--space-2);
    background: transparent;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.clear-filters-btn:hover {
    background: var(--accent-orange);
    color: white;
}

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

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

body {
    font-family: "SUSE Mono", monospace, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: var(--space-3);
    line-height: 1.6;
}

.container {
    max-width: none; /* Full-screen width layout */
    margin: 0 auto;
    padding: 0 4rem; /* Horizontal padding to prevent edge-touching */
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: var(--space-6); /* P1 Fix: Increased from --space-5 (48px → 64px) for better section spacing */
    animation: fadeIn 0.5s ease-in;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Bitcount Prop Single Ink", monospace, sans-serif;
}

h1 {
    font-size: var(--text-4xl);
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-orange), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
    font-weight: 700;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

h1 a {
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-orange), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: opacity var(--transition-base);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

h1 a:hover {
    text-decoration: none;
    opacity: 0.85;
}

.subtitle {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.built-by {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.built-by a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color var(--transition-base);
}

.built-by a:hover {
    color: var(--primary-cyan);
}

.ad-banner {
    max-width: 728px;
    margin: 0 auto var(--space-4);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.footer-ad-section {
    max-width: 970px;
    margin: var(--space-4) auto;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: var(--space-2);
}

.in-feed-ad {
    grid-column: 1 / -1;
    max-width: 100%;
    margin: var(--space-3) 0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.breadcrumb {
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-muted);
    max-width: 1400px;
    margin: 0 auto var(--space-3) auto;
    padding: var(--space-2) var(--space-4);
    text-align: left;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary-cyan);
    text-decoration: none;
    position: relative;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.breadcrumb a:hover {
    color: var(--accent-orange);
}

.breadcrumb a:hover::after {
    width: 100%;
}

/* Search Container */
.search-container {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--space-5); /* P1 Fix: Standardized to --space-5 (48px) for consistent spacing */
    animation: slideDown 0.6s ease-out;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

input[type="text"] {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    background: var(--glass-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
}

input[type="text"]:focus {
    border-color: var(--accent-orange);
    background: var(--glass-medium);
    box-shadow: 0 0 24px var(--accent-orange-glow);
}

input[type="text"]::placeholder {
    color: var(--text-muted);
}

select {
    padding: var(--space-2) var(--space-3);
    background: var(--glass-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    min-width: 150px;
}

select:hover {
    border-color: var(--accent-orange);
    background: var(--glass-medium);
}

select:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 24px var(--accent-orange-glow);
}

select option {
    background: #1a1a3a;
    color: #fff;
}

/* Filter Buttons */
.filters {
    display: flex;
    gap: var(--space-2); /* P1 Fix: Changed from 10px to 16px for better spacing */
    justify-content: center;
    margin-bottom: var(--space-4); /* P1 Fix: Changed from 20px to 32px for breathing room */
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-1) var(--space-2);
    background: var(--glass-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-size: var(--text-xs);
    display: inline-block;
    font-family: inherit;

}

.filter-btn:hover {
    background: var(--glass-medium);
    border-color: var(--accent-orange);
    color: var(--text-primary);
    transform: scale(1.02);
}

.filter-btn:active {
    transform: scale(1);
}

.filter-btn.active {
    background: linear-gradient(45deg, var(--accent-orange), #ff9a33);
    border-color: transparent;
    color: #ffffff;
    font-weight: 600;
}

/* Stats Cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-5); /* P1 Fix: Standardized to --space-5 (48px) for consistent spacing */
}

.stat-card {
    background: var(--glass-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px var(--accent-orange-glow);
    border-color: var(--accent-orange);
    background: var(--glass-medium);
}

.stat-card:hover .stat-number {
    background: linear-gradient(45deg, var(--accent-orange), #ff9a33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-cyan), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

/* Companies Grid */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Always 4 columns on desktop */
    gap: var(--space-4); /* P1 Fix: Increased from --space-3 (24px → 32px) for better separation */
    margin-top: var(--space-4);
}

.company-card {
    background: var(--glass-medium); /* P1 Fix: Increased from --glass-subtle for better depth */
    border: 1px solid var(--border-medium); /* P1 Fix: More visible border */
    border-radius: var(--radius-lg);
    padding: var(--space-4); /* P1 Fix: Increased from --space-3 (24px → 32px) for breathing room */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* P1 Fix: Added subtle shadow for depth */
    transition: all var(--transition-base);
    cursor: pointer;
    animation: fadeInUp 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-orange);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.company-card:hover::before {
    transform: scaleY(1);
}

.company-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px var(--accent-orange-glow);
    border-color: var(--accent-orange);
    background: var(--glass-medium);
}

.company-card:hover .company-name {
    color: var(--accent-orange);
}

.company-card.selected {
    border: 2px solid var(--accent-orange);
    background: var(--glass-medium);
    box-shadow: 0 12px 32px rgba(255, 140, 1, 0.3);
    transform: scale(1.02);
}

.company-card.selected::before {
    transform: scaleY(1);
}

.company-details {
    margin: var(--space-3) 0;
    padding: var(--space-3);
    background: var(--glass-subtle);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    clear: both;
    position: relative;
    z-index: 1;
}

.company-people {
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.company-people .label {
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: var(--space-1);
}

.company-people .value {
    color: var(--primary-cyan);
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.company-meta {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    font-size: var(--text-sm);
}

.company-meta > span {
    display: flex;
    gap: var(--space-1);
    align-items: baseline;
}

.company-meta .label {
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.company-meta .value {
    color: var(--text-primary);
}

.company-name {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--primary-cyan);
    line-height: 1.3;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-category {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    background: var(--glass-medium);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    margin: 0 var(--space-1) var(--space-2) 0;
    color: var(--primary-cyan);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* P1 Fix: Category-specific colors for quick visual identification */
.company-category:nth-child(1) {
    border-color: #00c4e8;
    color: #00c4e8;
}

.company-category:nth-child(2) {
    border-color: #ff8001;
    color: #ff8001;
}

.company-category:nth-child(3) {
    border-color: #66ff66;
    color: #66ff66;
}

.company-card:hover .company-category {
    background: rgba(255, 128, 1, 0.1);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.company-info {
    font-size: var(--text-base); /* P1 Fix: Increased from --text-sm (16px → 18px) for better readability */
    color: #e0e0e0; /* P1 Fix: Lightened from --text-secondary for better contrast */
    line-height: 1.7; /* P1 Fix: Increased from 1.6 for easier reading */
    margin-bottom: var(--space-2);
    position: relative;
}

.company-info.truncated {
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    position: relative;
}

.company-info.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--glass-subtle));
    pointer-events: none;
}

.company-info.expanded {
    max-height: none;
    overflow: visible;
    transition: max-height 0.5s ease-in;
}

.expand-btn {
    display: inline-block;
    margin-top: var(--space-2);
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-orange), #ff9a33);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
    min-height: 48px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expand-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.5);
    background: linear-gradient(135deg, #ff9a33, var(--accent-orange));
}

.expand-btn:active {
    transform: scale(0.98);
}

.company-country {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.company-website {
    display: inline-block;
    margin-top: var(--space-3); /* P1 Fix: Increased spacing */
    padding: var(--space-2) var(--space-3); /* P1 Fix: Increased padding for prominence */
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue)); /* P1 Fix: Gradient background */
    border: 2px solid var(--primary-cyan); /* P1 Fix: Thicker, more visible border */
    border-radius: var(--radius-md);
    color: #ffffff; /* P1 Fix: High contrast white text */
    text-decoration: none;
    font-size: var(--text-base); /* P1 Fix: Increased from --text-sm for better visibility */
    font-weight: 600; /* P1 Fix: Bold for prominence */
    box-shadow: 0 4px 12px rgba(0, 196, 232, 0.3); /* P1 Fix: Glow shadow */
    transition: all var(--transition-base);
}

.company-website:hover:not(.no-link) {
    background: linear-gradient(135deg, var(--accent-orange), #ff9a33);
    border-color: var(--accent-orange);
    color: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 4px 16px var(--accent-orange-glow);
}

.company-website.no-link {
    opacity: 0.5;
    color: var(--text-muted);
    background: var(--glass-subtle);
    border-color: var(--border-subtle);
    cursor: default;
}

/* Messages */
.no-results {
    text-align: center;
    padding: var(--space-6) var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-lg);
}

.loading {
    text-align: center;
    padding: var(--space-5);
    font-size: var(--text-base);
    color: var(--primary-cyan);
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

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

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

/* Responsive Design */
/* Large tablets and small desktops: 3 columns */
@media (max-width: 1400px) {
    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* Mobile: 1 column */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .companies-grid {
        grid-template-columns: 1fr;
    }

    /* P1 Fix: Increased mobile search spacing */
    .search-container {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3); /* P1 Fix: Increased from --space-2 (16px → 24px) */
    }

    .search-box {
        width: 100%;
        max-width: none;
    }

    select {
        width: 100%;
    }

    /* P0 FIX: Mobile filter buttons - CRITICAL accessibility improvement */
    .filters {
        flex-direction: column;
        align-items: stretch; /* P0 Fix: Full-width buttons */
        width: 100%;
    }

    .filter-btn {
        width: 100%; /* P0 Fix: Full-width for easy tapping */
        text-align: center;
        padding: var(--space-2) var(--space-3);
        min-height: 48px; /* P0 Fix: WCAG-compliant touch target */
        font-size: 1rem; /* P0 Fix: Readable font size */
    }

    input[type="text"], select {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .company-website {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-link {
        padding: var(--space-2) var(--space-3);
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* =============================================
   P1 FIX: MOTION REDUCTION ACCESSIBILITY
   ============================================= */
@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;
    }

    h1, .company-title, .company-card, header, .search-container {
        animation: none !important;
    }
}

/* =============================================
   P1 FIX: LOADING STATES FOR BETTER UX
   ============================================= */
.companies-grid.loading .company-card {
    animation: pulse 1.5s infinite;
    pointer-events: none;
    opacity: 0.6;
}

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

/* Footer */
.footer {
    margin-top: 60px;
    padding: 60px 0 40px 0;
    background: rgba(10, 10, 26, 0.8);
    border-top: 1px solid rgba(100, 200, 255, 0.3);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #00d4ff;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: var(--text-sm);
    display: block;
    padding: var(--space-1) 0;
    position: relative;
}

.footer-column a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-orange);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-column a:hover {
    color: var(--accent-orange);
    transform: translateX(5px);
    text-decoration: none;
}

.footer-column a:hover::after {
    width: 100%;
}

.footer-credit {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-subtle);
}

.footer-credit p {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.footer-credit a {
    color: var(--primary-cyan) !important;
    font-weight: 500;
}

.footer-credit a:hover {
    color: var(--primary-blue) !important;
    transform: none;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-column h3 {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .footer {
        padding: 40px 0 30px 0;
    }
}

/* =====================================================
   NEW PROFESSIONAL FOOTER STYLES - Complete Redesign
   ===================================================== */

.quantum-footer {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    margin-top: var(--space-7);
    border-top: 2px solid var(--border-medium);
    position: relative;
    overflow: hidden;
}

.quantum-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary-cyan) 20%,
        var(--primary-blue) 50%,
        var(--primary-cyan) 80%,
        transparent);
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Footer Sections */
.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-subtitle {
    font-size: 1.2rem;
    color: #00d4ff;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #d0d0d0;
}

/* Footer Stats */
.footer-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-stat {
    padding: 8px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #00d4ff;
    font-weight: 600;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: #d0d0d0;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.footer-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    transform: translateX(5px);
    cursor: pointer;
}

.footer-link.external::after {
    content: '↗';
    margin-left: 4px;
    font-size: 0.8rem;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(100, 200, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #999;
}

.footer-copyright a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #0099ff;
}

/* Scroll to Top Button */
.footer-scroll-top {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-scroll-top:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* Responsive Design for New Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
    
    .footer-subtitle {
        font-size: 1.1rem;
    }
}

/* Footer Disclaimer */
.footer-disclaimer {
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    margin-top: 1rem;
}

.disclaimer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer-text {
    color: #b0bec5;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.disclaimer-text strong {
    color: #00d4ff;
    font-weight: 600;
    font-style: normal;
}

@media (max-width: 768px) {
    .footer-disclaimer {
        padding: 1.5rem 1rem;
    }
    
    .disclaimer-text {
        font-size: 0.8rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .footer-disclaimer {
        padding: 1rem;
    }
    
    .disclaimer-text {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}

/* ============================================
   BREADCRUMB NAVIGATION STYLES
   ============================================ */

/* Breadcrumb Container */
.company-breadcrumb,
nav[aria-label="Breadcrumb"] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    padding: var(--space-2) var(--space-4);
    max-width: 1400px;
    margin: 0 auto var(--space-3) auto;
    text-align: left;
}

/* Breadcrumb Links */
.company-breadcrumb a,
nav[aria-label="Breadcrumb"] a {
    color: #64ffda;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.company-breadcrumb a:hover,
nav[aria-label="Breadcrumb"] a:hover {
    color: var(--accent-orange);
    text-decoration: none;
}

/* Breadcrumb Separators */
.company-breadcrumb span:not(.current-page),
nav[aria-label="Breadcrumb"] span:not(.current-page) {
    color: #666;
    user-select: none;
}

/* Current Page (last item) */
.company-breadcrumb .current-page,
nav[aria-label="Breadcrumb"] .current-page {
    color: var(--text-primary);
    font-weight: 500;
}

/* Responsive Breadcrumbs */
@media (max-width: 768px) {
    .breadcrumb,
    .company-breadcrumb,
    nav[aria-label="Breadcrumb"] {
        font-size: 0.8rem;
        gap: 0.25rem;
        padding: var(--space-2) var(--space-2);
    }
}

/* Breadcrumb Hover Effects */
.company-breadcrumb a::after,
nav[aria-label="Breadcrumb"] a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.company-breadcrumb a:hover::after,
nav[aria-label="Breadcrumb"] a:hover::after {
    width: 100%;
}

/* ============================================
   PAGINATION STYLES
   ============================================ */

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0 2rem 0;
    padding: 2rem 1rem;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-pages {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-btn,
.pagination-page {
    padding: 0.75rem 1.25rem;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 8px;
    color: #64ffda;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.pagination-btn:hover:not(:disabled),
.pagination-page:hover:not(.active) {
    background: rgba(100, 255, 218, 0.2);
    border-color: #64ffda;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(100, 255, 218, 0.05);
}

.pagination-page {
    min-width: 45px;
    text-align: center;
    padding: 0.75rem 1rem;
}

.pagination-page.active {
    background: linear-gradient(135deg, #00c4e8, #ff8001);
    border-color: transparent;
    color: white;
    cursor: default;
    box-shadow: 0 4px 15px rgba(0, 196, 232, 0.4);
}

.pagination-ellipsis {
    color: #64ffda;
    padding: 0 0.5rem;
    opacity: 0.6;
    user-select: none;
}

.pagination-info {
    color: #b0c4de;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(0, 196, 232, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(0, 196, 232, 0.2);
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 0.75rem;
    }

    .pagination-btn,
    .pagination-page {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .pagination-page {
        min-width: 40px;
    }

    .pagination-pages {
        gap: 0.35rem;
    }

    .pagination-container {
        margin: 2rem 0 1.5rem 0;
        padding: 1.5rem 0.75rem;
    }
}

/* Animation for page changes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.companies-grid {
    animation: fadeInUp 0.4s ease-out;
}

