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

/* Cross-Browser Compatibility */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    /* backdrop-filter: blur(10px); */
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.nav-logo h2 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 108px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 1002;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    align-items: center;
}

.nav-divider {
    color: #bdc3c7;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 0.2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #3498db;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

/* Animation Container */
.animation-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-animation {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    z-index: 1;
}

.animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animation-container:hover .animation-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button i {
    font-size: 2rem;
    color: #dc2626;
    margin-left: 5px;
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1rem;
}

.hero-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: #dc2626;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover {
    background: #991b1b;
    color: white;
    border: 2px solid white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #dc2626;
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brain-circuit-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.neuron {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}

.neuron:nth-child(1) {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.neuron:nth-child(2) {
    top: 100px;
    right: 50px;
    animation-delay: 0.5s;
}

.neuron:nth-child(3) {
    bottom: 50px;
    left: 150px;
    animation-delay: 1s;
}

.synapse {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6), transparent);
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    animation: synapse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes synapse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #991b1b);
    border-radius: 2px;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.affiliations h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.affiliations ul {
    list-style: none;
}

.affiliations li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.affiliations li:hover {
    transform: translateY(-2px);
}

.affiliations i {
    color: #3498db;
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
}

.affiliations a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.affiliations a:hover {
    color: #3498db;
    text-decoration: underline;
}



/* Research Highlights Banner */
.research-banner {
    background: white;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.banner-figures {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Team Section */
.team {
    background: #f8f9fa;
    position: relative;
    z-index: 50;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 51;
}

.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 52;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-member.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 2rem;
}

.team-member:not(.featured) {
    padding: 1.5rem;
    text-align: center;
}

.member-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 200px;
    overflow: hidden;
}

.member-photo img {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 100;
}

.team-member.featured .member-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    overflow: hidden;
}

.team-member.featured .member-photo img {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 100;
}

.team-member:not(.featured) .member-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    overflow: hidden;
    margin: 0 auto;
}

.team-member:not(.featured) .member-photo img {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 100;
}

.member-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.member-title {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-affiliations {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

.member-affiliations a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.member-affiliations a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.member-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    background: transparent;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    text-decoration: none;
    color: #5a6c7d;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    line-height: 1;
}

.profile-link:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.profile-link i {
    font-size: 0.8rem;
    color: #8fa3b8;
}

.profile-link:hover i {
    color: #3498db;
}

.link-keyword {
    font-weight: 500;
    color: #4a5568;
}

.profile-link:hover .link-keyword {
    color: #3498db;
}

.member-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.expertise-tag {
    display: inline-block;
    background: #e8f4fd;
    color: #3498db;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.2rem;
    font-weight: 500;
}

/* Alumni Grid Layout */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.alumni-item {
    background: #f8f9fa;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border-left: 3px solid #3498db;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Publications Section */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.4rem;
    margin-bottom: 3rem;
}

/* Projects Section */
.projects {
    background: white;
    padding: 5rem 0;
}

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

.project-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

.project-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1.5rem;
}

.project-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.project-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: #e8f4fd;
    color: #3498db;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Methods Section */
.methods {
    background: #f8f9fa;
}

/* Jobs Section */
.jobs {
    background: white;
    padding: 5rem 0;
}

.jobs-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.jobs-intro p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.jobs-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.job-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
    cursor: pointer;
}

.job-cta {
    text-align: center;
    margin-top: 0.5rem;
}

.click-hint {
    color: #3498db;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
}

