:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: #18181b;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --border: #27272a;
    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* Gradient orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 20px); }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

nav.scrolled {
    border-bottom-color: var(--border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 60px;
    align-items: start;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 180px;
    height: 220px;
    background: var(--gradient-2);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, var(--bg-primary) 100%);
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Instrument Serif', serif;
    font-size: 4rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.hero-text {
    padding-top: 20px;
}

.hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-subtitle span {
    color: var(--accent);
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-description + .hero-description {
    margin-top: 16px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Instrument Serif', serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

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

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 48px;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Research Section */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.research-card.span-2 {
    grid-column: span 2;
}

.research-card.span-2 .research-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.research-card.span-2 .research-text {
    display: flex;
    flex-direction: column;
}

.research-video {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    position: relative;
    cursor: pointer;
}

.research-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.research-video:hover img {
    opacity: 0.85;
}

.research-video .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.research-video:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.research-video .play-button svg path:first-child {
    transition: fill-opacity 0.2s ease;
}

.research-video:hover .play-button svg path:first-child {
    fill: #ff0000;
    fill-opacity: 1;
}

.research-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.research-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.research-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
}

.research-card:hover::before {
    opacity: 1;
}

.research-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.research-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 12px;
    color: var(--accent);
}

.research-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0;
}

.research-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* News Section */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-year-group {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.news-year-group:first-child {
    padding-top: 0;
}

.news-date {
    font-family: 'Instrument Serif', serif;
    font-size: 1.25rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.news-year-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    transition: all 0.2s ease;
}

.news-item:hover {
    padding-left: 12px;
}

.news-content h4 {
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 1rem;
}

.news-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.news-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-left: 8px;
}

/* Publications Section */
.publications-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-year-group {
    margin-bottom: 32px;
}

.pub-year {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.pub-year-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-style: italic;
}

.pub-item {
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.pub-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(4px);
}

.pub-title {
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pub-venue {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pub-venue strong {
    color: var(--accent);
    font-weight: 500;
}

.pub-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.pub-link {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

/* Experience Section */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.timeline-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.timeline-company {
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-content {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-image-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        width: 200px;
        height: 240px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .research-card.span-2 {
        grid-column: span 1;
    }

    .research-card.span-2 .research-card-content {
        grid-template-columns: 1fr;
    }

    .research-video {
        order: -1;
    }

    .news-year-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .news-date {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }
}
