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


@font-face {
  font-family: 'Playfair';
  src: url('fonts/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/Libre_Baskerville/LibreBaskerville-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
    font-family: 'Libre Baskerville','Soria', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(93, 94, 95, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    opacity: 90%;
}

nav.scrolled {
    padding: 0.5rem 2rem;
    background: rgba(10, 25, 47, 0.7);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: #dde7ff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    transition: all 0.4s ease;
    position: relative;
}

nav.scrolled a {
    font-size: 0.85rem;
    color: #dde7ff;/*rgba(100, 255, 218, 0.7);*/
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #64ffda;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #fff;
}

/* Home Section with Slideshow */
#home {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide:nth-child(1) {
    background-image: url("../photos/1.jpg")
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
}

.slide:nth-child(2) {
    background-image: url("../photos/2.jpg")
    /*background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);*/
}

.slide:nth-child(3) {
    background-image: url("../photos/3.jpg")
    /*background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);*/
}
.slide:nth-child(4) {
    background-image: url("../photos/4.jpg")
    /*background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);*/
}
.slide:nth-child(5) {
    background-image: url("../photos/5.jpg")
    /*background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);*/
}
.slide:nth-child(6) {
    background-image: url("../photos/6.jpg")
    /*background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);*/
}


.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr !important;
    }
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 0.3rem;
    animation: fadeInUp 1s ease;
    text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-top: 1rem;
    animation: fadeInUp 1s ease 0.3s backwards;
}

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

/* Section Styles */
section {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    position: relative;
}

section:nth-child(even) {
    background: #f8f9fa;
}

section:nth-child(odd) {
    background: #ffffff;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #0a192f;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #64ffda, #667eea);
    border-radius: 2px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* About Us */
.about-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 3rem;
}

/* Director's Message */
.director-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.director-photo {
    flex-shrink: 0;
    width: 280px;
    height: 350px;
    border-radius: 50% / 60%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    transition: all 0.4s ease;
}

.director-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

.director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    font-weight: bold;
}

.director-message {
    flex: 1;
}

.director-name {
    font-size: 2rem;
    color: #0a192f;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.director-title {
    color: #668be8;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.director-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

@media (max-width: 768px) {
    .director-container {
        flex-direction: column;
        text-align: center;
    }

    .director-text {
        text-align: center;
    }
}

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

.member-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 139, 232, 1);
}
/*
.member-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: bold;
}*/
.member-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden; /* makes sure image stays circular */
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop to fit circle */
}

.member-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0a192f;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #668be8;
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.member-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.member-card.hidden {
    display: none;
}

.member-card.collapsing {
    animation: slideOut 0.5s ease forwards;
}

.member-card.expanding {
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
}

.show-more-btn {
    display: block;
    margin: 3rem auto 0;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.show-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.show-more-btn.hidden {
    display: none;
}
/*
.project-card.hidden,
.publication-item.hidden {
    display: none;
}

.project-card.expanding,
.publication-item.expanding {
    animation: slideIn 0.5s ease forwards;
}

.project-card.collapsing,
.publication-item.collapsing {
    animation: slideOut 0.5s ease forwards;
}*/





/* Project Card Link Wrapper */
.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Update existing .project-card styles */
.project-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

/* Add a subtle indicator that the card is clickable */
.project-card::after {
    content: '→';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #668be8;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card-link:hover .project-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 139, 232, 0.3);
    border-left: 4px solid #668be8;
}

.project-card-link:hover .project-card::after {
    opacity: 1;
    right: 1.5rem;
}

/* Maintain the title and description styles */
.project-title {
    font-size: 1.5rem;
    color: #0a192f;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.project-card-link:hover .project-title {
    color: #668be8;
}

.project-description {
    color: #555;
    line-height: 1.6;
}

/* Keep animations for hidden cards */
.project-card.hidden {
    display: none;
}

.project-card-link .project-card.expanding {
    animation: slideIn 0.5s ease forwards;
}

.project-card-link .project-card.collapsing {
    animation: slideOut 0.5s ease forwards;
}






@media (max-width: 968px) {
    .projects-container {
        flex-direction: column;
    }
}

/* Projects */
.projects-container {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.projects-subsection {
    flex: 1;
}

.subsection-title {
    font-size: 1.8rem;
    color: #0a192f;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #64ffda;
    display: inline-block;
}

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

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

.project-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-title {
    font-size: 1.5rem;
    color: #0a192f;
    margin-bottom: 1rem;
}

.project-description {
    color: #555;
    line-height: 1.6;
}

/* Publications */
.publication-list {
    max-width: 900px;
    margin: 0 auto;
}

.publication-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #64ffda;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.publication-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.publication-title {
    font-weight: 600;
    color: #0a192f;
    margin-bottom: 0.5rem;
}

.publication-authors {
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Recent News */
.news-grid {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #667eea;
}

.news-date {
    color: #668be8;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.3rem;
    color: #0a192f;
    margin-bottom: 0.7rem;
}

.news-content {
    color: #555;
    line-height: 1.6;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    color: white;
    padding: 3rem 2rem 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #668be8;
}

.social-link:hover {
    background: #668be8;
    color: #0a192f;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.footer-info {
    margin-bottom: 1.5rem;
}

footer p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(100, 255, 218, 0.2);
    margin: 1.5rem 0;
}

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

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}