﻿/* =========================
   SPLASH ANIMATIONS
========================= */

/* Gradient */
.splash-bg {
    animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Logo Pop */
.logo-circle {
    animation: logoPop 1s ease;
}

@keyframes logoPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Typing */
.tagline {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #fff;
    width: 0;
    animation: typing 3s steps(22) forwards, blink 0.8s infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 180px;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Loader */
.loader span {
    animation: bounce 1.2s infinite ease-in-out;
}

    .loader span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .loader span:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================
   LOGIN ANIMATIONS
========================= */

/* Fade Up */
.fade-up {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Floating image */
.illustration img {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


@keyframes slideUp {
    from {
        transform: translate(-50%, 50px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}


.menu-card {
    animation: fadeSlide 0.4s ease forwards;
    opacity: 0;
}

    .menu-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .menu-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .menu-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .menu-card:nth-child(4) {
        animation-delay: 0.2s;
    }

    .menu-card:nth-child(5) {
        animation-delay: 0.25s;
    }

    .menu-card:nth-child(6) {
        animation-delay: 0.3s;
    }

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}