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

:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --accent-color: #2f6dc4;
    --subtitle-color: #5843ac;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px 0 rgba(0, 0, 0, 0.1);
}



body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

em {
    font-style: italic;
}

strong {
    font-weight: 600;
    color: var(--text-dark);
}

/* ========================================
   Container and Layout
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

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

.nav-links a {
    color: white;
    transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* ========================================
   Hero Section
   ======================================== */
/* ...existing code... */
.hero{
    position:relative;
    height:50vh;
    min-height:360px;
    max-height:600px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    padding:2rem 1rem;
    background-size:cover;        /* show full image without cropping */
    background-position:center center;
    background-repeat:no-repeat;
    background-color:#0a5fa8;       /* fallback to fill gaps from aspect mismatch */
    color:#fff;
    overflow:hidden;
}
/* ...existing code... */

.hero-content h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--subtitle-color);
    margin-bottom: 0.5rem;
}

.institution {
    font-size: 1.1rem;
    color: var(--subtitle-color);
    margin-bottom: 0;
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: 4rem 0;
}

.section {
    padding: 4rem 0;
}

.section.bg-light {
    background-color: var(--bg-light);
}

/* ========================================
   About Section
   ======================================== */


.about-content {
    overflow: hidden;      /* contain the floated image */
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 1rem;
}

/* profile image: float so text wraps, keep aspect ratio and limit size */
.about-content img.profile {
    float: left;
    width: 400px;          /* adjust desired display width */
    max-width: 35%;
    height: auto;          /* preserve aspect ratio */
    margin: 0 1rem 1rem 0;
    border-radius: 6px;
    object-fit: cover;
}

/* ensure paragraphs flow and don't force columns */
.about-content p {
    margin-bottom: 1rem;
}

/* small screens: stack image above text */
@media (max-width: 600px) {
    .about-content {
        display: block;
        text-align: center;
    }
    .about-content img.profile {
        float: none;
        display: block;
        margin: 0 auto 1rem;
        width: 110px;
        max-width: 40%;
    }
}
/* ...existing code... */



/* ========================================
   Research Section
   ======================================== */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.research-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.research-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ========================================
   Publications Section
   ======================================== */
.publications-list {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.publication {
    /* padding: 1.5rem; */
    /* margin-bottom: 2rem; */
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* .publication:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
} */

/* .publication-title {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--text-dark);
} */

.publication-details {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.doi-link {
    color: var(--accent-color);
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.more-publications {
    text-align: center;
    font-size: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contact-info a {
    color: var(--accent-color);
    font-weight: 500;
}

.social-link {
    display: inline-block;
    margin-right: 1rem;
    color: var(--accent-color);
    font-weight: 500;
}

.social-link:hover {
    color: var(--primary-dark);
}

/* ========================================
   Footer
   ======================================== */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0;
    color: white;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    section {
        padding: 2.5rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .about-content p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}
