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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: white;
    /* Go up one level to reach images folder */
    background-image: url('../images/back.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Remove the dark overlay - NO transparency layer */
body::before {
    display: none;
}

/* Container - NO background box, completely transparent */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: transparent;
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Navigation */
nav {
    position: relative
    background-image: url('../images/back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);  /* Adjust opacity for desired darkness */
    z-index: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    background-color: transparent;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo:hover {
    opacity: 0.9;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem; 
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-links a:hover,
.nav-links a.active {
    color: #6ab0d6;
    border-bottom: 2px solid #6ab0d6;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-image: url('../images/back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    margin-top: 2rem;
    border-radius: 8px;
    position: relative;
}

/* Add subtle overlay for footer text readability */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    z-index: 0;
}

footer > * {
    position: relative;
    z-index: 1;
}

footer a {
    color: #6ab0d6;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
/* Footer with logo */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-logo img {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

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

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-logo img {
        height: 90px;
    }
}
/* Hero Section - NO background box */
.hero {
    text-align: center;
    padding: 3rem 2rem;
    background: transparent;
    border-radius: 0;
    color: white;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Lab Intro Section - NO background box */
.lab-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: transparent;
    border-radius: 0;
    padding: 2rem;
    backdrop-filter: none;
    align-items: center;
}

.lab-intro-text {
    text-align: justify;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.lab-intro-text p {
    text-align: justify;
    line-height: 1.6;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.lab-intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lab-intro-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    height:auto
}

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

.section-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.news-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: rgba(0, 0, 0, 0.1);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #6ab0d6;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.news-summary {
    color: #f0f0f0;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    color: #6ab0d6;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
    color: #8bcbff;
}

/* Button */
.btn {
    background-color: #2c7da0;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #1f5e7a;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}

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

.research-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.research-card:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 0, 0.6);
}

.research-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.research-card p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.team-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.6);
}

.team-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.team-role {
    color: #6ab0d6;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.team-bio {
    color: #f0f0f0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Publications */
.publications-container {
    max-width: 1200px;
    margin: 0 auto;
}

.publication-year {
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(106, 176, 214, 0.5);
}

.publication-year h3 {
    font-size: 1.8rem;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.publication-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.publication-item {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid #6ab0d6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.publication-item:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.publication-authors {
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.publication-authors b {
    color: white;
    font-weight: 700;
}

.publication-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.publication-journal {
    font-size: 0.9rem;
    color: #ccc;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.publication-doi {
    font-size: 0.85rem;
}

.publication-doi a {
    color: #6ab0d6;
    text-decoration: none;
    font-family: monospace;
    font-size: 0.85rem;
}

.publication-doi a:hover {
    text-decoration: underline;
    color: #8bcbff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .lab-intro {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .lab-intro-text {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .research-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .publication-item {
        padding: 1rem;
    }
    
    .publication-title {
        font-size: 1rem;
    }
    /* Research page toggle button (also needed for home page button if not already present) */
.lab-intro-text {
    position: relative;
    padding-bottom: 50px;
}
.cn-intro-btn, .research-toggle-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #2c6b90;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    border: none;
    z-index: 5;
    transition: background 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cn-intro-btn:hover, .research-toggle-btn:hover {
    background: black;
}
@media (max-width: 480px) {
    .lab-intro-text, .box-text {
        padding-bottom: 60px;
    }
    .cn-intro-btn, .research-toggle-btn {
        bottom: 16px;
        right: 16px;
        font-size: 0.85rem;
        padding: 6px 14px;
    }
}
    
    .publication-authors {
        font-size: 0.85rem;
    }
}
