/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050508;
    --bg-elevated: rgba(255, 255, 255, 0.03);
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --text: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-tertiary: #8888a0;
    --accent: #7c8aff;
    --accent-hover: #9ba6ff;
    --accent-subtle: rgba(124, 138, 255, 0.08);
    --accent-border: rgba(124, 138, 255, 0.15);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --font-body: 'Inter', -apple-system, system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

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

::selection {
    background: rgba(124, 138, 255, 0.25);
    color: #fff;
}

/* ===== Particle Canvas ===== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 64px;
    background: rgba(5, 5, 8, 0.6);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

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

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-tertiary);
    font-weight: 450;
    font-size: 0.875rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--text);
    background: var(--bg-card);
}

.nav-links a.active {
    color: var(--text);
    background: var(--bg-card-hover);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.hero-content {
    max-width: 640px;
    background: rgba(5, 5, 8, 0.55);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
}

.hero-headshot {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.75rem;
    border: 1px solid var(--accent-border);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45), 0 0 0 4px var(--accent-subtle);
}

.hero h1 {
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.75rem;
    letter-spacing: 0.01em;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-tertiary);
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    cursor: pointer;
    background: transparent;
    transition: opacity 0.4s ease, border-color var(--transition);
}

.scroll-indicator:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator-dot {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    margin: 8px auto 0;
    animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(14px); opacity: 0.2; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    letter-spacing: -0.005em;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(124, 138, 255, 0.25);
}

.btn-outline {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-card-hover);
    color: var(--text);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* ===== Highlights Section ===== */
