@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Space+Mono&display=swap");

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

/* Vars */

:root {
    --white: #EEEEEE;
    --offwhite: #D0D0D0;
    --black: #000000;
    --offblack: #191919;
    --magenta: #E53AA3;
    --magenta-light: #ff7bcc;
    --red: #F93C31;
    --blue: #1E93FF;
    --blue-light: #87D8F1;
    --yellow: #FFDC00;
    --orange: #FF851B;
    --maroon: #921231;
    --green: #4FCC30;
    --gray: #555555;
    --gray-light: #999999;
    --max-width: 1028px;
    --font-mono: 'Space Mono', monospace;
}

body {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--black);
    color: var(--offwhite);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
}

/* Three.js canvas background */
#canvas-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Main container wrapper with fixed max-width */
.container {
    max-width: 900px;  
    margin: 0 auto;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Content wrapper with gradient background */
.content-wrapper {
    background: rgba(0, 0, 0, 0.88);
    min-height: 100vh;
    padding: 0 30px;
    box-shadow: 0 0 100px 50px rgba(0, 0, 0, 0.88);
}

/* Navigation */
/* nav {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}*/

nav {
    position: sticky;
    top: 0;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.2rem;
    font-weight: 500;
}

.logo-gradient {
    font-size: 1.2rem;
    font-weight: 500;
    background: linear-gradient(90deg, #888 0%, #888 40%, #fff 50%, #888 60%, #888 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation-name: logo-shimmer;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    padding: 3rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 3rem;
    align-items: start;
}

.hero-text {
    flex: 1;
}

h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards;
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    animation-fill-mode: both;
}

.hero-description {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s forwards;
    animation-fill-mode: both;
}

/* Profile Sidebar */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeInUp 1s ease 0.6s forwards;
    animation-fill-mode: both;
}

.profile-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.info-item i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    margin-top: 0.15rem;
    min-width: 15px;
}

.info-item a {
    color: var(--blue-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--blue);
}

.info-item span {
    color: rgba(255, 255, 255, 0.7);
}

.profile-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.profile-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.profile-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--blue-light);
    transform: translateY(-3px);
}



/* News Section */
.news {
    padding: 2rem 0;
}

.news .section-title{
    animation: fadeInUp 1s ease 0.6s forwards;
    animation-fill-mode: both;
}

.news-list {
    margin-top: 1rem;
    animation: fadeInUp 1s ease 0.7s forwards;
    animation-fill-mode: both;
}


.news-item {
    display: flex;
    gap: 2rem;
    padding: 0;
    margin-bottom: 1rem;
    border-bottom: none;
}


.news-date {
    flex-shrink: 0;
    width: 100px;
    font-weight: 600;
    font-size: 1rem;
}

.news-content {
    flex: 1;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-date {
        width: auto;
    }
}


/* Research Areas */
.research-areas {
    padding: 2rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.6s forwards;
    animation-fill-mode: both;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    animation: fadeInUp 1s ease 1.0s forwards;
    animation-fill-mode: both;
}

.research-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.research-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.research-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.research-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact section */
.contact {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: #fff;
}

