@font-face {
    font-family: 'SofiaSansExtraCondensed';
    src: url('media/fonts/SofiaSansExtraCondensed-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

.container {
    position: relative;
    height: 100svh;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    height: 100vh;
    overflow: hidden;
    font-family: Arial, sans-serif;
    position: relative;
}
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('media/backgrounds/back.jpg') no-repeat center center fixed;
    background-size: 107% 107%;
    background-position: var(--bg-pos-x, 50%) var(--bg-pos-y, 50%);
    opacity: 0;
    z-index: 1;
    animation: fadeInBackground 1.5s ease-out forwards;
}
body.loaded::before {
    opacity: 1;
}
@keyframes fadeInBackground {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}




/* Anicode */
.code-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    justify-content: center;
}
.code-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0) 50%,
            transparent 100%
    );
    z-index: 2;
}
.code-layer {
    position: absolute;
    width: fit-content;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    white-space: pre;
    pointer-events: none;
    text-align: left;
}
.code-layer-1 {
    font-size: 1.2vmin;
    color: rgba(255, 255, 255, 0.18);
    filter: blur(3px);
    animation: scrollCode 1000s linear infinite;
    left: 30%;
    transform: translateX(-50%);
}
.code-layer-2 {
    font-size: 1.2vmin;
    color: rgba(65, 197, 68, 0.18);
    filter: blur(2px);
    animation: scrollCode 800s linear infinite reverse;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
}
.code-layer-3 {
    font-size: 1.0vmin;
    color: rgba(255, 255, 255, 0.12);
    filter: blur(2px);
    animation: scrollCode 500s linear infinite;
    top: -25%;
    left: 80%;
    transform: translateX(-50%);
}
@keyframes scrollCode {
    0% {
        transform: translate(-50%, 100vh);
    }
    100% {
        transform: translate(-50%, -100%);
    }
}
@media (max-width: 768px) {
    .code-layer-1 {
        font-size: 1.2vmin;
        width: 90%;
    }
    .code-layer-2 {
        font-size: 1.2vmin;
        width: 90%;
    }
    .code-layer-3 {
        font-size: 1.0vmin;
        width: 90%;
    }
    @keyframes scrollCode {
        0% {
            transform: translate(-50%, 150vh);
        }
        100% {
            transform: translate(-50%, -150%);
        }
    }
}
@media (min-height: 1200px) {
    .code-layer-1 {
        font-size: 1.2vmin;
    }
    .code-layer-2 {
        font-size: 1.2vmin;
    }
    .code-layer-3 {
        font-size: 1.0vmin;
    }
}





