/* Phone Mockup Styling */
.mockup-container {
    position: relative;
    height: 600px;
    width: 600px;
    /* Base width */
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: absolute;
    width: 250px;
    height: 540px;
    border-radius: 40px;
    border: 5px solid #333;
    /* Dark frame */
    box-shadow:
        0 0 0 2px #555,
        /* Outer rim */
        0 20px 40px rgba(0, 0, 0, 0.3);
    /* Deep shadow */
    background: #000;
    overflow: hidden;
    transition: transform 0.5s ease;
}

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

/* Positioning */
.phone-center {
    z-index: 10;
    transform: scale(1.1);
    /* Slightly larger */
}

.phone-left {
    z-index: 5;
    transform: translateX(-140px) translateY(40px) scale(0.9) rotate(-5deg);
    opacity: 0.9;
}

.phone-right {
    z-index: 5;
    transform: translateX(140px) translateY(40px) scale(0.9) rotate(5deg);
    opacity: 0.9;
}

/* Animations */
.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-delayed {
    animation: float 7s ease-in-out infinite 1s;
}

.floating-delayed-2 {
    animation: float 8s ease-in-out infinite 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Responsive adjustments for phones */
@media (max-width: 900px) {
    .mockup-container {
        width: 100%;
        max-width: 450px;
        height: 450px;
    }

    .phone-mockup {
        width: 180px;
        height: 390px;
        border-radius: 30px;
    }

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

    .phone-left {
        transform: translateX(-100px) translateY(30px) scale(0.85) rotate(-5deg);
    }

    .phone-right {
        transform: translateX(100px) translateY(30px) scale(0.85) rotate(5deg);
    }
}

@media (max-width: 480px) {
    .mockup-container {
        height: 380px;
    }

    .phone-mockup {
        width: 150px;
        height: 325px;
        border-radius: 25px;
        border-width: 4px;
    }

    .phone-left {
        transform: translateX(-80px) translateY(20px) scale(0.8) rotate(-4deg);
    }

    .phone-right {
        transform: translateX(80px) translateY(20px) scale(0.8) rotate(4deg);
    }
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
    overflow: hidden;
}

.gallery-scroll {
    display: flex;
    gap: 30px;
    padding: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-item {
    flex: 0 0 auto;
    width: 280px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    scroll-snap-align: center;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}