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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    /* background-color: #f5f5f5; */
}

.container {
    max-width: 100%;
    /* margin: 0 auto; */
    padding: 60px 40px;
    background-color: white;
    min-height: 100vh;
    /* box-shadow: 0 0 30px rgba(0, 0, 0, 0.05); */
}

/* Introduction Section */
.background {
    text-align: center;
    padding-bottom: 60px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 60px;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 25px;
    font-weight: 400;
}

.intro {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

#work_link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

#work_link:hover {
    border-bottom-color: #2563eb;
    /* background-color: #2563eb;
    color: white;
    transition: all 0.4s ease;
    border-radius: 4px; */
}

/* Section Styles */
section {
    margin-bottom: 60px;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: -0.3px;
}

/* Education Section */
.education-section {
    padding: 40px 0;
}

.education-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.education-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 220px;
    height: 220px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    background-color: white;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.bu-card:hover {
    background-color: #CC0000;
}

.ccny-card:hover {
    background-color: #7851A9;
}

/* Logo */
.education-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.education-card:hover .education-logo {
    transform: translate(-50%, -50%) translateY(100%);
    opacity: 0;
}

/* School Name */
.education-name {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 90%;
    opacity: 0;
    line-height: 1.2;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.education-card:hover .education-name {
    opacity: 1;
    transform: translate(-50%, -80px);
}

/* Degree Type */
.education-degree-type {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, 100%);
    margin: 0;
    width: 90%;
    opacity: 0;
    line-height: 1.3;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.education-card:hover .education-degree-type {
    opacity: 1;
    transform: translate(-50%, -20px);
}

/* Degree Field */
.education-degree {
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 100%);
    margin: 0;
    width: 85%;
    opacity: 0;
    line-height: 1.3;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.education-card:hover .education-degree {
    opacity: 1;
    transform: translate(-50%, 10px);
}

/* Year */
.education-year {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 100%);
    margin: 0;
    width: 90%;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.education-card:hover .education-year {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Text Color on Hover */
.bu-card:hover .education-name,
.bu-card:hover .education-degree-type,
.bu-card:hover .education-degree,
.bu-card:hover .education-year,
.ccny-card:hover .education-name,
.ccny-card:hover .education-degree-type,
.ccny-card:hover .education-degree,
.ccny-card:hover .education-year {
    color: white;
}

/* Research Focus Section */
.research-focus-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.research-focus-card {
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 220px;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-size: 24px;
}

/* Connect Section */
.connect-section {
    padding: 40px 0;
}

.link-list {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.link {
    color: #555;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    padding: 12px 20px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
}

.link:hover {
    color: #2563eb;
    border-color: #2563eb;
    background-color: #f0f7ff;
}

.link-icon {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.link:hover .link-icon {
    transform: translateX(4px);
}

/* Footer */
footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
}

footer p {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .intro {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .education-container {
        gap: 20px;
    }

    .education-card {
        width: 200px;
        height: 200px;
    }

    .link-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}
