*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;
}

:root {
    --c-bg: #0a090d;
    --c-primary: #3d85d2;
    --c-secondary: #36e491;
    --c-white: #fff;
    --c-black: #000;
    --c-gray: #555;

    --f-heading1: 3rem;
    --f-heading2: 8rem;
    --f-heading3: 3.2rem;
    --f-heading4: 1.6rem;
    --f-body-l: 2rem;
    --f-body-m: 1.6rem;
    --f-body-s: 1.4rem;
    --f-menu: 4rem;

    --f-primary: 'quasimoda', sans-serif;
    --f-secondary: 'ofelia-display', sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    background-color: var(--c-bg);
    font-family: var(--f-primary);
    color: var(--c-white);
    font-size: var(--f-body-m);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

.container {
    padding-inline: 25.6rem;
}

.section {
    margin: 25.6rem 0;
}

.heading-1 {
    font-family: var(--f-primary);
    font-size: var(--f-heading1);
    font-weight: 100;
    text-wrap: nowrap;
}

.heading-2 {
    font-size: var(--f-heading2);
}

.heading-3 {
    font-size: var(--f-heading3);
    line-height: 1.2;
}

.heading-4 {
    font-size: var(--f-heading4);
    font-weight: 700;
}

.body-text {
    line-height: 1.8;
}

.navigation {
    position: relative;
    z-index: 5;

    font-size: var(--f-menu);
    font-weight: 700;
}

.nav-btn {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;

    background-color: transparent;
    border: none;
    padding: 8px;
    margin-right: 3.2rem;
    margin-top: 3.2rem;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    gap: 8px;

    span {
        display: block;
        width: 30px;
        height: 2px;
        background-color: var(--c-white);
        border-radius: 100px;
        transition: all 0.4s;
    }
}

.js-nav-open .nav-btn--close {
    span:nth-child(2) {
        background-color: transparent;
    }

    span:first-child {
        transform-origin: 50% 11px;
        transform: rotate(135deg) translateY(10px);
    }

    span:last-child {
        transform-origin: 50% -9px;
        transform: rotate(-135deg) translateY(-10px);
    }
}

.nav-box {
    position: absolute;
    left: 100%;
    top: 0;
    width: 100%;
    background-color: #111;
    transition: left 0.6s ease-in-out;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    padding: 12.8rem;
}

.js-nav-open .nav-box {
    left: 0%;
}

.js-nav-open+.main {
    filter: blur(10px);
}

.main {
    padding-top: 12.8rem;
    transition: filter 0.4s;
}

.header {
    /* Height of child element */
    height: 54rem;
}



.logo-container {
    position: absolute;
    left: calc(50vw - 62.781rem/2);
    top: 15rem;
    width: min-content;
    transition: transform 0s ease-in-out, left .4s;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container.small {
    transform: scale(0.2);
    left: -18rem;
    top: -14rem;
    animation: logoFade 0.4s linear both;
    /* position: fixed; */

}

@keyframes logoFade {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.main-logo {
    width: 100%;
}

.blob1 {
    position: absolute;
    opacity: 0.5;
    width: 330px;
    height: 450px;
    aspect-ratio: 1/1;
    animation: animate-blob1 10s ease-in-out infinite alternate forwards;
    filter: blur(100px);
    z-index: -1;
    translate: -50%;
    transform-origin: 0% 100%;
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    background-color: var(--c-secondary);
}


@keyframes animate-blob1 {

    50% {
        translate: -55% -2%;
        border-radius: 75% 32% 40% 60% / 60% 40% 60% 40%;
        rotate: -10deg;
        scale: 1.15;
    }

    100% {
        translate: -60% 10%;
        border-radius: 100% 75% 92% 74% / 60% 80% 30% 70%;
        rotate: 10deg;
        scale: 0.9;
    }
}

.blob2 {
    position: absolute;
    opacity: 0.5;
    width: 300px;
    height: 525px;
    aspect-ratio: 1/1;
    translate: 20% 0;
    animation: animate-blob2 14s linear infinite alternate forwards;
    filter: blur(100px);
    z-index: -1;
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    background-color: var(--c-primary);
}


@keyframes animate-blob2 {

    50% {
        translate: 10% 2%;
        border-radius: 75% 32% 40% 60% / 60% 40% 60% 40%;
        rotate: 20deg;
        scale: 1.15;
    }

    100% {
        translate: 30% -10%;
        border-radius: 90% 85% 90% 75% / 80% 90% 50% 80%;
        rotate: 60deg;
        scale: 1.05;
    }
}


.section-intro {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 1.6rem;
}

.intro-title {
    max-width: 100rem;
    color: var(--c-primary);
}

.intro-body {
    max-width: 80rem;
}

.section-stats {
    display: flex;
    justify-content: space-around;
    color: var(--c-primary);
}

.stats-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 12.8rem;
}

.stat-text {
    font-size: var(--f-body-l);
}

.section-theme {
    color: var(--c-black);
    padding-top: 12.8rem;
    padding-bottom: 12.8rem;
    background-image: linear-gradient(to bottom,
            var(--c-primary),
            var(--c-secondary));

    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 3.2rem;
}

.theme-subtitle {
    align-self: flex-start;
}

.theme-title {
    max-width: 80rem;
}

.theme-body {
    max-width: 80rem;
}

.section-event {
    position: relative;
}

.event-img {
    max-width: 70rem;
    position: absolute;
    right: 0;
    top: -20rem;
}

.event-text {
    display: flex;
    flex-direction: column;
    width: 80rem;
    gap: 3.2rem;
}

.event-subtitle {
    color: var(--c-secondary);
    margin-bottom: 12.8rem;
}

.event-title {
    color: var(--c-secondary);
}

.section-logos {
    display: flex;
    flex-direction: column;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 10%;
}

.fancy-text-color {
    background-image: linear-gradient(to right,
            var(--c-primary),
            var(--c-secondary));
    background-size: 200%;
    background-position: 0;

    background-clip: text;
    color: transparent;
}

.fancy-text-color:hover {
    animation: hover-fancy 0.6s infinite alternate ease-in-out;
}

@keyframes hover-fancy {
    100% {
        background-position: 50%;
    }
}

/* ----------Members---------- */

.section-members {
    margin-top: 12.8rem;
}

.members-grid {
    margin-top: 6.4rem;

    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 6.4rem;
    row-gap: 12.8rem;
}

.member {
    display: flex;
    gap: 3.2rem;

    img {
        min-width: 25rem;
        object-fit: cover;
    }
}

.member__info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.member__name {
    color: var(--c-secondary);
}

.member__title {
    font-size: var(--f-heading4);
    font-weight: 700;
}

.member__university {
    font-size: var(--f-heading4);
    font-weight: 700;
}

.member__country {
    font-size: var(--f-heading4);
    font-weight: 700;
}

.member__interests {
    text-wrap: balance;
    line-height: 1.5;
    margin-top: 6.4rem;
    margin-bottom: 3.2rem;
}

/* ----------Research Themes---------- */

.section-themes {
    margin-top: 12.8rem;
}

.section-themes.container {
    padding: 0 12.8rem;
}

.themes__container {
    margin-top: 6.4rem;
    margin-left: 3.2rem;
    display: flex;
}

.side-line {

    width: 2px;
    background-color: var(--c-gray)
}

.theme {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 12.8rem;
}

.current-theme,
.past-theme,
.old-theme {
    display: flex;
    gap: 8rem;
}

.theme__date,
.old-theme__date {
    display: flex;
    align-items: flex-start;
    gap: 1.6rem;

    span {
        display: block;
    }
}

.theme__year__icon {
    display: inline-block;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 100px;
    background-color: var(--c-bg);
    border: 2px solid var(--c-gray);
    margin-left: -1.7rem;
}

.theme__year {
    font-size: 4.8rem;
    color: var(--c-gray);
}

.theme__text {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.theme__title {
    text-wrap: balance;
    color: var(--c-primary);
    margin-bottom: 3.2rem;
    margin-top: 6.4rem;
}

.theme__details {
    line-height: 1.5;
}

.theme__list {
    margin-left: 12.8rem;

    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.theme__item {
    list-style: circle;
}

.old-theme {
    align-items: flex-end;
}

.old-theme__date {
    flex-basis: 14rem;
    align-items: flex-end;
}

.old-theme__year__icon {
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 100px;
    background-color: var(--c-bg);
    border: 2px solid var(--c-gray);
    margin-left: -.9rem;
}

.old-theme__year {

    font-size: 2.4rem;
    color: var(--c-gray);
}