/* assets/css/splash.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap');

:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --text: #ffffff;
    --bg-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.splash-container {
    width: 100vw;
    height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Background Particles/Circles */
.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 15s infinite linear;
    z-index: 0;
}

.circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
    animation-duration: 20s;
}

.circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 50px;
    right: -20px;
    animation-duration: 15s;
}

.circle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 20%;
    animation-duration: 10s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* Content Wrapper */
.splash-content {
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Logo Animation */
.logo-wrapper {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(67, 97, 238, 0.5);
    animation: pulse-glow 3s infinite ease-in-out, bounce-in 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    /* Starts hidden for bounce-in */
}

.logo {
    width: 70%;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 20px rgba(67, 97, 238, 0.3);
    }

    50% {
        box-shadow: 0 0 50px rgba(67, 97, 238, 0.8), 0 0 20px rgba(72, 149, 239, 0.5);
    }

    100% {
        box-shadow: 0 0 20px rgba(67, 97, 238, 0.3);
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Text Animation */
.app-title {
    color: var(--text);
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.8s ease-out 0.5s forwards;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.app-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.8s ease-out 0.8s forwards;
    letter-spacing: 2px;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loader */
.loader-line {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fade-in 0.5s ease 1.2s forwards;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: load-progress 2.5s ease-in-out 1.2s forwards;
}

@keyframes load-progress {
    0% {
        width: 0%;
    }

    50% {
        width: 50%;
    }

    100% {
        width: 100%;
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}