:root {
    --bg: #0f1115;
    --surface: #16181d;
    --surface-2: #1d2028;
    --text: #e8eaed;
    --text-muted: #9aa0a6;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #2c2f38;
    --max-width: 900px;
    --max-width-wide: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: white;
    padding: 10px 18px;
    border-radius: 0 0 8px 0;
    z-index: 100;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

.summary-text {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.summary-text:last-child {
    margin-bottom: 0;
}

.cta-center {
    justify-content: center;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */

.nav {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}

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

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

.nav-links a {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

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

/* Hero / page headers */

header {
    padding: 80px 0 40px;
    border-bottom: 1px solid var(--border);
}

.page-header {
    padding: 64px 0 40px;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
}

.availability {
    display: inline-block;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 24px;
}

.location {
    color: var(--text-muted);
    font-size: 15px;
}

.cta-group {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface);
}

/* Sections */

section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 600;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Work-history write-up cards (About page) */

.project {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
}

.project:last-child {
    margin-bottom: 0;
}

.project-meta {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.project ul {
    margin-left: 18px;
    color: var(--text-muted);
    font-size: 15px;
}

.project li {
    margin-bottom: 8px;
}

/* Project showcase cards (Projects page + Home teaser strip) */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
}

.project-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.project-card h3 {
    font-size: 18px;
    margin-bottom: 0;
}

.project-card .stack-line {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.project-card ul {
    margin-left: 18px;
    color: var(--text-muted);
    font-size: 14px;
    flex: 1;
}

.project-card li {
    margin-bottom: 6px;
}

.project-card .status-line {
    font-size: 13px;
    color: var(--text-muted);
}

.project-card .live-link {
    align-self: flex-start;
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}

.section-cta {
    margin-top: 32px;
}

/* Timeline */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-title {
    font-weight: 600;
    font-size: 17px;
}

.timeline-meta {
    color: var(--text-muted);
    font-size: 14px;
}

/* Skills */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.skill-category {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
}

.skill-category h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: 10px;
}

.skill-category p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Certifications */

.cert-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cert-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
}

.cert-list .cert-date {
    color: var(--text-muted);
    font-size: 14px;
    white-space: nowrap;
}

/* Contact links */

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.contact-link-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.contact-link-card .label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.contact-link-card a {
    font-size: 17px;
    font-weight: 600;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Contact section (Home) */

.contact {
    text-align: center;
    padding: 80px 0;
}

.contact h2 {
    margin-bottom: 16px;
}

.contact p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 28px;
}

footer {
    padding: 32px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 600px) {
    h1 {
        font-size: 34px;
    }
    .page-header h1 {
        font-size: 30px;
    }
    .lead {
        font-size: 17px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .cert-list li {
        flex-direction: column;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