.gradient-text {
    color: rgba(255, 255, 255, 0.6);
    background: -webkit-gradient(linear, left top, right top, from(#222), to(#222), color-stop(0.5, #CCC));
    background: -moz-gradient(linear, left top, right top, from(#222), to(#222), color-stop(0.5, #CCC));
    background: gradient(linear, left top, right top, from(#222), to(#222), color-stop(0.5, #CCC));
    background-size: 50px 100%;
    background-clip: text;
    animation-name: shimmer;
    animation-delay: -2s;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-color: #222;
}

@keyframes shimmer {
    0% {
        background-position: top left;
    }
    100% {
        background-position: top right;
    }
}

@keyframes logo-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Additional styles for new sections */

/* Inline link styling */
.inline-link {
    color: var(--blue-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(135, 216, 241, 0.3);
    transition: all 0.3s ease;
}

.inline-link:hover {
    color: var(--blue);
    border-bottom-color: var(--blue);
}


/* Research vision text */
.research-vision {
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    animation: fadeInUp 1s ease 0.8s forwards;
    animation-fill-mode: both;
}

.research-vision p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Research card enhancements */
.research-number {
    font-size: 3rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.research-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.research-tools span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-mono);
}

/* Research highlight section */
.research-highlight {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(30, 147, 255, 0.05);
    border: 1px solid rgba(30, 147, 255, 0.2);
    border-radius: 8px;
    animation: fadeInUp 1s ease 1.2s forwards;
    animation-fill-mode: both;
}

.research-highlight h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    font-weight: 400;
}

.project-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.project-content h4 a {
    color: var(--blue-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-content h4 a:hover {
    color: var(--blue);
}

.project-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Publications section */
.publications {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.section-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.publication-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 2rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.6s ease;
}

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

.publication-item:hover {
    transform: translateX(5px);
}

.pub-year {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: -0.2rem;
    padding-top: 0rem;
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    margin-top: -0.5rem;
    margin-bottom: 0.2rem;
    line-height: 1.4;
}

.pub-authors {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.2rem;
}

.pub-venue {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.pub-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

.pub-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--blue-light);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    background: rgba(30, 147, 255, 0.1);
    border: 1px solid rgba(30, 147, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-style: normal;
}

.pub-links a:hover {
    background: rgba(30, 147, 255, 0.15);
    border-color: rgba(30, 147, 255, 0.4);
    color: var(--blue);
    transform: translateY(-1px);
}

.pub-links i {
    font-size: 0.8rem;
}

.publications-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem 0;
}

.no-publications {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem 0;
}

.view-more {
    margin-top: 1.5rem;
    text-align: center;
}

.subtle-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.subtle-link:hover {
    color: var(--blue-light);
}

/* Talks section */
.talks {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.talks-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.talk-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.talk-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.talk-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 0.2rem;
}

.talk-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.talk-venue {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Contact section enhancements */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
}

.contact-item a {
    color: var(--blue-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-item span {
    color: rgba(255, 255, 255, 0.7);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
}

.contact-link {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 2rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

/* Blog page styles */
.blog-page {
    padding: 3rem 0;
}

.page-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease forwards;
}

.page-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    animation-fill-mode: both;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 3rem 0;
    font-size: 1.1rem;
}

.no-posts {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.no-posts p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.blog-instruction {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.blog-instruction-list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    padding-left: 2rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.blog-instruction-list code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.blog-post-preview {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.blog-post-preview:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.blog-post-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    gap: 2rem;
}

.blog-post-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin: 0;
}

.blog-post-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.blog-post-excerpt {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: var(--blue);
    gap: 0.8rem;
}

.blog-read-more i {
    font-size: 0.8rem;
}

/* Individual blog post page */
.blog-post-back {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease forwards;
}

.blog-post-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-post-back a:hover {
    color: var(--blue-light);
}

.blog-post-full {
    padding: 3rem 0;
    animation: fadeInUp 1s ease 1s forwards;
    animation-fill-mode: both;
}

#blog-post-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

#blog-post-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--white);
}

#blog-post-content h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

#blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

#blog-post-content p {
    margin-bottom: 1.5rem;
}

#blog-post-content a {
    color: var(--blue-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(135, 216, 241, 0.3);
    transition: all 0.3s ease;
}

#blog-post-content a:hover {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

#blog-post-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--blue-light);
}

#blog-post-content pre {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

#blog-post-content pre code {
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}

#blog-post-content blockquote {
    border-left: 3px solid rgba(135, 216, 241, 0.5);
    padding-left: 2rem;
    margin: 2rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

#blog-post-content ul, #blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

#blog-post-content li {
    margin-bottom: 0.5rem;
}

#blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.error {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.error h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.error a {
    color: var(--blue-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.error a:hover {
    color: var(--blue);
}

/* Responsive design - maintain fixed width until mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    /* Mobile Navigation */
    nav {
        padding: 0.8rem 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-gradient {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        padding-bottom: 0.8rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 0.8rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1.8rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .content-wrapper {
        padding: 0 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-sidebar {
        max-width: 240px;
        margin: 0 auto;
    }
    
    .publication-item {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
    }
    
    .talk-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .research-tools {
        font-size: 0.75rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .blog-post-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-post-title {
        font-size: 1.3rem;
    }
    
    #blog-post-content h1 {
        font-size: 2rem;
    }
    
    #blog-post-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .container {
        max-width: 100%;
    }
    
    .content-wrapper {
        background: rgba(0, 0, 0, 0.95);
        padding: 0 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-sidebar {
        order: -1;
    }
}

@media (max-width: 480px) {
    .logo-gradient {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 1.3rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        letter-spacing: 0.3px;
    }
}

/* Very small screens - stack navigation vertically */
@media (max-width: 360px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .nav-links a::after {
        display: none;
    }
}

