@import "./styles.css";

:root {
    --page-bg: #eef6f7;
    --surface: rgba(255, 255, 255, 0.9);
    --ink: #183243;
    --muted: #5a6f7b;
    --accent: #0a6f86;
    --accent-deep: #083e57;
    --line: rgba(16, 65, 86, 0.12);
    --shadow: 0 24px 70px rgba(7, 50, 71, 0.12);
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(92, 188, 196, 0.18), transparent 28%),
        linear-gradient(180deg, #f5fbfb 0%, #ecf4f5 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Spectral", serif;
    color: var(--accent-deep);
}

.header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(4, 37, 53, 0.82);
    backdrop-filter: blur(16px);
    z-index: 10000;
}

.header .navbar-brand,
.header .nav-link,
.navbar-toggler {
    color: #f4fbfe !important;
}

.header .nav-link {
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}

.bg-bottom {
    background: linear-gradient(135deg, #082f45, #0d5d70);
}

.top-section {
    position: relative;
    min-height: 42rem;
    display: flex;
    align-items: center;
    background-position: center center;
    background-size: cover;
}

.top-section .top-section-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.top-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 30, 43, 0.82) 0%, rgba(4, 30, 43, 0.52) 45%, rgba(4, 30, 43, 0.2) 100%),
        linear-gradient(180deg, rgba(5, 41, 58, 0.2), rgba(5, 41, 58, 0.55));
}

.hero-shell {
    max-width: 48rem;
    padding: 9rem 0 8rem;
    animation: riseIn 0.95s cubic-bezier(0.2, 0.65, 0.15, 1) both;
}

.hero-kicker {
    margin-bottom: 1rem;
    color: rgba(230, 246, 249, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    line-height: 1.04;
    margin-bottom: 1.2rem;
}

.hero-summary {
    max-width: 38rem;
    color: rgba(237, 247, 250, 0.92);
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11rem;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
}

.hero-button.primary {
    background: #f2fbfd;
    color: var(--accent-deep);
}

.hero-button.secondary {
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #f8fdff;
    background: rgba(255, 255, 255, 0.08);
}

.hero-button.tertiary {
    border: 1px solid rgba(195, 236, 241, 0.46);
    color: #ebfbff;
    background: rgba(10, 111, 134, 0.24);
}

#avatar {
    position: relative;
    margin-top: -5.5rem;
    z-index: 100;
}

.profile-panel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: min(100%, 58rem);
    padding: 1.35rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    animation: riseIn 0.85s cubic-bezier(0.2, 0.65, 0.15, 1) both;
    animation-delay: 0.12s;
}

#avatar img {
    width: 8.5rem;
    height: 8.5rem;
    object-fit: cover;
    border-radius: 22px;
    border: 4px solid rgba(255, 255, 255, 0.86);
}

.profile-panel-text p {
    margin-bottom: 0.35rem;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-deep);
}

.profile-affiliation,
.profile-role {
    color: var(--muted);
}

section {
    position: relative;
    padding: 5.5rem 0;
}

section header h2 {
    color: var(--accent-deep);
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 2rem;
}

section .main-body {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.95;
    color: var(--ink);
}

.bg-gradient-primary-to-secondary-light {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.82)),
        linear-gradient(120deg, rgba(219, 241, 242, 0.5), rgba(244, 251, 251, 0.95)) !important;
}

.bg-gradient-primary-to-secondary-gray {
    background:
        linear-gradient(180deg, rgba(234, 244, 245, 0.7), rgba(242, 247, 247, 0.95)),
        linear-gradient(120deg, rgba(211, 234, 237, 0.45), rgba(247, 250, 250, 0.85)) !important;
}

.intro-grid,
.section-grid,
.contact-grid {
    display: grid;
    gap: 1.4rem;
}

.intro-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 1fr);
    margin-bottom: 2rem;
}

.lead-text {
    font-size: 1.14rem;
    line-height: 2;
}

.meta-stack {
    display: grid;
    gap: 1rem;
}

.info-card,
.feature-card,
.contact-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.info-card:hover,
.feature-card:hover,
.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 111, 134, 0.28);
    box-shadow: 0 18px 48px rgba(7, 50, 71, 0.14);
}

.info-card,
.feature-card {
    padding: 1.35rem 1.4rem;
}

.info-card p,
.feature-card p {
    margin-bottom: 0.45rem;
}

.info-card-label {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.2rem;
}

.tag-cloud span {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(10, 111, 134, 0.08);
    border: 1px solid rgba(10, 111, 134, 0.12);
    color: var(--accent-deep);
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.tag-cloud span:hover {
    transform: translateY(-2px);
    background: rgba(10, 111, 134, 0.16);
}

.contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.2rem 1.3rem;
    text-decoration: none;
    color: inherit;
}

.contact-label {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-value {
    font-weight: 700;
    word-break: break-word;
}

.section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.8rem;
}

.section-grid-projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-grid-tight {
    margin-bottom: 0;
}

.feature-card h4 {
    margin-bottom: 0.9rem;
}

.feature-title {
    color: var(--accent-deep);
    font-weight: 800;
}

.main-body h4 {
    position: relative;
    padding-left: 0.95rem;
}

.main-body h4::before {
    content: "";
    width: 0.25rem;
    height: 1em;
    position: absolute;
    left: 0;
    top: 0.18em;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(10, 111, 134, 0.95), rgba(8, 62, 87, 0.95));
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-shell,
    .profile-panel,
    .info-card,
    .feature-card,
    .contact-card,
    .tag-cloud span {
        animation: none;
        transition: none;
        transform: none;
    }
}

.main-body ol,
.main-body ul {
    padding-left: 1.4rem;
}

.main-body li {
    margin-bottom: 1rem;
    padding-left: 0.3rem;
}

#publications .main-body h4 {
    margin-top: 2.2rem;
    margin-bottom: 1rem;
}

#publications .main-body h4:first-child {
    margin-top: 0;
}

#publications .main-body ol {
    padding-left: 1.15rem;
}

#publications .main-body li {
    margin-bottom: 0.72rem;
    padding-left: 0.25rem;
    line-height: 1.8;
}

#publications .main-body li::marker {
    font-weight: 700;
    color: var(--accent-deep);
}

#publications .main-body li + li {
    padding-top: 0.72rem;
    border-top: 1px solid rgba(16, 65, 86, 0.08);
}

.author-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.publication-translation {
    display: block;
    margin-top: 0.5rem;
    margin-left: 0.1rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.publication-doi {
    margin-left: 0.42rem;
    color: var(--accent);
    font-size: 0.92rem;
    white-space: nowrap;
    text-decoration: none;
}

.publication-doi:hover {
    color: var(--accent-deep);
    text-decoration: underline;
}

footer a {
    color: #dff7fb;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
}

@media screen and (max-width: 991px) {
    .top-section {
        min-height: 38rem;
    }

    .intro-grid,
    .section-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .profile-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    #avatar img {
        width: 7rem;
        height: 7rem;
    }
}

@media screen and (max-width: 575px) {
    .hero-shell {
        padding: 8rem 0 7rem;
    }

    .hero-summary {
        font-size: 1rem;
    }

    #avatar {
        margin-top: -4.2rem;
    }

    .profile-panel {
        padding: 1.15rem;
        border-radius: 22px;
    }
}
