@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #FAFAF8;
    --bg-alt: #F3F1EE;
    --bg-card: #FFFFFF;
    --text: #2D3436;
    --text-light: #636E72;
    --text-muted: #9BA3A8;
    --accent: #E07A5F;
    --accent-hover: #C96A51;
    --accent-light: #FAE8E3;
    --accent-glow: rgba(224, 122, 95, 0.12);
    --border: #E8E5E0;
    --border-light: #F0EDEA;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --radius: 16px;
    --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ── Icons (inline SVG) ── */
.icon {
    display: inline-block; width: 20px; height: 20px;
    vertical-align: middle; fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-lg { width: 24px; height: 24px; }

/* ── Nav ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(250, 250, 248, 0.85);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    z-index: 100; border-bottom: 1px solid var(--border-light);
}
.nav-container {
    max-width: 1080px; margin: 0 auto; padding: 18px 28px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 22px; color: var(--text);
    text-decoration: none; letter-spacing: -0.3px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
    color: var(--text-light); text-decoration: none;
    font-size: 14px; font-weight: 500; padding: 8px 16px;
    border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-links a.active { color: var(--accent); background: var(--accent-light); }
.nav-cta {
    background: var(--text) !important; color: #fff !important;
    font-weight: 600 !important; padding: 8px 20px !important;
    border-radius: 8px !important; margin-left: 8px;
}
.nav-cta:hover { opacity: 0.85; background: var(--text) !important; }

/* ── Hero ── */
.hero { padding: 160px 0 100px; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }

.hero-name {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(40px, 5.5vw, 64px);
    font-weight: 400; line-height: 1.12;
    letter-spacing: -1.5px; margin-bottom: 24px;
}
.hero h1 .highlight {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-light);
    text-underline-offset: 6px;
    text-decoration-thickness: 3px;
}
.hero-sub {
    font-size: 18px; color: var(--text-light);
    max-width: 580px; line-height: 1.75; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 72px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 600; text-decoration: none;
    transition: all 0.25s ease; cursor: pointer; border: none;
}
.btn-primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 2px 12px rgba(224,122,95,0.3);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(224,122,95,0.4);
    transform: translateY(-1px);
}
.btn-outline {
    background: var(--bg-card); color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent); color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.stats-ribbon { display: flex; gap: 56px; flex-wrap: wrap; }
.stat { position: relative; padding-left: 20px; }
.stat::before {
    content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 3px; background: var(--accent); border-radius: 3px;
}
.stat-number {
    display: block; font-family: 'DM Serif Display', serif;
    font-size: 36px; color: var(--text); line-height: 1.1;
}
.stat-label {
    font-size: 13px; color: var(--text-muted);
    font-weight: 500; letter-spacing: 0.3px;
}

/* ── Sections ── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { margin-bottom: 56px; }
.section-eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 400; letter-spacing: -0.5px; margin-bottom: 12px;
}
.section-sub { color: var(--text-light); font-size: 17px; max-width: 560px; }

/* ── About ── */
.about-grid {
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 72px; align-items: start;
}
.about-narrative p {
    color: var(--text-light); margin-bottom: 20px; font-size: 16px;
}
.about-narrative strong { color: var(--text); }
.about-narrative .accent-text { color: var(--accent); font-weight: 600; }
.about-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px; color: var(--accent); font-weight: 500;
    letter-spacing: 0.5px; margin-bottom: 24px;
    padding: 12px 0; border-bottom: 1px solid var(--border-light);
}
.about-tagline span { color: var(--text-muted); margin: 0 8px; }

