:root {

    --color-bg: #111;
    --color-bg-soft: #333;
    --color-bg-softer: #555;

    --color-text: #FBFAF5;
    --color-text-soft: #777;

    --color-acc-1: #ffa600;
    --color-acc-2: #ff6361;
    --color-acc-3: #003f5c;

    --font-size-xl: 64px;
    --font-size-l: 24px;
    --font-size-m: 18px;
    --font-size-s: 14px;

    --space-s: 8px;
    --space-m: calc(var(--space-s) * 2);
    --space-l: calc(var(--space-s) * 4);
    --space-xl: calc(var(--space-s) * 8);
}

* {
    box-sizing: border-box;
    font-family: Inter, sans-serif;
    color: var(--color-text)
}

body {
    background: var(--color-bg);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
p {
    color: var(--color-text);
}

p {
    filter: brightness(80%);
    font-size: var(--font-size-m);
}


.container {
    min-height: max-content;
    width: 80%;
    max-width: 1090px;
    min-width: 300px;
    align-content: center;
}

.no-margin {
    margin: 0;
}

.auto-margin {
    margin: 0 auto;
}

.fade-in {
    animation: fadeIn 1.5s linear;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.gradient-bg {
    background: linear-gradient(91.08deg, var(--color-acc-1) -9.03%, var(--color-acc-2) 47.88%, var(--color-acc-3) 92.98%);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.large-text {
    font-size: var(--font-size-xl);
}

.site-title {
    text-align: left;
    letter-spacing: -4px;
}

.section-title {
    font-weight: 200;
    font-size: var(--font-size-l);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: var(--space-s);
    cursor: pointer;
}

.section-title i {
    rotate: 0deg;
    transition: 1.5s ease-in-out;
}

.section-title:hover i {
    rotate: 180deg;
}

#section-cards {
    /* background: #151515; */
}

.cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: var(--space-l);
}

.cards.wide {
    width: 80%;
}

.card {
    background: #131313;
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    border: 1px solid #252525;
    border-radius: var(--space-s);
    width: 330px;
    height: 420px;
    overflow: hidden;
}

.card.wide {
    width: 100%;
    max-width: 1090px;
    height: max-content;
}

.card:hover {
    border: 1px solid #444;
}


.card-header {
    display: flex;
    gap: var(--space-s);
    padding: var(--space-l);
    padding-bottom: var(--space-l);
    padding-bottom: 0;
}

.card-header-icon {
    display: flex;
    align-items: center;
}

.card-text {
    padding: 0 var(--space-l);
    font-size: var(--font-size-s);
    font-weight: 200;
}

.card-image {
    display: flex;
    justify-content: center;
    mask-image: linear-gradient(rgba(0, 0, 0, 0) -0%, rgba(0, 0, 0, 0.2) 15%, rgb(0, 0, 0) 50%);
}

.card-image img {
    width: 512px;
    filter: contrast(0.85);
}

.demo-request {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--space-xl);
    border-radius: var(--space-s);
    gap: var(--space-xl);
    align-items: center;
}

.demo-request h1 {
    font-weight: 200;
}

#btn-demo {
    background: var(--color-acc-2);
}

.btn,
.field {
    min-width: 150px;
    color: var(--color-text);
    padding: 12px 16px;
    border: 1px solid var(--color-bg-soft);
    border-radius: var(--space-s);
    outline: none;
    cursor: pointer;
    transition: 0.2s ease-out;
    box-shadow: 2px 2px 0 0 var(--color-bg-soft);
    transform: translate(0, 0);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn:hover:not(:disabled),
.btn:focus:not(:disabled),
.field:focus {
    box-shadow: 6px 6px 0 0 var(--color-bg-soft);
    transform: translate(-2px, -2px);
}

#btn-group-home {
    margin-top: var(--space-l);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-m);
}

.btn {
    background-color: var(--color-bg-softer);
}

.field {
    background-color: var(--color-bg);
    font-weight: 200;
}

.field:user-invalid {
    border-color: #f77;
    box-shadow: 2px 2px 0 0 #d33;
}

