@font-face {
    font-family: 'ImperialScript';
    src: url('../fonts/Imperial_Script/ImperialScript-Regular.ttf') format('truetype');
}

html, body { height: 100%; }
body { margin: 0 }

:root {
    --light-blue: #47558d;
    --matte-blue: #58628a;
    --gray: #f5f5f5;
    --dark-gray: #8b8b8b;
    --dark: #1a1a1a;

    --background-blue: #f0f2f5;

    --transparent-blue: rgba(40, 50, 90, 0.4);
    --transparent-matte-blue: rgba(88, 98, 138, 0.4);
    --border: #0000001A;

    --animation-durantion: 1.2s;
}

* {
    outline: none;
    font-family: Segoe UI, "Helvetica Neue", Arial, Verdana, Tahoma;
    box-sizing: border-box;
    color: var(--dark);
}

*::-webkit-scrollbar {
    width: 12px;
    margin: 8px;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--matte-blue);
    border-radius: 8px;
    margin: 8px;
    border: 3px solid var(--background-blue);
}

*::-webkit-scrollbar-track {
    background-color: var(--background-blue);
    margin: 0 8px;
}

html {
    scroll-behavior: smooth;
}

ul, li {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    user-select: none;
}

section {
    width: 100%;
    display: flex;
    justify-content: center;
    max-width: 100vw;
    overflow: hidden;
    transition: all var(--animation-durantion) ease-in-out;
}

section .title {
    font-family: 'ImperialScript';
    font-size: 64px;
    color: white;
    margin-bottom: 64px;
    text-align: center;
    transition: all var(--animation-durantion) ease-in-out;
}

section:not(.animate) .title {
    opacity: 0;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.wrapper {
    max-width: 1280px;
    width: calc(100% - 64px);
}

nav {
    background: var(--gray);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    position: fixed;
    border-radius: 0 0 32px 0;
    z-index: 1000;
    animation: topBottom 1s ease-in-out;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 32px;
}

nav ul li {
    padding: 8px 16px;
    background-color: var(--matte-blue);
    border-radius: 16px 0 16px 0;
    font-size: 12px;
    text-transform: uppercase;
    font-style: italic;
    transition: all .3s;
    cursor: pointer;
    animation: scale var(--animation-durantion) ease-in-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav ul li img {
    width: 16px;
}

nav ul li span {
    color: white;
}

nav ul li:hover {
    border-radius: 0;
}

nav .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

nav .menu {
    display: none;
    border: none;
    background: transparent;
}

.menu-mobile {
    position: fixed;
    padding: 76px 20px 8px;
    background-color: var(--matte-blue);
    color: white;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    border-radius: 0 0 32px 0;
    visibility: hidden;
    top: -200px;
    display: none;
    transition: all var(--animation-durantion) ease;
    width: 0;
    overflow: hidden;
    opacity: 0;
} 

.menu-mobile.open {
    visibility: visible;
    top: 20px;
    width: 100%;
    opacity: 1;
}

.menu-mobile:not(.open) li {
    opacity: 0;
}

.menu-mobile ul {
    min-width: calc(100vw - 40px);
}

.menu-mobile li {
    color: white;
    padding: 16px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 1px solid var(--transparent-blue);
    transition: all var(--animation-durantion) ease-in-out;
}

.menu-mobile ul li img {
    width: 16px;
}

.menu-mobile ul li span {
    color: white;
}


.menu-mobile a:last-child li {
    border-bottom: none;
}

.logo {
    width: 64px;
    animation: scale var(--animation-durantion) ease-in-out;
}

#home {
    background-color: white;
    background-image: url(../images/wave.svg);
    background-repeat: repeat-x;
    background-position-y: 100%;
    padding-top: 70px;
    aspect-ratio: 16/8;
}

#home:not(.animate) {
    background-position-y: 190%;
}

#home .wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

#home .image-container {
    height: 100%;
    margin-left: auto;
    transition: all var(--animation-durantion) ease-in-out;
}

#home:not(.animate) .image-container {
    opacity: 0;
}

#home .image-container img {
    height: 100%;
}

#home .texts {
    padding: 24px 32px;
    overflow: hidden;
    color: var(--dark);
    background-color: var(--gray);
    border-radius: 48px 0 48px 0;
    border: 1px solid var(--border);
    position: relative;
    transition: all var(--animation-durantion) ease-in-out;
    height: 200px;
    overflow: hidden;
}

