/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh; /* Add this line */
    display: flex; /* Add this line */
    flex-direction: column; /* Add this line */
    padding-top: 70px;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    /* padding: 0 2rem; */
}

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

}

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



.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #333;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #0044fd;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0044fd;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* background: rgba(107, 107, 107, 0.05); */
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e6e6e6;
    /* transform: translateY(-2px); */
}

.social-icon {
    width: 20px;
    height: 20px;
    filter: opacity(0.8);
    transition: filter 0.3s ease;
}

.social-link:hover .social-icon {
    filter: opacity(1);
}

.main-container {
    max-width: 800px; /* Same as your navbar */
    margin: 0 auto;
    padding: 0 2rem; 
    width: 100%;
    flex: 1; /* Add this line - pushes footer down */


}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 4rem 0 2rem 0;
}

.hero-content {
    flex: 1;
    padding-left: 0;
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
}

.hero-description a {
    color: #4a4dfb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.hero-description a:hover {
    border-bottom-color: #4a4dfb;
}

.hero-description a:visited {
    color: #4a4dfb;
}

.hero-description a:active {
    color: #4a4dfb;
}

.hero-image {
    flex-shrink: 0;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 70% 20%;
}


/*======== Research Contributions styles========= */
.research-contributions {
    padding: 2rem 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 2rem;
}

.research-list {
    display: flex;
    flex-direction: column;
}

.research-card {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.research-card:last-child {
    border-bottom: none;
}

.research-image {
    flex-shrink: 0;
}

.research-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.research-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.research-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.research-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.research-title a:hover {
    color: #0044fd;
}

.research-date {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.research-excerpt {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    margin-top: 0.5rem;
}



/*======== Affiliations section styles========= */
.affiliations {
    /* padding: 4rem 0; */
    padding: 2rem 0 4rem 0;
    border-top: 1px solid #f0f0f0;

}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
}

.affiliations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 100%;
}

.affiliation-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.affiliation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #0044fd;
}

.affiliation-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.affiliation-card:hover .affiliation-logo {
    transform: scale(1.05);
}

.affiliation-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.affiliation-description {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
}


/*======== Recent Blogs styles========= */
/* Recent Blogs section styles */
.recent-blogs {
    padding: 3rem 0 0 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 2rem;
}

.blogs-list {
    display: flex;
    flex-direction: column;
}

.blog-card {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.blog-card:last-child {
    border-bottom: none;
}

.blog-image {
    flex-shrink: 0;
}

.blog-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.blog-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #0044fd;
}

.blog-date {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.blog-excerpt {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    margin-top: 0.5rem;
}



/* =========Footer styles========= */
.footer {
    /* background-color: #0044fd; */
    /* margin-top: 4rem; */
    background: linear-gradient(110deg, #0044fd 0%, #3d54ff 40%, #5f64ff 80%, #8a8dfe 100%);
    padding: 2rem 0;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* background: rgba(255, 255, 255, 0.1); */
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.152);
    /* transform: translateY(-2px); */
}

.footer-social-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1); /* Make icons white */
}

.footer-text {
    color: white;
    font-size: 0.8rem;
    font-weight: 400;
    text-align: center;
}


/* Add padding to body to account for fixed navbar */
body {
    padding-top: 70px;
}

/* Responsive design */
@media (max-width: 768px) {
    /* .navbar {
        padding: 0 1rem;
    } */
    
    .nav-container {
        height: 60px;
        padding: 0 1rem;
    }

    .main-container {
        padding: 0 1rem;
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .nav-left .name {
        font-size: 1.3rem;
    }
    
    body {
        padding-top: 60px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        /* padding: 3rem 0; */
        padding: 3rem 0 1.5rem 0;

    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }

    
    .profile-image {
        width: 200px;
        height: 200px;
    }


    
    .footer-content {
        padding: 0 1rem;
    }

    
}

@media (max-width: 480px) {
    /* .nav-links {
        display: none;
    } */

    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        display:flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .social-icons {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
    }
    
    .social-icon {
        width: 16px;
        height: 16px;
    }
}

/* Responsive affiliations */
@media (max-width: 768px) {
    .affiliations {
        padding: 3rem 0;
        padding: 1.5rem 0 3rem 0;
        
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .affiliations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .affiliation-card {
        padding: 1.5rem 1rem;
    }
    
    .affiliation-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .affiliation-name {
        font-size: 1.1rem;
    }
    
    .affiliation-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .affiliations {
        /* padding: 2rem 0; */
        padding: 1rem 0 2rem 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .affiliation-card {
        padding: 1.2rem 0.8rem;
    }
    
    .affiliation-logo {
        width: 50px;
        height: 50px;
    }
}


/* Responsive blogs */
@media (max-width: 768px) {
    .recent-blogs {
        padding: 3rem 0 0 0;
    }
    
    .blog-card {
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .blog-thumbnail {
        width: 100px;
        height: 70px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem 0;
    }
    
    .blog-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
}


/* Responsive research */
@media (max-width: 768px) {
    .research-contributions {
        padding: 1.5rem 0;
    }
    
    .research-card {
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .research-thumbnail {
        width: 100px;
        height: 70px;
    }
    
    .research-title {
        font-size: 1.2rem;
    }
    
    .research-excerpt {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .research-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem 0;
    }
    
    .research-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .research-title {
        font-size: 1.1rem;
    }
}
