/* ── Palette ── */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #010409;
    --border: #21262d;
    --text-primary: #e6e6e6;
    --text-muted: #8b949e;
    --gold: #d4af37;
    --gold-dark: #c49b28;
    --terminal-dim: #484f58;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: sans-serif;
}

/* ── Navigation ── */
.navbar {
    background-color: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    color: var(--gold) !important;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-link {
    color: var(--text-muted) !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.interest-link-text {
    color: var(--text-primary);
    font-size: 1.3rem;
}

.interest-link-icon {
    color: var(--gold);
    font-size: 1.3rem;
    margin: 12px;
}

.nav-link.active,
.nav-link:hover {
    color: var(--gold) !important;
}

.nav-link.active {
    border-bottom: 1px solid var(--gold);
}

/* ── Section labels ── */
.section-label {
    font-size: 0.95rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

/* ── Terminal path ── */
.terminal-path {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--terminal-dim);
    margin-bottom: 0.75rem;
}

.terminal-path .prompt-diamond {
    color: var(--gold);
}

.terminal-path .prompt-branch {
    color: var(--gold);
}

/* ── Hero ── */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-attachment: fixed;
    background-color: var(--bg-primary);
    background-image: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.07), transparent 65%);
    z-index: 0;
}

#particles-js {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.18);
    object-fit: cover;
    margin-bottom: 1.25rem;
}

/* ── Project cards ── */
.project-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
    padding: 5px;
}

.project-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.18);
}

.project-card .card-img-top {
    border-radius: 6px;
    height: 160px;
    object-fit: cover;
}

/* ── Tech pills ── */
.tech-pill {
    display: inline-block;
    background-color: var(--border);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.7rem;
    padding: 2px 8px;
    color: var(--text-muted);
    margin: 2px;
}

.tech-pill.primary {
    color: var(--gold);
}

/* ── Interest cards ── */
.interest-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    transition: border-color 0.2s;
    display: block;
    text-decoration: none;
    color: inherit;
}

.interest-card:hover {
  border-color: var(--gold);
  color: inherit;
}

/* ── Section separators ── */
.section-block {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

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

/* ── Gold divider ── */
.gold-divider {
    width: 40px;
    height: 2px;
    background-color: var(--gold);
    margin: 0.75rem 0;
}

/* ── Buttons ── */
.btn-gold {
    background-color: var(--gold);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    }

.btn-gold:hover {
    background-color: var(--gold-dark);
    color: var(--bg-primary);
}

.btn-outline-dim {
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    background: transparent;
}

.btn-outline-dim:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Back link ── */
.back-link {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
}

.back-link:hover {
    color: var(--gold);
}

.back-link .arrow {
    color: var(--gold);
}

/* ── Highlights list ── */
.highlights-list {
    list-style: none;
    padding: 0;
}

.highlights-list li::before {
    content: "▸ ";
    color: var(--gold);
    font-family: monospace;
}

/* ── Status badge ── */
.status-badge {
    display: inline-block;
    background-color: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.7rem;
    padding: 2px 10px;
    color: var(--text-muted);
}

/* ── Typed cursor ── */
.typed-cursor {
    color: var(--gold);
}

/* ── Subtitle dropdown ── */
.subtitle-swap-wrapper {
    position: relative;
    display: inline-block;
}

#subtitle-dynamic {
    color: var(--gold);
    border-bottom: 1px dashed var(--gold);
    padding-bottom: 1px;
}

.subtitle-dropdown {
    display: block;
    position: absolute;
    left: 0;
    top: calc(100% + 5px);
    min-width: 240px;
    background-color: #161b22;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.22s ease, opacity 0.18s ease;
    z-index: 100;
}

.subtitle-dropdown.open {
    max-height: 260px;
    opacity: 1;
}

.subtitle-dropdown-item {
    display: block;
    padding: 5px 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subtitle-dropdown-item.highlighted {
    background-color: var(--gold);
    color: var(--bg-primary);
    font-weight: 600;
}

/* ── Footer ── */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    font-size: 0.75rem;
    color: var(--terminal-dim);
    text-align: center;
}