#home:not(.animate) .texts {
    opacity: 0;
    height: 0px;
}

.circle-gap {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--border);
    right: 12px;
    top: 12px;
    position: absolute;
    background-color: white;
    transition: all var(--animation-durantion) ease-in-out;
}

section:not(.animate) .circle-gap {
    transform: scale(0);
    opacity: 0;
}

#home .texts p {
    font-style: italic;
    transition: all var(--animation-durantion) ease-in-out;
}

#home:not(.animate) .texts p {
    transform: translateX(100%);
    opacity: 0;
}

#home .texts a {
    font-size: 16px;
    color: var(--light-blue);
    transition: all var(--animation-durantion) ease-in-out;
    display: block;
}

#home:not(.animate) .texts a {
    opacity: 0;
    transform: translateY(40px);
}

#home .texts a:hover {
    text-decoration: underline;
}

#home .texts h2 {
    transition: all var(--animation-durantion) ease-in-out;
}

#home:not(.animate) .texts h2 {
    transform: translateX(-200px);
    opacity: 0;    
}

#timeline {
    background-color: var(--matte-blue);
    padding: 120px 0 40px;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 120px;
    position: relative;
}

.timeline .line {
    width: 4px;
    position: absolute;
    background-color: white;
    height: 100%;
    transition: all var(--animation-durantion) ease-in-out;
}

#timeline:not(.animate) .line {
    opacity: 0;
    height: 0%;
}

.timeline .circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
    margin-left: 332px;
    position: relative;
    transition: all var(--animation-durantion) ease;
}

#timeline:not(.animate) .circle {
    transform: scale(0);
    opacity: 0;
}

.timeline .circle::before {
    content: "";
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--matte-blue);
    position: absolute;
    top: 4px;
    left: 4px;
}

.timeline .timeline-item {
    display: flex;
    gap: 32px;
}

.timeline .timeline-item.left {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline .timeline-item.left .circle {
    margin-left: 0;
    margin-right: 332px;
}

.timeline .timeline-item .content {
    width: 300px;
    overflow: hidden;
    transition: all var(--animation-durantion) ease-in-out;
}

#timeline:not(.animate) .timeline .timeline-item .content {
    opacity: 0;
}

.timeline .timeline-item h3 {
    color: white;
    margin-top: 12px;
    transition: all var(--animation-durantion) ease-in-out;
}

.timeline .timeline-item p {
    font-style: italic;
    font-size: 14px;
    color: #f5f5f5;
    transition: all var(--animation-durantion) ease-in-out;
}

#timeline:not(.animate) .timeline .timeline-item.left .content h3,
#timeline:not(.animate) .timeline .timeline-item.left .content p {
    transform: translateX(200px);
    opacity: 0;
}

#timeline:not(.animate) .timeline .timeline-item.right .content h3,
#timeline:not(.animate) .timeline .timeline-item.right .content p {
    transform: translateX(-200px);
    opacity: 0;
}

#projects {
    background-color: white;
    background-image: url(../images/wave-down.svg);
    background-repeat: repeat-x;
    background-position-y: 0%;
    background-size: 120%;
    padding: 90px 0 30px;
    transition: all var(--animation-durantion) ease-in-out;
}

#projects:not(.animate) {
    background-position-y: -22vw;
}

#projects .title {
    margin-bottom: 32px;
    opacity: 1;
}

.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-direction: column;
    gap: 24px;
}

.slides {
    width: 100%;
    display: flex;
    overflow: hidden;
    max-width: 960px;
    aspect-ratio: 16/8;
    padding: 24px;
    background-color: var(--gray);;
    border-radius: 48px 0 48px 0;
    border: 1px solid var(--border);
    gap: 24px;
    position: relative;
    transition: all var(--animation-durantion) ease-in-out;
}

#projects:not(.animate) .slides {
    transform: scale(0);
    opacity: 0;
}

.slides .slide {
    width: 100%;
    min-width: 100%;
    transition: all .3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-direction: column;
    text-align: center;
}

.slides .slide p {
    max-width: 400px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    transition: opacity var(--animation-durantion) ease;
}

#projects:not(.animate) .pagination,
#projects:not(.animate) .buttons {
    opacity: 0;
}

