@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@100;400;700&display=swap');

:root {
    --bg-color: black;
    --text-color: white;
    --text-gray: #858585;
    --gradient: linear-gradient(97.54deg, #793EB4,  #FF015C, #0195ff, #6b01ff);
    --k: calc(1vh + 1vw);
}

* {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    background-color: #fff;
    width: 8px;
}

/* background of the scrollbar except button or resizer */
::-webkit-scrollbar-track {
    background-color: white;
}

/* scrollbar itself */
::-webkit-scrollbar-thumb {
    background-color: #babac0;
    border-right: 3px solid white;
    border-top: 4px solid white;
    border-bottom: 4px solid white;
}

/* set button(top and bottom of the scrollbar) */
::-webkit-scrollbar-button {
    display:none;
}

.line {
    background-color: white;
    width: 3px;
    height: 3px;
    position: fixed;
    z-index: 100;
}

.line.up {
    top: 0;
    left: 0;
    width: 100%;
}

.line.down {
    bottom: 0;
    left: 0;
    width: 100%;
}

.line.left {
    top: 0;
    left: 0;
    height: 100%;
}

.line.right {
    top: 0;
    right: 0;
    height: 100%;
}

.corner {
    width: 18px;
    height: 18px;
    position: fixed;
    z-index: 100;
    background-image: url('img/rounded-corner.svg');
    background-repeat: no-repeat;
    background-size: 100%;
}

.corner.up-left {
    top: 0;
    left: 0;
}

.corner.up-right {
    top: 0;
    right: 0;
    transform: rotate(90deg);
}

.corner.down-left {
    bottom: 0;
    left: 0;
    transform: rotate(-90deg);
}

.corner.down-right {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}


html, body {
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: white;
    color: var(--text-color);
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 100;
    font-size: 24px;
    line-height: normal;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.wrapper {
    background-color: var(--bg-color);
    /*margin: 3px;
    overflow: hidden;
    border-radius: 10px;
    height: calc(100vh - 6px);
    width: calc(100vw - 6px);
    overflow-y: auto;
    position: relative;*/
}

a.link {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    transition: 0.25s linear background;
    background-position: 0% 50%;
    background-size: 260% 260%;
    text-decoration: underline;
    overflow-wrap: break-word;
}

a.link:hover {
    background-position: 100% 50%;
    text-decoration: none;
}


h1, h2, h3, h4 {
    font-weight: 200;
    margin: 0;
}

p {
    margin-top: 0;
}

ul {
    padding: 0;
    margin: 0;
    padding-left: 20px;
}

li {
    line-height: 120%;
    margin-bottom: 12px;
}

h2 {
    font-size: 86px;
}

h3 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 32px 0;
}

.burger-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    z-index: 10;
    right: 25px;
    bottom: 5px;
    justify-content: center;
    align-items: center;
    padding: 30px 10px;
    cursor: pointer;
    margin-left: -10px;
    display: none;
}

.burger-menu.open {
    mix-blend-mode: normal;
}

.burger-menu div {
    width: 50px;
    height: 5px;
    background-color: white;
    border-radius: 2px;
    transition: 0.25s linear all;
}

.burger-menu.open div:first-child {
    transform: translateY(calc(50% + 4px)) rotate(45deg);
}

.burger-menu.open div:last-child {
    transform: translateY(calc(-50% - 4px)) rotate(-45deg);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 25px;
}

.container-fluid {
    padding: 0 25px;
}

.header {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
}

header {
    background-color: white;
}


.header-social,
.footer-social {
    z-index: 3;
    position: absolute;
    right: 90px;
    display: flex;
    gap: 16px;
    flex-direction: column;
    align-items: center;
}

.header-social a,
.footer-social a {
    transition: 0.1s linear all;
    text-decoration: none;
}

.header-social a:hover,
.footer-social a:hover {
    transform: scale(1.2);
}

.footer-social {
    position: relative;
    flex-direction: row;
    left: auto;
    right: auto;
    justify-content: center;
    margin-bottom: 20px;
    gap: 32px;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    background-image: url('img/head-hero-image.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    filter: brightness(0.9);
}

.header-skew-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    min-width: 400px;
    height: 100%;
    transform: skewX(-20deg) translateX(-45%);
    background-color: var(--bg-color);
    z-index: 1;
}

.header-text {
    z-index: 2;
    margin-top: 61px;
    overflow: hidden;
}

.header-text h2 {
    text-overflow: ellipsis;
    overflow: hidden;
}

