/* ===== 3-PHONE HERO SHOWCASE - COMPACT OVERLAPPED LAYOUT ===== */

.phones-showcase {
    position: relative;
    width: 450px;
    /* Compact width - just slightly wider than one phone */
    height: 670px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Center Phone - Main Focus */
.phone-center {
    position: relative;
    z-index: 3;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.phone-center:hover {
    transform: scale(1.02) translateY(-5px);
}

/* Left Phone - Peeking from Behind Left */
.phone-left {
    position: absolute;
    left: -120px;
    /* Overlaps significantly - only edge visible */
    z-index: 1;
    transform: rotate(-12deg) scale(0.9);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.phone-left:hover {
    left: -100px;
    /* Slides out slightly on hover */
    transform: rotate(-10deg) scale(0.92);
    opacity: 1;
    z-index: 4;
}

/* Right Phone - Peeking from Behind Right */
.phone-right {
    position: absolute;
    right: -120px;
    /* Overlaps significantly - only edge visible */
    z-index: 2;
    transform: rotate(12deg) scale(0.9);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.phone-right:hover {
    right: -100px;
    /* Slides out slightly on hover */
    transform: rotate(10deg) scale(0.92);
    opacity: 1;
    z-index: 4;
}

/* Enhance phone mockup styling */
.phone-mockup-sketch {
    position: relative;
    width: 340px;
    height: 670px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

/* Phone content area - properly sized */
.phone-content {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 300px;
    height: 630px;
    border-radius: 30px;
    overflow: hidden;
    background: white;
}

/* Screenshot carousel for center phone */
.screenshot-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual screenshots - proper fit */
.screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.screenshot.active {
    opacity: 1;
}

/* Individual screenshots for side phones - no carousel */
.phone-left .screenshot,
.phone-right .screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .phones-showcase {
        height: 600px;
    }

    .phone-center {
        transform: scale(1);
    }

    .phone-left {
        left: -60px;
        transform: rotate(-10deg) scale(0.75);
    }

    .phone-right {
        right: -60px;
        transform: rotate(10deg) scale(0.75);
    }
}

@media (max-width: 768px) {
    .phones-showcase {
        height: 550px;
    }

    /* Hide side phones on mobile, show only center */
    .phone-left,
    .phone-right {
        display: none;
    }

    .phone-center {
        transform: scale(0.9);
    }

    .phone-mockup-sketch {
        width: 280px;
        height: 550px;
    }
}

@media (max-width: 480px) {
    .phones-showcase {
        height: 550px;
    }

    .phone-center {
        transform: scale(1.0);
    }

    .phone-mockup-sketch {
        width: 280px;
        height: 550px;
    }
}