.buttons button {
    cursor: pointer;
    border: none;
    border-radius: 16px 0;
    background-color: var(--matte-blue);
    color: white;
    padding: 8px 16px;
    text-transform: uppercase;
    width: 100px;
    transition: all var(--animation-durantion);
}

.buttons button:hover {
    border-radius: 0;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    transition: opacity var(--animation-durantion) ease;
}

.pagination .page {
    width: 22px;
    height: 12px;
    border-radius: 50% 0;
    overflow: hidden;
    border: 1px var(--matte-blue) solid;
    cursor: pointer;
    transition: all var(--animation-durantion);
}

.pagination .page.active {
    background-color: var(--matte-blue);
}

.pagination .page:hover {
    border-radius: 0;
}

.slide-icons {
    display: flex;
    gap: 16px;
}

#contact {
    background-image: url(../images/layered-peaks-haikei.svg);
    background-position-y: 100%;
    background-repeat: repeat-x;
    padding: 90px 0 200px;
    min-height: 47vw;
    transition-delay: 1.5s;
    transition: all var(--animation-durantion) ease-in-out;
}

#contact:not(.animate) {
    background-position-y: -40%;
    opacity: 0;
}

#contact h2.title {
    color: var(--matte-blue);
    margin-bottom: 32px;
}

#contact .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-container {
    background-color: var(--gray);
    border-radius: 32px 0 32px 0;
    border: 1px solid var(--border);
    position: relative;
    width: 350px;
    height: 365px;
    transition: all var(--animation-durantion) ease-in-out;
    overflow: hidden;

    li {
        list-style: square;
    }

    h3 {
        margin-bottom: 4px;
    }
    
    p {
        margin: 0;
        font-style: italic;
        opacity: .8;
    }

    .social-media {
        display: flex;
        gap: 12px;
        margin-top: 8px;
    }
}

#contact:not(.animate) .contact-container {
    width: 0;
    overflow: hidden;
    height: 0;
    margin-left: 350px;
    opacity: 0;
}

.contact-content {
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-left: 64px;
    width: 350px;
    min-width: 350px;
}

@keyframes topBottom {
    from {
        transform: translateY(-80px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes scale {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* RESPONSIVE  */

@media (max-width: 1440px) {
    #home .texts p {
        font-size: 14px;
    }

    #projects .title {
        text-shadow: 0 0 8px var(--matte-blue);
    }
}

@media (max-width: 768px) {
    #home .texts {
        height: auto;
        margin: 0 0 64px 0;
        z-index: 1;
    }

    #home:not(.animate) .texts {
        height: auto;
    }

    #contact {
        min-height: 764px;
    }

    #home .wrapper {
        flex-direction: column-reverse;
        gap: 0;
    }

    #home .image-container {
        transform: translateY(24px);
        z-index: 0;
        margin-right: auto;
        height: 260px;
    }

    #home {
        aspect-ratio: unset;
    }

    #home:not(.animate) {
        background-position-y: 100vh;
    }

    .timeline .circle {
        width: 24px;
        min-width: 24px;
        height: 24px;
        margin-left: 0;
    }

    .timeline .circle::before {
        width: 20px;
        min-width: 20px;
        height: 20px;
        top: 2px;
        left: 2px;
    }

    .timeline .line {
        width: 2px;
        left: 12px;
    }

    .timeline .timeline-item.left {
        flex-direction: row;
        text-align: left;
    }

    .timeline .timeline-item.left .circle {
        margin-right: 0;
    }

    .timeline .timeline-item h3 {
        margin-top: 0;
    }

    .timeline {
        gap: 50px;
    }

    .timeline .timeline-item,
    .timeline .timeline-item .content {
        width: 100%;
    }

    section .title {
        margin-bottom: 32px;
    }

    #timeline {
        padding: 90px 0 40px;
    }

    .slides {
        aspect-ratio: unset;
    }

    #contact {
        padding: 40px 0 200px;
    }

    #projects:not(.animate) .title {
        opacity: 0;
    }

    nav .menu-desktop ul {
        display: none;
    }

    nav .menu {
        display: block;
    }

    .menu-mobile {
        display: block;
    }

    .menu-mobile ul {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    #home {
        background-image: url(../images/wave_mobile.svg);
        background-size: cover;
    }
}