/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Global link styles */
a {
    color: #006482;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-name {
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    color: #333;
}

a.nav-name:hover {
    color: #006482;
}

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

.nav-links a {
    text-decoration: none;
    color: #006482;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #004d61;
    text-decoration: underline;
}

/* Main Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

/* Hero Section */
.hero {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bio p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Sections */
h1, h2 {
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #222;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

/* News Section */
.news {
    margin-bottom: 2rem;
}

.news-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 1rem;
}

.news-list li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    padding-left: 1rem;
}

.date {
    font-weight: 500;
    color: #666;
    min-width: 80px;
    flex-shrink: 0;
}

/* Research Section */
.research {
    margin-bottom: 2rem;
}

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

.paper-list li {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    line-height: 1.8;
}

.paper-date {
    font-weight: 500;
    color: #666;
    margin-right: 0.5rem;
}

.paper-links {
    margin-right: 0.5rem;
}

.paper-links a {
    color: #006482;
    text-decoration: none;
    font-weight: 600;
}

.paper-links a:hover {
    text-decoration: underline;
}

.paper-title {
    font-weight: 600;
    color: #222;
    display: inline;
}

.paper-authors {
    color: #555;
    display: inline;
}

.paper-venue {
    color: #666;
    font-style: italic;
    display: inline;
    margin-left: 0.2rem;
}


.blog-link {
    font-size: 0.9rem;
    color: #666;
}

.blog-link a {
    color: #006482;
    text-decoration: none;
}

.blog-link a:hover {
    text-decoration: underline;
}

/* Mountains Page - Photo Grid */
.intro-text {
    margin-bottom: 2rem;
    color: #666;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.photo-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.photo-grid img:hover {
    transform: scale(1.02);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .bio p {
        text-align: left;
    }
    
    .container {
        padding: 7rem 1rem 3rem;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-links {
        font-size: 0.85rem;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
}