/* Main anims */
@keyframes slideFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideFromLeftLogo {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromLeftSlogan {
    from {
        transform: translateX(-100%);
        left: -100vw;
        opacity: 0;
    }
    to {
        transform: translateX(0);
        left: 20vmin;
        opacity: 1;
    }
}




/* LOGO */
.logo {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 20vmin;
    height: 20vmin;
    object-fit: contain;
    pointer-events: none;
    border-top-right-radius: 10% 10%;
    animation: slideFromLeftLogo 1s ease-out 0.3s both;
    z-index: 3;

    mask:
            linear-gradient(0deg, black 90%, transparent 100%),
            linear-gradient(30deg, black 70%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask:
            linear-gradient(0deg, black 90%, rgb(0 0 0 / 0), 100%),
            linear-gradient(30deg, black 70%, rgb(0 0 0 / 0), 100%);
    -webkit-mask-composite: source-in;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}





/* SLOGAN */
.slogan {
    position: absolute;
    left: 20vmin;
    height: 10vmin;
    bottom: -1vmin;
    right: 15dvw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #081421;
    padding: 2vmin;
    border-top-right-radius: 20% 100%;
    cursor: default;
    z-index: 3;
    animation: slideFromLeftSlogan 1s ease-out 0.5s both;

    mask:
            linear-gradient(0deg, black 80%, transparent 100%),
            linear-gradient(15deg, black 80%, transparent 90%),
            linear-gradient(90deg, black 90%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask:
            linear-gradient(0deg, black 80%, rgb(0 0 0 / 0), 100%),
            linear-gradient(45deg, black 80%, rgb(0 0 0 / 0), 90%),
            linear-gradient(90deg, black 90%, rgb(0 0 0 / 0), 100%);
    -webkit-mask-composite: source-in;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}

.slogan-text {
    font-size: 3vmin;
    font-weight: bold;
    line-height: 1.4;
    font-family: 'SofiaSansExtraCondensed', serif;
    letter-spacing: 0.1vmin;
    margin-right: 12dvw;
    margin-top: 2vmin;

    background: linear-gradient(to right, #c9ffeb, #74a9d3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}






/* SOLUTIONS */
.solutions {
    position: absolute;
    left: 0;
    height: 50vmin;
    top: 0;
    width: 5vmin;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #081421;
    padding: 2vmin;
    border-bottom-right-radius: 20% 100%;
    z-index: 3;
    cursor: pointer;
    animation: slideFromTop 1s ease-out 0.9s both;

    mask:
            linear-gradient(90deg, black 80%, transparent 100%),
            linear-gradient(150deg, black 70%, transparent 100%),
            linear-gradient(180deg, black 90%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask:
            linear-gradient(90deg, black 80%, rgb(0 0 0 / 0), 100%),
            linear-gradient(150deg, black 70%, rgb(0 0 0 / 0), 100%),
            linear-gradient(180deg, black 90%, rgb(0 0 0 / 0), 100%);
    -webkit-mask-composite: source-in;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}
.solutions-text {
    font-size: 3vmin;
    font-weight: bold;
    line-height: 1.4;
    font-family: 'SofiaSansExtraCondensed', serif;
    letter-spacing: -0.5vmin;
    margin-right: 1vmin;
    margin-bottom: 10vmin;

    background: linear-gradient(to bottom, #c9ffeb, #74a9d3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    writing-mode: vertical-rl;
    text-orientation: upright;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}






/* CONTACTS */
.contacts {
    position: absolute;
    right: 0;
    height: 5vmin;
    top: 0;
    width: 60vmin;
    cursor: pointer;
    display: flex;
    text-align: center;
    background: #081421;
    padding: 2vmin;
    border-bottom-left-radius: 20% 100%;
    z-index: 3;
    transition: all 0.7s ease-in-out;
    animation: slideFromRight 1s ease-out 0.7s both;

    mask:
            linear-gradient(180deg, black 80%, transparent 100%),
            linear-gradient(210deg, black 70%, transparent 100%),
            linear-gradient(270deg, black 90%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask:
            linear-gradient(180deg, black 80%, rgb(0 0 0 / 0), 100%),
            linear-gradient(210deg, black 70%, rgb(0 0 0 / 0), 100%),
            linear-gradient(270deg, black 90%, rgb(0 0 0 / 0), 100%);
    -webkit-mask-composite: source-in;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}
.contacts:hover,
.contacts.active {
    height: 13vmin;
    transition: all 0.7s ease-in-out;
}
.contacts-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #081421;
    align-items: center;
    text-align: center;
    margin-left: 6vmin;
    transition: all 0.7s ease-in-out;

    mask:
            linear-gradient(180deg, black 80%, transparent 100%),
            linear-gradient(210deg, black 70%, transparent 100%),
            linear-gradient(270deg, black 90%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask:
            linear-gradient(180deg, black 80%, rgb(0 0 0 / 0), 100%),
            linear-gradient(210deg, black 70%, rgb(0 0 0 / 0), 100%),
            linear-gradient(270deg, black 90%, rgb(0 0 0 / 0), 100%);
    -webkit-mask-composite: source-in;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}
.contacts-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3vmin;
    font-weight: bold;
    line-height: 1.4;
    font-family: 'SofiaSansExtraCondensed', serif;
    letter-spacing: 0.5vmin;
    background: linear-gradient(to left, #c9ffeb, #74a9d3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    transition: all 0.7s ease-in-out;
    margin-bottom: 1.5vmin;
}
.contacts-separator {
    height: 1px;
    width: 30vmin;
    background: linear-gradient(90deg,
    transparent 0%,
    #f6f6e6 20%,
    #ececab 50%,
    #f6f6e6 80%,
    transparent 100%);
    box-shadow: 0 0 8px #ffff00, 0 0 12px rgba(255, 255, 0, 0.5);
    transform: scaleX(0);
    transition: all 0.7s ease 0.1s;
    margin-bottom: 1.5vmin;
    opacity: 0;
}
.contacts:hover .contacts-separator,
.contacts.active .contacts-separator {
    opacity: 100;
    transform: scaleX(1);
    transition: all 0.7s ease-in-out;
    margin-bottom: 1.5vmin;
}
.contacts-email {
    flex: 1;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 2.5vmin;
    font-weight: bold;
    font-family: 'SofiaSansExtraCondensed', serif;
    background: linear-gradient(0deg, #6ab6f6, #c0f8e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: translateY(10px);
    transition: all 0.7s ease 0.2s;
    letter-spacing: 0.5vmin;
    margin-bottom: 1.5vmin;
    opacity: 0;
}
.contacts:hover .contacts-email,
.contacts.active .contacts-email {
    opacity: 100;
    font-size: 2.5vmin;
    transform: translateY(0);
    transition: all 0.7s ease-in-out;
    margin-bottom: 1.5vmin;
}
.contacts-email:hover {
    background: linear-gradient(0deg,#bfffea, whitesmoke);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 10px rgba(168, 255, 120, 0.3);
}






/* RUST*/
.rust {
    position: absolute;
    right: 0;
    height: 50vmin;
    bottom: 0;
    width: 3vmin;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #081421;
    padding: 2vmin;
    border-top-left-radius: 20% 100%;
    z-index: 3;
    animation: slideFromBottom 1s ease-out 0.5s both;

    mask:
            linear-gradient(270deg, black 70%, transparent 100%),
            linear-gradient(330deg, black 85%, transparent 100%),
            linear-gradient(0deg, black 95%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask:
            linear-gradient(270deg, black 70%, rgb(0 0 0 / 0), 100%),
            linear-gradient(330deg, black 85%, rgb(0 0 0 / 0), 100%),
            linear-gradient(0deg, black 95%, rgb(0 0 0 / 0), 100%);
    -webkit-mask-composite: source-in;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}
.rust-text-container {
    font-size: 2vmin;
    letter-spacing: -0.5vmin;
    margin-top: 7vmin;
    cursor: default;
}
.rust-text {
    margin-left: 1.7vmin;
    font-family: 'SofiaSansExtraCondensed', serif;
    background: linear-gradient(to bottom, #c9ffeb, #74a9d3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    writing-mode: vertical-lr;
    text-orientation: upright;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
.rust-symbol {
    width: 3vmin;
    height: 3vmin;
    margin-top: 3vmin;
    margin-left: 1.4vmin;
    background-image: url('media/svg/crab.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.rust:hover .rust-symbol {
    background-image: url('media/svg/crab2.svg');
}





/* Bowling */
.bowling {
    position: absolute;
    left: -50vmin;
    top: 10vmin;
    height: 5vmin;
    width: 50vmin;
    cursor: pointer;
    display: flex;
    text-align: center;
    background: #081421;
    padding: 2vmin;
    transition: all 0.7s ease-in-out;
    z-index: 3;

    mask:
            linear-gradient(0deg, black 85%, transparent 100%),
            linear-gradient(90deg, black 85%, transparent 100%),
            linear-gradient(180deg, black 85%, transparent 100%),
            linear-gradient(270deg, black 85%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask:
            linear-gradient(0deg, black 85%, rgb(0 0 0 / 0), 100%),
            linear-gradient(90deg, black 85%, rgb(0 0 0 / 0), 100%),
            linear-gradient(180deg, black 85%, rgb(0 0 0 / 0), 100%),
            linear-gradient(270deg, black 85%, rgb(0 0 0 / 0), 100%);
    -webkit-mask-composite: source-in;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}
.bowling.active {
    left: 5vmin;
    transition: all 0.7s ease-in-out;
}
.bowling-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #081421;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-right: 3vmin;
    transition: all 0.1s ease-in-out;
}
.bowling-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2vmin;
    font-weight: bold;
    line-height: 1.4;
    font-family: 'SofiaSansExtraCondensed', serif;
    letter-spacing: 0.5vmin;

    background: linear-gradient(to right, #c9ffeb, #74a9d3, #c9ffeb, #74a9d3);
    background-size: 200% 100%;
    background-position: 0% 0%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    transition: background-position 1s ease-in-out;
}
.bowling:hover .bowling-text {
    background-position: 100% 0%;
}
.bowling.expanded {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
    z-index: 10;
    width: var(--target-width, auto);
    height: var(--target-height, auto);
    max-width: 85vw;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding: 3vmin;
}
.bowling.expanded {
    mask:
            linear-gradient(0deg, black 97%, transparent 100%),
            linear-gradient(90deg, black 97%, transparent 100%),
            linear-gradient(180deg, black 97%, transparent 100%),
            linear-gradient(270deg, black 97%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask:
            linear-gradient(0deg, black 97%, rgb(0 0 0 / 0), 100%),
            linear-gradient(90deg, black 97%, rgb(0 0 0 / 0), 100%),
            linear-gradient(180deg, black 97%, rgb(0 0 0 / 0), 100%),
            linear-gradient(270deg, black 97%, rgb(0 0 0 / 0), 100%);
    -webkit-mask-composite: source-in;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}
.bowling.expanded .bowling-inner {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1vmin;
}
.bowling.expanded .bowling-text {
    margin: 0;
    flex: 0 0 auto;
    font-size: 2.5vmin;
    text-align: center;
    width: 100%;
    min-height: 4vmin;

    background: linear-gradient(to right, #c9ffeb, #74a9d3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bowling-separator {
    height: 1px;
    width: 50%;
    background: linear-gradient(90deg,
    transparent 0%,
    #f6f6e6 20%,
    #ececab 50%,
    #f6f6e6 80%,
    transparent 100%);
    box-shadow: 0 0 8px #ffff00, 0 0 12px rgba(255, 255, 0, 0.5);
    transform: scaleX(1);
    flex: 0 0 auto;
    margin: 1vmin 0;
}
.bowling-description {
    flex: 0 0 auto;
    color: white;
    font-size: 1vmax;
    font-family: 'SofiaSansExtraCondensed', serif;
    text-align: center;
    padding: 1vmin 0;
    margin: 0;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.7s ease-in-out;

    background: linear-gradient(to bottom, #fff8db, #83ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.bowling.expanded .bowling-description {
    opacity: 1;
    transform: translateY(0);
}
.bowling-image-container {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 0;
    max-height: 70vh;
}
.bowling.expanded .bowling-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}
@keyframes expandBowling {
    0% {
        width: 50vmin;
        height: 5vmin;
        top: 10vmin;
        left: 5vmin;
        transform: translate(0, 0);
    }
    50% {
        width: 50vmin;
        height: 5vmin;
        top: 10vmin;
        left: 50%;
        transform: translate(-50%, 0);
    }
    100% {
        position: fixed;
        width: var(--target-width, auto);
        height: var(--target-height, auto);
        top: 40%;
        left: 50%;
        transform: translate(-50%, -40%);
        max-width: 85vw;
        max-height: 75vh;
    }
}
@keyframes fadeOutBowling {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}
.bowling.animating-expand {
    position: fixed;
    width: var(--target-width, auto);
    height: var(--target-height, auto);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
    max-width: 85vw;
    max-height: 75vh;
    animation: expandBowling 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.bowling.animating-close {
    animation: fadeOutBowling 0.3s ease forwards;
}
.bowling:not(.expanded) .bowling-image,
.bowling:not(.expanded) .bowling-separator,
.bowling:not(.expanded) .bowling-image-container,
.bowling:not(.expanded) .bowling-description {
    display: none;
}
.bowling:not(.expanded):not(.animating-expand):not(.animating-close) {
    transition: all 0.5s ease-in-out;
}
@supports (-moz-appearance:none) {
    @keyframes expandBowling {
        0% {
            width: 50vmin;
            height: 5vmin;
            top: 10vmin;
            left: 5vmin;
            transform: translate(0, 0);
        }
        100% {
            position: fixed;
            width: var(--target-width, auto);
            height: var(--target-height, auto);
            top: 40%;
            left: 50%;
            transform: translate(-50%, -40%);
            max-width: 85vw;
            max-height: 75vh;
        }
    }
    .bowling.expanded .bowling-inner {
        min-height: 0;
    }
    .bowling.expanded .bowling-image-container {
        min-height: 0;
        display: flex;
    }
    .bowling.animating-expand {
        animation: expandBowling 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
}
.bowling-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    display: none;
}
.bowling.expanded .bowling-link-overlay {
    display: block;
}
.bowling.expanded {
    cursor: pointer;
}
.bowling.expanded .bowling-inner,
.bowling.expanded .bowling-text,
.bowling.expanded .bowling-separator,
.bowling.expanded .bowling-description,
.bowling.expanded .bowling-image-container,
.bowling.expanded .bowling-image {
    cursor: pointer;
}
