:root {
    --primary-color: #1a1a1a;
    --secondary-color: #3d5afe;
    --text-color: #2a2a2a;
    --light-bg: #f8f9fa;
    --spacing: clamp(3rem, 5vw, 8rem);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-bg);
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

nav {
    padding: 2rem 0;
    mix-blend-mode: difference;
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease;
}

nav.scrolled {
    background-color: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    mix-blend-mode: normal;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

nav ul {
    display: flex;
    gap: 3rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

nav a {
    color: white;
    text-decoration: none;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: white;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

header {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--primary-color);
    color: white;
    padding: var(--spacing);
}

header h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 1rem;
}

header p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    opacity: 0.8;
}

section {
    padding: var(--spacing) 0;
}

section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.services-grid {
    display: grid;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.service {
    background: white;
    padding: 3rem;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.service h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project {
    background: white;
    padding: 2rem;
    border-radius: 2px;
}

#contact {
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: transform 0.3s ease;
    margin: 2rem 0;
}

.cta-button:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}

.carousel {
    position: relative;
    margin: 2rem 0;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    margin: 0 2rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-out;
    width: 100%;
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-slide {
    flex: 0 0 33.333%;
    background: white;
    padding: 2rem;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.carousel-slide h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.carousel-slide .outcome {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.carousel-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-nav button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.prev {
    margin-left: -1.5rem;
}

.next {
    margin-right: -1.5rem;
}

@media (max-width: 768px) {
    .carousel-nav button {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 100%;
    }
} 