/* Root variables */
:root {
    --primary-brown: #8B4513;
    --dark-brown: #654321;
    --light-brown: #A0522D;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --black: #2C2420;
    --gray: #666666;
    --light-gray: #F5F5F5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-brown);
    letter-spacing: 1px;
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--black);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 10px;
    border-radius: 20px;
}

nav a:hover {
    color: var(--primary-brown);
    background: var(--cream);
}

nav a.nav-active {
    color: var(--white);
    background: var(--primary-brown);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-brown);
    transition: width 0.3s ease;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-brown);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 50px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-brown), var(--dark-brown));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.4);
}

.hero-image {
    position: relative;
}

.hero-graphic {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--primary-brown);
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.2);
}

.hero-graphic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.graphic-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-brown);
    opacity: 0.1;
}

.graphic-circle:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
}

.graphic-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 15%;
}

.graphic-circle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 20%;
}

/* Sections */
.section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* What We Build */
.what-we-build {
    background: var(--white);
}

.build-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.build-card {
    background: var(--cream);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-brown);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.build-card h3 {
    color: var(--primary-brown);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.build-card p {
    color: var(--gray);
}

/* Technology Ecosystem */
.tech-ecosystem {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.ecosystem-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.ecosystem-card h3 {
    color: var(--primary-brown);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Workflow */
.workflow {
    background: var(--white);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: var(--cream);
    border-radius: 15px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-brown);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-card h4 {
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Technology Capabilities */
.tech-capabilities {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.capability-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.capability-item:hover {
    border-color: var(--primary-brown);
    transform: translateY(-5px);
}

.capability-item i {
    font-size: 2rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 5% 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #aaa;
    transition: color 0.3s ease;
}

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

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #444;
    color: #888;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .workflow-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
    }

    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-menu.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .header-container {
        padding: 1rem 3%;
    }

    .section {
        padding: 60px 3%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn-primary {
        padding: 12px 30px;
    }
}