/* iPhone 14 Pro Device Frame */
.device-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.device {
    position: relative;
    transform: scale(0.8);
    margin: -50px;
}

.device-iphone-14-pro {
    width: 393px;
    height: 798px;
}

.device-frame {
    background: #1a1a1a;
    border-radius: 68px;
    box-shadow:
            0 0 0 3px #1a1a1a,
            0 0 0 4px #262626,
            0 20px 40px rgba(0, 0, 0, 0.3),
            0 10px 20px rgba(0, 0, 0, 0.2);
    height: 798px;
    padding: 19px;
    position: relative;
    width: 393px;
}

.device-screen {
    background: #000;
    border-radius: 49px;
    height: 760px;
    position: relative;
    width: 355px;
    object-fit: cover;
    object-position: top;
}

/* Dynamic Island */
.device-header {
    background: #1a1a1a;
    border-radius: 26px;
    height: 35px;
    left: 50%;
    position: absolute;
    top: 29px;
    transform: translateX(-50%);
    width: 126px;
    z-index: 2;
}

/* Side Buttons */
.device-btns {
    background: #1a1a1a;
    border-radius: 0 3px 3px 0;
    height: 32px;
    left: -3px;
    position: absolute;
    top: 115px;
    width: 3px;
}

.device-btns::after,
.device-btns::before {
    background: #1a1a1a;
    border-radius: 0 3px 3px 0;
    content: "";
    height: 62px;
    left: 0;
    position: absolute;
    width: 3px;
}

.device-btns::after {
    top: 60px;
}

.device-btns::before {
    top: 140px;
}

.device-power {
    background: #1a1a1a;
    border-radius: 3px 0 0 3px;
    height: 100px;
    position: absolute;
    right: -3px;
    top: 200px;
    width: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .device {
        transform: scale(0.7);
        margin: -80px;
    }
}

@media (max-width: 480px) {
    .device {
        transform: scale(0.6);
        margin: -100px;
    }
}