/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Base theme */
:root {
    --bg: #f5f5f7;
    --bg-muted: #f0f1f5;
    --surface: #ffffff;
    --text: #020617;
    --text-muted: #6b7280;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.08);
    --border-subtle: rgba(15, 23, 42, 0.06);
    --danger: #dc2626;

    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;

    --radius-lg: 1.25rem;
    --radius-md: 0.9rem;
    --radius-pill: 999px;

    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
}

body {
    background: radial-gradient(circle at top left, #e5e7eb 0, #f5f5f7 40%, #ffffff 90%), var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

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

/* Layout */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0 4rem;
}

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

.section-inner {
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
}

.section-header {
    max-width: 640px;
}

.section-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.section-description {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.9));
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.logo-mark {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: radial-gradient(circle at 30% 20%, #eff6ff 0, #60a5fa 32%, #2563eb 55%, #1d4ed8 100%);
    box-shadow: 0 0 22px rgba(37, 99, 235, 0.5);
}

.logo-text {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #111827;
}

.nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.nav a {
    position: relative;
    padding-bottom: 0.25rem;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, #2563eb, #22c55e);
    border-radius: 999px;
    transition: width 0.18s ease-out;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    padding: 4.5rem 0 4rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.4fr);
    gap: 3rem;
    align-items: flex-start;
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero h1 .accent {
    background: linear-gradient(to right, #2563eb, #22c55e);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 34rem;
}

.hero-name {
    color: #111827;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.12s ease-out, border-color 0.15s ease-out;
}

.btn.primary {
    background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0.12) 38%, rgba(59, 130, 246, 0.06) 100%),
    linear-gradient(to right, #2563eb, #22c55e);
    border-color: rgba(15, 23, 42, 0.06);
    color: #f9fafb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
    color: #111827;
}

.btn.ghost:hover {
    background: rgba(15, 23, 42, 1);
}

.btn.full-width {
    width: 100%;
}

.hero-meta {
    padding: 1.25rem 1.4rem;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08) 0, #ffffff 55%, #ffffff 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hero-meta-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.hero-meta-item .value {
    font-size: 0.9rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
    gap: 1.5rem;
}

.projects-grid .project-card:last-child {
    grid-column: span 2;
}

.project-card {
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.project-card.featured {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.09) 0, #ffffff 55%, #ffffff 100%);
    box-shadow: var(--shadow-soft);
}

.project-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-stack li {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #111827;
    background: #f9fafb;
}

/* Experience */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.timeline-item {
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;
}

.timeline-period {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.timeline-role {
    font-size: 1rem;
    font-weight: 600;
}

.timeline-company {
    font-size: 0.9rem;
    color: #111827;
    margin-bottom: 0.35rem;
}

.timeline-description {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.skills-column {
    padding: 1.2rem 1.3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: #ffffff;
}

.skills-column h3 {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.skills-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.skills-column li {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact */
.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-form {
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.field input,
.field textarea {
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 0.6rem 0.8rem;
    font: inherit;
    font-size: 0.9rem;
    color: var(--text);
    resize: vertical;
    outline: none;
    transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out, background 0.12s ease-out;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #64748b;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.5);
    background: #ffffff;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: #f9fafb;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem 1.5rem 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.1rem;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.15s ease-out;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-meta {
        order: -1;
    }

    .projects-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .projects-grid .project-card:last-child {
        grid-column: auto;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .header-inner {
        padding-inline: 1.25rem;
    }

    .nav {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .hero {
        padding-top: 3.5rem;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .section {
        padding: 3.2rem 0 3rem;
    }

    .skills-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.6rem;
        align-items: flex-start;
    }
}