/* Middle Layout (Orb visual) */
.middle-visual-section {
    position: relative;
    padding: 8rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.middle-visual-section .orb-glow {
    width: 800px;
    height: 800px;
}

/* iPhone Mockup Component */
.fake-iphone-mockup {
    width: 300px;
    height: 600px;
    background: #111;
    border: 8px solid #333;
    border-radius: 40px;
    z-index: 5;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.iphone-screen {
    background: url('../../../assets/img/pablo.jpeg') center/cover;
    width: 100%;
    height: 100%;
    filter: grayscale(100%) opacity(0.8);
}

.iphone-glare {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(0deg, var(--brand-green), transparent);
    height: 200px;
    mix-blend-mode: overlay;
}

/* Cards Wrapper */
.plan-cards-container {
    position: absolute; /* Default mapping to section */
    top: 0; left: 0; width: 100%; height: 100%;
}

.floating-glass-card {
    position: absolute;
    width: 250px;
    z-index: 10;
}

.floating-1 { top: 20%; left: 15%; }
.floating-2 { bottom: 20%; left: 10%; }
.floating-3 { top: 30%; right: 15%; }
.floating-4 { bottom: 25%; right: 10%; }

@media (max-width: 1024px) {
    .floating-glass-card {
        position: relative;
        width: 100%;
        top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
        margin-bottom: 1rem;
    }
    
    .middle-visual-section {
        flex-direction: column;
        padding: 4rem 5%;
    }
}

@media (max-width: 768px) {
    .middle-visual-section {
        padding: 4rem 0 2rem 0; /* Removing horizontal padding to allow full bleed carousel */
        overflow: hidden;
    }
    .middle-visual-section .orb-glow {
        width: 400px;
        height: 400px;
        top: 30%;
    }
    
    .fake-iphone-mockup {
        width: 240px;
        height: 480px;
        margin: 0 auto 3rem;
    }
    
    /* Transforming the absolute container into a Horizontal Carousel */
    .plan-cards-container {
        position: relative;
        display: flex;
        align-items: center;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding: 1rem 5% 2rem;
        width: 100vw;
        left: auto; top: auto;
        height: auto;
        /* Hiding scrollbar for cleaner look */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .plan-cards-container::-webkit-scrollbar {
        display: none;
    }
    
    .floating-glass-card {
        min-width: 280px;
        scroll-snap-align: center;
        margin-bottom: 0; /* Resetting 1024px margin */
    }
}
