/* ============================================================
   THEME — change these to restyle the whole page in one place
   ============================================================ */
:root {
    --accent: #7c5cff;
    --accent-2: #38bdf8;
    --bg-1: #0f0f1a;
    --bg-2: #1a1230;
    --text: #f4f4f8;
    --text-muted: #a7a7bd;
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.12);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 40%),
        radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 40%),
        linear-gradient(160deg, var(--bg-1), var(--bg-2));
    background-attachment: fixed;
}

.card {
    width: 100%;
    max-width: 440px;
    padding: 40px 32px;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Swap this for <img class="avatar" src="..."> to use a real photo */
.avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}

h1 {
    margin: 0 0 6px;
    font-size: 1.7rem;
    font-weight: 700;
}

.tagline {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.bio {
    margin: 0 0 28px;
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.link:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    border-color: var(--accent);
}

.link-icon {
    font-size: 1rem;
}

.footer {
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.7;
}

@media (max-width: 480px) {
    .card {
        padding: 32px 22px;
    }
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.card-wide {
    max-width: 680px;
    text-align: left;
}

.card-wide h1 {
    font-size: 1.6rem;
}

.card-wide .tagline {
    margin-bottom: 28px;
}

.card-wide .tagline a {
    color: var(--accent-2);
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

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

.project-grid {
    display: grid;
    gap: 14px;
}

.project {
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
}

.project-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.project h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.project h2 a {
    color: var(--text);
    text-decoration: none;
}

.project h2 a:hover {
    color: var(--accent-2);
    text-decoration: underline;
}

.project-lang {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
}

.project p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}
