@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --bg-color: #dddddd;
    --text-color: #111827;
    /* Rich dark grey */
    --text-muted: #233c5f;
    /* Premium slate grey */
    --primary: #136a92;
    /* Emerald Green */
    --primary-hover: #114b6d;
    /* Darker Emerald */
    --secondary: #208df3;
    /* Teal */
    --border-color: #d3d3d3;
    --light-bg: #949494;
    --surface-color: #e6e6e6;
    --max-width: 900px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

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

html {
    scroll-behavior: smooth;
    border-top: 4px solid transparent;
    border-image: linear-gradient(to right, var(--primary), var(--secondary)) 1;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Background gradient orbs */
body::before {
    content: '';
    position: fixed;
    top: -20vh;
    left: 10vw;
    width: 50vw;
    height: 50vh;
    background: radial-gradient(circle, rgba(19, 106, 146, 0.05) 0%, rgba(253, 253, 253, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20vh;
    right: 10vw;
    width: 40vw;
    height: 40vh;
    background: radial-gradient(circle, rgba(32, 141, 243, 0.05) 0%, rgba(253, 253, 253, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Headings with Serif */
h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 0;
    background: rgba(151, 166, 187, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

#navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
}

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

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

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

/* Layout */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 2rem 0;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 0 6rem;
    gap: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #111;
    line-height: 1.1;
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

.contact-info {
    list-style: none;
    margin-bottom: 2.5rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.contact-info li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info li a:hover {
    color: var(--text-color);
}

.contact-info i {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.avatar-container {
    flex-shrink: 0;
    position: relative;
}

.avatar-container::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    z-index: -1;
}

.avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--surface-color);
}

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

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.icon-link i {
    font-size: 1.35rem;
}

.icon-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--text-color);
    border-color: var(--text-color);
}

/* Main sections */
.content-section {
    display: flex;
    flex-direction: column;
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    margin-bottom: 3.5rem;
    gap: 1.5rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(to right, rgba(6, 49, 128, 0.74), transparent);
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.text-block p {
    margin-bottom: 1.25rem;
    color: #333;
    font-size: 1.05rem;
}

.entry {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2rem;
    position: relative;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 0.25rem;
    font-family: 'Inter', sans-serif;
}

.entry-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.entry-details h4 {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.details-list {
    list-style: none;
    color: #444;
    font-size: 0.95rem;
}

.details-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    padding-left: 1.25rem;
    position: relative;
}

.details-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skills-tags span {
    padding: 0.4rem 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.skills-tags span:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Publications */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pub-card {
    display: block;
    text-decoration: none;
    padding: 1.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.pub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px -4px rgba(19, 106, 146, 0.15);
    border-color: rgba(19, 106, 146, 0.3);
}

.pub-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}

.pub-card:hover h4 {
    color: var(--primary);
}

.authors {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.venue {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

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

.honors-list li {
    padding: 1.25rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #333333;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.honors-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(19, 106, 146, 0.2);
}

.honors-list li::before {
    content: '🏆';
    font-size: 1.25rem;
    line-height: 1.2;
    filter: grayscale(50%) opacity(1);
}

/* Animations - Ensure crisp loading */
.content-section,
.hero {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.content-section:nth-child(1) {
    animation-delay: 0.1s;
}

.content-section:nth-child(2) {
    animation-delay: 0.2s;
}

.content-section:nth-child(3) {
    animation-delay: 0.3s;
}

footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .nav-content {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    #navbar {
        padding: 1rem 0;
    }
    
    main {
        padding-top: 110px;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 2rem 0 4rem;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero .tagline {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .contact-info li {
        justify-content: center;
        flex-wrap: wrap;
        font-size: 0.9rem;
    }

    .avatar-container::after {
        display: none;
    }

    .avatar {
        width: 150px;
        height: 150px;
    }

    .social-links {
        justify-content: center;
    }

    .content-section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
        justify-content: center;
    }
    
    .section-title::after {
        display: none;
    }

    .entry {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .entry-meta {
        font-size: 0.85rem;
    }
}