* {
    box-sizing: border-box;
}

html {
    background: #E6501BFF;
    container-type: inline-size;
}

body {
    background-image: url("images/background.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: black;
    font-family: 'aptos', sans-serif;
    margin: 0;
    overflow-x: hidden;
    padding: 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

a {
    border: none;
    color: black;
    outline: none;
    text-decoration: none;
}

main {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    width: 100vw;
}

section {
    display: flex;
    flex-direction: column;
    height: fit-content;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    width: 100vw;
}

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

svg {
    display: block;
    fill: black;
}

svg.gdt {
    fill: #E6501BFF;
    height: 100px;
    width: 100px;
}

.section-title {
    color: #E6501BFF;
    font-size: 2rem;
    padding: 40px;
    text-align: center;
}

.spacer {
    flex: 1;
}

.mh20 {
    min-height: 20px;
}

.mh40 {
    min-height: 40px;
}

.mw40 {
    min-width: 40px;
}

.mw80 {
    min-width: 80px;
}

.mw120 {
    min-width: 120px;
}

.carousel-wrapper {
    display: flex;
    flex-direction: row;
    position: relative;
    width: 100vw;
}

.carousel {
    display: flex;
    flex-direction: row;
    flex: 1;
    gap: 20px;
    overflow: auto;
    padding: 2vh max(4vw, 20px);
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.work {
    flex: 1 0 320px;
    scroll-snap-align: center;
}

.arrow-button {
    background: #E6501BB0;
    border: none;
    border-radius: 40px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
    cursor: pointer;
    opacity: 1;
    outline: none;
    padding: 20px;
    transition-duration: .25s;
    z-index: 2;
}

.arrow-button.hidden {
    opacity: 0;
}

.arrow-button:first-child {
    bottom: 50%;
    left: 2vw;
    position: absolute;
    transform: translateY(50%);
}

.arrow-button:last-child {
    bottom: 50%;
    position: absolute;
    right: 2vw;
    transform: translateY(50%);
}

.arrow-button svg {
    display: block;
    fill: white;
}

.indicators .background {
    backdrop-filter: blur(8px);
    background: #ffffff80;
    border-radius: 20px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
    height: 8px;
    padding: 4px;
    width: 200px;
}

.indicators .foreground {
    background: #404040;
    border-radius: 20px;
    height: 100%;
    width: 50%;
}

.grid {
    display: grid;
    gap: 2vw;
    padding: 2vh max(4vw, 20px);
}

.grid.grid2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid.grid4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid img {
    aspect-ratio: 16/9;
    border-radius: 8px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
    object-fit: cover;
    width: 100%;
}

.spinner-wrapper {
    display: flex;
    flex-direction: row;
    padding: 0;
    scrollbar-width: none;
}

.spinner-wrapper.spinning {
    overflow: auto;
    pointer-events: none;
}

.spinner-wrapper.spinning button {
    display: none;
}

.spinner-wrapper.spinning .spinner {
    animation: spin 20s infinite linear;
}

.spinner-wrapper.spinning .card:first-child {
    margin-left: 40px;
}

.spinner-wrapper.webkit {
    overflow: hidden;
    position: relative;
}

.spinner-wrapper.webkit .spinner {
    overflow: auto;
    padding: 2vh max(20px, 4vw);
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.spinner-wrapper.webkit .spinner .card {
    scroll-snap-align: center;
}

.spinner {
    display: flex;
    flex-direction: row;
    gap: 40px;
    padding: 2vh 0;
}

.card {
    backdrop-filter: blur(8px);
    background-color: #ffffff80;
    border-radius: 20px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
    overflow: scroll;
    padding: 20px;
    scrollbar-width: none;
}

.card:hover {
    background-color: #E6501B40;
}

.card p,
.card li {
    font-size: 18px;
}

#banner {
    align-items: center;
    display: flex;
    flex-direction: row;
    font-weight: bold;
    justify-items: center;
}

#banner>div {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin: auto;
}

.company-title {
    color: #E6501BFF;
    font-size: 4.2rem;
    overflow: hidden;
    white-space: nowrap;
}

.company-subtitle {
    color: #E6501BFF;
    font-size: 1.4rem;
    font-style: italic;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
}

.company-subtitle.typing {
    animation: typing 2s;
}

.company-subtitle.fadeout {
    animation: fadeout 2s;
}

.videos {
    aspect-ratio: 16/9;
    background-image: url("images/video.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    height: 60vh;
    margin: 2vh 4vw;
    position: relative;
}

.videos svg {
    fill: #E6501BB0;
    height: 96px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 96px;
}

.clients {
    align-items: stretch;
}

.clients .card {
    align-items: center;
    display: inline-flex;
    width: 400px;
}

.clients img {
    filter: invert();
    object-fit: contain;
    width: 100%;
}

form {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    flex: 1 0 80vw;
    gap: 8px;
    margin: auto;
    max-width: 600px;
}

form input {
    backdrop-filter: blur(8px);
    background-color: #ffffff80;
    border: none;
    border-radius: 20px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
    font-family: 'aptos', sans-serif;
    font-size: 1rem;
    outline: none;
    padding: 12px 20px;
}

form input::placeholder {
    font-weight: bold;
}

form input[type="submit"] {
    align-self: center;
    background-color: #E6501BF0;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    margin-top: 8px;
}

.contact {
    align-items: center;
    display: flex;
    flex-direction: row;
    font-size: 1.25rem;
    gap: 40px;
}

.contact div {
    text-align: left;
}

#about {
    color: #E6501BFF;
}

#about a {
    border-bottom: 1px solid #E6501B !important;
    color: #E6501BFF;
}

.video-player {
    object-fit: contain;
    padding: 2vh max(4vw, 20px);
    text-align: center;
    width: 100vw;
}

.video-player iframe {
    aspect-ratio: 16/9;
    width: min(960px, 100%);
}

@media screen and (max-width: 1200px) {
    .grid.grid4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 800px) {
    .grid.grid4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .belief {
        grid-column: 1 / span 2;
    }
}

@media screen and (max-width: 480px) {
    #banner>div {
        flex-direction: column;
        text-align: center !important;
    }

    .grid.grid4 {
        grid-template-columns: repeat(1, 1fr);
    }

    #about .contact {
        flex-direction: column;
        margin: 0 max(2vw, 40px);
    }
}

@media (pointer:coarse) {

    .arrow-button,
    .arrow-button.hidden {
        display: none;
    }
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes spin {
    0% {
        translate: 0;
    }

    100% {
        translate: -50%;
    }
}

@keyframes spin-webkit {
    0% {
        translate: 0;
    }

    50% {
        translate: -100%;
    }

    100% {
        translate: 0;
    }
}

@keyframes fadeout {
    0% {
        opacity: 1;
    }

    75% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}