/* iPhone Mockup Styles - Shared */
.iphone-mockup {
    width: 300px;
    aspect-ratio: 1206 / 2622;
    background: #000;
    border-radius: 56px;
    /* Thinner border (4px) with multiple shadows to simulate the metal frame depth */
    border: 4px solid #000;
    box-shadow:
        /* Inner bezel */
        inset 0 0 0 2px #111,
        /* Outer frame highlight */
        0 0 0 1px #333,
        /* Side depth effect (simulating 3D side) */
        10px 10px 30px rgba(0, 0, 0, 0.5),
        /* Soft ambient shadow */
        0 30px 60px -10px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transform: rotateY(0) rotateX(0);
    transition: transform 0.1s ease-out;
}

.iphone-mockup::before {
    /* Glossy reflection on the screen */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 55%);
    pointer-events: none;
    z-index: 50;
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

/* Media Container inside Mockup */
.media-container {
    width: 100%;
    height: 100%;
    background: #121212;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 44px;
    /* Matches outer radius minus border */
    overflow: hidden;
}

.media-container video,
.media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-placeholder-text {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 80%;
}

.media-container picture {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .iphone-mockup {
        width: 280px;
        height: 608px;
    }
}
