/* ==================================================
   XtraBoX
   Final Version
   ================================================== */

/* ---------- Fonts ---------- */

@font-face {
    font-family: 'Exo2';
    src: url('fonts/Exo2-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Exo2';
    src: url('fonts/Exo2-Regular.ttf') format('truetype');
    font-weight: 400;
}

/* ---------- Reset ---------- */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    height:100%;
}

/* ---------- Bühne ---------- */

body{

    display:flex;
    justify-content:center;
    align-items:center;

    overflow:hidden;

    background:
        radial-gradient(
            ellipse at center,
            #0b1320 0%,
            #04070d 40%,
            #000000 100%
        );

    color:#ffffff;
}

/* ---------- Container ---------- */

.hero{

    text-align:center;

    opacity:0;

    animation:
        intro 2.5s ease-out forwards,
        float 12s ease-in-out infinite 2.5s;
}

/* ---------- Logo ---------- */

.logo{

    width:min(220px,22vw);

    height:auto;

    display:block;

    margin:0 auto;

    opacity:0;

    filter:
        drop-shadow(0 0 8px rgba(0,120,255,.15))
        drop-shadow(0 0 24px rgba(0,120,255,.08));

    animation:
        logoFade 2s ease-out .25s forwards;
}

/* ---------- Schriftzug ---------- */

h1{

    font-family:
        'Exo2',
        Arial,
        sans-serif;

    margin-top:18px;

    font-size:
        clamp(36px,4vw,56px);

    font-weight:300;

    letter-spacing:.08em;

    color:#edf2fb;

    text-shadow:
        0 0 10px rgba(255,255,255,.05);

    opacity:0;

    animation:
        textFade 1.5s ease-out 1.2s forwards;
}

/* ---------- Intro ---------- */

@keyframes intro {

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }
}

@keyframes logoFade {

    from{

        opacity:0;

        transform:
            translateY(20px)
            scale(.92);

        filter:
            blur(8px)
            drop-shadow(0 0 8px rgba(0,120,255,.15));
    }

    to{

        opacity:1;

        transform:
            translateY(0)
            scale(1);

        filter:
            drop-shadow(0 0 8px rgba(0,120,255,.15))
            drop-shadow(0 0 24px rgba(0,120,255,.08));
    }
}

@keyframes textFade {

    from{

        opacity:0;

        transform:
            translateY(10px);
    }

    to{

        opacity:1;

        transform:
            translateY(0);
    }
}

/* ---------- Schweben ---------- */

@keyframes float {

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-4px);
    }

    100%{
        transform:translateY(0px);
    }
}

/* ---------- Mobile ---------- */

@media (max-width:768px){

    .logo{
        width:170px;
    }

    h1{

        font-size:42px;

        letter-spacing:.06em;
    }
}