/* ═══════════════════════════════════════════
   CSS VARIABLES & RESET
   ═══════════════════════════════════════════ */
:root {
    --teal-deep: #002a3a;
    --teal-primary: #004159;
    --teal-mid: #005a7a;
    --teal-light: #007a9e;
    --teal-glow: #00b4d8;
    --trace-color: rgba(0, 180, 216, 0.15);
    --trace-bright: rgba(0, 180, 216, 0.35);
    --trace-node: rgba(0, 180, 216, 0.5);
    --text-primary: #e8e6e3;
    --text-secondary: #a8b2b9;
    --text-dim: #6b7d87;
    --accent-copper: #d4956a;
    --accent-gold: #c9a84c;
    --surface: rgba(0, 65, 89, 0.4);
    --surface-hover: rgba(0, 90, 122, 0.35);
    --border: rgba(0, 180, 216, 0.12);
    --sidebar-w: 280px;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    --font-serif: 'Source Serif 4', 'Georgia', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--teal-deep);
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   BACKGROUND CIRCUIT PATTERN
   ═══════════════════════════════════════════ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        /* Horizontal traces */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 80px,
            var(--trace-color) 80px,
            var(--trace-color) 81px
        ),
        /* Vertical traces */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 120px,
            var(--trace-color) 120px,
            var(--trace-color) 121px
        );
    pointer-events: none;
    z-index: -1;
    opacity: 0.25;
}

/* ═══════════════════════════════════════════
   GLOBAL LINK STYLING
   ═══════════════════════════════════════════ */
a {
    color: var(--teal-glow);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #4dd8f0;
}

/* Force all visited links to match unvisited — use !important to override browser defaults */
a:visited,
a:link {
    color: var(--teal-glow) !important;
}

a:hover {
    color: #4dd8f0 !important;
}

/* Sidebar nav links */
.nav-link:visited,
.nav-link:link {
    color: var(--text-secondary) !important;
}

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

/* Quick link buttons */
.quick-link:visited,
.quick-link:link {
    color: var(--text-secondary) !important;
    border-color: var(--border);
    background-color: var(--surface);
}

.quick-link:hover,
.quick-link:visited:hover {
    color: var(--teal-glow) !important;
    border-color: var(--teal-glow);
    background-color: rgba(0, 180, 216, 0.08);
}

/* Sidebar footer */
.sidebar-affil a:visited,
.sidebar-affil a:link {
    color: var(--text-dim) !important;
}

.sidebar-affil a:hover,
.sidebar-affil a:visited:hover {
    color: var(--teal-glow) !important;
}

/* Page footer */
.page-footer a:visited,
.page-footer a:link {
    color: var(--text-dim) !important;
}

.page-footer a:hover,
.page-footer a:visited:hover {
    color: var(--teal-glow) !important;
}

/* Publication entries */
.pub-entry a:visited,
.pub-entry a:link {
    color: var(--teal-light) !important;
}

.pub-entry a:hover,
.pub-entry a:visited:hover {
    color: var(--teal-glow) !important;
}

/* Publication link badges */
.pub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.pub-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.15s;
    line-height: 1.3;
}

.pub-badge:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.pub-badge:link,
.pub-badge:visited {
    text-decoration: none !important;
}

/* All badges share the same monochromatic theme */
.pub-badge,
.pub-badge:link,
.pub-badge:visited {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.3rem;
}

.pub-badge:hover,
.pub-badge:visited:hover {
    color: var(--teal-glow) !important;
    border-color: var(--teal-glow) !important;
    background: rgba(0, 180, 216, 0.08) !important;
}

.pub-badge svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
    flex-shrink: 0;
}

.badge-award {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    background: transparent !important;
    color: var(--accent-gold) !important;
    border: 1px solid var(--accent-gold) !important;
}

/* Ensure anchors wrapping a .badge-award do not override the badge styling */
a:has(.badge-award),
a:has(.badge-award):link,
a:has(.badge-award):visited {
    text-decoration: none !important;
    color: var(--accent-gold) !important;
}
a:has(.badge-award):hover .badge-award {
    background: rgba(255, 200, 50, 0.08) !important;
}

/* Contact items */
.contact-item a:visited,
.contact-item a:link {
    color: var(--text-secondary) !important;
}

.contact-item a:hover,
.contact-item a:visited:hover {
    color: var(--teal-glow) !important;
}

