/* Home Popup Styles */
.home-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 28, 58, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.home-popup-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.popup-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.popup-decoration {
  position: absolute;
  opacity: 0.6;
}

.decoration-top-right {
  top: 0;
  right: 0;
  width: 312px;
  height: 207px;
  background: linear-gradient(135deg, rgba(243, 255, 253, 0.2) 0%, transparent 70%);
  border-radius: 0 0 0 50%;
}

.decoration-left {
  top: 50%;
  left: 0;
  width: 133px;
  height: 527px;
  background: linear-gradient(90deg, rgba(33, 157, 128, 0.3) 0%, transparent 50%);
  transform: translateY(-50%);
  border-radius: 0 20px 20px 0;
}

.decoration-bottom-right {
  bottom: 0;
  right: 30%;
  width: 530px;
  height: 394px;
  background: linear-gradient(45deg, rgba(243, 255, 253, 0.15) 0%, transparent 60%);
  border-radius: 50% 0 0 0;
  transform: scaleY(-1);
}

.home-popup-container {
  position: relative;
  background: linear-gradient(135deg, #122359 0%, #1e3a8a 50%, #1261a0 100%);
  border-radius: 31px;
  padding: 60px 40px 50px;
  max-width: 832px;
  width: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  overflow: hidden;
  animation: popupSlideIn 0.6s ease-out;
}

@keyframes popupSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(50px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  z-index: 10;
}

.popup-close-btn:hover,
.popup-close-btn:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.popup-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
}

.popup-small-icon {
  margin-bottom: 20px;
  opacity: 0.7;
}

.popup-small-icon i {
  font-size: 24px;
  color: #58CCED;
}

.popup-title {
  font-size: clamp(28px, 5vw, 41px);
  line-height: 1.4;
  color: #58CCED;
  font-weight: 700;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.popup-image-container {
  margin: 40px 0;
  display: flex;
  justify-content: center;
}

.popup-image-placeholder {
  width: 280px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.image-icon {
  margin-bottom: 10px;
  opacity: 0.6;
}

.image-icon i {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.7);
}

.image-placeholder-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.placeholder-shapes .shape-1,
.placeholder-shapes .shape-2,
.placeholder-shapes .shape-3 {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  opacity: 0.4;
}

.placeholder-shapes .shape-1 {
  top: 20%;
  left: 20%;
  width: 60px;
  height: 40px;
  transform: rotate(-15deg);
}

.placeholder-shapes .shape-2 {
  top: 50%;
  right: 25%;
  width: 40px;
  height: 30px;
  border-radius: 50%;
  transform: rotate(20deg);
}

.placeholder-shapes .shape-3 {
  bottom: 25%;
  left: 30%;
  width: 35px;
  height: 35px;
  transform: rotate(45deg);
}

.popup-learn-more-btn {
  background: #58CCED;
  color: #122359;
  border: none;
  padding: 16px 48px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  margin-top: 30px;
  min-width: 200px;
}

.popup-learn-more-btn:hover,
.popup-learn-more-btn:focus {
  background: #4dd4f0;
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.popup-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.bg-element {
  position: absolute;
  opacity: 0.1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.element-1 {
  top: 10%;
  left: 10%;
  width: 120px;
  height: 120px;
  animation: float 6s ease-in-out infinite;
}

.element-2 {
  bottom: 15%;
  right: 15%;
  width: 80px;
  height: 80px;
  animation: float 8s ease-in-out infinite reverse;
}

.element-3 {
  top: 60%;
  left: 5%;
  width: 60px;
  height: 60px;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .home-popup-container {
    padding: 40px 30px 40px;
    margin: 20px;
    min-height: 500px;
  }

  .popup-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 30px;
  }

  .popup-image-placeholder {
    width: 240px;
    height: 160px;
  }

  .popup-learn-more-btn {
    padding: 14px 32px;
    font-size: 18px;
    margin-top: 20px;
  }

  .popup-close-btn {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .home-popup-container {
    padding: 30px 20px 30px;
    margin: 10px;
    min-height: 400px;
    border-radius: 20px;
  }

  .popup-title {
    font-size: clamp(20px, 7vw, 28px);
    margin-bottom: 25px;
  }

  .popup-image-placeholder {
    width: 200px;
    height: 140px;
  }

  .popup-learn-more-btn {
    padding: 12px 28px;
    font-size: 16px;
    margin-top: 15px;
    min-width: 160px;
  }
}