:root {
    color-scheme: light;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --text-light: #475569;
    --primary-color: #086e73;
    --primary-hover: #03676c;
    --accent-color: #ef4444;
    --tag-bg: rgba(13, 148, 136, 0.1);
    --tag-text: #086e73;
    --border-color: rgba(226, 232, 240, 0.8);
    --card-bg: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}



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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background 0.5s ease;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-hover);
}

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

.header {
    padding: 80px 0 60px;
    margin-bottom: 50px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.header-content {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
}

@media (min-width: 768px) {
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.profile-info {
    flex: 1;
    animation: fadeUp 0.8s ease-out forwards;
}

.profile-info h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-color);
    letter-spacing: -1px;
}

.profile-info h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 25px;
}

.contact-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.contact-links a {
    font-size: 1.5rem;
    color: var(--text-light);
    background: var(--card-bg);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.contact-links a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.4);
}

.bio {
    margin-bottom: 25px;
    font-size: 1.1rem;
    max-width: 700px;
    color: var(--text-light);
    line-height: 1.8;
}

.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.interest-tag {
    background-color: var(--tag-bg);
    color: var(--tag-text);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.interest-tag:hover {
    transform: translateY(-2px);
    background-color: var(--primary-color);
    color: white;
}

.profile-pic {
    animation: fadeScale 0.8s ease-out forwards;
}

.profile-pic img {
    width: 250px;
    height: 250px;
    border-radius: 30%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
}

.profile-pic img:hover {
    transform: scale(1.05) rotate(2deg);
    border-radius: 50%;
}

.section {
    margin-bottom: 80px;
    animation: fadeUp 0.8s ease-out forwards;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.section:hover .section-title::after {
    width: 100%;
}

/* Publications */
.publication {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.publication:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 148, 136, 0.4);
}

@media (min-width: 768px) {
    .publication {
        flex-direction: row;
        align-items: center;
    }
}

.pub-media {
    flex-shrink: 0;
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.pub-media img,
.pub-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.publication:hover .pub-media img,
.publication:hover .pub-media video {
    /* transform removed per user request */
}

.pub-info {
    flex-grow: 1;
}

.pub-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.pub-authors {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.pub-authors u {
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
}

.pub-venue {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 15px;
    display: inline-block;
    padding: 4px 12px;
    background: var(--border-color);
    border-radius: 20px;
}

.pub-description {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.pub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pub-link:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.pub-link-logo {
    width: 172px;
    padding: 4px 10px;
    justify-content: center;
    overflow: hidden;
}

.pub-link-logo img {
    display: block;
    width: 150px;
    height: 28px;
    object-fit: cover;
    object-position: center;
}

.pub-link-arxiv {
    padding: 8px 14px;
}

.pub-link-arxiv img {
    display: block;
    height: 18px;
    width: auto;
}

/* Timeline/Education/Awards */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    border-color: rgba(13, 148, 136, 0.3);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 25px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px var(--bg-color);
    transition: transform 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.3);
}

.timeline-item h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.timeline-meta {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-item p {
    color: var(--text-light);
}

footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-light);
    font-size: 1rem;
    position: relative;
    margin-top: 60px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
