@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --bg: #07070b;
    --surface: #0f0f16;
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent: #7c3aed;
    --accent2: #06b6d4;
    --accent3: #f472b6;
    --text: #f1f1f4;
    --text-muted: #9a9aab;
    --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.timeline-intro {
    max-width: 850px;
    margin: 0 auto 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        to bottom,
        var(--accent),
        rgba(255,255,255,0.1)
    );
}
.hero {
    position: relative;
    min-height: 92vh;

    display:flex;
    align-items:center;
    justify-content:center;

    background:
        linear-gradient(
            rgba(0,0,0,.75),
            rgba(0,0,0,.82)
        ),
        url("../images/base.jpg");

    background-size:cover;
    background-position:center;
}

.hero-content{
    text-align:center;
    z-index:2;
    max-width:1000px;
    padding:40px;
}

.hero-badge{
    display:inline-block;
    padding:10px 20px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
    margin-bottom:20px;
}

.hero h1{
    font-size:4.5rem;
    margin-bottom:15px;
    font-weight:800;
}

.hero-subtitle{
    font-size:1.4rem;
    color:#c7d2fe;
    margin-bottom:20px;
}
.hero-actions{
    display:flex;
    gap:20px;
    justify-content:center;
    flex-wrap:wrap;
}

.btn-primary{
    background:#2563eb;
    color:white;
    padding:15px 35px;
    border-radius:12px;
    text-decoration:none;
    transition:.3s;
}

.btn-primary:hover{
    transform:translateY(-4px);
}
.stats-section{
    max-width:1200px;
    margin:-80px auto 60px;
    position:relative;
    z-index:5;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    padding:0 20px;
}

.stat-card{
    text-align:center;

    background:rgba(255,255,255,.04);

    backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:30px;
}

.research-profiles{
    margin-top:4rem;
}

.research-profiles h3{
    text-align:center;
    margin-bottom:2rem;
    font-size:1.8rem;
}

.profile-links{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:1.5rem;
}

.profile-btn{
    display:flex;
    align-items:center;
    gap:1rem;

    padding:1.25rem;

    text-decoration:none;

    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);

    border-radius:16px;

    transition:.3s;
}

.profile-btn:hover{
    transform:translateY(-5px);
}

.profile-btn img{
    width:54px;
    height:54px;
}

.profile-icon{
    font-size:2rem;
    width:54px;
    text-align:center;
}

.profile-btn div{
    display:flex;
    flex-direction:column;
}

.profile-btn .label{
    font-size:.85rem;
    color:var(--text-muted);
}

.profile-btn .title{
    font-size:1.15rem;
    font-weight:700;
    color:white;
}

.orcid-btn:hover{
    border-color:#A6CE39;
}

.scholar-btn:hover{
    border-color:#4285F4;
}

.scopus-btn:hover{
    border-color:#ff8200;
}

.wos-btn:hover{
    border-color:#00a0df;
}



.navbar{
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
    background: rgba(5,10,20,.75);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem;
}
.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.35rem;
    cursor: pointer;
}
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.nav-links.open {
    max-height: 420px;
}
.counter{
    display:block;
    font-size:3rem;
    font-weight:800;
    color:#60a5fa;
}

.stat-card p{
    margin-top:10px;
}
.btn-secondary{
    border:1px solid rgba(255,255,255,.2);
    color:white;
    padding:15px 35px;
    border-radius:12px;
    text-decoration:none;
}
.hero-location{
    color:#9ca3af;
    margin-bottom:35px;
}
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -39px;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 20px rgba(0,123,255,.45);
}

.timeline-date {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    letter-spacing: .5px;
}

.timeline-content {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all .25s ease;
}

.timeline-content:hover {
    transform: translateX(8px);
    border-color: var(--accent);
}

.timeline-content h3 {
    margin-bottom: .3rem;
    color: white;
}

.timeline-content h4 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5,10,20,.95);
        flex-direction: column;
        align-items: center;
        gap: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.35s ease;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .nav-links a {
        width: 100%;
        margin: 0;
        padding: 1rem 0;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .nav-links.open {
        max-height: 480px;
    }
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: -28px;
    }

    .timeline-content:hover {
        transform: none;
    }

    .hero {
        min-height: 70vh;
        padding: 2rem 1rem 2.5rem;
    }

    .hero-content {
        padding: 24px;
    }

    .stats-section {
        margin: -60px auto 45px;
        padding: 0 1rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .card img {
        height: auto;
    }
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Animated background blobs */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    z-index: -1;
    animation: float 18s ease-in-out infinite;
}
body::before {
    width: 500px; height: 500px;
    background: var(--accent);
    top: -150px; left: -150px;
}
body::after {
    width: 450px; height: 450px;
    background: var(--accent2);
    bottom: -100px; right: -100px;
    animation-delay: -9s;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
}

header {
    padding: 5rem 1.5rem 3.5rem;
    text-align: center;
    position: relative;
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    background: var(--gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 6s ease infinite, fadeInUp 0.8s ease both;
    letter-spacing: -0.02em;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.tagline {
    font-size: 1.3rem;
    color: var(--text);
    margin: 0.9rem 0 0.3rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    animation: fadeInUp 0.8s ease 0.1s both;
}
header p.location {
    color: var(--text-muted);
    animation: fadeInUp 0.8s ease 0.2s both;
}

nav {
    background: rgba(15, 15, 22, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--card-border);
    text-align: center;
}

nav a {
    color: var(--text-muted);
    margin: 0 1.1rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}
nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    border-radius: 2px;
}
nav a:hover { color: var(--text); }
nav a:hover::after { transform: scaleX(1); }

main { max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.5rem; }

h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.6s ease both;
}
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    border-radius: 4px;
    background: var(--gradient);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    animation: fadeInUp 0.6s ease both;
    position: relative;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
}
.card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.25);
    border-color: rgba(124, 58, 237, 0.4);
}
.card:hover::before { opacity: 0.08; }

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.card:hover img { transform: scale(1.06); }

.card-content { padding: 1.6rem; position: relative; z-index: 1; }
.card-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}
.card-content p { color: var(--text-muted); font-size: 0.95rem; }

.publication-category {
    margin-bottom: 3rem;
}

.publication-category > h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    margin-bottom: 1.25rem;
    color: #fff;
}

.category-count {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 0.5rem;
}
/* Reveal-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons / links */
.btn-grad {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
}
.btn-grad:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.5);
}

a.inline-link {
    color: var(--accent2);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}
a.inline-link:hover {
    border-color: var(--accent2);
    color: #fff;
}

footer {
    background: var(--surface);
    text-align: center;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}
footer a { color: var(--accent2); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--accent3); }

/* Flash messages */
.flash {
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
}
.profile-links {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 1rem;

    min-width: 280px;
    padding: 1.2rem 1.5rem;

    text-decoration: none;

    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 14px;

    transition: all 0.25s ease;
}

.profile-btn:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.profile-btn img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.profile-btn div {
    display: flex;
    flex-direction: column;
}

.profile-btn .label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.profile-btn .title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

.orcid-btn:hover {
    border-color: #A6CE39;
}

.scholar-btn:hover {
    border-color: #4285F4;
}

.flash-msg {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--accent2);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.4s ease both;
}
.flash-msg.error { border-left-color: var(--accent3); }
