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

:root {
    --color-primary: #1a365d;
    --color-primary-light: #2c5282;
    --color-accent: #3182ce;
    --color-text: #2d3748;
    --color-text-light: #718096;
    --color-bg: #ffffff;
    --color-bg-alt: #f7fafc;
    --color-border: #e2e8f0;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 3rem;
}

.hero-tagline {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-location {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--color-bg-alt);
    transform: translateY(-2px);
}

/* Cards */
.services-grid,
.projects-grid,
.team-grid {
    display: grid;
    gap: 2rem;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 800px;
    margin: 0 auto;
}

.service-card,
.project-card,
.team-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover,
.project-card:hover,
.team-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.section-alt .service-card,
.section-alt .project-card,
.section-alt .team-card {
    background: white;
}

/* Team */
.team-role {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Project Links */
.project-card {
    position: relative;
}

.project-card h3 a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.project-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.project-card:hover h3 a {
    color: var(--color-accent);
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Contact */
#contact {
    text-align: center;
}

#contact p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

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

#contact .btn-primary:hover {
    background: var(--color-primary-light);
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0.25rem 0;
}

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

    .nav-links {
        gap: 1rem;
    }

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

    .hero-tagline {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .service-card,
    .project-card,
    .team-card {
        padding: 1.5rem;
    }
}
