@keyframes wobbleElement {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
    75% { transform: translateY(-4px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes pulsarBalao {
    0% { opacity: 0; transform: translateY(10px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

.app-section-wrapper {
    padding: 60px 0;
    margin-top: -40px;
    background-color: #ffffff;
    position: relative;
    overflow: visible;
}

.app-container-flex {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.app-text-area {
    width: 55%;
}

.app-title-main {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 35px 0;
    line-height: 1.15;
    letter-spacing: -1px;
}

.app-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 45px;
}

.app-service-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.80rem;
    font-weight: 600;
    color: #333;
}

.app-service-item i {
    color: #e60000;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.app-store-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.store-btn-scale {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.store-btn-scale:hover {
    transform: scale(1.05);
}

.playstore-btn {
    background: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.playstore-btn:hover {
    background: linear-gradient(135deg, #e60000 0%, #990000 100%);
    box-shadow: 0 15px 30px rgba(230,0,0,0.3);
}

.appstore-btn {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.appstore-btn:hover {
    border-color: #d1d5db;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.store-btn-scale i {
    font-size: 1.8rem;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-btn-text span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    font-weight: 700;
}

.store-btn-text strong {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.app-visual-wrapper {
    position: relative;
    width: 40%;
    height: 400px;
}

.app-red-box-gradient {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 95%;
    height: 340px;
    background: linear-gradient(145deg, #ff6b6b 0%, #e60000 50%, #800000 100%);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(230,0,0,0.25);
    z-index: 1;
    transition: filter 0.4s ease;
}

.app-phone-img {
    position: absolute;
    bottom: 0;
    right: 80px;
    height: 90%;
    width: auto;
    z-index: 2;
    filter: drop-shadow(-15px 15px 30px rgba(0,0,0,0.3));
    pointer-events: none;
    transition: filter 0.4s ease, height 0.4s ease;
}

.app-visual-wrapper:hover .app-red-box-gradient,
.app-visual-wrapper:hover .app-phone-img {
    animation: wobbleElement 4s ease-in-out infinite;
}

.app-visual-wrapper:hover .app-red-box-gradient {
    filter: brightness(1.08);
}

.app-floating-balloon {
    position: absolute;
    top: -50px;
    right: 100px;
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 20px 20px 20px 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    font-size: 0.95rem;
    font-weight: 800;
    color: #1a1a1a;
    z-index: 4;
    max-width: 250px;
    animation: pulsarBalao 4s infinite;
    border: 1px solid #eaeaea;
}

.app-floating-balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.app-qr-isolated-box {
    position: absolute;
    left: -40px;
    bottom: 110px;
    background: #ffffff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    z-index: 3;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.app-qr-isolated-box img {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 8px;
}

.app-qr-isolated-box p {
    margin-top: -10px;
    font-size: 0.7rem;
    font-weight: 900;
    color: #6a1313;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
    .app-container-flex {
        flex-direction: column;
        text-align: center;
        gap: 80px;
    }
    
    .app-text-area {
        width: 100%;
    }

    .app-services-grid {
        max-width: 600px;
        margin: 0 auto 45px auto;
        text-align: left;
    }

    .app-store-buttons {
        justify-content: center;
    }

    .app-visual-wrapper {
        width: 100%;
        max-width: 420px;
        margin-bottom: 40px;
    }

    .app-floating-balloon {
        right: auto;
        left: 20px;
        top: -30px;
        border-radius: 20px 20px 0 20px;
    }

    .app-floating-balloon::after {
        right: -12px;
        left: auto;
        bottom: 15px;
        border-width: 10px 0 10px 12px;
        border-color: transparent transparent transparent #ffffff;
    }

    .app-qr-isolated-box {
        left: -10px;
        bottom: 130px;
    }
}

@media (max-width: 768px) {
    .app-section-wrapper {
        padding: 80px 0;
    }

    .app-title-main {
        font-size: 2.2rem;
    }

    .app-services-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .app-store-buttons {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto;
    }

    .store-btn-scale {
        justify-content: center;
    }

    .app-visual-wrapper {
        height: 350px;
    }

    .app-red-box-gradient {
        height: 280px;
    }

    .app-phone-img {
        height: 110%;
        right: 10px;
    }

    .app-floating-balloon {
        left: 10px;
        top: -40px;
        max-width: 200px;
        font-size: 0.85rem;
    }

    .app-qr-isolated-box {
        left: 0px;
        bottom: 110px;
        padding: 10px;
    }

    .app-qr-isolated-box img {
        width: 70px;
        height: 70px;
    }
}