:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f4c75;
    --accent-light: #3282b8;
    --text: #e8e8e8;
    --text-muted: #a0a0a0;
    --bg: #0d0d1a;
    --card-bg: rgba(26, 26, 46, 0.6);
    --border: rgba(50, 130, 184, 0.2);
    --glow: rgba(50, 130, 184, 0.4);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(15, 76, 117, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(50, 130, 184, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(22, 33, 62, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-20px, 20px); }
    66% { transform: translate(20px, -20px); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: rgba(13, 13, 26, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

/* Hero section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-content h1 strong {
    font-weight: 600;
    display: block;
    background: linear-gradient(135deg, var(--accent-light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--glow);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-light);
    color: white;
    border: 1px solid var(--accent-light);
}

.btn-primary:hover {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent-light);
    background: var(--card-bg);
}

.hero-visual {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo-container {
    position: relative;
    z-index: 10;
}

.profile-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-light);
    box-shadow: 0 10px 50px var(--glow);
    animation: photoFloat 6s ease-in-out infinite;
}

/* Fallback when image is missing */
.profile-photo-container::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    z-index: -1;
}

@keyframes photoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.visual-card {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.visual-card:nth-child(2) {
    top: 2%;
    left: 5%;
    animation-delay: 2s;
}

.visual-card:nth-child(3) {
    top: 2%;
    left: 55%;
    animation-delay: 2s;
}


.visual-card:nth-child(4) {
    top: 40%;
    right: -10%;
    animation-delay: 2s;
}

.visual-card:nth-child(5) {
    bottom: 5%;
    left: 10%;
    animation-delay: 2s;
}

.visual-card:nth-child(6) {
    bottom: 40%;
    left: -10%;
    animation-delay: 2s;
}

.visual-card:nth-child(7) {
    bottom: 5%;
    left: 60%;
    animation-delay: 2s;
}

.visual-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visual-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Section styles */
section {
    margin-bottom: 8rem;
    animation: fadeIn 0.8s ease-out both;
}

section:nth-child(2) { animation-delay: 0.4s; }
section:nth-child(3) { animation-delay: 0.6s; }
section:nth-child(4) { animation-delay: 0.8s; }
section:nth-child(5) { animation-delay: 1s; }

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-light);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

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

.research-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-light), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.research-card:hover::before {
    transform: translateX(0);
}

.research-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-light);
    box-shadow: 0 10px 40px var(--glow);
}

.research-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1.5rem;
}

.research-image {
    width: 300px;
    height: 85px;
    align-items: center;
    /*object-fit: contain;*/
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

.research-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.research-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.4rem 0.9rem;
    background: rgba(50, 130, 184, 0.15);
    border: 1px solid rgba(50, 130, 184, 0.3);
    border-radius: 20px;
    font-size: 0.6rem;
    color: var(--accent-light);
    font-family: 'JetBrains Mono', monospace;
}

.research-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.research-link {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.research-link:hover {
    border-color: var(--accent-light);
    background: var(--accent);
}

/* Publications */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.publication-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-light);
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.publication-item:hover {
    transform: translateX(5px);
    border-color: var(--accent-light);
    box-shadow: -5px 5px 20px var(--glow);
}

.pub-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-light);
    /*margin-bottom: 0.5rem;*/
    font-weight: 600;
}

.publication-item h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    /*margin-bottom: 0.8rem;*/
    font-weight: 500;
    line-height: 1.4;
}

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

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

.pub-venue {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
}

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

.pub-link {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pub-link:hover {
    border-color: var(--accent-light);
    background: var(--accent);
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.award-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.award-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-light), transparent);
    transform: translateY(-100%);
    transition: transform 0.6s ease;
}

.award-card:hover::before {
    transform: translateY(0);
}

.award-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-light);
    box-shadow: 0 10px 40px var(--glow);
}

.award-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1.5rem;
}

.award-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.award-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
}

.award-org {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.award-description {
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 0.1rem;
}

.award-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.award-link:hover {
    color: var(--text);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-light), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-light);
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 10px var(--glow);
}

.timeline-period {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-org {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.timeline-description {
    color: var(--text-muted);
    line-height: 1.7;
}

.timeline-description ul {
    list-style: none;
    margin-top: 1rem;
}

.timeline-description li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.timeline-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-light);
}

/* Footer */
footer {
    background: var(--secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    /*margin-top: 0rem;*/
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .profile-photo {
        width: 220px;
        height: 220px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    main {
        padding: 6rem 1.5rem 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-visual {
        height: 280px;
    }
    
    .profile-photo {
        width: 180px;
        height: 180px;
    }
    
    .visual-card {
        padding: 1rem;
    }
    
    .visual-card h3 {
        font-size: 0.65rem;
    }
    
    .visual-card p {
        font-size: 0.8rem;
    }
}
