:root {
    --bg: #0d1117;
    --surface: #161b22;
    --border: #30363d;
    --text: #c9d1d9;
    --muted: #8b949e;
    --accent: #ff5f57;
    --accent-dim: #d93a32;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Cascadia Code', 'JetBrains Mono', 'Fira Code', Consolas, 'Courier New', monospace;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Header & nav ---------- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 1rem 2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.logo {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.logo .prompt {
    color: var(--accent);
}

.nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
}

.nav a::before {
    content: './';
    color: var(--accent-dim);
}

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

.nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ---------- Layout ---------- */

main {
    flex: 1;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1::before {
    content: '// ';
    color: var(--accent);
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

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

.muted {
    color: var(--muted);
}

.email-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.email-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: min(100%, 285px);
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.email-link:hover {
    background: #1c222b;
    border-color: var(--accent-dim);
}

.email-link img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: cover;
    border-radius: 50%;
}

.email-label,
.email-address {
    display: block;
}

.email-label {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.email-address {
    color: var(--muted);
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

/* ---------- Terminal window ---------- */

.terminal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.terminal-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: var(--accent); }

.terminal-body {
    padding: 1.5rem;
}

.terminal-body .cmd {
    color: var(--accent);
    font-weight: 700;
}

.terminal-body .name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.5rem 0 0.25rem;
}

.terminal-body .tagline {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* ---------- Cards ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.hackathon-achievement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.comptia-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comptia-heading h2 {
    margin-bottom: 0;
}

.comptia-heading img {
    display: block;
    width: auto;
    height: 90px;
    flex: 0 0 auto;
}

.hackathon-photo {
    position: relative;
    width: min(100%, 100px);
    flex: 0 0 70px;
    margin: 0;
    overflow: hidden;
    border-radius: 9px;
}

.hackathon-photo::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at center, transparent 72%, rgba(0, 0, 0, 0.12));
    content: '';
    pointer-events: none;
}

.hackathon-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.wag-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.wag-heading h2 {
    margin-bottom: 0;
}

.wag-logo {
    position: relative;
    width: fit-content;
    max-width: 100%;
    flex: 0 1 auto;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
}

.wag-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 50px;
}

.wag-logo::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at center, transparent 72%, rgba(0, 0, 0, 0.12));
    content: '';
    pointer-events: none;
}

.walking-description {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.walking-description p {
    margin-bottom: 0;
}

.walking-dogs-photo {
    position: relative;
    max-width: min(100%, 250px);
    max-height: 110px;
    flex: 0 0 auto;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
}

.walking-dogs-photo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 110px;
}

.walking-dogs-photo::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at center, transparent 72%, rgba(0, 0, 0, 0.12));
    content: '';
    pointer-events: none;
}

.pican-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pican-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 320px;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
}

.pican-photo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 320px;
}

.pican-photo::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at center, transparent 72%, rgba(0, 0, 0, 0.12));
    content: '';
    pointer-events: none;
}

.card h2 {
    margin-bottom: 0.15rem;
}

.card .meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.card ul {
    list-style: none;
    padding-left: 0.25rem;
}

.card ul li {
    padding-left: 1.1rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.card ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-dim);
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    border-radius: 4px;
    padding: 0.1rem 0.5rem;
    margin: 0.25rem 0.25rem 0 0;
}

/* ---------- Button ---------- */

.button {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.button:hover {
    background: var(--accent);
    color: var(--bg);
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}
