/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0ea5e9;
    --secondary-color: #0c4a6e;
    --accent-color: #38bdf8;
    --light-accent: #7dd3fc;
    --lightest-accent: #e0f2fe;
    --text-dark: #0f172a;
    --text-light: #334155;
    --bg-light: rgba(248, 250, 252, 0.95);
    --bg-white: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-bg-strong: rgba(255, 255, 255, 0.8);
    --glass-bg-light: rgba(255, 255, 255, 0.35);
    --glass-border: rgba(255, 255, 255, 0.3);
    --border-light: rgba(224, 231, 255, 0.4);
    --shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --shadow-lg: 0 15px 35px rgba(31, 38, 135, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: url('background.png') center/cover fixed no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(1px);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(40px) saturate(200%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo a:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    background: var(--glass-bg-light);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 2rem 0;
}

.hero-text {
    /* Remove individual background since parent container now has it */
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-about {
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.hero-description a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.hero-description a:hover {
    text-decoration: underline;
}

.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: var(--glass-bg-strong);
    border-radius: 1rem;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.edu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.edu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -0.375rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    opacity: 0.3;
}

.edu-year {
    min-width: 100px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.edu-detail {
    color: var(--text-dark);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    display: flex;
    justify-content: center;
    /* Image is now inside the glass container */
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(255, 255, 255, 0.6),
        0 0 0 6px rgba(14, 165, 233, 0.15);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(255, 255, 255, 0.8),
        0 0 0 6px rgba(14, 165, 233, 0.25);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--bg-white);
}

/* Sections */
section {
    padding: 3.5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Publications Section */
.publications {
    background: transparent;
    position: relative;
}

.publications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    opacity: 0.95;
    pointer-events: none;
}

.publication-category {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.publication-category h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.publication-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.publication-item:hover {
    background: var(--bg-white);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin: 0 -0.75rem;
    box-shadow: var(--shadow-lg);
}

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

.publication-item h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.4;
    font-weight: 600;
}

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

.authors strong {
    color: var(--primary-color);
    font-weight: 600;
}

.journal {
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 0;
    font-size: 0.85rem;
    display: inline;
    font-weight: 600;
}

.publication-links {
    display: inline-flex;
    gap: 0.75rem;
    margin-left: 0.5rem;
}

.publication-links a {
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.publication-links a:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.note {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

/* Talks Section */
.talks {
    background: transparent;
    position: relative;
}

.talks::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    opacity: 0.9;
    pointer-events: none;
}

.talks-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.talk-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.talk-item:hover {
    background: var(--bg-white);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin: 0 -0.75rem;
    box-shadow: var(--shadow-lg);
}

.talk-item:last-child {
    border-bottom: none;
}

.talk-date {
    min-width: 60px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: left;
    flex-shrink: 0;
}

.talk-info h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.4;
    font-weight: 600;
}

.talk-venue {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
    font-size: 0.85rem;
}

.talk-location {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    background: transparent;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    opacity: 0.95;
    pointer-events: none;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-white);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-top: 1px solid var(--glass-border);
    color: var(--text-dark);
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Cluster Map in Contact Section */
.cluster-map-item {
    /* Remove full width span for 2x2 layout */
    max-width: none;
}

.cluster-map-container {
    margin-top: 1rem;
    text-align: center;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--glass-bg-light);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cluster-map-container img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.cluster-map-container a:hover img {
    transform: scale(1.02);
}

/* Cluster Map Fixed Position (if needed elsewhere) */
.cluster-map-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .image-container {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        backdrop-filter: blur(40px) saturate(200%);
        -webkit-backdrop-filter: blur(40px) saturate(200%);
        border: 1px solid var(--glass-border);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .publication-item:hover,
    .talk-item:hover {
        margin: 0;
        padding: 0.75rem 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
    }
    
    .education-timeline {
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .hero-content {
        padding: 2rem;
        border-radius: 1.5rem;
    }
    
    .edu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .edu-year {
        min-width: auto;
        font-size: 0.85rem;
    }
    
    .publication-links {
        flex-wrap: wrap;
    }
    
    .talk-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .talk-date {
        min-width: auto;
        text-align: left;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cluster-map-fixed {
        bottom: 10px;
        right: 10px;
        padding: 0.25rem;
    }
    
    .cluster-map-container {
        padding: 0.75rem;
    }
    
    /* Switch to single column on tablet */
    .contact-info {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .image-container {
        width: 220px;
        height: 220px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .hero-content {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }
    
    .cluster-map-container {
        padding: 0.5rem;
    }
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.publication-item,
.contact-item,
.talk-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Additional Glass Effects */
@keyframes glassShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.glass-shimmer {
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    background-size: 200% 100%;
    animation: glassShimmer 3s infinite;
}

/* Clean text without shadows for better readability */
.publication-item h4,
.talk-info h4,
.contact-item h4,
.authors,
.journal,
.talk-venue,
.talk-location,
.contact-item p {
    /* All text shadows removed for clean appearance */
}

/* Enhanced glass borders */
.glass-border {
    border: 1px solid;
    border-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.3)
    ) 1;
}