/* ═══════════════════════════════════════════
   SIDEBAR NAVIGATION
   ═══════════════════════════════════════════ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: linear-gradient(180deg, var(--teal-deep) 0%, #001a25 100%);
    border-right: 1px solid var(--border);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* PCB trace SVG decoration in sidebar */
.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* Vertical backbone trace */
        linear-gradient(
            180deg,
            transparent 0%,
            var(--trace-color) 5%,
            var(--trace-color) 95%,
            transparent 100%
        );
    background-size: 1px 100%;
    background-position: 40px 0;
    background-repeat: no-repeat;
    pointer-events: none;
}

.sidebar-brand {
    padding: 2.5rem 1.5rem 2rem 3.5rem;
    position: relative;
}

.sidebar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, var(--trace-bright), transparent);
}

.brand-name {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    display: block;
    line-height: 1.3;
    white-space: nowrap;
}

.brand-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--teal-glow);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.25rem;
    display: block;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
}

/* PCB node dot */
.nav-link::before {
    content: '';
    position: absolute;
    left: 36px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--trace-bright);
    background: var(--teal-deep);
    transition: all 0.3s ease;
}

/* Horizontal trace from backbone to label */
.nav-link::after {
    content: '';
    position: absolute;
    left: 44px;
    top: 50%;
    width: 16px;
    height: 1px;
    background: var(--trace-color);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.nav-link:hover::before,
.nav-link.active::before {
    background: var(--teal-glow);
    border-color: var(--teal-glow);
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
    background: var(--teal-glow);
    box-shadow: 0 0 4px rgba(0, 180, 216, 0.3);
}

.nav-label {
    margin-left: 1.5rem;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 1.5rem 1.5rem 1.5rem 3.5rem;
    border-top: 1px solid var(--border);
    position: relative;
}

.sidebar-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 40px;
    width: 1px;
    height: calc(100%);
    background: var(--trace-color);
}

.sidebar-affil {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 0.03em;
    line-height: 1.6;
}

.sidebar-affil a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-affil a:hover {
    color: var(--teal-glow);
}

/* ═══════════════════════════════════════════
   MOBILE MENU TOGGLE
   ═══════════════════════════════════════════ */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    width: 44px;
    height: 44px;
    background: var(--teal-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--teal-glow);
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 20, 30, 0.7);
    z-index: 90;
    backdrop-filter: blur(2px);
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
.main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.page-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 2.5rem 4rem;
}

/* ═══════════════════════════════════════════
   HERO / ABOUT SECTION
   ═══════════════════════════════════════════ */
.hero {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
    animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.portrait {
    width: 140px;
    height: 170px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

/* Placeholder when no image */
.portrait-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-text h1 {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    line-height: 1.3;
}

.hero-text .role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--teal-glow);
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.hero-text .affiliation {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* Quick links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--surface);
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.quick-link:hover {
    color: var(--teal-glow);
    border-color: var(--teal-glow);
    background: rgba(0, 180, 216, 0.08);
    box-shadow: 0 0 12px rgba(0, 180, 216, 0.1);
}

.quick-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   SECTION STYLING
   ═══════════════════════════════════════════ */
.section {
    margin-bottom: 3rem;
    animation: fadeUp 0.8s ease both;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.section-header::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--teal-glow);
    flex-shrink: 0;
}

.section-header h2 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal-glow);
}

.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.bio p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.bio p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   HIGHLIGHT CARDS
   ═══════════════════════════════════════════ */
.highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.highlight-card {
    padding: 1.25rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

a.highlight-card,
a.highlight-card:link,
a.highlight-card:visited {
    text-decoration: none !important;
    color: inherit !important;
}

.highlight-card:hover {
    border-color: rgba(0, 180, 216, 0.3);
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* PCB corner node */
.highlight-card::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--trace-node);
}

.highlight-card::after {
    content: '';
    position: absolute;
    top: 11px;
    right: 16px;
    width: 12px;
    height: 1px;
    background: var(--trace-color);
}

.highlight-value {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.highlight-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.4rem;
    line-height: 1.4;
}

.highlight-sub {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--teal-light);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* ═══════════════════════════════════════════
   RESEARCH THEMES
   ═══════════════════════════════════════════ */
.themes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.theme-item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.theme-item:last-child {
    border-bottom: none;
}

