:root {
    --bg: #0b0d12;
    --bg-alt: #12151c;
    --text: #e7e9ee;
    --text-muted: #9aa1b1;
    --accent: #7c8cff;
    --accent-soft: rgba(124, 140, 255, 0.12);
    --border: #232733;
    --radius: 12px;
    --max-width: 860px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 13, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.nav__brand {
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.nav__links {
    display: flex;
    gap: 2rem;
}

.nav__links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* Hero */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 1.5rem 5rem;
}

.hero__eyebrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.hero__name {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero__role {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.hero__tagline {
    max-width: 46ch;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn--primary {
    background: var(--accent);
    color: #0b0d12;
}

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

.btn--ghost {
    border: 1px solid var(--border);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Sections */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--border);
}

.section__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section__text {
    color: var(--text-muted);
    max-width: 60ch;
}

/* Skills */
.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-group h3 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags li {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

/* Projects */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.project-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.project-card h3 {
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.project-card__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.project-card__tags span {
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.project-card__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

/* Contact */
.contact-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.contact-links a {
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 640px) {
    .nav__links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 1rem;
        display: none;
    }

    .nav__links.is-open {
        display: flex;
    }

    .nav__toggle {
        display: flex;
    }
}
