/* RStudio Night Owl Dark Theme */
:root {
    --bg-primary: #011627;
    --bg-secondary: #01111d;
    --bg-tertiary: #012a4a;
    --text-primary: #d6deeb;
    --text-secondary: #637777;
    --text-muted: #5f7e97;
    --accent-green: #addb67;
    --accent-green-dim: #C5E478;
    --accent-cyan: #7fdbca;
    --accent-blue: #82aaff;
    --accent-purple: #c792ea;
    --accent-orange: #f78c6c;
    --border-color: #1d3b53;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 15px;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(1, 22, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--accent-green);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

.section:last-of-type {
    border-bottom: none;
}

/* Hero Section */
.hero {
    padding-top: 10rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 500;
}

.hero-text p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

.hero-text .intro {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.hero-image img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.hero-image img:hover {
    filter: grayscale(0%);
}

/* Prompt styling */
.prompt {
    color: var(--accent-green);
    margin-right: 0.5rem;
}

/* Headings */
h2 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 500;
}

h3 {
    font-size: 1rem;
    color: var(--accent-green-dim);
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 500;
}

h3:first-of-type {
    margin-top: 0;
}

/* Links */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Button */
.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background: var(--accent-green);
    color: var(--bg-primary);
}

/* Research Section */
.research-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent-green);
}

.research-list {
    list-style: none;
}

.research-list li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.bullet {
    color: var(--accent-green);
    margin-right: 0.75rem;
}

/* Publications */
.pub-category {
    margin-bottom: 2.5rem;
}

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

.pub-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.pub-citation {
    color: var(--text-secondary);
    display: block;
    line-height: 1.6;
}

.pub-citation em {
    color: var(--text-primary);
    font-style: italic;
}

.pub-citation a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pub-citation a:hover {
    color: var(--accent-green);
}

.pub-citation a:hover em {
    color: var(--accent-green);
}

/* Misc Section */
.misc-content {
    margin-bottom: 3rem;
}

.misc-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.media-list {
    list-style: none;
    margin-top: 1rem;
}

.media-list li {
    margin-bottom: 0.5rem;
}

.mountain-image {
    margin-top: 1.5rem;
    max-width: 500px;
}

.mountain-image img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Contact Section */
.contact-content {
    color: var(--text-secondary);
}

.email {
    margin-bottom: 2rem;
    font-size: 1rem;
}

.email .label {
    color: var(--text-muted);
}

.email .value {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.social-link:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.social-icon {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-green);
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero {
        padding-top: 8rem;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image {
        order: -1;
        max-width: 250px;
    }

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

    .section {
        padding: 4rem 0;
    }

    h2 {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .social-link {
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 0.8rem;
    }

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

    .container {
        padding: 0 1rem;
    }
}

/* Selection styling */
::selection {
    background: var(--accent-green);
    color: var(--bg-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
