:root {
    --colour-accent: #45e0c8;
    --colour-accent-dark: #22b8a2;
    --colour-bg: #0d1220;
    --colour-surface: #161d2e;
    --colour-surface-hover: #1c2438;
    --colour-border: #2a334a;
    --colour-text: #eef1f7;
    --colour-text-muted: #9aa4bc;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--colour-text);
    background: var(--colour-bg);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    margin-top: 0;
}

a {
    color: var(--colour-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Nav ── */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(13, 18, 32, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--colour-border);
}

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

.nav__brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--colour-text);
    text-decoration: none;
}

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

.nav__links a {
    color: var(--colour-text-muted);
    font-weight: 500;
    text-decoration: none;
}

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

/* ── Hero ── */

.hero {
    padding: 4.5rem 1.5rem 3.5rem;
    text-align: center;
}

.hero__inner {
    max-width: 700px;
    margin: 0 auto;
}

.hero__photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--colour-accent);
    margin-bottom: 1.5rem;
}

.hero__name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hero__tagline {
    color: var(--colour-text-muted);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--colour-accent);
    color: #06110f;
}

.btn--primary:hover {
    background: var(--colour-accent-dark);
}

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

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

/* ── Shared section layout ── */

.divider {
    max-width: 1000px;
    margin: 0 auto;
    border: none;
    border-top: 1px solid var(--colour-border);
}

.about__inner,
.work__inner,
.contact__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

.about {
    text-align: center;
}

.about h2,
.work h2,
.contact h2 {
    font-size: 1.6rem;
    color: var(--colour-text);
    margin-bottom: 1rem;
}

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

/* ── Work / projects ── */

.work {
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    text-align: left;
}

.project-card {
    display: block;
    background: var(--colour-surface);
    border: 1px solid var(--colour-border);
    border-radius: 14px;
    overflow: hidden;
    color: var(--colour-text);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    text-decoration: none;
    transform: translateY(-4px);
    background: var(--colour-surface-hover);
    border-color: var(--colour-accent);
}

.project-card__image {
    background: #fff6ec;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    height: 160px;
}

.project-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.project-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.project-card__body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.project-card__body p {
    color: var(--colour-text-muted);
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

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

/* ── Contact ── */

.contact {
    text-align: center;
}

.contact__email {
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
}

.contact__email a {
    color: var(--colour-text);
    font-weight: 600;
}

.contact__email a:hover {
    color: var(--colour-accent);
}

.social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

.social-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid var(--colour-border);
    color: var(--colour-text-muted);
    font-size: 1.3rem;
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.social-list a:hover {
    color: var(--colour-accent);
    border-color: var(--colour-accent);
    transform: translateY(-3px);
}

/* ── Footer ── */

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

.footer p {
    margin: 0;
}

/* ── Responsive ── */

@media (max-width: 600px) {
    .nav__links {
        gap: 1rem;
    }

    .hero__name {
        font-size: 2rem;
    }

    .hero__tagline {
        font-size: 1rem;
    }
}
