/* Smooth scrolling across the app */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar but keep scrolling functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Native App Feel: Prevent text highlighting on mobile taps */
body {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
input, textarea {
    user-select: text;
}

/* Optimize touch interactions across all mobile screens (Removes 300ms tap delay) */
a, button, input, select, textarea {
    touch-action: manipulation;
}

/* PWA Safe Areas for modern notched devices (iPhone X+, Androids) */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 20px);
}
.pt-safe {
    padding-top: env(safe-area-inset-top, 20px);
}

/* =========================================
   PROFESSIONAL ANIMATIONS & EFFECTS
   ========================================= */

/* 1. Staggered Fade-In-Up (Used for loading page content) */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* 2. Glassmorphism (Frosted Glass for sticky headers) */
.glass {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}
.glass-green {
    background: rgba(22, 163, 74, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 3. Button Press Effect (Shrinks slightly when tapped) */
.btn-press {
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}
.btn-press:active {
    transform: scale(0.96);
}

/* 4. Ripple Effect (Material Design Tap Effect) */
button, .ripple-btn {
    position: relative;
    overflow: hidden;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}
@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================================================================
   ANDROID PWA CREATIVE DELIVERY BIKE SPLASH SCREEN
   ========================================================================== */

#android-pwa-splash {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: radial-gradient(circle at 50% 30%, #064e3b 0%, #022c22 45%, #021a14 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: env(safe-area-inset-top, 24px) 24px env(safe-area-inset-bottom, 36px) 24px;
    box-sizing: border-box;
    overflow: hidden;
    transition: opacity 0.45s ease-out, visibility 0.45s ease-out;
}

#android-pwa-splash.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Ambient Pulse Behind Logo */
.splash-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    top: 15%;
    filter: blur(40px);
    pointer-events: none;
    animation: splashGlowPulse 2s ease-in-out infinite alternate;
}
@keyframes splashGlowPulse {
    from { transform: scale(0.85); opacity: 0.6; }
    to { transform: scale(1.15); opacity: 1; }
}

/* Bike Rider Bounce */
.bike-riding-anim {
    animation: bikeEngineBounce 0.35s ease-in-out infinite alternate;
    transform-origin: bottom center;
}
@keyframes bikeEngineBounce {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-3px) rotate(-1deg); }
}

/* Wheels Rotation */
.wheel-rotate {
    animation: wheelSpin 0.4s linear infinite;
    transform-origin: center;
}
@keyframes wheelSpin {
    100% { transform: rotate(360deg); }
}

/* Dynamic Road Surface Motion */
.road-dashes {
    stroke-dasharray: 14 14;
    animation: roadMove 0.4s linear infinite;
}
@keyframes roadMove {
    from { stroke-dashoffset: 28; }
    to { stroke-dashoffset: 0; }
}

/* Exhaust Smoke Particles */
.exhaust-puff {
    animation: puffFade 0.6s ease-out infinite;
    transform-origin: center;
}
@keyframes puffFade {
    0% { opacity: 0.8; transform: translate(0, 0) scale(0.6); }
    100% { opacity: 0; transform: translate(-14px, -8px) scale(1.6); }
}