:root {
    --bg: #0f1115;
    --bg-alt: #171a21;
    --surface: #1d212b;
    --text: #f5f7fb;
    --muted: #aab3c5;
    --accent: #6dd3b6;
    --accent-dark: #4bb297;
    --border: #2b3140;

    --container: 1100px;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

body.light {
    --bg: #f7f8fb;
    --bg-alt: #eef1f6;
    --surface: #ffffff;
    --text: #171a21;
    --muted: #5f6b7a;
    --accent: #0f8f73;
    --accent-dark: #0a755e;
    --border: #d9e0ea;
    --shadow: 0 10px 30px rgba(20, 30, 50, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}


img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

body.light .site-header {
    background: rgba(247, 248, 251, 0.85);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}

.logo {
    font-weight: 800;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: var(--muted);
    transition: color 0.2s ease;
}

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

.theme-toggle {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
}

.hero {
    padding: 6rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow,
.section-label,
.card-label {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.05;
    margin: 0.5rem 0 1rem;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 0.25rem 0 1rem;
    line-height: 1.1;
}

h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.hero-text,
.section-text {
    max-width: 60ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions,
.contact-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
    background: var(--accent);
    color: #08110f;
    border-color: transparent;
}

.button-primary:hover {
    background: var(--accent-dark);
    color: white;
}

.button-secondary {
    background: transparent;
    color: var(--text);
}

.hero-card,
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.hero-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
    color: var(--muted);
}

.section {
    padding: 5rem 0;
}

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

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.project-card p {
    color: var(--muted);
}

.project-card a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    font-weight: 600;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.skills-list span {
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
}

.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

@media (max-width: 900px) {
    .hero-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        flex-wrap: wrap;
        padding: 1rem 0;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.8rem 1rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 4.5rem;
    }

    .button {
        width: 100%;
    }
}