@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #05070f;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(120, 170, 255, 0.4);
    --text: #f0f4ff;
    --muted: #8896b3;
    --accent: #5b8fff;
    --accent-soft: rgba(91, 143, 255, 0.15);
    --glow: rgba(91, 143, 255, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(91, 143, 255, 0.12), transparent),
        radial-gradient(ellipse 50% 40% at 90% 10%, rgba(160, 100, 255, 0.1), transparent),
        radial-gradient(ellipse 40% 60% at 0% 80%, rgba(50, 100, 255, 0.07), transparent);
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ─────────────────────────────────────────── */

.page {
    max-width: 860px;
    margin: 0 auto;
    padding: 72px 24px 96px;
}

/* ── Nav ─────────────────────────────────────────────── */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
}

.nav-brand {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(91, 143, 255, 0.4);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.75); }
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
    margin-bottom: 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
}

.hero h1 span {
    background: linear-gradient(135deg, #a0c4ff, #7b8fff 40%, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 28px;
}

.hero-links {
    display: flex;
    gap: 16px;
}

.hero-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.hero-link:hover {
    color: var(--text);
    border-color: var(--text);
}

/* ── Section heading ─────────────────────────────────── */

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Project cards ───────────────────────────────────── */

.projects {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(91, 143, 255, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(91, 143, 255, 0.08);
    border: 1px solid var(--border);
}

.card-body {
    min-width: 0;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.card-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 999px;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(91, 143, 255, 0.3);
    padding: 7px 14px;
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.card:hover .card-tag {
    background: rgba(91, 143, 255, 0.22);
    border-color: rgba(91, 143, 255, 0.5);
}

.card-tag svg {
    width: 12px;
    height: 12px;
    opacity: 0.8;
}

.card-static {
    cursor: default;
}

.card-static:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
    background: var(--surface);
}

.card-static:hover::before {
    opacity: 0;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.card-actions .card-tag {
    text-align: center;
    text-decoration: none;
}

/* ── External badge ──────────────────────────────────── */

.card-tag.external {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.3);
}

.card:hover .card-tag.external {
    background: rgba(167, 139, 250, 0.18);
    border-color: rgba(167, 139, 250, 0.5);
}

/* ── 404 ─────────────────────────────────────────────── */

.not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 24px;
}

.not-found-code {
    font-size: clamp(5rem, 20vw, 10rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #3a5fff, #6c3fff 50%, #9040ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.6;
    margin-bottom: 8px;
}

.not-found h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.not-found p {
    color: var(--muted);
    margin-bottom: 36px;
    line-height: 1.6;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-hover);
    padding: 11px 22px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-home:hover {
    background: var(--surface-hover);
    box-shadow: 0 0 20px var(--glow);
    transform: translateY(-1px);
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 640px) {
    .page {
        padding: 48px 16px 72px;
    }

    .hero {
        margin-bottom: 48px;
        padding-bottom: 40px;
    }

    .card {
        grid-template-columns: 1fr;
    }

    .card-thumb {
        aspect-ratio: 16 / 7;
    }

    .card-tag, .card-actions {
        justify-self: start;
    }
}

