/* Sections */

.section {
    padding: 120px 0;
}

.section__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section__inner--narrow {
    max-width: 860px;
}

.section__eyebrow {
    display: inline-flex;
    font-family: var(--font-sans-strong);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--color-muted);
}

.section__intro {
    margin-top: 1.2rem;
    color: var(--color-muted);
}

.section--about {
    position: relative;
}

.section--about .section__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
}

.section__media {
    position: relative;
}

.section__media picture {
    display: block;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-m);
}

.section__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section__content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-card {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.8rem;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-outline);
    border-radius: 22px;
    box-shadow: var(--shadow-l);
}

.about-card__profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-card__profile picture {
    display: block;
    width: 4rem;
    min-width: 4rem;
    height: 4rem;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 34px -24px rgba(7, 15, 35, 0.7);
}

.about-card__profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-card__profile h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.about-card__profile p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.about-card__list {
    display: grid;
    gap: 0.75rem;
    padding-left: 1.2rem;
    list-style: disc;
    color: var(--color-muted);
}

.about-card__list li {
    margin-left: 0.5rem;
}

/* Timeline */

.timeline {
    position: relative;
    margin: 3rem 0 4rem;
    padding-left: 1.3rem;
    display: grid;
    gap: 2.3rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(17, 214, 161, 0.8), rgba(0, 20, 49, 0.25));
}

.timeline__item {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-outline);
    border-radius: 22px;
    padding: 1.8rem 2.2rem 1.8rem 3rem;
    box-shadow: var(--shadow-m);
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 1.9rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-aurora);
    box-shadow: 0 0 18px rgba(17, 214, 161, 0.6);
}

.timeline__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 0.9rem;
}

.timeline__date {
    font-family: var(--font-sans-strong);
    color: var(--color-ink);
}

.timeline__location {
    position: relative;
    padding-left: 1.1rem;
}

.timeline__location::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(17, 214, 161, 0.8);
}

.resume-grid {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.resume-grid__item {
    padding: 1.8rem 1.9rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--color-outline);
    border-radius: 20px;
    box-shadow: 0 22px 54px -38px rgba(7, 15, 35, 0.55);
}

.resume-grid__item h3 {
    margin-bottom: 0.6rem;
}

.resume-grid__meta {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 0.8rem;
}

.publications {
    margin-top: 3rem;
}

.publications h3 {
    margin-bottom: 1.2rem;
}

.publications ul {
    display: grid;
    gap: 1.2rem;
}

.publications li {
    display: grid;
    gap: 0.35rem;
    padding: 1.2rem 1.4rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    border: 1px solid var(--color-outline);
}

.publications a {
    font-family: var(--font-sans-strong);
    color: var(--color-ink);
}

.publications span {
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* Contact */

.section--contact {
    background: linear-gradient(135deg, rgba(17, 214, 161, 0.2), rgba(66, 32, 56, 0.52) 45%, rgba(0, 20, 49, 0.9) 100%);
    color: #f5f8ff;
}

.section--contact h2 {
    color: #fdfdff;
}

.section--contact .section__eyebrow {
    color: rgba(245, 248, 255, 0.7);
}

.section--contact .section__intro {
    color: rgba(240, 243, 255, 0.75);
}

.contact-card {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.5rem;
    padding: 1.8rem 2rem;
    border-radius: 22px;
    background: rgba(5, 13, 34, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px -32px rgba(2, 8, 24, 0.9);
}

.contact-card h3 {
    color: #fdfdff;
}

.contact-card a {
    color: #fdfdff;
    font-family: var(--font-sans-strong);
}

.contact-card__email {
    display: inline-flex;
    margin-top: 0.5rem;
}

.contact-card p {
    color: rgba(246, 248, 255, 0.8);
}

/* Footer */

.site-footer {
    background: #050d22;
    color: rgba(244, 247, 255, 0.75);
    padding: 2rem 0 2.5rem;
}

.site-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.site-footer__brand,
.site-footer__contact {
    margin: 0;
}

.site-footer__contact a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
}

.site-footer__contact a:hover,
.site-footer__contact a:focus {
    color: #fff;
}

.site-footer__brand {
    font-family: var(--font-sans-strong);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.site-footer__to-top {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer__to-top:hover,
.site-footer__to-top:focus {
    color: #fff;
}

/* Responsive */

@media (max-width: 960px) {
    .section--about .section__inner {
        grid-template-columns: 1fr;
    }

    .section__media picture {
        border-radius: 22px;
    }

    .hero__inner {
        max-width: 640px;
    }
}

@media (max-width: 880px) {
    .site-nav__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .site-nav__links {
        width: 100%;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: flex-start;
    }

    .site-nav__links a {
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 160px;
        padding-bottom: 120px;
    }

    .hero__title {
        font-size: clamp(2.4rem, 8vw, 3.2rem);
    }
}

@media (max-width: 720px) {
    .hero {
        background-position: 50% 30%;
    }

    .hero__inner {
        text-align: left;
    }

    .hero__actions {
        justify-content: flex-start;
    }

    .social-list {
        justify-content: flex-start;
    }

    .hero__scroll {
        left: 3rem;
        transform: none;
    }

    .section {
        padding: 90px 0;
    }

    .timeline {
        margin: 2.5rem 0 3rem;
        padding-left: 1.2rem;
    }

    .timeline__item {
        padding-left: 2.6rem;
    }

    .timeline::before {
        left: 0.45rem;
    }

    .timeline__item::before {
        left: -1.25rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
}

@media (max-width: 560px) {
    .hero__actions {
        width: 100%;
    }

    .button {
        width: 100%;
    }

    .about-card {
        padding: 1.5rem;
    }

    .publications li {
        padding: 1rem 1.2rem;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
