:root {
    --bg: #05070b;
    --bg-alt: #0b1018;
    --card-bg: #101623;
    --accent: #1e90ff;
    --accent-soft: rgba(30, 144, 255, 0.15);
    --text: #e5e9f0;
    --muted: #8b9bb5;
    --border: #1f2937;
    --link: #60a5fa;
    --link-hover: #93c5fd;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: radial-gradient(circle at top, #0b1220 0, #020617 45%, #000 100%);
    color: var(--text); font-family: var(--font-main); min-height: 100vh; font-size: 16px;
}
a { color: var(--link); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--link-hover); text-decoration: underline; }
.layout { max-width: 1500px; margin: 0 auto; padding: 40px 40px 80px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.brand-title { font-size: 26px; font-weight: 700; letter-spacing: 0.08em; color: var(--text); }
.brand-subtitle { font-size: 14px; color: var(--muted); }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a {
    padding: 8px 14px; border-radius: 999px; border: 1px solid transparent;
    color: var(--text); text-decoration: none;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.nav a.active, .nav a:hover {
    border-color: var(--accent-soft); background: rgba(15,23,42,0.9);
    color: var(--text); text-decoration: none;
}
.page-header { margin-bottom: 40px; }
.page-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 6px; }
.page-title { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.page-subtitle { font-size: 17px; color: var(--muted); line-height: 1.7; }
.page-subtitle a { color: var(--link); }
.page-subtitle a:hover { color: var(--link-hover); }
.grid, .project-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 28px; margin-top: 20px;
}
.card {
    background: linear-gradient(145deg, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
    border-radius: 14px; border: 1px solid var(--border);
    padding: 22px 22px 26px; box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}
.card-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.card-meta { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.card-body { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.card-footer a { color: var(--link); font-weight: 500; }
.card-footer a:hover { color: var(--link-hover); }
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
    border-radius: 999px; background: rgba(15,23,42,0.9);
    border: 1px solid var(--accent-soft); color: var(--accent); font-size: 12px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .twocol { grid-template-columns: 1fr; } }
.section { margin-bottom: 32px; }
.section-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.section-body { font-size: 16px; color: var(--muted); line-height: 1.7; }
.section-body a { color: var(--link); }
.section-body a:hover { color: var(--link-hover); }
ul.clean { list-style: none; padding-left: 0; }
ul.clean li { margin-bottom: 12px; font-size: 15px; line-height: 1.65; padding-left: 6px; color: var(--muted); }
ul.clean a { color: var(--link); }
ul.clean a:hover { color: var(--link-hover); }
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 900px) { .resume-grid { grid-template-columns: 1fr; } }
.resume-heading { font-size: 22px; font-weight: 800; margin-bottom: 14px; letter-spacing: 0.4px; }
.resume-item { margin-bottom: 32px; }
.resume-item-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.resume-item-meta { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.resume-item-body { font-size: 15px; color: var(--muted); line-height: 1.65; }
.resume-item-body a { color: var(--link); }
.build-section { margin-bottom: 44px; }
.build-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.build-section p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.build-section ul { list-style: none; padding: 0; }
.build-section ul li {
    font-size: 15px; color: var(--muted); line-height: 1.7;
    padding: 8px 0 8px 14px; border-left: 2px solid var(--border); margin-bottom: 6px;
}
.build-section ul li strong { color: var(--text); }
.footer { margin-top: 50px; font-size: 13px; color: var(--muted); opacity: 0.7; }
.footer-flex {
    display: flex; justify-content: space-between; align-items: center;
    text-align: left; flex-wrap: wrap; gap: 10px;
}
.pihole-badge {
    display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px;
    border-radius: 999px; background: rgba(15,23,42,0.9); border: 1px solid var(--border);
    font-size: 12px; color: var(--muted); white-space: nowrap;
}
.pihole-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
    display: inline-block; transition: background 0.4s, box-shadow 0.4s;
}
.download-btn {
    display: inline-block; margin-top: 18px; padding: 10px 22px; border-radius: 999px;
    border: 1px solid var(--accent-soft); background: rgba(30,144,255,0.08);
    color: var(--accent); font-size: 14px; font-weight: 600;
    letter-spacing: 0.03em; text-decoration: none; transition: background 0.2s, border-color 0.2s;
}
.download-btn:hover { background: rgba(30,144,255,0.18); border-color: var(--accent); text-decoration: none; color: var(--accent); }

/* Pi-hole Feature Highlight — BLUE VERSION */
.pihole-feature {
    border: 1px solid rgba(30,144,255,0.35);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30,144,255,0.06) 0%, rgba(15,23,42,0.97) 60%);
    box-shadow: 0 0 40px rgba(30,144,255,0.08), 0 18px 40px rgba(0,0,0,0.5);
    padding: 36px 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.pihole-feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(30,144,255,0.55), transparent);
}
.pihole-feature-inner {
    display: flex;
    align-items: center;
    gap: 48px;
}
@media (max-width: 700px) {
    .pihole-feature-inner { flex-direction: column; gap: 24px; }
    .pihole-feature-right { text-align: center; }
}
.pihole-feature-left { flex: 1; }
.pihole-feature-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}
.pihole-feature-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.pihole-feature-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.75;
}
.pihole-feature-right {
    flex-shrink: 0;
    text-align: right;
    min-width: 200px;
}
.pihole-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(30,144,255,0.4);
    background: rgba(30,144,255,0.08);
    margin-bottom: 16px;
}
.pihole-live-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
}
.pihole-live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #666;
    transition: background 0.4s, box-shadow 0.4s;
}
.pihole-live-dot.live {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(30,144,255,0.7);
    animation: pulse-blue 2s infinite;
}
@keyframes pulse-blue {
    0%, 100% { box-shadow: 0 0 6px rgba(30,144,255,0.7); }
    50% { box-shadow: 0 0 14px var(--accent); }
}
.pihole-count {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    opacity: 0.4;
    transition: opacity 0.6s;
}
.pihole-count.loaded { opacity: 1; }
.pihole-count-label {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}
/* Pi-hole Feature Highlight */
.pihole-feature {
    border: 1px solid rgba(30,144,255,0.35);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30,144,255,0.06) 0%, rgba(15,23,42,0.97) 60%);
    box-shadow: 0 0 40px rgba(30,144,255,0.08), 0 18px 40px rgba(0,0,0,0.5);
    padding: 36px 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.pihole-feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(30,144,255,0.55), transparent);
}
.pihole-feature-inner {
    display: flex;
    align-items: center;
    gap: 48px;
}
@media (max-width: 700px) {
    .pihole-feature-inner { flex-direction: column; gap: 24px; }
    .pihole-feature-right { text-align: center; }
}
.pihole-feature-left { flex: 1; }
.pihole-feature-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}
.pihole-feature-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.pihole-feature-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.75;
}
.pihole-feature-right {
    flex-shrink: 0;
    text-align: right;
    min-width: 200px;
}
.pihole-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(30,144,255,0.4);
    background: rgba(30,144,255,0.08);
    margin-bottom: 16px;
}
.pihole-live-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
}
.pihole-live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239,68,68,0.7);
    animation: pulse-red 2s infinite;
    transition: background 0.4s, box-shadow 0.4s;
}
.pihole-live-dot.live {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239,68,68,0.8);
}
@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 6px rgba(239,68,68,0.7); }
    50% { box-shadow: 0 0 14px #ef4444; }
}
.pihole-count {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    opacity: 0.4;
    transition: opacity 0.6s;
}
.pihole-count.loaded { opacity: 1; }
.pihole-count-label {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}
