:root {
    --bg-color: #f4f7fb;
    --panel-color: #ffffff;
    --header-color: #1f2937;
    --accent-color: #2563eb;
    --text-color: #1f2937;
    --muted-color: #4b5563;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.site-header {
    background: var(--header-color);
    color: #fff;
    padding: 1.25rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.site-header nav {
    display: flex;
    gap: 1rem;
}

.site-header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.page-content {
    padding: 3rem 0;
}

.panel-hero {
    background: var(--panel-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.panel-hero h2 {
    margin-top: 0;
    color: var(--accent-color);
}

.panel-hero p {
    margin-bottom: 1rem;
    color: var(--muted-color);
}

.panel {
    background: var(--panel-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.panel h2 {
    margin-top: 0;
    color: var(--accent-color);
}

.panel p {
    margin-bottom: 1rem;
    color: var(--muted-color);
}

.site-footer {
    background: var(--header-color);
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
}

.site-footer nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
}

.site-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: #d1d5db;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;        /* buttons wrap onto a new line on small screens */
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Shared button styles */
.button {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

/* Filled */
.button-primary {
    background: var(--accent-color);
    color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #1d4ed8;    /* slightly darker blue */
    border-color: #1d4ed8;
}

/* Outlined */
.button-secondary {
    background: transparent;
    color: var(--accent-color);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: var(--accent-color);
    color: #fff;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #e0e7ff;  
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.other-projects .tag {
    padding: 0;
    background: none;
    font-weight: normal;
}

.project {
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
}

/* No divider above the first project */
.project:first-of-type {
    border-top: none;
    padding-top: 0;
}

.project h3 {
    margin: 0 0 0.25rem;
}

.project-meta {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--muted-color);
    font-style: italic;
}

/* The whole "Other projects" subsection */
.other-projects-group {
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;   /* matches the dividers between projects */
}

.other-projects-group h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* The list itself */
.other-projects {
    margin: 0;
    padding-left: 1.25rem;           /* room for the bullet points */
}

.other-projects li {
    margin-bottom: 0.5rem;
    color: var(--muted-color);
}

.other-projects li:last-child {
    margin-bottom: 0;
}

.other-projects strong {
    color: var(--text-color);
}

.resume-block {
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
}

.resume-block:first-of-type {
    border-top: none;
    padding-top: 0;
}

.resume-block h3 {
    margin: 0 0 0.75rem;
}

.resume-item {
    margin-bottom: 1rem;
}

.resume-item:last-child {
    margin-bottom: 0;
}

/* Title on the left, date on the right */
.resume-item-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resume-date,
.resume-sub {
    font-size: 0.875rem;
    color: var(--muted-color);
}

.resume-sub {
    margin: 0 0 0.5rem;
}

.skill-label {
    margin: 1rem 0 0;
    font-weight: 600;
    font-size: 0.875rem;
}

.skill-label:first-of-type {
    margin-top: 0;
}

.skill-label + .tags {
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .site-header nav {
        justify-content: center;
        flex-wrap: wrap;
    }
}