/* ==========================================================================
   MOSCHE ULTRAS - COMING SOON CSS
   ========================================================================== */

/* --- FONTS --- */
@font-face {
    font-family: 'Bangers';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/bangers-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    src: url('fonts/inter-variable.woff2') format('woff2');
}

/* --- VARIABLES --- */
:root {
    --color-bg: #4A2311;
    --color-surface: #7A3F19;
    --color-accent: #E9C79A;
    --color-highlight: #F5E2C5;
    --color-text: #FFF6E8;
    --color-dark: #2a1309;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Comic Halftone Background */
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.2) 2px, transparent 2.5px);
    background-size: 15px 15px;
}

.coming-soon-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* LOGO ANIMATION SECTION */
.logo-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-logo {
    max-width: 100%;
    filter: drop-shadow(5px 5px 0px rgba(0, 0, 0, 0.8));
    animation: floating 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
    border-radius: 50%;
}

/* Smoke bubbles */
.smoke-puff {
    position: absolute;
    background-color: var(--color-accent);
    border-radius: 50%;
    border: 3px solid #000;
    opacity: 0;
    z-index: 1;
}

.smoke-1 {
    width: 40px;
    height: 40px;
    top: 20%;
    left: 0%;
    animation: puff 3s infinite 0.5s;
}

.smoke-2 {
    width: 60px;
    height: 60px;
    top: 10%;
    right: 10%;
    animation: puff 3.5s infinite 1.2s;
}

.smoke-3 {
    width: 30px;
    height: 30px;
    bottom: 20%;
    right: -5%;
    animation: puff 2.5s infinite 2s;
}

/* TEXT CONTENT */
.comic-title {
    font-family: 'Bangers', cursive;
    font-size: 5rem;
    color: var(--color-highlight);
    text-shadow: 4px 4px 0px var(--color-dark),
        -2px -2px 0 var(--color-dark),
        2px -2px 0 var(--color-dark),
        -2px 2px 0 var(--color-dark),
        2px 2px 0 var(--color-dark);
    letter-spacing: 3px;
    margin-bottom: 1rem;
    transform: rotate(-2deg);
}

/* Glitch Effect on Title */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 4px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -4px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 2rem;
    background-color: var(--color-surface);
    padding: 1rem;
    border: 3px solid var(--color-dark);
    border-radius: 8px;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.6);
    transform: rotate(1deg);
}

/* PROGRESS BAR */
.progress-container {
    width: 80%;
    height: 30px;
    margin: 0 auto 1rem;
    background-color: var(--color-dark);
    border: 4px solid #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0px 3px 5px rgba(0, 0, 0, 0.5), 4px 4px 0px rgba(0, 0, 0, 0.4);
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--color-accent);
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.2) 10px,
            rgba(0, 0, 0, 0.2) 20px);
    transition: width 0.3s ease;
}

.loading-text {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--color-accent);
}

/* KEYFRAMES */
@keyframes floating {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
        filter: drop-shadow(10px 15px 0px rgba(0, 0, 0, 0.6));
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes puff {
    0% {
        transform: scale(0.5) translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: scale(2) translateY(-100px);
        opacity: 0;
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(61px, 9999px, 52px, 0);
    }

    5% {
        clip: rect(33px, 9999px, 14px, 0);
    }

    10% {
        clip: rect(100px, 9999px, 99px, 0);
    }

    15% {
        clip: rect(14px, 9999px, 86px, 0);
    }

    20% {
        clip: rect(0, 0, 0, 0);
    }

    /* Hide most of the time */
    100% {
        clip: rect(0, 0, 0, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    5% {
        clip: rect(52px, 9999px, 74px, 0);
    }

    10% {
        clip: rect(79px, 9999px, 85px, 0);
    }

    15% {
        clip: rect(42px, 9999px, 11px, 0);
    }

    20% {
        clip: rect(0, 0, 0, 0);
    }

    /* Hide most of the time */
    100% {
        clip: rect(0, 0, 0, 0);
    }
}

@media (max-width: 600px) {
    .comic-title {
        font-size: 4rem;
    }

    .logo-wrapper {
        width: 220px;
        height: 220px;
    }
}