:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --accent: #8b5cf6;
    --background: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --border: rgba(226, 232, 240, 0.8);
    --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-animated: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899);
}

:root[data-theme='dark'] {
    --background: #020617;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(15, 23, 42, 0.7);
    --border: rgba(30, 41, 59, 0.5);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background-color: var(--background);
    color: var(--text);
    scroll-behavior: smooth;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08), transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.05), transparent 50%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

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

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

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

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo {
    font-size: 1.5rem;
    background: var(--gradient-animated);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    animation: gradientShift 3s ease infinite;
    position: relative;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

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

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.theme-toggle:hover {
    color: var(--primary);
}

.theme-toggle .fa-sun {
    display: none;
}

:root[data-theme='dark'] .theme-toggle .fa-moon {
    display: none;
}

:root[data-theme='dark'] .theme-toggle .fa-sun {
    display: inline-block;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

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

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

section {
    padding: 8rem 0;
}

h1,
h2,
h3 {
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 40%;
    height: 6px;
    background: var(--gradient);
    margin-top: 0.2rem;
    border-radius: 3px;
    opacity: 0.8;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.profile-container {
    position: relative;
}

.profile-container::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 2rem;
    z-index: -1;
    opacity: 0.2;
}

.profile-img {
    width: 320px;
    height: 320px;
    border-radius: 2rem;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

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

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.btn-social {
    font-size: 1.6rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.btn-social:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

/* Cards & Items */
.pub-item,
.exp-item {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.pub-item::before,
.exp-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.pub-item:hover::before,
.exp-item:hover::before {
    left: 100%;
}

.pub-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--glass), rgba(59, 130, 246, 0.05));
}

.pub-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--gradient-animated);
    background-size: 200% 200%;
    color: white;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.pub-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.pub-title {
    font-size: 1.4rem;
    line-height: 1.3;
}

.pub-authors strong {
    color: var(--primary);
}

.pub-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.pub-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Signature */
.signature {
    margin-top: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.signature span {
    background: var(--gradient-animated);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: gradientShift 3s ease infinite;
}

/* Footer */
footer {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    background: var(--glass);
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }

    .profile-img {
        width: 240px;
        height: 240px;
    }
}

.pub-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pub-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.pub-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.pub-venue {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.pub-awards {
    margin-top: 0.5rem;
    color: #dc2626;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }
}