/* --- App Simulation Animation --- */
.app-demo-wrapper {
    position: relative;
    width: 260px;
    /* Narrower for modern 19.5:9 ratio */
    height: 578px;
    margin: 0 auto;
    border-radius: 36px;
    border: 10px solid #222;
    /* Darker, slightly thinner frame */
    background: #000;
    overflow: hidden;
    /* 3D Depth Restoration */
    box-shadow:
        1px 1px 0px #1a1a1a,
        2px 2px 0px #1a1a1a,
        3px 3px 0px #1a1a1a,
        4px 4px 0px #1a1a1a,
        5px 5px 0px #1a1a1a,
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 0 0 2px rgba(255, 255, 255, 0.15);
    /* Transform handled by premium.js */
}

/* Hover removed to allow JS physics */

.app-demo-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 12s infinite;
}

/* Cycle through 4 images */
.app-demo-screen:nth-child(1) {
    animation-delay: 0s;
}

.app-demo-screen:nth-child(2) {
    animation-delay: 3s;
}

.app-demo-screen:nth-child(3) {
    animation-delay: 6s;
}

.app-demo-screen:nth-child(4) {
    animation-delay: 9s;
}

@keyframes slideShow {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    5% {
        opacity: 1;
        transform: scale(1);
    }

    25% {
        opacity: 1;
        transform: scale(1);
    }

    30% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
    }
}

/* Phone Notch */
.app-demo-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #222;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

@media (max-width: 768px) {
    .app-demo-wrapper {
        width: 240px;
        /* Smaller on mobile */
        height: 520px;
        /* Adjust height for consistent ratio */
    }
}

.app__demo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.app__demo-text {
    flex: 1;
}

.app__demo-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .app__demo-content {
        flex-direction: column;
        text-align: center;
    }
}