/* ==========================================================================
   Retina iPhone 16 Pro Device Mockup Framework (Clean & Precise)
   ========================================================================== */

.phone-mockup {
  width: 270px;
  height: 585px;
  background: #0A2B24;
  border-radius: 42px;
  border: 3.5px solid #2d4c43;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
  isolation: isolate;
  /* Smooth natural drop shadow following rounded corners */
  box-shadow: 
    0 20px 50px -15px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(226, 236, 233, 0.12);
}

/* Subtle Metallic Edge Reflection */
.phone-mockup::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 40px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 50;
}

/* Glass Screen Image (Retina Crisp Rendering) */
.mockup-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 40px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Live Dynamic Island */
.mockup-island {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #000;
  border-radius: 14px;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.island-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0f1c18;
  border: 1px solid #1f3830;
  margin-left: auto;
}

.island-sensor {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #060a08;
  margin-left: 6px;
}

/* Bottom Bar */
.mockup-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 4px;
  background: rgba(226, 236, 233, 0.45);
  border-radius: 4px;
  z-index: 40;
}

/* Responsive Phone Mockup Scaling */
@media (max-width: 640px) {
  .phone-mockup {
    width: 280px;
    height: 607px;
    border-radius: 40px;
  }
  .phone-mockup::after,
  .mockup-screen-img {
    border-radius: 36px;
  }
}
