/* ===== CSS Variables ===== */
:root {
    --primary: #003366;
    --primary-light: #1a5276;
    --primary-dark: #001a33;
    --accent: #c9a84c;
    --accent-light: #e8d8a0;
    --text: #1a202c;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #edf2f7;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --transition: all 0.3s ease;
    --radius: 8px;
    --radius-lg: 12px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-logo:hover {
    color: var(--primary-light);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--bg-alt);
}

.lang-switch {
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 0.35rem 0.75rem !important;
    font-weight: 600;
    color: var(--primary) !important;
    transition: var(--transition);
}
.lang-switch:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #001a33 0%, #003366 40%, #1a5276 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(226, 166, 59, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(43, 108, 176, 0.2) 0%, transparent 40%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 4rem;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.profile-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.profile-info .title {
    font-size: 1.2rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.profile-info .affiliation {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.affiliation-link {
    color: rgba(255, 255, 255, 0.85) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none !important;
}

.affiliation-link:hover {
    color: #fff !important;
}

.uni-logo-hero {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.9;
    vertical-align: middle;
    transition: var(--transition);
}

.affiliation-link:hover .uni-logo-hero {
    opacity: 1;
}

.uni-logo-contact {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: invert(20%) sepia(50%) saturate(800%) hue-rotate(180deg) brightness(0.4);
}

.hero-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-links a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    transition: var(--transition);
}

.hero-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===== Section Styles ===== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.75rem;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.section-subtitle a {
    font-weight: 600;
}

/* ===== News Section ===== */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}
.news-item {
    display: flex;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.news-item:last-child {
    border-bottom: none;
}
.news-date {
    flex-shrink: 0;
    width: 120px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}
.news-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text);
}
.news-text a {
    color: var(--primary);
    font-weight: 500;
}
.news-text a:hover {
    color: var(--accent);
}
.news-papers {
    margin: 0.5rem 0 0 1.2rem;
    padding: 0;
    list-style: disc;
}
.news-papers li {
    margin-bottom: 0.3rem;
    font-size: 0.98rem;
    line-height: 1.5;
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.about-content.about-single {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 2rem;
}

.education h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edu-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.edu-item:last-child {
    border-bottom: none;
}

.edu-degree {
    font-weight: 600;
    color: var(--text);
}

.edu-school {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.highlight-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
}

.highlight-text span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== Research Section ===== */
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.research-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.research-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.research-card h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.research-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Publications Section ===== */
.pub-list {
    margin-top: 2rem;
}

.pub-year-group {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pub-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    padding-top: 1.25rem;
    text-align: right;
}

.pub-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pub-item {
    padding: 1.25rem 1.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary-light);
    transition: var(--transition);
}

.pub-item:hover {
    border-left-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateX(3px);
}

.pub-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.pub-venue {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pub-venue i {
    color: var(--primary-light);
    font-size: 0.75rem;
}

.pub-award {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.pub-award i {
    color: #d97706 !important;
    font-size: 0.7rem;
}

/* ===== Awards Section ===== */
.awards-list {
    max-width: 700px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.award-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.award-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.award-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.award-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
}

.award-venue {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

/* ===== Service Section ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}

.service-card li {
    padding: 0.6rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.service-card li:last-child {
    border-bottom: none;
}

.service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
}

/* ===== Contact Section ===== */
.contact-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.contact-card > i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
    font-size: 0.95rem;
    color: var(--text-light);
}

.contact-card a:hover {
    color: var(--accent);
}

.email-link-canvas {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}

.email-link-canvas:hover .email-canvas {
    filter: brightness(0.6);
}

.email-canvas {
    display: block;
    margin: 0 auto;
    transition: filter 0.3s ease;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.footer a {
    color: rgba(255, 255, 255, 0.65);
}

.footer a:hover {
    color: var(--accent-light);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: center;
    }

    .profile-info h1 {
        font-size: 2.2rem;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .pub-year-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .pub-year {
        text-align: left;
        padding-top: 0;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 1.8rem;
    }

    .profile-info .title {
        font-size: 1rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .pub-item {
        padding: 1rem;
    }
}
