/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Custom Properties ── */
:root {
    --bg: #faf8f5;
    --text: #2d2d2d;
    --text-muted: #6b6b6b;
    --accent: #5a7d9a;
    --accent-hover: #4a6a84;
    --divider: #e8e4df;
    --tag-bg: #eee9e3;
    --tag-text: #4a4a4a;
    --nav-bg: rgba(250, 248, 245, 0.85);
    --photo-shadow: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1a1a;
        --text: #e0ddd8;
        --text-muted: #9a9a9a;
        --accent: #7da8c9;
        --accent-hover: #93bbd8;
        --divider: #2e2e2e;
        --tag-bg: #2a2a2a;
        --tag-text: #c0bdb8;
        --nav-bg: rgba(26, 26, 26, 0.85);
        --photo-shadow: rgba(0, 0, 0, 0.3);
    }
}

/* ── Base ── */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ── Nav ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--divider);
}

.nav-inner {
    max-width: 650px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}

.nav-name:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a.active {
    color: var(--text);
    font-weight: 500;
}

.nav-links .disabled {
    opacity: 0.35;
    cursor: default;
    position: relative;
}

.nav-links .disabled:hover {
    opacity: 0.35;
    color: var(--text-muted);
}

.nav-links .disabled::after {
    content: 'todo!()';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--tag-bg);
    color: var(--tag-text);
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
}

.nav-links .disabled:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

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

/* ── Main ── */
main {
    max-width: 650px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ── Sections ── */
section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--divider);
}

section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

section p {
    margin-bottom: 0.75rem;
    color: var(--text);
}

section p:last-child {
    margin-bottom: 0;
}

/* ── Hero ── */
.hero {
    text-align: center;
    padding-top: 1rem;
}

.photo-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px var(--photo-shadow);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    transform: scale(1.5) translateX(-2%);
}

.greeting {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero .social-links {
    justify-content: center;
    margin-bottom: 0.6rem;
}

.hero-ctas {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cta-link {
    font-size: 0.9rem;
    color: var(--bg);
    background: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    transition: all 0.2s;
}

.cta-link:hover {
    background: var(--accent-hover);
    color: var(--bg);
}

.looking-for {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Projects ── */
.project-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-list li {
    line-height: 1.5;
}

.project-links {
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

.see-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    position: relative;
}

.see-more.disabled {
    opacity: 0.35;
    cursor: default;
}

.see-more.disabled::after {
    content: 'todo!()';
    position: absolute;
    bottom: -1.75rem;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--tag-bg);
    color: var(--tag-text);
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
}

.see-more.disabled:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ── Tags ── */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-group {
    margin-bottom: 0.75rem;
}

.tag-group:last-child {
    margin-bottom: 0;
}

.tag-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    text-transform: lowercase;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--tag-bg);
    color: var(--tag-text);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 450;
    transition: background 0.2s;
}

/* ── Social & Resume ── */
.social-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
}

.social-links a:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.resume-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid var(--divider);
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    transition: all 0.2s;
}

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

/* ── Footer ── */
footer {
    max-width: 650px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid var(--divider);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .nav-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .photo-wrapper {
        width: 130px;
        height: 130px;
    }

    main {
        padding: 2rem 1.25rem 3rem;
    }
}
