@import url("pages.css");

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-blue: #0066CC;
    --primary-dark: #0052A3;
    --primary-light: #E6F0FF;
    --accent-gray: #6B7280;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
    --gradient-accent: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

.nav-cta {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-cta::after {
    display: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Interactive Finance Dashboard */
.hero-visual {
    display: none;
}

.dashboard-preview {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.dashboard-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
    pointer-events: none;
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.demo-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.demo-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.dashboard-header {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.dashboard-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.dashboard-content {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 1.5rem;
}

.metrics-grid,
.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}


.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: #ef4444;
}

.chart-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-button,
.chart-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

.chart-button:hover::before,
.chart-btn:hover::before {
    left: 100%;
}

.chart-button:hover,
.chart-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chart-button.active,
.chart-btn.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-controls {
    display: flex;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    height: 180px;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

#revenueChart {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.chart-placeholder {
    height: 200px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.05) 75%, 
        rgba(255, 255, 255, 0.1) 75%, 
        rgba(255, 255, 255, 0.1)
    );
    background-size: 20px 20px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.financial-ratios {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.ratios-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.ratios-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 0 1rem;
}

.ratio-item,
.ratio-card {
    text-align: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-width: 100px;
    backdrop-filter: blur(5px);
}

.ratio-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.ratio-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design for Dashboard */
@media (max-width: 768px) {
    .dashboard-preview {
        padding: 1.5rem;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .chart-placeholder {
        height: 150px;
    }
    
    .ratios-grid {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .demo-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .metrics-grid,
    .metrics-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .metric-card {
        padding: 1rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .chart-section,
    .financial-ratios {
        padding: 1rem;
    }
}

/* Services Section */
.services-overview {
    padding: 5rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.service-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
    background: var(--white);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    font-weight: 600;
    margin-top: 1rem;
}

.service-link:hover {
    gap: 0.5rem;
}

/* Why Choose Section */
.why-choose {
    padding: 5rem 0;
    background: var(--bg-light);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit {
    display: flex;
    gap: 1rem;
}

.benefit-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    border: 2px solid var(--primary-blue);
}

.rounded-image {
    border-radius: 1rem;
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-xl);
}

/* Client Showcase Section */
.clients-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light-gray) 20%, var(--bg-light-gray) 80%, #ffffff 100%);
    position: relative;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0 3rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-medium);
    font-size: 0.95rem;
    font-weight: 500;
}

.trust-badge i {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .trust-indicators {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        margin: 1.5rem 0 2rem;
    }
    
    .trust-badge {
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .trust-badge span {
        font-size: 0.875rem;
    }
}

/* Carousel Container */
.clients-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 3rem auto 0;
    padding: 0 60px;
    overflow: hidden;
    box-sizing: border-box;
}

.container .clients-carousel-container {
    max-width: calc(1200px + 120px);
}

@media (max-width: 768px) {
    .clients-carousel-container {
        padding: 0 40px;
        max-width: 100%;
        margin: 2rem auto 0;
    }
}

