@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap);
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
  background: #000;
  color: #fff;
  font-family: sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.fingerprint:hover,
.clear:hover,
.keypadcancel:hover,
.keypad1:hover,
.keypad2:hover,
.keypad3:hover,
.keypad4:hover,
.keypad5:hover,
.keypad6:hover,
.keypad7:hover,
.keypad8:hover,
.keypad9:hover,
.keypad0:hover
{
  background-color: #666;
}
.box 
{
    position: relative;
    width: 300px;
    height: 600px;
    background: #666;
    border-radius: 50px;
}
.box::before 
{
    content: '';
    position: absolute;
    inset: 3px;
    background: #000;
    border-radius: 48px;
}
.inner 
{
    position: absolute;
    inset: 3px;
    background: url(/Iphone-Mock/IMG/bg.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 48px;
    border: 10px solid #000;
    display: flex;
    justify-content: center;
    opacity: 1;
    transition: 0.5s;
}
.box:hover .inner
{
    opacity: 1;
}
.rightSideBtn
{
    position: absolute;
    top: 170px;
    right: -2px;
    width: 3px;
    height: 70px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: radial-gradient(#ccc, #666, #222);
    z-index: 10;
}
.island_popup
{
    position: absolute;
    top: 10px;
    width: 90px;
    height: 25px;
    background: #000;
    border-radius: 20px;
    transition: 0.5s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.island_popup:hover
{
    width: 200px;
    height: 25px;
}
.content
{
    position: relative;
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 10px;
    line-height: 25px;
}
.content p
{
    color: #fff;
    font-size: 0.6em;
    cursor: default;
    opacity: 0;
    transition: 0.5s;
}
.action
{
    position: relative;
    top: 5px;
    color: #fff;
    display: flex;
    gap: 12px;
    transition: 0.5s;
    visibility: hidden;
    opacity: 0;
}
ion-icon.red
{
    color: #fd443b;
    transform: rotate(135deg);
    cursor: pointer;
    transition: 0.5s;
}
ion-icon.green
{
    color: #31d059;
    cursor: pointer;
    transition: 0.5s;
}
.island_popup.active p,
.island_popup:hover p,
.island_popup:hover .action,
.island_popup.active .action
{
    visibility: visible;
    opacity: 1;
    transition-delay: 0.25s;
}
.btn {
  position: absolute;
  top: 130px;
  left: -2px;
  width: 3px;
  height: 40px;
  border-radius: 4px;
  background: radial-gradient(#ccc, #666, #222);
  z-index: 10;
  transform: rotate(0deg);
  transform-origin: center;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: none;
  box-shadow: inset 0 0 1px rgba(255,255,255,0.2);
}
.btn2
{
    position: absolute;
    top: 190px;
    left: -2px;
    width: 3px;
    height: 40px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: radial-gradient(#ccc, #666, #222);
    z-index: 10;  
}
.btn3
{
    position: absolute;
    top: 260px;
    left: -2px;
    width: 3px;
    height: 80px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: radial-gradient(#ccc, #666, #222);
    z-index: 10;  
}
.detais
{
    position: relative;
    display: flex;
    align-items: center;
}
.detais .imgBx
{
    width: 0px;
    position: relative;
    height: 0px;
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    transition: 0.5s;
}
.island_bottom 
{
    position: absolute;
    top: 560px;
    width: 55px;
    height: 7px;
    background: gray;
    border-radius: 20px;
    transition: 0.3s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;   
}
.island_bottom:hover
{
    position: absolute;
    top: 560px;
    width: 90px;
    height: 7px;
    background: gray;
    border-radius: 20px;
    transition: 0.3s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;   
}
.content2
{
    display:block;
    border:0 none;
    cursor:pointer;
    outline:none;
    cursor: pointer;
    top: 560px;
    width: 90px;
    height: 7px;
    background: gray;
    border-radius: 20px;
    box-shadow: white;
    transition: 0.3s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;   
}

.app-grid 
{
  position: absolute;
  top: 150px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px 0;
  justify-items: center;
}

.app 
{
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  transition: transform 0.3s ease;
  cursor: pointer;
  font-size: 0.8em;
}
.app ion-icon 
{
  font-size: 30px;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  margin-bottom: 4px;
  transition: 0.3s ease;
}
.time-container 
{
    position: absolute;
    top: 90px;
    color: #fff;
    text-align: center;
    width: 100%;
    z-index: 5;
    font-family: 'Poppins', sans-serif;
}
.time-container #time 
{
    font-size: 5.5em;
    position: relative;
    top: -25px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.time-container #date 
{
    font-size: 1.1em;
     font-weight: 5002;
    opacity: 0.8;
}
.inner-home
{
    position: absolute;
    inset: 3px;
    background: url(/Iphone-Mock/IMG/bg.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 48px;
    border: 10px solid #000;
    display: flex;
    justify-content: center;
    opacity: 1;
    transition: 0.5s;
}
.box.blur-active .inner,
.box.blur-active .btn,
.box.blur-active .btn2,
.box.blur-active .btn3 {
  filter: blur(8px);
  transition: filter 0.3s ease;
}
.passcode-popup {
  backdrop-filter: blur(6px);
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 50;
  backdrop-filter: blur(6px);
}

.passcode-popup.active {
  display: flex;
}

.passcode-box {
  background: rgba(20,20,20,0.9);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  width: 240px;
}

.passcode-box h3 {
  color: #fff;
  margin-bottom: 15px;
  font-weight: 500;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.2s;
}

.dots span.filled {
  background: #fff;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.keypad button {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2em;
  width: 55px;
  height: 55px;
  cursor: pointer;
  transition: background 0.2s;
}

.keypad button:hover {
  background: rgba(255,255,255,0.3);
}

#fingerprint {
  grid-column: 2;
}
#fingerprint {
  position: relative;
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  overflow: hidden;
  color: #fff;
  border: none;
  font-size: 1.2em;
  width: 55px;
  height: 55px;
  cursor: pointer;
  transition: background 0.2s;
}
/* ----- Lock Screen Widgets ----- */
.lock-widgets {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -45px;
  gap: 8px;
  flex-wrap: wrap;
}
.lock-widgets
{
  position: absolute;
  top: 40px;
  width: 85%;
  left: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 15px;
  justify-items: center;
  align-items: center;
}
.widget {
  grid: 1f 2;
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  left: 15px;
  top: 108px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  font-size: 1.0em;
  transition: 0.3s ease;
}

.widget:hover {
  background: rgba(255, 255, 255, 0.25);
}

.weather-widget ion-icon {
  font-size: 1.4em;
  color: #fff;
}

.weather-widget span {
  color: #fff;
  font-weight: 400;
}

#fingerprint:hover
{
  background-color: #666;
}

#fingerprint ion-icon {
  font-size: 2em;
  color: #fff;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#fingerprint .checkmark {
  position: absolute;
  font-size: 2em;
  color: #31d059;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#fingerprint.checked ion-icon[name="finger-print-outline"] {
  transform: scale(0);
  opacity: 0;
}

#fingerprint.checked .checkmark {
  opacity: 1;
  transform: scale(1);
}
#rotateBtn {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 99999;
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: background 0.3s, transform 0.3s;
}
#rotateBtn:hover { 
    background: #333;
    transform: scale(1.24);
}

/* --- Wrapper for rotation --- */
.phone-rotate-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    overflow: auto;
}

.phone-rotate-wrapper > .box {
    transition: transform 0.8s ease-in-out;
    transform-origin: center center;
    will-change: transform;
    position: relative;
}

.phone-rotate-wrapper.rotated > .box {
    transform: rotate(90deg) scale(0.95);
}
.phone-rotate-wrapper {
    overflow: hidden;
}
.phone-rotate-wrapper.rotated {
    overflow: visible;
}
html, body {
  overflow: hidden;
}