.btn {
    background: var(--gradient);
    border-radius: 80px;
    padding: 16px 32px;
    display: inline-block;
    text-decoration: none;
    color: var(--text-color) !important;
    transition: 0.25s linear background;
    background-position: 0% 50%;
    background-size: 260% 260%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.btn:hover {
    background-position: 100% 50%;
}

.mt-50 {
    margin-top: 50px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mt-25 {
    margin-top: 25px;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav {
    position: absolute;
    z-index: 3;
    padding: 50px 0;
    top: 0;
    display: flex;
    gap: 50px;
}

nav a {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 18px;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
}

nav a:after {
    display: block;
    background: white;
    height: 2px;
    width: 100%;
    position: absolute;
    content: '';
    margin-top: 2px;
    transition: transform 0.25s ease-out;
    transform-origin: bottom right;
    transform: scaleX(0);
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

section {
    margin-top: 100px;
}

section h2 {
    text-align: center;
    margin-bottom: 64px;
}

.about {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: center;
}

.about img {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    max-width: 360px;
}

.history {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;
    position: relative;
    padding: 20px 0;
}

.history .vertical-line {
    position: absolute;
    width: 2px;
    background-color: var(--text-color);
    height: 100%;
    margin: auto;
    z-index: 1;
}

.history-item {
    padding: 64px 32px;
    position: relative;
}

.history-item:nth-child(even) {
    transform: translateX(50%);
    text-align: left;
}

.history-item:nth-child(odd) {
    transform: translateX(-50%);
    text-align: right;
}

.history-item::after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto 0;
    margin-left: -8px;
}

.history-item:nth-child(odd)::after {
    right: 0;
    margin-right: -8px;
    margin-left: auto;
}

.services {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 32px;
}

.service-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 64px 32px;
    min-width: 360px;
    flex: 1;
}

.portfolio {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.portfolio .col {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    min-width: 300px;
}

.portfolio img {
    max-width: 100%;
}

.portfolio a {
    overflow: hidden;
    border-radius: 3px;
    display: flex;
}

.nav-mobile {
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 5;
    background: var(--gradient);
    flex-direction: column;
    mix-blend-mode: normal;
    gap: 24px;
    left: 0;
    top: 0;
    background-position: 0% 50%;
    background-size: 260% 260%;
    transform: translateX(-101%);
}

.nav-mobile.open {
    transform: translateX(0%);
}

.nav-mobile a {
    font-size: 32px;
    text-decoration: none;
    color: var(--text-color);
}

.top {
    padding: 10px;
    background-color: white;
    position: fixed;
    bottom: 25px;
    left: 25px;
    font-size: 30px;
    border-radius: 25px;
    color: black;
    text-decoration: none;
    z-index: 0;
}

/* MEDIA */
@media (max-width: 961px) {
    .top {
        display: none;
    }

    nav {
        display: none;
    }

    .header-bg {
        left: auto !important;
        right: 0 !important;
        background-size: cover;
        background-position: center right;
        background-position-x: 30%;
    }

    h2 {
        font-size: calc(4.2 * var(--k));
    }

    .about {
        flex-direction: column;
    }

    .history {
        align-items: flex-start;
    }

    .history-item {
        transform: none !important;
        text-align: left !important;
    }

    .history-item::after {
        left: 0 !important;
        margin-left: -8px !important;
    }

    .vertical-line {
        left: 0;
    }

    .header-social {
        flex-direction: row;
        bottom: 100px;        
        right: auto;
        align-items: center;
    }

    .header-text {
        mix-blend-mode: normal;
    }

    .burger-menu {
        display: flex;
    }
}

/* ANIMATIONS */

.header-skew-box {
    animation: a-skew 0.4s alternate ease;
    animation-delay: 0.2s;
    will-change: transform;
}

.header-bg {
    animation: a-opacity 0.6s both linear;
    animation-delay: 0.35s;
    opacity: 0;
}

nav {
    animation: a-opacity 0.6s both linear;
    animation-delay: 1.8s;
    opacity: 0;
}

.header-text {
    animation: a-opacity 0.6s both linear;
    animation-delay: 1s;
    opacity: 0;
}

.header-btn {
    animation: a-opacity 0.6s both linear;
    animation-delay: 1.4s;
    opacity: 0;
}

.header-social {
    animation: a-slide 0.6s both ease, a-opacity 0.3s both linear;
    animation-delay: 1.8s;
    opacity: 0;
}

.top {
    animation: a-opacity 0.3s both linear;
    animation-delay: 2s;
    opacity: 0; 
}

@keyframes a-skew {
    0% { transform: skewX(20deg) translateX(-150%); }
    100% { transform: skewX(-20deg) translateX(-45%); }
}

@keyframes a-opacity {
    0% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

@keyframes a-scale {
    0% { transform: scale(10); }
    100% { transform: scale(1); }
}

@keyframes a-slide {
    0% { transform: translateX(300%); }
    100% { transform: translateX(0); }
}

.relative {
    position: relative;
}

#playcanvas {
    
}

.run-playcanvas {
    background-color: black;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: calc(100% - 50px);
    height: 100%;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid white;
    border-radius: 32px;
    overflow: hidden;
    margin: 0 25px;
}

.play-button {
    transition: 0.2s linear all;
    cursor: pointer;
    background-image: url('img/play-button.svg');
    width: 98px;
    height: 98px;
    background-repeat: no-repeat;
    background-position: center;
}

.play-button:hover {
    transform: scale(1.1);
}