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

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-accent: #0f4c75;
    --color-accent-light: #e8f0f6;
    --color-border: #e0e0e0;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 960px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---- Navigation ---- */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-accent);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-accent);
}

/* ---- Hero ---- */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
}

.hero-content {
    max-width: var(--max-width);
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.15s;
}

.btn:hover {
    background: #0b3a5c;
    transform: translateY(-1px);
}

/* ---- Services ---- */

.services {
    padding: 5rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.services h2,
.about h2,
.contact h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 2rem;
    transition: box-shadow 0.2s, transform 0.15s;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ---- Projects ---- */

.projects {
    padding: 5rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.projects h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.project-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 2rem;
    transition: box-shadow 0.2s, transform 0.15s;
}

.project-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.project-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.project-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ---- About ---- */

.about {
    background: var(--color-accent-light);
    padding: 5rem 1.5rem;
}

.about-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.about p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 1rem;
    font-size: 1.05rem;
}

/* ---- Contact ---- */

.contact {
    padding: 5rem 1.5rem;
    text-align: center;
}

.contact p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* ---- Footer ---- */

footer {
    border-top: 1px solid var(--color-border);
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
    .nav-links {
        gap: 1.25rem;
    }

    .hero {
        min-height: 60vh;
    }
}
