/* Professor Section */
.professor-section {
    /* min-height: 45vh; */
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin: 0 50px 0 50px; */
    padding-top: 5em;
}

.professor-content {
    padding: 0px 20px;
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.professor-photo {
    /* width: auto; */
    max-width: min(600px, 60vw);
    border-radius: 20px;
    object-fit: cover;
    /* object-fit: contain; */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin: 0 auto;
    display: block;
}

/* .professor-photo:hover {
    transform: translateY(-10px);
} */

.professor-info {
    flex: 1;
    text-align: left;
}

.professor-info h2 {
    font-size: 24px;
    color: #000000;
    margin-bottom: 20px;
    font-weight: 700;
}

.professor-info p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.professor-info ul {
    padding-left: 30px;
    text-align: left;
    font-size: 20px;
}


/* Member Section */
.members-section {
    max-width: max(70%, 1200px);
    margin: 0 auto;
}

.section-title {
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
}

.members-grid {
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); */
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    gap: 30px;
    margin: 0 auto;
}

.member-card {
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
    /* border: 1px solid #f1f3f4; */

    width: 350px;
    height: 300px;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 5px;
    border: 4px solid #f8f9fa;
    transition: transform 0.3s ease;
}

.member-card:hover .member-avatar {
    transform: scale(1.1);
    /* transform: translateY(-8px) scale(1.1); */
}

.member-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    /* margin-bottom: 5px; */
}

.member-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.tag.room {
    background: #dbeafe;
    color: #1d4ed8;
}

.tag.collab {
    background: #fef3c7;
    color: #92400e;
}

.tag.job {
    background: #c8f7dc;
    color: #177744;
}

.tag.alumni {
    background: #fff6e0;
    color: #a37930;
}

.member-email {
    color: #2c5aa0;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    /* margin-bottom: 10px; */
}

.member-email:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.gmail-icon {
    width: 30px;
    height: 30px;

    vertical-align: middle;
    margin-right: 6px;
}

/* Social Links */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #6b7280;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    filter:opacity(80%);
}

/* Gallery */
.gallery-section {
    max-width: 75vw;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    /* background: #2c3e50; */
    background: linear-gradient(0deg, #abb1bf 20%, #2c3e50 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 100px;
    position: relative;
    opacity: 0;
    /* animation: slideIn 0.8s ease forwards; */
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 0 40px;
}

.timeline-year {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    /* background: linear-gradient(135deg, #727375 0%, #2c3e50 100%); */
    background: #2c3e50;
    color: #fff;
    border: 4px solid #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); */
    z-index: 10;
}

.image-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); */
    transition: all 0.4s ease;
    cursor: pointer;
    background: #fff;
}

.image-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    /* box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4); */
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.year-label {
    text-align: center;
    font-size: 16px;
    margin-top: 15px;
    opacity: 0.9;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 10px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}


/* Responsive Design */
@media (max-width: 1080px) {
    .professor-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

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

    .professor-info h2 {
        font-size: 30px;
        /* color: #000000;
        margin-bottom: 20px;
        font-weight: 700; */
    }

    .professor-info p {
        font-size: 18px;
        /* color: #555;
        line-height: 1.8;
        margin-bottom: 15px; */
    }

    .professor-info ul {
        padding-left: 30px;
        text-align: left;

        /* Remove default bullets */
        /* list-style-type: none; */
        /* padding-left: 0; */
        /* Adjust padding as needed */
        font-size: 24px;
    }

    .member-card {
        padding: 25px 20px;
    }

    .member-avatar {
        width: 100px;
        height: 100px;
    }

    .member-name {
        font-size: 18px;
    }

    /* Gallery */
    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        padding-left: 80px;
    }

    .timeline-content {
        width: 100%;
        padding: 0;
    }

    .timeline-year {
        left: 30px;
        top: 30px;
        transform: translate(-50%, 0);
        width: 60px;
        height: 60px;
        font-size: 16px;
    }

    .header h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .professor-content {
        padding: 5px 5px;
        gap: 20px;
    }

    .professor-info h2 {
        font-size: 24px;
        color: #000000;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .professor-info ul {
        padding-left: 30px;
        text-align: left;
        font-size: 16px;
    }

    .professor-photo {
        width: 100%;
        height: auto;
    }

    .section-title {
        margin-top: 50px;
        margin-bottom: 50px;
        text-align: center;
        font-size: 24px;
        font-weight: 700;
        color: #1f2937;
    }

    .member-avatar {
        width: 120px;
        height: 120px;
        border-radius: 50%;
    }

    .member-name {
        font-size: 16px;
        font-weight: 600;
        color: #1f2937;
        /* margin-bottom: 5px; */
    }

    .member-tags {
        align-items: center;
    }

    .member-email {
        font-size: 14px;
    }

    .tag {
        width: fit-content;
    }
}