/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f6fa;
    --white: #ffffff;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
                url('saved pics/cdnm logo.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

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

.leader-profile {
    text-align: center;
}

.leader-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.leader-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.leader-info .title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.leader-info .institution {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Research Section */
.research {
    padding: 5rem 0;
}

.research-tabs {
    margin-top: 2rem;
}

.tab-selectors {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    padding: 1rem 40px;  /* Added top and bottom padding */
    overflow-x: auto;
    overflow-y: hidden;  /* Prevent vertical scrolling */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    height: auto;  /* Allow height to adjust to content */
    min-height: 50px;  /* Minimum height to prevent collapse */
    align-items: center;  /* Center items vertically */
}

/* Hide scrollbar for Chrome/Safari */
.tab-selectors::-webkit-scrollbar {
    display: none;
}

.tab-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-top: 0;  /* Reset any margin */
}

.tab-scroll-btn:hover {
    background: #f8f9fa;
    color: #2c3e50;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tab-scroll-btn.scroll-left {
    left: 5px;
}

.tab-scroll-btn.scroll-right {
    right: 5px;
}

/* Hide scroll buttons on mobile */
@media (max-width: 768px) {
    .tab-scroll-btn {
        display: none;
    }
    
    .tab-selectors {
        padding: 0.8rem 0;  /* Reduced padding on mobile */
        min-height: 45px;  /* Slightly smaller on mobile */
    }
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 5px 5px 0 0;
    flex-shrink: 0;
    min-width: max-content;
    height: 100%;  /* Take full height of container */
    display: flex;  /* Use flexbox for vertical centering */
    align-items: center;  /* Center text vertically */
    line-height: 1.2;  /* Control line height */
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1rem;  /* Adjust to account for container padding */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2c3e50;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: #2c3e50;
    background-color: rgba(135, 206, 235, 0.1);
}

.tab-btn.active {
    color: #2c3e50;
    font-weight: 600;
    background-color: rgba(135, 206, 235, 0.2);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    position: relative;
    min-height: 200px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.tab-pane p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Team Section */
.team {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

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

/* Alumni specific grid */
.alumni-grid {
    grid-template-columns: repeat(3, 1fr);  /* Always show 3 columns */
    max-width: 1200px;  /* Maximum width for the grid */
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for alumni grid */
@media (max-width: 1024px) {
    .alumni-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .alumni-grid {
        grid-template-columns: 1fr;  /* 1 column on mobile */
    }
}

/* Add some visual separation between current team and alumni */
#alumni {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

#alumni h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.team-member {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-image {
    width: 200px;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .headshot {
    transform: scale(1.05);
}

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

.member-info h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.member-info .title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.member-info .institution {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-member .social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.team-member .social-icon {
    color: var(--primary-color);
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.team-member .social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Publications Section */
.publications {
    padding: 5rem 0;
}

.publications-list {
    margin-top: 2rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .leader-profile {
        margin-bottom: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }

    .member-image {
        width: 180px;
        height: 180px;
        margin-bottom: 1rem;
    }

    .tab-selectors {
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .tab-btn {
        padding: 0.6rem 0.8rem;  /* Slightly smaller padding on mobile */
        font-size: 0.9rem;
    }

    .tab-btn::after {
        display: none;
    }

    .tab-btn:hover {
        background-color: rgba(135, 206, 235, 0.1);
    }

    .tab-btn.active {
        background-color: #4a90e2;
        color: white;
    }

    .tab-pane h3 {
        font-size: 1.4rem;
    }

    .tab-pane p {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 1s ease-out;
}

.highlighted-papers {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.highlighted-papers h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.highlighted-papers h4::before {
    content: '\f02d';  /* Font Awesome book icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.8rem;
    color: #3498db;
}

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

.paper-list li {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    padding-left: 1rem;
    position: relative;
}

.paper-list li:last-child {
    margin-bottom: 0;
}

.paper-list li::before {
    content: '•';
    color: #3498db;
    position: absolute;
    left: -0.5rem;
    font-size: 1.2rem;
}

.paper-list a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.paper-list a:hover {
    color: #3498db;
    transform: translateX(5px);
}

.journal-info {
    color: #666;
    font-size: 0.95rem;
    margin-left: 0.5rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .highlighted-papers {
        margin-top: 1.5rem;
        padding: 1.2rem;
    }

    .highlighted-papers h4 {
        font-size: 1.2rem;
    }

    .paper-list li {
        margin-bottom: 1rem;
        padding-left: 0.8rem;
    }

    .journal-info {
        display: block;
        margin-left: 0;
        margin-top: 0.3rem;
    }

    .paper-list a:hover {
        transform: none;
    }
} 