body {
  margin: 0;
  background: radial-gradient(circle at top, #05142d, #000820);
  font-family: "Montserrat", sans-serif;
  color: #e8f2ff;
}

/* container */
.popup-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

/* 🔥 Ultra Glass Box */
.popup-box {
  width: 95%;
  max-width: 1100px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  border: 1px solid rgba(120, 180, 255, 0.35);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 45px #0084ff33, 0 0 80px #0033ff33 inset;
  padding: 30px 40px;
  animation: fade 0.6s ease;
  position: relative;
}

/* X Close */
.close-btn {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 32px;
  color: #9bc9ff;
  cursor: pointer;
  border: none;
  background: 0;
  transition: 0.25s;
}
.close-btn:hover {
  color: #ff6060;
  transform: scale(1.1);
}

/* Title */
.title {
  text-align: center;
  font-size: 33px;
  font-weight: 800;
}
.subtitle {
  text-align: center;
  color: #bedaff;
  margin-top: 6px;
}

.glow-text {
  animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
  from {
    text-shadow: 0 0 10px #3ba7ff, 0 0 25px #74c7ff;
  }
  to {
    text-shadow: 0 0 18px #00cfff, 0 0 40px #009dff;
  }
}

/* Layout */
.popup-inner {
  display: flex;
  gap: 30px;
  align-items: center;
}

/* Image */
.ultra-img {
  width: 100%;
  max-width: 510px;
  border-radius: 20px;
  filter: drop-shadow(0 0 25px #00c3ffbb);
  transition: 0.4s;
}

/* Text */
.popup-text-col {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  padding: 22px 26px;
  border-radius: 22px;
  border: 1px solid rgba(110, 165, 255, 0.4);
  transition: 0.3s;
}

/* 🔽 expand animation when read more opens */
.popup-text-col.expand {
  max-height: 500px;
  overflow-y: auto;
  box-shadow: 0 0 30px #0077ff66 inset;
}

.popup-text-col ul {
  list-style: none;
  padding: 0;
}
.popup-text-col li {
  margin: 8px 0;
  display: flex;
  gap: 8px;
}
.popup-text-col li::before {
  content: "⚡";
  color: #42c3ff;
  font-size: 18px;
}

/* Buttons */
.readmore-area {
  text-align: center;
  margin-top: 16px;
}
.btn {
  padding: 11px 32px;
  margin: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #218aff, #5ecbff);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 18px #218aff88;
  transition: 0.3s;
}
.btn:hover {
  transform: scale(1.07);
}

/* hide second */
.back {
  display: none;
  background: linear-gradient(90deg, #ff5252, #ff7b7b);
}

/* Responsive */
@media (max-width: 900px) {
  .popup-inner {
    flex-direction: column;
  }
  .ultra-img {
    max-width: 330px;
  }

  .popup-text-col {
    max-height: 330px;
    overflow-y: auto;
  }
}
@media (max-width: 520px) {
  .title {
    font-size: 26px;
  }
  .ultra-img {
    max-width: 250px;
  }
  .popup-text-col {
    max-height: 300px;
  }
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
