@import url('https://fonts.cdnfonts.com/css/bebas-neue');
@import url('https://fonts.cdnfonts.com/css/poppins');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Odibee+Sans&display=swap');

html,
body {
    scroll-behavior: smooth;
}

body {
    background-color: #CBCBCB;
    margin: 0;
    font-size: 14px;
    color: #2E373A;
    font-family: "Libre Baskerville", sans-serif;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
}
nav .navbar{
    width: 100%;
    height: 10vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    box-shadow: 0px 5px 20px 0px rgb(0, 0, 0);
}
nav .navbar .logo img{
    height: 4vw;
    border-radius: 30px;
}
nav .navbar ul{
    display: flex;
    list-style: none;
}
nav .navbar ul li{
    padding: 10px 15px;
    margin: 10px;
    color: white;
    background-color: black;
    border-radius: 30px;
}
nav .navbar ul li:hover{
    background-color: rgb(255, 255, 255);
    transform: translatey(5px);
    color: black;
    transition: .3s ease-in-out;
}

.body1 {
    position: absolute;
    width: min(1200px, 90vw);
    top: 15%;
    left: 50%;
    height: 90%;
    transform: translateX(-50%);
    background-image: url(bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    pointer-events: none;
}

main {
    width: min(1400px, 100vw);
    margin: auto;
    padding: 20px;
}

.banner1 {
    width: 100%;
    height: 100%;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.banner1 .slider {
    position: absolute;
    width: 100px;
    height: 150px;
    top: 10%;
    left: calc(50% - 75px);
    transform-style: preserve-3d;
    transform: perspective(800px);
    animation: autorun 20s linear infinite;
    z-index: 1;
}

@keyframes autorun {
    from {
        transform: perspective(800px) rotateX(-12deg) rotateY(0deg);
    }

    to {
        transform: perspective(800px) rotateX(-12deg) rotateY(360deg);
    }
}

.banner1 .slider .item {
    position: absolute;
    inset: 0 0 0 0;
    transform:
        rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(350px);
}

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

.content1 {
    position: absolute;
    bottom: 0px;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.content1 h1 {
    font-family: 'ICA Rubrik';
    font-size: 12em;
    align-self: flex-start;
    padding-left: 7vw;
    line-height: 1em;
    color: rgb(38, 40, 53);
}

.author {
    width: 80%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: rgb(0, 0, 0);
    font-family: 'popins';
    text-align: right;
    font-size: 2em;
}

.model {
    position: absolute;
    top: 20%;
    bottom: 0;
    left: 30%;
    background-size: auto 180px;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: -2;

}

.only {
    -webkit-text-stroke: 2px rgb(111, 111, 111);
    color: transparent;
}

.model img {
    width: 100%;
    height: 100%;
}

.body2 {
    position: relative;
    top: 90vh;
}

.grid figure img {
    width: 100%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(var(--row), 100px);
    margin-top: 50px;
    gap: 50px;
}

.grid-1 figure:nth-child(1) {
    grid-column: 2 / 6;
    grid-row: 1;
}

.grid-1 figure:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1;
}

.grid-1 h2:nth-child(3) {
    font-size: 7em;
    grid-column: 1 / 7;
    text-align: center;
    grid-row: 5;
    z-index: 1;
}

.grid-1 {
    --row: 2;
}

.grid-2 {
    --row: 8;
    font-size: 1.7em;
}

.grid-2 div:nth-child(1) {
    grid-column: 1 / 4;
    grid-row: 3;
}

.grid-2 div:nth-child(2) {
    grid-column: 4 / 7;
    grid-row: 1;
}

.grid-2 div:nth-child(3) {
    grid-column: 4 / 7;
    grid-row: 4;
}

.grid-2 div:nth-child(4) {
    grid-column: 1 / 4;
    grid-row: 6;
}

.grid-3 {
    --row: 6;
    font-size: 10em;
}

.grid-3 div {
    grid-column: 2/ 6;
    text-wrap: nowrap;
}

.grid-3 div:nth-child(even) {
    text-align: right;
}

.grid-3 div:nth-child(5) {
    grid-column: 1/ 6;
}

.grid-3 div:nth-child(4) {
    grid-column: 1/ 7;
}

footer {
    border-top: 1px solid #2E373A55;
    min-height: 100vh;
}

footer .content {
    width: min(1400px, 100vw);
    margin: auto;
    padding: 100px 20px;
}

.grid-5 {
    --row: 5;
    font-size: 1.7em;
}

.grid-5 div:nth-child(1) {
    grid-row: 1;
    grid-column: 1 / 3;
}

.grid-5 div:nth-child(2) {
    grid-row: 2;
    grid-column: 3 / 5;
}

.grid-5 div:nth-child(3) {
    grid-row: 3;
    grid-column: 5 / 7;
}

.grid-5 div:nth-child(4) {
    grid-row: 1;
    grid-column: 5 / 7;
}

@media screen and (max-width: 1023px) {
    header img {
        height: 2em;
    }

    .banner .content h1 {
        font-size: 12em;
    }

    .banner .content .right {
        transform: none;
    }

    .grid-2 div:nth-child(1) {
        grid-row: 2;
    }

    .grid-2 div:nth-child(3) {
        grid-row: 6;
    }

    .grid-2 div:nth-child(4) {
        grid-row: 5;
    }

    .grid-3 {
        font-size: 5em;
        line-height: 1em;
    }
}

@media screen and (max-width: 1023px) {
    header img {
        height: unset;
        width: 100%;
    }

    .banner .content h1 {
        font-size: 7em;
    }

    .banner .content {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .banner {
        overflow: hidden;
    }

    .grid-1 h2:nth-child(3) {
        font-size: 3em;
    }

    .grid {
        display: block;
    }

    .grid-3 {
        font-size: 4em;
        display: block;
        margin-bottom: 100px;
    }
}

.autoRotate {
    animation: autoRotateAnimation;
    animation-timeline: view();
}

@keyframes autoRotateAnimation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.autoShow {
    animation: autoShowAnimation both;
    animation-timeline: view(70% 5%);

}

@keyframes autoShowAnimation {
    from {
        opacity: 0;
        transform: translateY(200px) scale(0.3);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.autoBLur {
    animation: autoBLurAnimation linear both;
    animation-timeline: view();
}

@keyframes autoBLurAnimation {
    0% {
        filter: blur(40px);
    }

    45%,
    55% {
        filter: blur(0px);
    }

    100% {
        filter: blur(40px);
    }
}