@font-face {
    font-family: "Degular-Thin";
    src: url("../fonts/Degular-Thin.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --pink: #e5d2cf;
    --brown: #2f1a0f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Degular-Thin";
    color: var(--pink);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;

    background: url("../img/background.webp") no-repeat center center fixed;
    background-size: cover;
}

.container {
    padding-left: 5.625rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    width: 90%;
    max-width: 1200px;
}

/*  LEFT COLUMN */

.content {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* padding-right: 50px; */
    align-items: center;
    text-align: center;
}

.logo-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-bottom: 45px;
    display: block;
}

.tagline {
    margin-bottom: 50px;
    /* opacity: 0.9; */
    font-weight: 700;
}

.info-text {
    max-width: 350px;
    text-align: center;
    letter-spacing: 0.11rem;
    line-height: 1.4;
    font-size: 1rem;
    margin-bottom: 1.5625rem;
    text-transform: uppercase;
}

.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9375rem;
}

.icon {
    width: 2.8125rem;
    height: auto;
    display: block;
    transition: transform 0.3s ease-out;
}

.insta-link:hover .icon {
    transform: scale(1.05);
}

.btn {
    background: transparent;
    text-decoration: none;
    color: var(--pink);
    border: 1px solid var(--pink);
    padding: 0.75rem 1.5625rem;
    border-radius: 3.125rem;
    font-size: 1rem;
    letter-spacing: 0.09rem;
    line-height: 1.4;
    transition: 0.3s ease-out;
}

.btn:hover {
    transform: scale(1.03);
}

/*  RIGHT COLUMN */
.video-container {
    /* display: flex;
    justify-content: flex-end; */
    /* min-width: 450px;  */
    align-items: center;
    margin-left: -90px;
}
.bag-video {
    display: block;
    pointer-events: none;
    width: 550px;
    height: auto;
    transform: scale(1.8) translateY(15px);
    transform-origin: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- LOADER STYLES --- */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--brown);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition:
        opacity 0.75s ease,
        visibility 0.75s ease;
}

.loader-content {
    position: relative;
    width: 250px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.1s ease;
}

.loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader.loader-hidden .loader-content {
    opacity: 0;
}

.loader-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.loader-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

#loader-logo-img {
    animation-name: flicker-logo;
}
#loader-text-img {
    animation-name: flicker-text;
}

@keyframes flicker-logo {
    0%,
    40% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

@keyframes flicker-text {
    0%,
    50% {
        opacity: 0;
    }
    60%,
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.loader-ball {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    border: 2px solid #e5d2cf;
    background-color: transparent;
    border-radius: 50%;
    animation: bounce-ball 1s infinite ease-out;
}

@keyframes bounce-ball {
    0% {
        transform: translate(-50%, -30px);
    }
    50% {
        transform: translate(-50%, 20px);
    }
    100% {
        transform: translate(-50%, -30px);
    }
}

@media (max-width: 990px) {
    body {
        min-height: 100dvh;
        overflow-x: hidden;
        align-items: baseline;
    }

    html,
    body {
        overflow: hidden;
        position: relative;
    }

    .container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 1.3rem;
        flex-direction: column-reverse;
        gap: 0.8rem;
        width: 100%;
        padding: 0;
    }

    .content {
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info-text {
        max-width: 280px;
        text-align: center;
        letter-spacing: 0.1rem;
        line-height: 1.4;
        font-size: 0.8rem;
        margin-bottom: 1.5625rem;
        text-transform: uppercase;
    }

    .logo-img {
        max-width: 260px;
        margin: 0 auto 15px auto;
    }

    .btn {
        padding: 0.6rem 1.25rem;
        border-radius: 3.125rem;
        font-size: 0.8rem;
        letter-spacing: 0.07rem;
    }

    .video-container {
        margin-left: 0;
        justify-content: center;
        height: 350px;
    }

    .video-wrapper {
        width: 500px;
        height: 350px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .bag-video {
        max-width: 350px;
        height: auto;
        transform: scale(1.7);
    }

    /* LOADER */
    .loader-content {
        transform: translateY(-5vh);
    }
}