.theme-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--teal-glow);
    padding-top: 0.15rem;
    position: relative;
}

/* Vertical trace connecting theme numbers */
.theme-number::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 1.5rem;
    bottom: -1.25rem;
    width: 1px;
    background: var(--trace-color);
}

.theme-item:last-child .theme-number::after {
    display: none;
}

.theme-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.theme-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

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

.tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-dim);
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════
   PROJECT / CONTENT CARDS
   ═══════════════════════════════════════════ */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.card {
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 180, 216, 0.3);
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--trace-node);
}

.card::after {
    content: '';
    position: absolute;
    top: 11px;
    right: 16px;
    width: 12px;
    height: 1px;
    background: var(--trace-color);
}

.card h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.card .card-role {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--teal-glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card .card-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

/* Upcoming / planned cards */
.card.card-upcoming {
    opacity: 0.45;
    border-style: dashed;
}

.card.card-upcoming:hover {
    opacity: 0.7;
}

/* ═══════════════════════════════════════════
   LIST ITEMS (service, alumni, etc.)
   ═══════════════════════════════════════════ */
.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

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

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 1px;
    background: var(--teal-glow);
}

/* ═══════════════════════════════════════════
   TEAM TABLE
   ═══════════════════════════════════════════ */
.team-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.team-table th {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal-glow);
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.team-table td {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.team-table tr:hover td {
    background: var(--surface);
}

.team-table .name {
    font-weight: 600;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   PUBLICATION ENTRIES
   ═══════════════════════════════════════════ */
.pub-entry {
    padding: 1rem 1.25rem;
    border-left: 2px solid var(--border);
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}
.pub-entry:hover {
    border-left-color: var(--teal-glow);
}
.pub-entry .bold { font-weight: 600; }
.pub-entry .italic { font-style: italic; }
.pub-entry u { text-decoration-color: var(--teal-glow); }
.pub-entry a { color: var(--teal-light); }
.pub-entry a:hover { color: var(--teal-glow); }

/* ═══════════════════════════════════════════
   CONTACT INFO
   ═══════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-item {
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.contact-item h3 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal-glow);
    margin-bottom: 0.5rem;
}

.contact-item p,
.contact-item a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-item a {
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--teal-glow);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.page-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-footer a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.page-footer a:hover {
    color: var(--teal-glow);
}

/* ═══════════════════════════════════════════
   DECORATIVE: ANIMATED PCB NODE
   ═══════════════════════════════════════════ */
.pcb-decoration {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    z-index: 10;
    opacity: 0.3;
    pointer-events: none;
}

.pcb-decoration circle {
    fill: none;
    stroke: var(--teal-glow);
    stroke-width: 0.5;
}

.pcb-decoration .outer {
    animation: pcbPulse 4s ease-in-out infinite;
}

.pcb-decoration .inner {
    fill: var(--teal-glow);
    opacity: 0.4;
}

.pcb-decoration line {
    stroke: var(--teal-glow);
    stroke-width: 0.5;
    opacity: 0.4;
}

@keyframes pcbPulse {
    0%, 100% { opacity: 0.3; r: 12; }
    50% { opacity: 0.6; r: 14; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
    .highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }

    .sidebar-overlay.open {
        display: block;
    }

    .main {
        margin-left: 0;
    }

    .page-content {
        padding: 5rem 1.25rem 3rem;
    }

    .hero {
        grid-template-columns: 100px 1fr;
        gap: 1.25rem;
    }

    .portrait {
        width: 100px;
        height: 125px;
    }

    .hero-text h1 {
        font-size: 1.2rem;
    }

    .highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .highlight-value {
        font-size: 1.1rem;
    }

    .theme-item {
        grid-template-columns: 2rem 1fr;
        gap: 0.75rem;
    }

    .pcb-decoration {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .portrait {
        width: 100px;
        height: 125px;
        margin: 0 auto;
    }

    .quick-links {
        justify-content: center;
    }

    .highlights {
        grid-template-columns: 1fr 1fr;
    }

    .page-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════ PUBLICATIONS VIEW TOGGLE ═══════════════════════ */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.view-toggle button {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle button:hover {
    color: var(--teal-glow);
    border-color: var(--teal-glow);
}

.view-toggle button.active {
    color: var(--teal-glow);
    border-color: var(--teal-glow);
    background: rgba(0, 180, 216, 0.08);
}
