/* =========================================
   Base
========================================= */

:root {
    --background: #ffffff;
    --background-alt: #f5f7fa;
    --text: #17202a;
    --text-light: #5f6b76;
    --border: #e2e6ea;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --card: #ffffff;

    --max-width: 1100px;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}

.narrow {
    max-width: 760px;
}


/* =========================================
   Navigation
========================================= */

.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
}

.nav {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.15rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}


/* =========================================
   Hero
========================================= */

.hero {
    padding: 120px 0 130px;
}

.hero-content {
    max-width: 850px;
}

.eyebrow,
.section-label {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}

.hero h1 {
    max-width: 800px;

    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;

    margin-bottom: 28px;
}

.hero-text {
    max-width: 680px;

    color: var(--text-light);
    font-size: 1.25rem;
    line-height: 1.7;

    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}


/* =========================================
   Buttons
========================================= */

.button {
    display: inline-block;

    padding: 12px 22px;

    border-radius: 8px;

    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: white;
}

.button-primary:hover {
    background: var(--accent-dark);
}

.button-secondary {
    border: 1px solid var(--border);
    background: white;
}

.button-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* =========================================
   Sections
========================================= */

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--background-alt);
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.03em;

    margin-bottom: 32px;
}

.section p {
    color: var(--text-light);
    margin-bottom: 20px;
}


/* =========================================
   Skills
========================================= */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-top: 50px;
}

.skill-card {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 30px;
}

.skill-icon {
    color: var(--accent);

    font-size: 0.8rem;
    font-weight: 700;

    margin-bottom: 24px;
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.skill-card p {
    margin-bottom: 0;
}


/* =========================================
   Projects
========================================= */

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 24px;

    margin-top: 50px;
}

.project-card {
    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 32px;

    background: var(--card);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.07);
}

.project-number {
    color: var(--accent);

    font-size: 0.8rem;
    font-weight: 700;

    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.project-card p {
    margin-bottom: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 24px;
}

.project-tags span {
    background: var(--background-alt);

    border-radius: 6px;

    padding: 5px 9px;

    font-size: 0.8rem;
    font-weight: 600;

    color: var(--text-light);
}

.project-link {
    color: var(--accent);

    font-weight: 600;
}

.project-link:hover {
    color: var(--accent-dark);
}

.project-status {
    color: var(--text-light);

    font-size: 0.85rem;
    font-weight: 600;
}


/* =========================================
   Technologies
========================================= */

.tech-section {
    text-align: center;
}

.tech-list {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

    margin-top: 35px;
}

.tech-list span {
    border: 1px solid var(--border);

    background: white;

    padding: 8px 14px;

    border-radius: 20px;

    font-size: 0.9rem;
    font-weight: 500;
}


/* =========================================
   Contact
========================================= */

.contact-section {
    text-align: center;
}

.contact-section .narrow {
    margin: 0 auto;
}

.contact-section h2 {
    margin-bottom: 20px;
}

.contact-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================
   Footer
========================================= */

.site-footer {
    border-top: 1px solid var(--border);

    padding: 30px 0;
}

.footer-content {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.site-footer p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 700px) {

    .nav {
        min-height: 64px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero {
        padding: 80px 0 90px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .section {
        padding: 75px 0;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}


/* =========================================
   Very small screens
========================================= */

@media (max-width: 450px) {

    .nav-links {
        gap: 10px;
    }

    .nav-links a:nth-child(2) {
        display: none;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .button {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   404 Page
========================================= */

.error-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 40px 20px;
}

.error-content {
    max-width: 600px;
}

.error-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.04em;

    margin-bottom: 20px;
}

.error-content p:not(.eyebrow) {
    color: var(--text-light);

    font-size: 1.1rem;

    margin-bottom: 30px;
}

@media (max-width: 340px) {
    .footer-links {
        display: grid;
        grid-template-columns: auto auto auto;
        gap: 8px 20px;
        justify-content: end;
    }

    .footer-links a:nth-child(4) {
        grid-column: 2;
    }

    .footer-links a:nth-child(5) {
        grid-column: 3;
    }
}