.field:user-invalid:focus {
    border-color: #f77;
    box-shadow: 6px 6px 0 0 #d33;
}

.btn-black {
    background: var(--color-bg-softer);
}

.btn-white {
    background: var(--color-bg);
}

.quick-facts {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-l);
    justify-content: center;
    font-size: var(--font-size-s);
    font-weight: 200;
}

.quick-facts>span {
    color: var(--color-text-soft);
}

.quick-facts>span::before {
    content: "✔";
    margin-right: var(--space-s);
    color: var(--color-acc-1);
}

/* spacers start */

.spacer-xl {
    min-height: calc(var(--space-s) * 32);
}

.spacer-l {
    min-height: calc(var(--space-s) * 16);
}

.spacer-m {
    min-height: calc(var(--space-s) * 8);
}

.spacer-s {
    min-height: calc(var(--space-s) * 4);
}

.spacer-xs {
    min-height: calc(var(--space-s));
}

/* spacers end */


/* tech stack scroller start */

.tech-stack {
    overflow-x: hidden;
    user-select: none;
    display: flex;
    width: 80%;
    /* transform: translateX(-5%); */

    mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 10%,
            rgba(0, 0, 0, 1) 10%,
            rgba(0, 0, 0, 0) 100%)
}

.tech-stack ul {
    list-style: none;
    flex-shrink: 0;
    min-width: 100%;
    display: flex;

    align-items: center;
    gap: 2em;

    animation: tech-stack-scroll 20s linear infinite;
    transform: translate(-50%);
}

@keyframes tech-stack-scroll {
    to {
        transform: translateX(calc(-100%));
    }
}

.tech-stack img {
    height: 24px;
}


.tech-stack li {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.25s ease-in-out;
    font-weight: 200;
    font-size: var(--font-size-s);
}


.tech-stack li:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* tech stack scroller end */


/* contact form start */

#section-contact {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-m);
}

#form-contact {
    display: flex;
    flex-direction: column;
    flex-grow: 2;
    gap: var(--space-m);
    padding: var(--space-m);
}

#form-contact textarea {
    font-size: 14px;
}

#form-contact button {
    background: var(--color-bg-softer);
    color: var(--color-text);
}

#company-details {
    flex-grow: 1;
    padding: var(--space-m);
    margin-bottom: var(--space-s);
}

#company-details .section-title {
    margin-bottom: var(--space-l);
}

#company-details p {
    color: var(--color-text-soft);
    font-size: var(--font-size-s);
    font-weight: 200;
    margin: var(--space-s);
    display: flex;
    align-items: center;
}

#company-details p.socials:hover {
    cursor: pointer;
    color: var(--color-text);
}

#company-details p i {
    margin-right: var(--space-s);
}


#p5js-canvas {
    position: absolute;
    left: 60%;
    top: 20%;
    z-index: -1;
}

.hero-text {
    width: 66%;
    font-weight: 200;
}

#btn-book {
    width: 150px;
    margin: var(--space-s) var(--space-l);
}


.toast {
    min-width: 280px;
    max-width: 90%;
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: var(--space-s);
    position: fixed;
    bottom: var(--space-l);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-m) var(--space-l);
    left: 50%;
    transform: translate(-50%, 300%);
    transition: transform 0.5s ease-in-out;
    border: 2px solid #3c8;
    cursor: pointer;
}

.toast-reveal {
    transform: translate(-50%, 0%);
}

.toast-error {
    border-color: var(--color-acc-2);
}


@media screen and (max-width: 720px) {
    .container {
        width: 75%;
    }

    .hero-text {
        width: 100%;
    }

    .spacer-m {
        min-height: calc(var(--space-s) * 4);
    }

    .spacer-l,
    .spacer-xl {
        min-height: calc(var(--space-s) * 16);
    }

    .quick-facts {
        gap: var(--space-m);
    }

    .demo-request {
        gap: var(--space-l);
        text-align: center;
    }

    #p5js-canvas {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 80%;
    }

    #btn-group-home .btn {
        width: 100%;
    }

    .spacer-m,
    .spacer-l,
    .spacer-xl {
        min-height: calc(var(--space-s) * 4);
    }
}