/* === Splash Screen Loader === */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #346041 0%, #2d5236 50%, #346041 100%);
    background-size: 400% 400%;
    animation: gradientShift 6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.splash-screen.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

/* Hide mobile navigation while splash screen is active */
body:has(.splash-screen:not(.fade-out)) .mobile-bottom-nav,
body:has(.splash-screen:not(.fade-out)) .app-bottom-nav {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Alternative for browsers that don't support :has() */
.splash-active .mobile-bottom-nav,
.splash-active .app-bottom-nav {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(100px) !important;
}

/* Force hide all bottom navigation elements during splash */
body.splash-active *[class*="bottom-nav"],
body.splash-active *[class*="mobile-nav"],
body.splash-active .app-bottom-nav,
body.splash-active .mobile-bottom-nav {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Bottom Navigation Entrance Animation */
.app-bottom-nav {
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-bottom-nav.nav-enter {
    transform: translateY(0);
    opacity: 1;
    animation: slideUpFromBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUpFromBottom {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    50% {
        transform: translateY(-5px);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Bounce effect for navigation items */
.app-bottom-nav.nav-enter a {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpItems 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.app-bottom-nav.nav-enter a:nth-child(1) { animation-delay: 0.1s; }
.app-bottom-nav.nav-enter a:nth-child(2) { animation-delay: 0.2s; }
.app-bottom-nav.nav-enter a:nth-child(3) { animation-delay: 0.3s; }
.app-bottom-nav.nav-enter a:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUpItems {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Container */
.splash-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
    animation: logoAppear 1s ease 0.3s forwards, logoFloat 3s ease-in-out 1.3s infinite;
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    50% { 
        transform: translateY(-8px) scale(1.02);
    }
}

.splash-logo img {
    width: 160px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.3));
    animation: logoGlow 4s ease-in-out 1.3s infinite;
}

@keyframes logoGlow {
    0%, 100% { 
        filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.3)) 
                drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
    }
    50% { 
        filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.4)) 
                drop-shadow(0 0 40px rgba(255, 255, 255, 0.2));
    }
}

/* Hide all other elements */
.splash-brand,
.splash-loader,
.splash-particles {
    display: none;
}

/* ARAVA Text Styling */
.splash-text {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 8px;
    margin: 0;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpText 1s ease 1.5s forwards, textGlow 3s ease-in-out 2.5s infinite;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

@keyframes fadeInUpText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5),
                     0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6),
                     0 0 30px rgba(255, 255, 255, 0.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .splash-logo {
        padding: 0 20px;
    }
    
    .splash-logo img {
        width: 140px;
        margin-bottom: 15px;
    }
    
    .splash-text {
        font-size: 2rem;
        letter-spacing: 6px;
    }
}

@media (max-width: 576px) {
    .splash-logo {
        padding: 0 15px;
    }
    
    .splash-logo img {
        width: 120px;
        margin-bottom: 12px;
    }
    
    .splash-text {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 480px) {
    .splash-logo img {
        width: 100px;
        margin-bottom: 10px;
    }
    
    .splash-text {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
} 