.job-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.job-type {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.job-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.job-requirements h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.job-requirements ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.job-requirements li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.job-requirements li::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.jobs-cta {
    text-align: center;
    margin-top: 2rem;
}

.jobs-cta p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

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

.repo-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.repo-name {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.repo-name i {
    color: #3498db;
    font-size: 1rem;
}

.repo-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.repo-topic {
    background: #e8f4fd;
    color: #3498db;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.repo-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.repo-citation {
    margin-bottom: 1rem;
}

.citation-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.citation-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.citation-link i {
    color: #3498db;
    font-size: 0.8rem;
}

.repo-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.repo-language {
    background: #e8f4fd;
    color: #3498db;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}





.github-cta {
    text-align: center;
}

.github-cta .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
}

.github-cta .btn i {
    margin-right: 0.5rem;
}

.publication-card {
    background: white;
    padding: 1.4rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

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

.pub-year {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.publication-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

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

.pub-journal {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pub-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pub-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pub-link:hover {
    color: #2980b9;
}

/* Press Coverage Styles */
.press-coverage {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.press-label {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 8px;
}

.press-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.press-link:hover {
    color: #991b1b;
    text-decoration: underline;
}



.publications-cta {
    text-align: center;
}



/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item i {
    color: #3498db;
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
    width: 30px;
}

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-map {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.contact-map iframe:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-2px);
}

.x-link {
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.x-link::before,
.x-link::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background: white;
    border-radius: 1px;
}

.x-link::before {
    transform: rotate(45deg);
    left: 50%;
    top: 50%;
    margin-left: -1px;
    margin-top: -10px;
}

.x-link::after {
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin-left: -1px;
    margin-top: -10px;
}

.x-link:hover {
    background: #3498db;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    height: 108px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2475%) hue-rotate(187deg) brightness(118%) contrast(119%);
    transition: filter 0.3s ease;
    animation: logoColorShift 8s ease-in-out infinite;
}

.footer-logo-img:hover {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
    animation-play-state: paused;
}

@keyframes logoColorShift {
    0% {
        filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2475%) hue-rotate(187deg) brightness(118%) contrast(119%);
    }
    25% {
        filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
    }
    50% {
        filter: brightness(0) saturate(100%) invert(39%) sepia(100%) saturate(2000%) hue-rotate(280deg) brightness(110%) contrast(120%);
    }
    75% {
        filter: brightness(0) saturate(100%) invert(45%) sepia(90%) saturate(2200%) hue-rotate(150deg) brightness(115%) contrast(125%);
    }
    100% {
        filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2475%) hue-rotate(187deg) brightness(118%) contrast(119%);
    }
}

@keyframes navLogoColorShift {
    0% {
        filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
    }
    33.33% {
        filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
    }
    66.66% {
        filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2475%) hue-rotate(187deg) brightness(118%) contrast(119%);
    }
    100% {
        filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
    }
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 2% auto;
        max-height: 90vh;
        padding: 1.5rem;
        width: 95%;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-member.featured {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .visualization-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .team-grid,
    .publications-grid,
    .repos-grid {
        grid-template-columns: 1fr;
    }
}

/* Cross-Browser Compatibility Enhancements */
@supports (-webkit-appearance: none) {
    /* Webkit-specific styles */
    .btn {
        -webkit-appearance: none;
    }
}

@supports (-moz-appearance: none) {
    /* Firefox-specific styles */
    .btn {
        -moz-appearance: none;
    }
}

/* Ensure consistent behavior across browsers */
.team-member img,
.publications-grid img,
.repos-grid img {
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Safari-specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .member-photo img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Alumni Section Styles */
.alumni-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.alumni-title {
    font-size: 2.2rem;
    color: #1f2937;
    margin-bottom: 28px;
    text-align: center;
    font-weight: 700;
}

.alumni-category {
    margin-bottom: 28px;
}

.alumni-category h4 {
    font-size: 1.5rem;
    color: #dc2626;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #dc2626;
    padding-bottom: 8px;
    display: inline-block;
}

.alumni-category h5 {
    font-size: 1.2rem;
    color: #374151;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.alumni-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alumni-list li {
    background: #f9fafb;
    border-left: 4px solid #dc2626;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.alumni-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.alumni-list li strong {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 700;
}

.alumni-list li em {
    color: #6b7280;
    font-style: normal;
    font-weight: 500;
}

.alumni-list li br {
    margin-bottom: 5px;
}

/* Responsive adjustments for alumni section */
@media (max-width: 768px) {
    .alumni-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .alumni-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .alumni-category h4 {
        font-size: 1.3rem;
    }
    
    .alumni-list li {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .alumni-list li strong {
        font-size: 1rem;
    }
}
