/* CSS Variables for Clean + Cute Academic Theme */
:root {
    /* Minimalist base */
    --bg-main: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-light: #eaeaea;

    /* Subtle pastel cute accents */
    --accent-color: #ffb7b2;
    /* Soft Peach/Pink */
    --accent-hover: #ff9d96;
    --accent-light: #fff0f0;

    --link-color: #555555;
    --link-hover: #ffb7b2;

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Lora', Georgia, serif;

    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.8;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Subtle background glowing elements */
.bg-accent {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 15s infinite alternate ease-in-out;
}

.bg-accent-1 {
    width: 600px;
    height: 600px;
    background: #ffecf0;
    /* Soft blush */
    top: -200px;
    right: -200px;
}

.bg-accent-2 {
    width: 500px;
    height: 500px;
    background: #f0f4ff;
    /* Soft baby blue */
    bottom: -150px;
    left: -150px;
    animation-direction: alternate-reverse;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 40px);
    }
}

/* Glassmorphism utility for sections */
.box-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    padding: 40px;
}

/* Top Banner Image */
.top-banner {
    width: 100vw;
    height: 175px;
    /* Half of 350px */
    overflow: hidden;
    position: relative;
    /* Negative margin to counteract the body and padding */
    margin: 0;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Header & Navigation */
.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    padding: 24px 60px;
    transition: var(--transition);
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--link-color);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 4px;
    transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-hover);
}

/* Cute animated underline effect */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.more-dropdown a::after {
    display: none;
}

/* Remove underline from dropdown trigger */

/* Section visibility: only .active-section is shown */
.page-section {
    display: none;
    width: 100%;
}

.page-section.active-section {
    display: block;
}

/* Main Content Layout */
.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
}

.profile-section {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* Typography Overrides for Academic Look */
.profile-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.profile-pic {
    width: 260px;
    height: 320px;
    object-fit: cover;
    object-position: center top;
    /* Crops tightly to face/upper body */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.profile-pic:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

.profile-section .name {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.profile-section .title,
.profile-section .department,
.profile-section .university {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.4;
}

.profile-section .title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-section .department,
.profile-section .university {
    font-size: 1.1rem;
}

.profile-section .university {
    margin-bottom: 40px;
}

/* Bio Text */
.bio-text {
    margin-bottom: 60px;
    font-size: 1.1rem;
    color: var(--text-primary);
    max-width: 700px;
    line-height: 1.8;
}

/* Contact Box area */
.contact-info {
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.contact-heading {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.contact-heading::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.email-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted var(--accent-color);
    transition: var(--transition);
}

.email-link:hover {
    color: var(--accent-hover);
    border-bottom-style: solid;
}

/* Download CV Button */
.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding: 12px 24px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    /* Cute rounded pill shape */
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.btn-cv:hover {
    border-color: var(--accent-color);
    color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 183, 178, 0.2);
}

/* CV Section */
.cv-section {
    max-width: 900px;
    width: 100%;
    margin: 80px auto 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-primary);
}

.pdf-container {
    height: 800px;
    padding: 20px;
    width: 100%;
}

.pdf-container object {
    border-radius: 8px;
}

/* Lists */
.styled-list {
    list-style-type: disc;
    padding-left: 30px;
}

.styled-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-primary);
}

/* Publications matching Wix Theme */
.publication-list {
    font-family: var(--font-sans);
}

.pub-item {
    margin-bottom: 25px;
}

.pub-item:last-child {
    margin-bottom: 0;
}

/* Wixstyle bold title, user requested italic and underline and bigger */
.pub-title {
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    text-decoration: underline;
    color: #4a4a4a;
    margin-bottom: 0px;
    line-height: 1.4;
}

/* Author string */
.pub-authors {
    font-size: 0.95rem;
    color: #666666;
    /* Slightly softer wix grey */
    margin-bottom: 0px;
}

/* Journal string */
.pub-journal {
    font-size: 0.95rem;
    color: #666666;
    font-style: italic;
}

/* Others Section Image & Text */
.others-section .box-glass {
    padding: 0;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    /* Fixed height for the hero image */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.full-width-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

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

.dynamic-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-sans);
    font-size: 5rem;
    /* Large flash text */
    font-weight: 700;
    color: white;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    /* Let clicks pass through if needed */
    letter-spacing: 4px;
    opacity: 0.95;
    white-space: nowrap;

    /* Center it normally */
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-wrapper:hover .dynamic-text {
    /* Slide in flash animation on hover */
    animation: flash-slide 1.5s ease-out forwards;
}

@keyframes flash-slide {
    0% {
        left: 100%;
        opacity: 0;
        transform: translate(0, -50%);
    }

    40% {
        left: 50%;
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
        transform: translate(-50%, -50%);
    }

    100% {
        left: 50%;
        opacity: 0.9;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
        transform: translate(-50%, -50%);
    }
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.85rem;
    color: #999;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .site-header {
        padding: 20px;
        justify-content: center;
    }

    .navbar .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .profile-section .name {
        font-size: 2.8rem;
    }

    .box-glass {
        padding: 30px 20px;
    }
}