body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 20px 40px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: rgba(99, 3, 183, 0.752);
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.profile-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 40px;
}

.profile-photo {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-container {
    flex: 1;
    padding-left: 40px;
}

h1 {
    font-size: 3em;
    margin-bottom: 0.2em;
    font-weight: 300;
}

p {
    line-height: 1.6;
    font-size: 1.1em;
    color: #555;
}

.highlight-link {
    color: rgba(99, 3, 183, 0.752);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.highlight-link:hover {
    opacity: 0.6;
}

.misc-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
    }

    main {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        justify-content: center;
    }

    .profile-container {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .content-container {
        padding-left: 0;
    }
}

#fortune-cookie-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}

#fortune-cookie-container:hover {
    transform: scale(1.1) rotate(10deg);
}

#fortune-cookie-btn {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s;
}

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

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

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#fortune-text {
    font-size: 1.2em;
    font-family: 'Georgia', serif;
    font-style: italic;
    color: #333;
    margin-top: 20px;
    line-height: 1.5;
}

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

.publication-item {
    margin-bottom: 40px;
}

.publication-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.publication-authors {
    font-size: 1.0em;
    color: #444;
    margin-bottom: 5px;
}

.publication-venue {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.publication-tags {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.tag-box {
    padding: 5px 15px;
    border-radius: 4px;
    color: white;
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.tag-box:hover {
    opacity: 0.8;
}

.bg-pdf {
    background-color: #ff8a80;
}

.bg-code {
    background-color: #82b1ff;
}

.bg-abstract {
    background-color: #ba68c8;
}

.abstract-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 500;
}

.abstract-btn:hover {
    opacity: 0.8;
}

.abstract-content {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ba68c8;
    font-size: 0.95em;
    color: #444;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
}

.abstract-content.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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