/* ============================================
   Glassmorphism Split Layout
   Color Scheme: Deep Indigo + Coral/Peach accent
   Style: Liquid Glass / Glassmorphism
   ============================================ */

:root {
    --color-bg-deep: #0f0f1a;
    --color-bg-gradient-1: #1a1a2e;
    --color-bg-gradient-2: #16213e;
    --color-accent: #ff6b6b;
    --color-accent-soft: #feca57;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-text-subtle: rgba(255, 255, 255, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-deep);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(254, 202, 87, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(26, 26, 46, 0.8) 0%, transparent 100%),
        linear-gradient(135deg, var(--color-bg-gradient-1) 0%, var(--color-bg-gradient-2) 100%);
    z-index: -1;
    animation: gradientShift 15s ease infinite alternate;
}

@keyframes gradientShift {
    0% { opacity: 1; }
    50% { opacity: 0.9; }
    100% { opacity: 1; }
}

/* Split Layout */
.split-container {
    display: flex;
    min-height: 100vh;
}

/* Left Panel */
.left-panel {
    width: 320px;
    min-width: 320px;
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-right: 1px solid var(--glass-border);
}

/* Right Panel */
.right-panel {
    flex: 1;
    padding: 3rem 4rem;
    overflow-y: auto;
}

/* Glass Card Base */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Profile Card */
.profile-card {
    padding: 2rem;
    text-align: center;
}

.profile-image {
    margin-bottom: 1.25rem;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.profile-card h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.profile-card .title {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.profile-card .affiliation {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Navigation Card */
.nav-card {
    padding: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--color-accent);
    background: rgba(255, 107, 107, 0.1);
}

.nav-icon {
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    opacity: 1;
    transform: rotate(45deg);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: auto;
    padding: 1rem 0;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 107, 107, 0.15);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft));
    border-radius: 2px;
}

/* Content Card */
.content-card {
    padding: 2rem;
}

.content-card .lead {
    font-size: 1.15rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-card p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-card p:last-child {
    margin-bottom: 0;
}

/* Research Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.research-card {
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.research-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.research-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.research-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.research-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Publications */
.publications-list {
    padding: 1.5rem 2rem;
}

.publication {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.publication:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.publication:first-child {
    padding-top: 0;
}

.pub-year {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
    min-width: 60px;
}

.pub-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text);
    line-height: 1.5;
}

.pub-authors {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.pub-journal {
    font-size: 0.85rem;
    color: var(--color-text-subtle);
    font-style: italic;
}

/* Teaching Grid */
.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.teaching-card {
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.teaching-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.course-code {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-accent-soft);
    background: rgba(254, 202, 87, 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.teaching-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.teaching-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.semester {
    font-size: 0.8rem;
    color: var(--color-text-subtle);
    font-weight: 500;
}

/* Contact */
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.contact-item a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-accent-soft);
}

.contact-item span:not(.contact-label) {
    color: var(--color-text-muted);
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

footer p {
    color: var(--color-text-subtle);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .right-panel {
        padding: 2.5rem 3rem;
    }
}

@media (max-width: 900px) {
    .split-container {
        flex-direction: column;
    }

    .left-panel {
        width: 100%;
        min-width: unset;
        height: auto;
        position: relative;
        padding: 1.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .profile-card {
        flex: 1 1 100%;
        max-width: 400px;
    }

    .nav-card {
        flex: 1 1 100%;
        max-width: 400px;
    }

    .nav-card {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.6rem 1rem;
    }

    .social-links {
        flex: 1 1 100%;
        margin-top: 0;
    }

    .right-panel {
        padding: 2rem 1.5rem;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 600px) {
    .research-grid,
    .teaching-grid {
        grid-template-columns: 1fr;
    }

    .publication {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pub-year {
        font-size: 1rem;
    }
}

