* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  overflow: hidden;
}

/* SECTION */
.section {
  height: 100vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(135deg, #5f6fff, #8f94fb);
  position: relative;
  overflow: hidden;
}

/* BLUR BG */
.section::before,
.section::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  filter: blur(100px);
}

.section::before {
  top: 10%;
  left: 10%;
}

.section::after {
  bottom: 10%;
  right: 10%;
}

/* SIDE TEXT */
.left,
.right {
  width: 25%;
  color: white;
  z-index: 2;
}

/* MOBILE */
.mobile {
  width: 300px;
  height: 600px;
  border: 10px solid black;
  border-radius: 40px;
  overflow: hidden;
  background: black; /* 🔥 flicker hide */
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* SCREEN */
.screen {
  width: 100%;
  height: 100%;
  overflow: hidden; /* 🔥 important */
}

/* SLIDER */
.slider {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

/* SLIDE */
.slide {
  flex: 0 0 100%; /* 🔥 main fix */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BUTTONS */
.nav-btns {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}

/* BUTTON STYLE */
.nav-btns button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  font-size: 18px;
  cursor: pointer;
  background: #e0e0e0;
  transition: all 0.25s ease;
}

.nav-btns button:hover {
  transform: scale(1.1);
}

.nav-btns button:active {
  transform: scale(0.95);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .mobile {
    width: 260px;
    height: 520px;
  }
}

@media (max-width: 576px) {
  .left,
  .right {
    display: none;
  }

  .mobile {
    width: 220px;
    height: 460px;
  }
}