.highlights {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 1000px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.highlight-card {
    background: var(--bg);
    padding: 2.25rem 2rem;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.highlight-card:hover {
    background: var(--bg-card);
}

.highlight-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.highlight-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.highlight-card p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    line-height: 1.65;
}

/* ===== Page Content (CV, Research, Contact) ===== */
.page-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

.page-title {
    font-family: var(--font-body);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.page-subtitle {
    color: var(--text-tertiary);
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* ===== CV Sections ===== */
.cv-section {
    margin-bottom: 3rem;
}

.cv-section h2 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.cv-entry {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.cv-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cv-date {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    font-weight: 450;
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
}

.cv-details h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.cv-details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.cv-note {
    margin-top: 0.2rem;
    color: var(--text-tertiary) !important;
    font-size: 0.85rem !important;
}

.cv-full-width {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.research-highlights-list {
    list-style: none;
    padding: 0;
}

.research-highlights-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.85rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.research-highlights-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    background: var(--accent-subtle);
    color: var(--accent);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 450;
    border: 1px solid var(--accent-border);
    transition: all var(--transition);
}

.tag:hover {
    background: rgba(124, 138, 255, 0.12);
}

/* ===== Research Page ===== */
.research-area {
    margin-bottom: 4rem;
    scroll-margin-top: 5rem;
    padding-left: 1.25rem;
    border-left: 3px solid var(--border);
}

.research-area--climate { border-left-color: #34d399; }
.research-area--astro   { border-left-color: #7c8aff; }
.research-area--cosmo   { border-left-color: #fbbf24; }
.research-area--turb    { border-left-color: #f87171; }
.research-area--dataviz { border-left-color: #c084fc; }

.research-area h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.research-area > p {
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    font-size: 0.925rem;
    line-height: 1.7;
}

.figure-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: border-color var(--transition);
}

.figure-container:hover {
    border-color: var(--border-hover);
}

.figure-container h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.figure-caption {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.figure-caption code {
    background: var(--accent-subtle);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.plotly-figure {
    width: 100%;
    min-height: 400px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.gallery-placeholder {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 2rem 1rem;
    text-align: center;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.gallery-placeholder:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.gallery-placeholder span {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
}

.gallery-placeholder p {
    color: var(--text-tertiary);
    font-size: 0.7rem;
}

/* ===== AR Figure Layout ===== */
.ar-figure-layout {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.ar-figure-interactive {
    flex: 1;
    min-width: 0;
}

.ar-figure-qr {
    flex: 0 0 160px;
    text-align: center;
}

.ar-figure-qr img {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-sm);
}

.ar-figure-qr p {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .ar-figure-layout {
        flex-direction: column;
    }
    .ar-figure-qr {
        flex: none;
    }
}

/* ===== Iframe Loader ===== */
.iframe-wrap {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.iframe-load-btn {
    display: block;
    width: 100%;
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border: 1px dashed var(--accent-border);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.iframe-load-btn:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
}

.landscape-hint {
    display: none;
}

@media (pointer: coarse) {
    .landscape-hint {
        display: block;
        font-size: 0.75rem;
        font-weight: 400;
        color: var(--text-tertiary);
        margin-top: 0.4rem;
    }
}

/* ===== Static Figures ===== */
.static-figure {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.static-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* ===== Publication Lists ===== */
.pub-list {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.pub-list h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.pub-list ul {
    list-style: none;
}

.pub-list li {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.pub-list li a {
    color: var(--accent);
    font-weight: 500;
}

.pub-list li em {
    color: var(--text-tertiary);
    font-style: italic;
}

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color var(--transition);
}

.contact-card:hover {
    border-color: var(--border-hover);
}

.contact-card h3 {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

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

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
    background: rgba(255, 255, 255, 0.04);
}

.form-group textarea {
    resize: vertical;
}

/* ===== Simulation Info Panel ===== */
.sim-info-toggle {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0 auto 3rem;
    padding: 0.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-tertiary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 450;
    cursor: pointer;
    transition: all var(--transition);
}

.sim-info-toggle:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.sim-info-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.sim-info-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.sim-info-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 201;
    width: min(520px, 90vw);
    background: #0a0a12;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sim-info-panel.open {
    transform: translateX(0);
}

.sim-info-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.sim-info-close:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.sim-info-panel h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    padding-right: 2.5rem;
    color: #f0f0f5;
}

.sim-info-panel > p {
    color: #c0c0d0;
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

/* Live stats row */
.sim-stats {
    display: flex;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.sim-stat {
    flex: 1;
    background: var(--bg-card);
    padding: 0.85rem 0.75rem;
    text-align: center;
}

.sim-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.sim-stat-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
}

/* Controls section */
.sim-controls {
    margin-bottom: 1.75rem;
}

.sim-controls h3,
.sim-flow-viz h3,
.sim-physics h3 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.sim-control-group {
    margin-bottom: 1rem;
}

.sim-control-group label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.825rem;
    font-weight: 500;
    color: #d0d0e0;
    margin-bottom: 0.4rem;
}

.sim-control-hint {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 400;
    font-style: italic;
}

/* Custom range slider */
.sim-control-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.sim-control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: box-shadow var(--transition);
}

.sim-control-group input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 4px var(--accent-subtle);
}

.sim-control-group input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

/* Theme buttons */
.sim-theme-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.sim-theme-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-tertiary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.sim-theme-btn:hover {
    color: var(--text-secondary);
    border-color: var(--border-hover);
}

.sim-theme-btn.active {
    background: var(--accent-subtle);
    color: var(--accent);
    border-color: var(--accent-border);
}

/* Flow field visualizer */
.sim-flow-viz {
    margin-bottom: 1.75rem;
}

.sim-flow-viz-caption {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

#flow-field-canvas,
#power-spectrum-canvas,
#energy-map-canvas {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: block;
}

/* Physics text */
.sim-physics {
    margin-bottom: 1rem;
}

.sim-physics h3 {
    margin-top: 1.5rem;
}

.sim-physics h3:first-child {
    margin-top: 0;
}

.sim-physics p {
    color: #c0c0d0;
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.sim-physics ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.sim-physics li {
    color: #c0c0d0;
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 0.4rem;
}

.sim-physics strong {
    color: var(--text);
    font-weight: 600;
}

.sim-physics em {
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
}

.energy-map-colorbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.energy-map-gradient {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #050508, #1a1a2e, #2d1b69, #7c8aff, #ff9f60, #ffffcc);
}

/* ===== About Page ===== */
.about-header {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.about-photo {
    flex: 0 0 220px;
}

.about-photo img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.about-intro {
    flex: 1;
}

.about-intro .page-title {
    margin-bottom: 0.4rem;
}

.about-role {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 450;
    margin-bottom: 1.25rem;
}

.about-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.about-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 450;
    transition: all var(--transition);
}

.about-links a:hover {
    color: var(--accent);
    border-color: var(--accent-border);
    background: var(--accent-subtle);
}

.about-bio p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

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

@media (max-width: 768px) {
    .about-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .about-photo {
        flex: none;
    }

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

/* ===== Footer ===== */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2.5rem 2rem;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}

/* ===== Fade-in Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1.25rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(20px);
        padding: 0.75rem 1.25rem;
        gap: 0.25rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

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

    .cv-entry {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

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

    .page-content {
        padding: 5rem 1rem 3rem;
        overflow-x: hidden;
    }

    .figure-container {
        padding: 1rem;
        overflow: hidden;
    }

    .figure-container iframe {
        max-width: 100%;
    }

    .pub-list li {
        font-size: 0.8rem;
        word-break: break-word;
    }

    .research-area {
        padding-left: 0.75rem;
    }
}