.pillar-stack { display: flex; flex-direction: column; gap: 16px; }
.pillar {
    background: var(--bg-card); padding: 28px;
    border-radius: var(--radius); border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm); transition: all 0.3s ease;
    display: flex; gap: 20px; align-items: flex-start;
}
.pillar:hover {
    box-shadow: var(--shadow-md); border-color: var(--accent);
    transform: translateY(-2px);
}
.pillar-icon {
    width: 44px; height: 44px; min-width: 44px;
    border-radius: 12px; background: var(--accent-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.pillar-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pillar-body p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ── Projects ── */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow-sm); transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.project-card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-4px);
    border-color: var(--accent);
}
.project-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.project-label svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.project-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 22px; font-weight: 400; margin-bottom: 12px;
}
.project-card p {
    color: var(--text-light); font-size: 14px; line-height: 1.7;
    margin-bottom: 20px; flex-grow: 1;
}
.project-tech { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.project-tech span {
    background: var(--bg-alt); padding: 5px 12px; border-radius: 6px;
    font-size: 12px; color: var(--text-light);
    font-family: 'JetBrains Mono', monospace; font-weight: 500;
}
.project-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent); text-decoration: none;
    font-size: 14px; font-weight: 600; transition: gap 0.2s;
}
.project-link:hover { gap: 10px; }

.github-cta {
    text-align: center; margin-top: 40px; padding: 40px;
    border: 1px dashed var(--border); border-radius: var(--radius);
    background: var(--bg-alt);
}
.github-cta p { color: var(--text-light); font-size: 15px; margin-bottom: 20px; }

/* ── Journey ── */
.journey-track { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.journey-card {
    background: var(--bg-card); padding: 32px;
    border-radius: var(--radius); border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm); transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.journey-card:hover { box-shadow: var(--shadow-md); }
.journey-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--accent); opacity: 0;
    transition: opacity 0.3s;
}
.journey-card:hover::before { opacity: 1; }
.journey-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; color: var(--accent); font-weight: 500;
    margin-bottom: 10px;
}
.journey-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.journey-company { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.journey-card > p:last-child { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.blog-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all 0.3s ease;
    text-decoration: none; color: inherit;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-img {
    height: 160px; position: relative; overflow: hidden;
}
.blog-card-img svg { width: 100%; height: 100%; }
.blog-card-body { padding: 24px; }
.blog-tag {
    display: inline-block; background: var(--accent-light);
    color: var(--accent); padding: 3px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 12px;
}
.blog-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.blog-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.blog-meta { font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* ── Contact ── */
.contact-section { text-align: center; }
.contact-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    text-align: left; margin-top: 48px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 13px; font-weight: 600; color: var(--text);
    letter-spacing: 0.3px;
}
.form-group input,
.form-group textarea {
    padding: 14px 16px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-family: 'Inter', sans-serif;
    font-size: 15px; background: var(--bg-card); color: var(--text);
    transition: border-color 0.2s; outline: none; resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 120px; }
.form-submit {
    background: var(--accent); color: #fff; border: none;
    padding: 14px 32px; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: all 0.25s; align-self: flex-start;
    font-family: 'Inter', sans-serif;
}
.form-submit:hover {
    background: var(--accent-hover); transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(224,122,95,0.3);
}
.form-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card); border: 1px solid var(--border-light);
    padding: 20px 24px; border-radius: var(--radius);
    text-decoration: none; color: var(--text);
    box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.contact-card:hover {
    box-shadow: var(--shadow-md); border-color: var(--accent);
    transform: translateY(-2px);
}
.contact-icon {
    width: 44px; height: 44px; min-width: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-light); border-radius: 12px;
    color: var(--accent);
}
.contact-icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-card .label { font-size: 12px; color: var(--text-muted); }
.contact-card .value { font-size: 15px; font-weight: 600; }

/* ── Footer ── */
.footer {
    padding: 40px 0; text-align: center;
    color: var(--text-muted); font-size: 13px;
    border-top: 1px solid var(--border-light);
}

/* ── Scroll Animations ── */
.fade-up { transition: opacity 0.6s ease, transform 0.6s ease; }
html.js-ready .fade-up { opacity: 0; transform: translateY(24px); }
html.js-ready .fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .projects-grid { grid-template-columns: 1fr; }
    .journey-track { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: clamp(28px, 8vw, 40px); line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 16px; }
    .hero-name { font-size: 13px; margin-bottom: 12px; }
    .hero-sub { font-size: 16px; margin-bottom: 28px; }
    .stats-ribbon { gap: 24px; }
    .hero-actions { flex-direction: column; }
    .nav-links a { padding: 8px 10px; font-size: 13px; }
    .nav-cta { display: none; }
}
