:root {
    --background: #0c0e11;
    --surface: #14171b;
    --surface-2: #1b1f24;
    --text: #f1f0eb;
    --muted: #a7abb2;
    --accent: #b4a06a;
    --accent-2: #d2c398;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(180, 160, 106, 0.075), transparent 30rem),
        linear-gradient(180deg, #0c0e11 0%, #101216 48%, #0c0e11 100%);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(12, 14, 17, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.4rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-links a {
    text-decoration: none;
}

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

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
    border-radius: 0.55rem;
    padding: 0.35rem 0.65rem;
    font-size: 1.2rem;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 5.5rem 0;
}

.narrow {
    max-width: 820px;
}

.hero {
    min-height: 82vh;
    display: grid;
    align-items: center;
}

.hero-content {
    max-width: 880px;
}

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

h1,
h2,
h3 {
    line-height: 1.15;
    margin: 0 0 1rem;
}

h1 {
    font-size: clamp(2.7rem, 7vw, 5.9rem);
    letter-spacing: -0.06em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.04em;
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--muted);
    margin: 0 0 1rem;
}

.hero-text {
    max-width: 760px;
    font-size: 1.18rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.button {
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    padding: 0.78rem 1.15rem;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    border-color: rgba(210, 195, 152, 0.6);
    background: rgba(255, 255, 255, 0.025);
}

.button.primary {
    background: var(--text);
    border-color: var(--text);
    color: #111317;
    font-weight: 800;
}

.button.primary:hover {
    background: #d8d6cf;
    border-color: #d8d6cf;
}

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

.project-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.014));
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.project-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: var(--surface-2);
    filter: saturate(0.68) contrast(1.04);
}

.card-body {
    padding: 1.35rem;
}

.card-body a {
    color: var(--accent-2);
    font-weight: 700;
    text-decoration: none;
}

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

.timeline {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.timeline-item,
.skills-grid > div,
.contact-box {
    background: rgba(20, 23, 27, 0.82);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 1.25rem;
}

.timeline-item {
    border-left: 3px solid var(--accent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem 1rem;
}

.project-page {
    max-width: 900px;
}

.project-hero {
    padding-top: 4rem;
}

.project-image {
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    margin: 2rem 0;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    filter: saturate(0.68) contrast(1.04);
}

.info-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.info-list div {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 1rem;
}

ul {
    color: var(--muted);
}

@media (max-width: 820px) {
    .project-grid,
    .skills-grid,
    .info-list {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: inline-block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 1rem 1.25rem 1.25rem;
        background: rgba(12, 14, 17, 0.98);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .section {
        padding: 4rem 0;
    }
}

.project-card {
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(210, 195, 152, 0.38);
}

.project-content-section h2:not(:first-of-type) {
    margin-top: 3rem;
}
