/* Popup Container Styling */
.popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 350px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: slide-in 0.6s cubic-bezier(0.25, 0.8, 0.5, 1.4);
  transition: transform 0.3s ease-out, opacity 0.3s;
  overflow: hidden;
}

/* Slide-in Animation */
@keyframes slide-in {
  from {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Popup Visibility */
.hidden {
  display: none;
}

/* Popup Content */
.popup-content {
  padding: 25px;
  text-align: center;
  backdrop-filter: blur(5px);
}

/* Heading Styling */
.popup-content h2 {
  color: #000;
  margin-bottom: 15px;
  font-size: 26px;
  letter-spacing: 1.2px;
  animation: fade-in 1.2s ease-in-out;
}

/* Fade-in Animation */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Paragraph Styling */
.popup-content p {
  color: #2e2200;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

/* Anchor Link Styling */
.popup-content a {
  color: #00bfff;
  text-decoration: none;
  transition: color 0.3s;
}

.popup-content a:hover {
  color: #ff4e50;
}

/* Button Styling */
.popup-content button {
  background: linear-gradient(135deg, #403f3e, #292828, #000);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.5s, transform 0.4s, box-shadow 0.4s;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.popup-content button:hover {
  background: linear-gradient(135deg, #000, #292828, #403f3e);
  transform: scale(1.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.popup-content button:active {
  transform: scale(0.96);
  transition: transform 0.2s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .popup {
    width: 90%;
    bottom: 15px;
    right: 5%;
  }

  .popup-content h2 {
    font-size: 22px;
  }

  .popup-content p {
    font-size: 14px;
  }

  .popup-content button {
    padding: 12px 20px;
  }
}
