/* ═══════════════════════════════════════════
   Portfolio — Cool Lavender Minimal
   Lavender-gray + Muted Blue + Mauve
   ═══════════════════════════════════════════ */

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

:root {
    --bg:        #eceaf2;
    --bg-alt:    #e2dfec;
    --surface:   #ffffff;
    --border:    #d8d5e3;
    --border-light: #e2e0ed;
    --text:      #2d2f3d;
    --text-dim:  #8a889a;
    --text-mid:  #6a6880;
    --accent:    #416c9f;
    --accent-light: #7a9dc0;
    --accent-warm: #9f734e;
    --accent-warm-dark: #7d5a3d;
    --warm-border: #b8a090;
    --pill-bg:   #ffffff;

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 'Noto Sans SC', 'PingFang SC', sans-serif;

    --max-width: 760px;
    --nav-height: 64px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Navbar ────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(236,234,242, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.3px;
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-dim);
    transition: color 0.2s;
}

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

/* ── Hero ──────────────────────────────── */
.hero {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    padding: 140px 32px 100px;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-label {
    font-size: 13px;
    color: var(--accent-warm);
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero-name {
    font-size: 48px;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-role {
    font-size: 20px;
    font-weight: 350;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.9;
    max-width: 480px;
    margin-bottom: 40px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: #355a85;
    border-color: #355a85;
}

.btn-outline {
    background: transparent;
    color: var(--accent-warm-dark);
    border: 1.5px solid var(--warm-border);
}

.btn-outline:hover {
    border-color: var(--accent-warm);
    color: var(--accent-warm);
}

/* ── Sections ──────────────────────────── */
.section {
    padding: 80px 32px;
}

.section-alt {
    background: var(--bg-alt);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-label {
    font-size: 12px;
    color: var(--accent-warm);
    letter-spacing: 2.5px;
    margin-bottom: 40px;
}

/* ── Projects ──────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 28px 24px;
    transition: transform 0.25s, box-shadow 0.25s;
    color: inherit;
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.project-card.accent-blue  { border-top: 3px solid #7a9dc0; }
.project-card.accent-warm  { border-top: 3px solid #b89078; }
.project-card.accent-steel { border-top: 3px solid #9b94b8; }
.project-card.accent-sand  { border-top: 3px solid #a8b098; }

.project-num {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-light);
    display: block;
    margin-bottom: 10px;
}

.project-card.accent-warm .project-num,
.project-card.accent-sand .project-num {
    color: var(--accent-warm);
}

.project-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.project-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #9a92a8;
}

/* ── About ─────────────────────────────── */
.about-text {
    max-width: 520px;
    margin-bottom: 28px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 16px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 16px;
    background: var(--pill-bg);
    border: 1px solid #d5d2e0;
    border-radius: 20px;
    font-size: 13px;
    color: #6a6880;
    transition: border-color 0.2s;
}

.skill-tag:hover {
    border-color: var(--accent-light);
    color: var(--accent);
}

/* ── Contact ───────────────────────────── */
.contact-heading {
    font-size: 28px;
    font-weight: 350;
    color: var(--accent);
    line-height: 1.4;
    margin-bottom: 28px;
}

.contact-links {
    display: flex;
    gap: 28px;
}

.contact-link {
    font-size: 15px;
    color: var(--accent);
    border-bottom: 1.5px solid #b8c8dc;
    padding-bottom: 2px;
    transition: border-color 0.2s, color 0.2s;
}

.contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Footer ────────────────────────────── */
.footer {
    background: var(--bg-alt);
    padding: 36px 32px;
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: #b0acbe;
}

/* ── More Articles ─────────────────────── */
.more-articles {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.more-articles h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
}

.more-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.more-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 22px 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.more-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.more-num {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 10px;
}

.more-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.5;
}

.more-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 640px) {
    .more-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Responsive ────────────────────────── */
@media (max-width: 640px) {
    .hero-name {
        font-size: 34px;
    }

    .hero-links {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .nav-links {
        gap: 20px;
    }

    .contact-links {
        flex-direction: column;
        gap: 14px;
    }

    .section {
        padding: 56px 20px;
    }
}
