:root {
    --bg-primary: #13131a;
    --bg-secondary: #1b1b24;
    --bg-card: #20202c;
    --accent: #cc7240;
    --accent-hover: #e08f5a;
    --text-primary: #dde1ea;
    --text-muted: #8a8fa8;
    --border: #2e2e3e;
    --nav-height: 60px;
}

/* Base */
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
}

/* Offset anchors for fixed nav */
section {
    scroll-margin-top: var(--nav-height);
}

/* Navbar */
.navbar {
    background-color: rgba(19, 19, 26, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    min-height: var(--nav-height);
    padding: 0 1rem;
}

.navbar-brand {
    font-weight: 600;
    color: var(--text-primary) !important;
    letter-spacing: 0.02em;
}

.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem !important;
    transition: color 0.2s;
}

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

/* Hero */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background-image:
        linear-gradient(
            to right,
            var(--bg-primary) 30%,
            rgba(19, 19, 26, 0.88) 52%,
            rgba(19, 19, 26, 0.45) 72%,
            rgba(19, 19, 26, 0.15) 100%
        ),
        url('../../images/nooks-crannies.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

.hero-name {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.2s;
    text-decoration: none;
}

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

.btn-cv {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.875rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    letter-spacing: 0.04em;
}

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

/* About */
#about {
    background-color: var(--bg-secondary);
    padding: 5rem 0;
}

.profile-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border);
    display: block;
    margin: 0 auto 1.5rem;
}

@media (min-width: 768px) {
    .profile-photo {
        width: 220px;
        height: 220px;
        margin: 0;
        position: sticky;
        top: calc(var(--nav-height) + 2rem);
    }
}

/* Sections */
#research { background-color: var(--bg-primary); padding: 5rem 0; }
#publications { background-color: var(--bg-secondary); padding: 5rem 0; }
#contact { background-color: var(--bg-primary); padding: 5rem 0; }

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2.5rem;
    padding: 0.25rem 0 0.75rem 1rem;
    border-left: 4px solid var(--accent);
    border-bottom: 1px solid var(--border);
}

/* Research */
.research-section {
    margin-bottom: 3rem;
}

.research-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.research-section p {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.repo-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.repo-link a {
    color: var(--accent);
    text-decoration: none;
    font-family: monospace;
    font-size: 0.9rem;
}

.repo-link a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Research dividers */
.research-section + .research-section {
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

/* Publications */
.publication {
    margin-bottom: 2.5rem;
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    border-left: 2px solid var(--accent);
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-card);
    border-radius: 0 4px 4px 0;
}

.publication:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.pub-citation {
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.pub-venue {
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.pub-abstract {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.pub-link a {
    color: var(--accent);
    font-size: 0.875rem;
    text-decoration: none;
}

.pub-link a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Contact */
.contact-item {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
}

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

/* Footer */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 1.25rem 0;
    text-align: center;
}

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