.clients-showcase {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

/* Each client card in carousel */
.clients-showcase .client-card-link {
    flex: 0 0 calc(33.333% - 1.33rem);
    scroll-snap-align: start;
    display: flex;
}

.clients-showcase .client-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .clients-showcase .client-card-link {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .clients-showcase .client-card-link {
        flex: 0 0 100%;
    }
}

/* Client card links */
a.client-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.client-card-link:hover {
    text-decoration: none;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-nav:disabled:hover {
    background: white;
    color: inherit;
    transform: translateY(-50%);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-nav i {
    font-size: 1.5rem;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary-blue);
}

.indicator:hover:not(.active) {
    background: rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
}

@media (max-width: 768px) {
    .clients-showcase {
        /* Remove grid layout to maintain carousel functionality */
        display: flex !important;
        gap: 1rem;
        padding: 0;
    }
    
    .clients-carousel-container {
        overflow: hidden;
        padding: 0 40px; /* Space for nav buttons */
    }
}

.client-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.client-card:hover .client-logo {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Client Logo Section */
.client-logo-section {
    background: #ffffff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    border-bottom: 2px solid rgba(0, 102, 204, 0.1);
    position: relative;
    overflow: hidden;
}

/* Special backgrounds for logos that need them */
.client-card[data-industry="construction"] .client-logo-section {
    background: #ffffff;
}

.client-card[data-industry="engineering"] .client-logo-section {
    background: #1e293b;
}

.client-logo {
    max-width: 140px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
}

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

/* Adjust card padding since logo section is separate */
.client-card .client-header,
.client-card .client-details {
    padding: 0 2rem;
}

.client-card .client-header {
    padding-top: 1.5rem;
}

.client-card .client-details {
    padding-bottom: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.client-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.client-industry-icon {
    background: var(--bg-light-blue);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.client-industry {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.client-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.client-metrics {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.client-metrics .metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-size: 0.875rem;
}

.client-metrics .metric i {
    color: var(--primary-blue);
    font-size: 1.125rem;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.expertise-tags .tag {
    background: var(--bg-light-blue);
    color: var(--primary-blue);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Client Impact Summary */
.client-impact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 3rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.impact-metric {
    color: white;
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.impact-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Industry-specific icon colors */
.client-card[data-industry="agtech"] .client-industry-icon {
    background: rgba(16, 185, 129, 0.1);
}

.client-card[data-industry="construction"] .client-industry-icon {
    background: rgba(245, 158, 11, 0.1);
}

.client-card[data-industry="consulting"] .client-industry-icon {
    background: rgba(139, 92, 246, 0.1);
}

.client-card[data-industry="analytics"] .client-industry-icon {
    background: var(--bg-light-blue);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .clients-section {
        padding: 3rem 0;
    }
    
    .client-impact {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .impact-number {
        font-size: 2rem;
    }
    
    .client-metrics {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .client-card {
        min-height: 350px;
    }
    
    .client-info h3 {
        font-size: 1.125rem;
    }
    
    .client-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .client-metrics .metric {
        font-size: 0.8125rem;
    }
    
    .expertise-tags .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .client-logo-section {
        height: 70px;
        padding: 1rem;
    }
    
    .client-logo {
        max-width: 100px;
        max-height: 40px;
    }
    
    .client-header {
        margin-bottom: 1rem;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: var(--white);
}

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

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero {
        padding: 6rem 0;
    }
    
    .hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    .hero-visual {
        display: block;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: space-between;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Fix client logo sizing on mobile */
    .client-logo-section {
        height: 80px !important;
        padding: 1rem !important;
    }
    
    .client-logo {
        max-width: 120px !important;
        max-height: 50px !important;
        width: auto !important;
        height: auto !important;
    }
}

/* Canvas responsive fix */
canvas {
    max-width: 100%;
    height: auto;
}

/* Legal Pages Styles */
.legal-content {
    padding: 60px 0;
    background: var(--bg-light);
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.legal-text h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 2rem;
}

.legal-text h3 {
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 8px;
}

.legal-text h4 {
    color: var(--text-dark);
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.legal-text p {
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--text-light);
}

.legal-text ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-text li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-light);
}

.legal-text a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.legal-text a:hover {
    color: var(--primary-dark);
}

.last-updated {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--bg-light);
    font-style: italic;
    color: var(--text-light);
}

/* Cookie Table Styles */
.cookie-table {
    margin: 20px 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-table th,
.cookie-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-table th {
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
}

.cookie-table tr:hover {
    background: var(--bg-light);
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .legal-text {
        padding: 24px;
        margin: 0 16px;
    }
    
    .legal-text h2 {
        font-size: 1.75rem;
    }
    
    .legal-text h3 {
        font-size: 1.3rem;
    }
    
    .cookie-table {
        font-size: 0.9rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 8px 12px;
    }
}

/* Location Section */
.location-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.location-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.location-card h3 {
    margin: 15px 0;
    color: var(--text-dark);
}

.location-card ul {
    margin-top: 15px;
    padding-left: 20px;
}

.location-card li {
    margin-bottom: 8px;
    color: var(--text-gray);
}

.location-cta {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.location-cta p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}
