main {
    scroll-snap-type: y proximity;
}

main > section {
    scroll-padding: 25dvh;
    scroll-snap-align: start;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
}

main > section > h1 {
    font-weight: 700;
}

main > section:nth-child(1) {
    display: flex;
    align-items: center;
    justify-items: center;
    flex-direction: column;
}

main > section:nth-child(1) > * {
    margin: 0;
    
}

main > section:nth-child(1) > h1 {
    font-size: 8rem;
    line-height: 7rem;
    text-align: center;
    animation: fadeout-transition forwards;
    animation-timeline: view(10dvh 85dvh);
}

#sec1_subtext {
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    animation: fadeout-transition forwards;
    animation-timeline: view(5dvh 85dvh);
}

@media (max-width: 768px) {
    main > section:nth-child(1) > h1 {
        font-size: 5rem;
        line-height: 4rem;
        animation: none;
    }
    #sec1_subtext {
        font-size: 1.5rem;
        animation: none;
    }
}

@keyframes fadeout-transition {
    to {
        opacity: 0;
    }
}

main > section:nth-child(2) {
    padding: 0 15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#text_about {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    main > section:nth-child(2) {
        padding: 0 0.5rem;
    }
}

main > section:nth-child(2) > * {
    animation: section2-con-transition linear;
    animation-timeline: view(3dvh);
    opacity: 0;
}

main > section:nth-child(2) p {
    text-align: center;
    line-height: 1.5rem;
    max-width: 100ch;
}

@media (max-width: 768px) {
    main > section:nth-child(2) p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@keyframes section2-con-transition {
    0% {
        transform: translateX(5rem);
        opacity: 0;
    }
    40% {
        transform: translateX(0);
        opacity: 1;
    }
    80% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-5rem);
        opacity: 0;
    }   
}

#team {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 5rem 10rem;
}

#team h1 {
    margin: 0;
    animation: section3-title-transition forwards;
    animation-timeline: view(5dvh 0);
    opacity: 0;
    text-align: center;
}

@media (max-width: 768px) {
    #team {
        padding: 5rem 1rem;
    }

    #team h1 {
        font-size: 2rem;
        line-height: 2rem;
    }
}

#team img {
    height: 15rem;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    margin: 1rem;
}

.creator {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    animation: section3-creator-transition forwards;
    animation-timeline: view(100px 100px);
    opacity: 0;
}

@media (max-width: 768px) {
    .creator {
        flex-direction: column;
        align-items: start;
    }
    #team img {
        height: 10rem;
        margin: 0 auto;
    }
}

.details2 {
    display: grid;
    grid-template-columns: repeat(3, auto);
}

@media (max-width: 768px) {
    .details > h2 {
        margin: 0.25rem 0;
    }
    .details2 {
        grid-template-columns: 1fr;
    }

    .details2 h2 {
        margin-top: 0;
    }
}

.details2 ul {
    line-height: 1.5rem;
}

.details2 ul a {
    color: var(--md-sys-color-primary);
}

[data-theme="dark"] .details2 ul a {
    color: var(--md-sys-color-primary);
}

@keyframes section3-title-transition {
    0% {
        transform: translateY(5rem);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes section3-creator-transition {
    0% {
        transform: translateX(5rem);
        opacity: 0;
    }
    30% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}