:root {
    --bg: #000000;
    --bg-card: #0a0a0a;
    --accent: #ff5555;
    --accent-dim: #aa3333;
    --text: #aaaaaa;
    --text-bright: #ffffff;
    --cyan: #55ffff;
    --yellow: #ffff55;
    --blue: #5555ff;
    --green: #55ff55;
    --magenta: #ff55ff;
    --red: #ff5555;
    --border: #555555;
    --border-dim: #333333;
}

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

body {
    font-family: 'VT323', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 24px;
    position: relative;
}

/* CRT scanline overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.12) 2px,
        rgba(0, 0, 0, 0.12) 4px
    );
    z-index: 9999;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 2px double var(--border);
}

.callsign {
    font-size: 6rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--cyan);
    text-shadow: 0 0 15px rgba(85, 255, 255, 0.3);
}

.op-name {
    font-size: 1.9rem;
    color: var(--text-bright);
    margin-top: 0.3rem;
}

.op-location {
    color: var(--text);
    font-size: 1.3rem;
    margin-top: 0.3rem;
}

.op-location span {
    margin: 0 0.4rem;
}

/* Sections */
section {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-dim);
}

section:last-child {
    border-bottom: none;
}

h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--yellow);
}

h2::before {
    content: '\2554\2550 ';
    color: var(--border);
}

h2::after {
    content: ' \2550\2557';
    color: var(--border);
}

p { margin-bottom: 1rem; }

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--text-bright);
    text-shadow: 0 0 6px rgba(85, 255, 255, 0.4);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--bg-card);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(85, 255, 255, 0.08);
}

.card h3 {
    font-size: 1.7rem;
    font-weight: 400;
    margin-bottom: 0.6rem;
    color: var(--green);
}

.card p {
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.card-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.card-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.2rem;
}

.card-links img {
    height: 22px;
    width: auto;
}

.card-langs {
    margin-top: 0.8rem;
    font-size: 1.2rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-langs a {
    font-size: 1.7rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.card-langs a:hover {
    transform: scale(1.3);
}

.card-credit {
    margin-top: 0.8rem;
    font-size: 1.1rem;
    color: var(--text);
    font-style: italic;
}

.btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--blue);
    color: var(--text-bright);
    border: none;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    transition: background 0.2s;
    cursor: pointer;
}
.btn:hover {
    background: var(--cyan);
    color: var(--bg);
}

/* Interests list */
.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.tag {
    background: transparent;
    padding: 0.2rem 0.7rem;
    font-size: 1.2rem;
    color: var(--magenta);
    border: 1px solid var(--border-dim);
    font-family: 'VT323', monospace;
}

/* Links section */
.link-list {
    list-style: none;
    margin-top: 1rem;
}

.link-list li {
    margin-bottom: 0.8rem;
}

.link-list li::before {
    content: '\25ba ';
    color: var(--red);
}

.link-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.link-list img {
    height: 24px;
    width: auto;
}

/* Ham projects grid */
.projects-list {
    list-style: none;
    margin-top: 1rem;
}

.projects-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-dim);
}

.projects-list li::before {
    content: '\25ba ';
    color: var(--green);
}

.projects-list li:last-child { border-bottom: none; }

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text);
    font-size: 1.2rem;
    border-top: 2px double var(--border);
}

footer .seventy-three {
    font-size: 1.9rem;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(85, 255, 255, 0.3);
    margin-bottom: 0.5rem;
}

/* GitHub logo for dark bg */
.gh-logo {
    filter: invert(1) brightness(0.7);
}

/* SVG icons */
svg {
    stroke: var(--yellow);
}

/* Responsive */
@media (max-width: 600px) {
    .callsign { font-size: 3.8rem; }
    .op-name { font-size: 1.5rem; }
    header { padding: 2rem 0 1.5rem; }
    section { padding: 1.8rem 0; }
    body { font-size: 21px; }
}
