/* Base styles */
:root {
    --primary-color: #2D3748;
    --secondary-color: #4A5568;
    --accent-color: #3182CE;
    --background-color: #FFFFFF;
    --text-color: #1A202C;
    --spacing-unit: 2rem;
}

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

body {
    font-family: 'Barlow Condensed', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 1.25rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Header */
.header {
    padding: var(--spacing-unit);
    border-bottom: 1px solid #E2E8F0;
}

.header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo {
    height: 80px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    margin-left: -0.5rem;
}

/* Main content */
.main {
    margin: var(--spacing-unit) 0;
    flex: 1 0 auto;
}

/* Hero section */
.hero {
    text-align: center;
    padding: calc(var(--spacing-unit) * 2) 0;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-unit);
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.75rem;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto;
}

/* Services section */
.services {
    padding: var(--spacing-unit) 0;
}

.services h2 {
    text-align: center;
    margin-bottom: var(--spacing-unit);
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-unit);
    margin-top: var(--spacing-unit);
}

.service-card {
    padding: var(--spacing-unit);
    background-color: #F7FAFC;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.75rem;
}

/* References section */
.references {
    padding: calc(var(--spacing-unit) * 2) 0;
    background-color: #F7FAFC;
    overflow: hidden;
}

.references h2 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--primary-color);
}

.references-scroll {
    position: relative;
    padding: 2rem 0;
    background: linear-gradient(90deg, 
        #F7FAFC 0%, 
        transparent 5%, 
        transparent 95%, 
        #F7FAFC 100%
    );
    overflow: hidden;
    cursor: grab;
}

.references-track {
    display: flex;
    gap: 3rem;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x;
    will-change: transform;
    transform: translateX(0);
}

.references-track:hover {
    animation-play-state: paused;
}

.reference-item {
    flex: 0 0 auto;
    width: 400px;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    cursor: default;
}

.reference-logo {
    height: 60px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.reference-item:hover .reference-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.reference-content {
    width: 100%;
}

.reference-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.reference-content p {
    color: var(--secondary-color);
    line-height: 1.4;
    margin: 0;
    font-size: 1.1rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .reference-item {
        width: 300px;
        padding: 1.5rem;
    }
    
    .reference-logo {
        height: 50px;
        max-width: 160px;
    }
    
    .references-track {
        gap: 2rem;
    }
}

/* Contact section */
.contact {
    text-align: center;
    padding: calc(var(--spacing-unit) * 2) 0;
    background-color: #F7FAFC;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-button {
    display: inline-block;
    margin-top: var(--spacing-unit);
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    font-size: 1.5rem;
}

.contact-button:hover {
    background-color: #2C5282;
}

/* Footer */
.footer {
    text-align: center;
    padding: var(--spacing-unit) 0;
    background-color: var(--primary-color);
    color: white;
}

/* Contact links section */
.footer p:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0 1rem;
    line-height: 2;
}

.footer a {
    color: white;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease-out;
    padding: 0.3em 0.6em;
    border-radius: 3px;
    margin: -0.3em -0.6em;
}

.footer p:first-child a:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Copyright section */
.footer p:last-child {
    opacity: 0.7;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

/* Responsive design */
@media (max-width: 768px) {
    :root {
        --spacing-unit: 1.5rem;
    }

    .header {
        padding: 1rem;
    }

    .logo {
        height: 60px;
        margin-left: 0;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

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

    .footer p:first-child {
        gap: 0.5rem 1rem;
        font-size: 1.1rem;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer span {
        display: none;
    }

    .footer a {
        flex: 0 1 auto;
        white-space: nowrap;
    }
}
}