/* Mobile Block Overlay */
#mobile-block-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Background Animations */
.mobile-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.mobile-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
}

.mobile-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    animation: particleFloat 10s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

.mobile-block-content {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10;
}

.mobile-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

.mobile-icon {
    width: 40px;
    height: 40px;
    color: white;
}

#mobile-block-overlay h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#mobile-block-overlay p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* Device Animation */
.device-animation {
    position: relative;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-laptop {
    width: 100px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.device-laptop::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10%;
    width: 120%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 6px 6px;
}

.device-phone {
    width: 30px;
    height: 50px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 4px;
    position: absolute;
    right: 80px;
    bottom: 10px;
    border: 2px solid #ef4444;
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.device-phone::before {
    content: '×';
    color: #ef4444;
    font-size: 24px;
    font-weight: bold;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 50px rgba(239, 68, 68, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
    }
}

@media (max-width: 768px) {
    #mobile-block-overlay {
        display: flex;
    }

    /* Hide other content to prevent scrolling/interaction behind overlay */
    body>*:not(#mobile-block-overlay) {
        display: none !important;
    }
}