/* Mouse Scroll Animation Styles */

/* Common styles for both desktop and mobile */
.mouse-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: mouse-pulse 2s infinite ease-in-out;
}

.mouse-wheel {
    position: absolute;
    top: 10px;
    width: 4px;
    height: 8px;
    background-color: #fff;
    border-radius: 2px;
    opacity: 1;
    animation: mouse-wheel 2s infinite;
}

.mouse-arrow {
    position: absolute;
    bottom: -20px;
    width: 16px;
    height: 16px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(45deg);
    opacity: 0;
    animation: mouse-arrow 2s infinite;
}

.mouse-arrow:nth-child(2) {
    bottom: -30px;
    animation-delay: 0.3s;
}

.mouse-arrow:nth-child(3) {
    bottom: -40px;
    animation-delay: 0.6s;
}

@keyframes mouse-pulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}

@keyframes mouse-wheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes mouse-arrow {
    0% { opacity: 0; transform: rotate(45deg) translateY(-10px); }
    50% { opacity: 1; transform: rotate(45deg) translateY(0); }
    100% { opacity: 0; transform: rotate(45deg) translateY(10px); }
}

/* Mobile phone tap animation elements */
.mobile-tap-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.mobile-phone {
    width: 24px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: phone-pulse 2s infinite ease-in-out;
}

.mobile-screen {
    position: absolute;
    top: 4px;
    left: 2px;
    width: 16px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.mobile-button {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
}

.tap-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    animation: tap-animation 2s infinite;
}

@keyframes phone-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes tap-animation {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    40% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

/* Responsive adjustments */
@media (max-width: 996px) {
    /* Hide mouse indicator on mobile */
    .mouse-scroll-indicator {
        display: none;
    }
    
    /* Show mobile tap indicator on mobile */
    .mobile-tap-indicator {
        display: flex;
    }
    
    .mobile-tap-indicator {
        bottom: 190px;
    }
}



.mobile-phone {
    width: 24px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: phone-drag 2s infinite ease-in-out;
}

.mobile-screen {
    position: absolute;
    top: 4px;
    left: 2px;
    width: 16px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.mobile-finger {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    animation: finger-drag 2s infinite ease-in-out;
}

@keyframes phone-drag {
    0% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    75% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

@keyframes finger-drag {
    0% { transform: translate(-50%, -100%); opacity: 0; }
    20% { transform: translate(-50%, -50%); opacity: 0.8; }
    80% { transform: translate(-50%, 50%); opacity: 0.8; }
    100% { transform: translate(-50%, 100%); opacity: 0; }
}