body{
  margin:0;
  padding:40px 0;
  background:#111;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:100vh;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
  box-sizing:border-box;
}

.iphone{
  width:393px;
  height:852px;
  border-radius:52px;
  background:black;
  overflow:hidden;
  position:relative;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 8px rgba(0,0,0,0.45);
}

/* ===== PHYSICAL DEVICE FRAME ===== */
.device-frame{
  padding:10px; /* thickness of phone frame */
  border-radius:68px;
  background:
    linear-gradient(
      145deg,
      #444,
      #1c1c1c
    ); /* metal edge illusion */

  box-shadow:
    0 30px 80px rgba(0,0,0,0.65),
    inset 0 0 0 1px rgba(255,255,255,0.15);

  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
  overflow:visible;
}

/* STATUS BAR */
#statusBar{
  position:absolute;
  top:0;
  height:45px;
  width:90%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 20px;
  color:white;
  background:rgba(0,0,0,0.15);
  z-index:60;
  cursor:pointer;
}

#dynamicIsland{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:120px;
  height:30px;
  background:black;
  border-radius:16px;
  z-index:40;
}

.status-icons img{
  height:12px;
}

/* NOTIFICATION OVERLAY */
#notificationOverlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.75);
  display:none;
  z-index:70;
}

#notificationOverlay img{
  width:100%;
  height:100%;
  object-fit:cover;
}

#notificationClock {
  position: absolute;
  top: 75px;
  left: 100px;
  font-size: 100px;
  font-weight: 600;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -1px;
  z-index: 71;
}

/* LOCK SCREEN */
#lockScreen{
  position:absolute;
  inset:0;
  background:#000;
  background:url("images/backgrounds/lockscreen.jpg")
             center / cover no-repeat;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  z-index:50;
  color:white;
}

#lockTime{
  font-size:125px;
  font-weight:600;
  margin-bottom:450px;
  text-shadow:0 4px 10px rgba(0,0,0,0.6);
  z-index:1;

}

#lockText{
    font-size:18px;
    opacity:0.9;
}

.unlockText{opacity:0.8;}

/* HOME SCREEN */
#homeScreen{
  position:absolute;
  inset:0;
  display:none;
  padding:60px 10px 150px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-auto-rows:100px;
  gap:15px;
  background:url("images/backgrounds/homescreen.jpg")
             center / cover no-repeat;
  z-index:10;
  box-sizing:border-box;
}

.app{
  text-align:center;
  color:white;
  font-size:11px;
}

.app img{
  width:60px;
  height:60px;
  border-radius:14px;
}

/* ================= DOCK ================= */

#dock{
  position:absolute;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  
  width:75%;
  height:72px;

  display:none;
  align-items:center;
  justify-content:space-evenly;

  padding:0 18px;
  border-radius:28px;

  background:rgba(255,255,255,0.22);
  backdrop-filter:blur(18px);

  z-index:25;
}

/* Dock icons */
.dock-app{
  width:56px;
  height:56px;
  flex:0 0 auto;

  display:flex;
  align-items:center;
  justify-content:center;
}

.dock-app img{
  width:56px;
  height:56px;
  object-fit:contain;
  border-radius:22%;
  overflow:hidden;
}


/* HOME INDICATOR */
#homeIndicator{
  position:absolute;
  bottom:14px;
  left:50%;
  transform:translateX(-50%);
  width:120px;
  height:5px;
  background:white;
  border-radius:3px;
  z-index:110;
  cursor:pointer;
}

/* === SCREEN CONTAINER === */
.appScreen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 20;
}

.appScreen button{
  width:100%;
  padding:12px;
  margin:10px 0;
  background:#222;
  color:white;
  border:none;
  border-radius:12px;
}

/* === SCREENSHOT-BASED SCREENS === */
.appScreen.screenshot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
}


/* === SCREENSHOT IMAGE === */
.appScreen.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}



/* ===== APP SCREENS ===== */
.appScreen{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:none;
  z-index:20;
}

/* Screenshot-based screens */
.appScreen.screenshot{
  display:none;
  align-items:center;
  justify-content:center;
}

/* Screenshot image */
.appScreen.screenshot img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  pointer-events:none;
}
/* === PHOTO GALLERY SCROLL === */
.photo-scroll{
  display:flex;
  height:100%;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
}

/* Hide scrollbar (still scrollable) */
.photo-scroll::-webkit-scrollbar{
  display:none;
}

.photo-scroll{
  -ms-overflow-style:none;
  scrollbar-width:none;
}

/* Individual photos */
.photo-scroll img{
  flex:0 0 100%;
  width:100%;
  height:100%;
  object-fit:contain;
  scroll-snap-align:center;
  pointer-events:none;
}
/* === PHOTO DOT INDICATOR (iOS STYLE) === */
.photo-dots{
  position:absolute;
  bottom:60px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  z-index:20;
}

.photo-dots .dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:rgba(255,255,255,0.35);
  transition:background 0.25s ease, transform 0.25s ease;
  cursor:pointer;
}

.photo-dots .dot.active{
  background:#fff;
  transform:scale(1.2);
}



/* BACK BUTTON */
.hotspot.back{
  top:6%;
  left:4%;
  width:19%;
  height:5%;
}

/*back button v2 */
.backBtn{
  position:absolute;
  top:52px; /* below status bar */
  left:12px;

  padding:6px 12px;
  font-size:14px;

  background:rgba(0,0,0,0.55);
  color:white;

  border:none;
  border-radius:12px;
  z-index:1000;
  cursor:pointer;
}
/* === HOTSPOTS (INTERACTION LAYER) === */
.hotspot {
  position: absolute;
  z-index: 100;
  cursor: pointer;

  /* invisible but clickable */
  background: transparent;
}
