/* ============================================================
   IPHONE MOCKUP STACK HERO SPECIFIC STYLES
   ============================================================ */

.iphone-stack-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 570px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
}

.iphone-mockup {
    position: absolute;
    width: 240px;
    top: 50%;
    left: 50%;
    transform-origin: center;
    aspect-ratio: 1 / 2.1;
    border-radius: 40px;
    overflow: hidden;
    background: #000;
    border: 6px solid #1a1a1a;
    box-shadow: -20px 40px 60px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
    will-change: transform;
    opacity: 0;
}

.iphone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* DESKTOP HOVER STATES */
@media (min-width: 1025px) {
    .iphone-mockup.active-hover {
        opacity: 1;
        filter: brightness(1.05);
        z-index: 20;
    }

    .iphone-mockup.dimmed {
        opacity: 0.35;
        filter: brightness(0.7);
    }
}

/* DESKTOP STACK POSITIONS */
.s-left-2 {
    left: 0%;
    top: 10%;
    z-index: 4;
}

.s-left-1 {
    left: 15%;
    top: 0%;
    z-index: 3;
}

.s-right-1 {
    left: 30%;
    top: 10%;
    z-index: 2;
}

.s-front {
    left: 45%;
    top: 0%;
    z-index: 1;
}

/* TABLET & INTERMEDIATE DESKTOP (768px – 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .iphone-stack-container {
        max-width: 440px;
        height: 460px;
    }
    .iphone-mockup {
        width: 165px;
    }
    .s-left-2 {
        left: 0%;
        top: 12%;
    }
    .s-left-1 {
        left: 12%;
        top: 4%;
    }
    .s-right-1 {
        left: 24%;
        top: 12%;
    }
    .s-front {
        left: 36%;
        top: 4%;
    }
}

/* TABLET (768px – 1024px) */
@media (max-width: 1024px) {
    .iphone-stack-container {
        width: 100%;
        max-width: 520px;
        height: 480px;
        margin: 0 auto;
    }

    .iphone-mockup {
        position: absolute;
        width: 170px;
        top: 25%;
        left: 50%;
        transform-origin: center;
    }

    .s-left-2 {
        transform: translate(-120px, -15px) rotate(-12deg);
        z-index: 1;
    }

    .s-left-1 {
        transform: translate(-60px, -30px) rotate(-4deg);
        z-index: 2;
    }

    .s-right-1 {
        transform: translate(0px, -30px) rotate(4deg);
        z-index: 3;
    }

    .s-front {
        transform: translate(60px, -15px) rotate(12deg);
        z-index: 4;
    }
}

/* MOBILE CAROUSEL STYLES (<768px) */
@media (max-width: 767px) {
    .iphone-stack-container {
        height: 435px;
        overflow: hidden;
    }

    .iphone-mockup {
        width: min(180px, 55vw);
        top: 20px;
        left: 50%;
        transform: translateX(-50%) !important;
        display: none;
        opacity: 0;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    }

    .iphone-mockup.carousel-active {
        display: block;
        opacity: 1;
        z-index: 5;
    }

    /* Carousel Dot Indicators */
    .carousel-dots {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 100;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.25);
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .carousel-dot.active {
        background: var(--purple-light, #a855f7);
        transform: scale(1.3);
    }
}

@media (max-width: 360px) {
    .iphone-stack-container {
        height: 360px;
    }
    .iphone-mockup {
        width: 155px;
    }
}

