/* Modal Container */
#modals-container {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
}

#modals-container.show {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Modal Core Style */
.lux-modal {
  max-width: 1000px;
  width: 60%;
  max-height: 80%;
  background: var(--lux-bg, rgba(255, 255, 255, 0.04));
  -webkit-backdrop-filter: var(--lux-backdrop, blur(18px));
  backdrop-filter: var(--lux-backdrop, blur(18px));
  border-radius: 2rem;
  box-shadow: var(--lux-card-shadow, 0 25px 60px rgba(0, 0, 0, 0.15));
  color: var(--lux-text, #111);
  padding: 2.5rem 3rem;
  position: relative;
  overflow-y: auto;
  font-family: "Space Grotesk", sans-serif;
}

/* Scrollbar styling */
.lux-modal::-webkit-scrollbar {
  width: 10px;
}
.lux-modal::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}
.lux-modal::-webkit-scrollbar-track {
  background: transparent;
}

/* Close Button */
.lux-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  background: none;
  border: none;
  color: var(--lux-text, #111);
  cursor: pointer;
  z-index: 10000;
  transition: opacity 0.25s ease;
}
.lux-modal-close:hover {
  opacity: 0.8;
}

/* Hero Section */
.lux-hero {
  color: var(--text-color);
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.lux-hero-left {
  flex: 1 1 320px;
}
.lux-hero-right {
  flex: 1 1 320px;
  text-align: center;
}
.lux-logo {
  width: 72px;
  height: 72px;
  border-radius: 20%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.lux-title {
  color: var(--text-color);
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin: 0.6rem 0 0.3rem;
  font-weight: 700;
}
.lux-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  line-height: 1.5;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.lux-preview {
  width: 100%;
  border-radius: 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Buttons */
.lux-cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.lux-btn-primary,
.lux-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lux-btn-primary {
  color: #fff;
}
.btn-primary-pink {
  background: #ff67b3;
  box-shadow: 0 6px 18px rgba(255, 60, 157, 0.4);
}
.btn-secondary-pink {
  background: rgba(255, 255, 255, 0.08);
  color: #ff67b3;
  border: 2px solid #ff67b3;
}
.btn-primary-green {
  background: #47ac8d;
  box-shadow: 0 6px 18px rgba(60, 255, 190, 0.4);
}
.btn-secondary-green {
  background: rgba(255, 255, 255, 0.08);
  color: #47ac8d;
  border: 2px solid #47ac8d;
}
.btn-primary-blue {
  background: #5cb2e4;
  box-shadow: 0 6px 18px rgba(60, 216, 255, 0.4);
}
.btn-secondary-blue {
  background: rgba(255, 255, 255, 0.08);
  color: #5cb2e4;
  border: 2px solid #5cb2e4;
}
.btn-primary-purple {
  background: #a167ff;
  box-shadow: 0 6px 18px rgba(151, 60, 255, 0.4);
}
.btn-secondary-purple {
  background: rgba(255, 255, 255, 0.08);
  color: #a167ff;
  border: 2px solid #a167ff;
}
.btn-primary-orange {
  background: #ff9467;
  box-shadow: 0 6px 18px rgba(255, 108, 60, 0.4);
}
.btn-secondary-orange {
  background: rgba(255, 255, 255, 0.08);
  color: #ff9467;
  border: 2px solid #ff9467;
}
.btn-primary-red {
  background: #ff6767;
  box-shadow: 0 6px 18px rgba(255, 60, 60, 0.4);
}
.btn-secondary-red {
  background: rgba(255, 255, 255, 0.08);
  color: #ff6767;
  border: 2px solid #ff6767;
}
.btn-primary-yellow {
  background: rgb(240, 225, 12);
  box-shadow: 0 6px 18px rgba(255, 209, 60, 0.4);
}
.btn-secondary-yellow {
  background: rgba(255, 255, 255, 0.08);
  color: rgb(240, 225, 12);
  border: 2px solid #ffdc67;
}
.btn-primary-brown {
  background: #6d5232;
  box-shadow: 0 6px 18px rgba(94, 64, 36, 0.4);
}
.btn-secondary-brown {
  background: rgba(255, 255, 255, 0.08);
  color: #795c3c;
  border: 2px solid #816239;
}
.lux-cta-buttons a:hover { transform: translateY(-2px); }

.orangico-logo {
  width: 18px;
  height: 18px;
  background-image: var(--orangico-icon);
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
}

.apple-logo {
  width: 18px;
  height: 18px;
  background-image: var(--apple-icon);
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
}

.google-logo {
  width: 18px;
  height: 18px;
  background-image: var(--google-icon);
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
}

/* Technology List */
.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  font-weight: 500;
}
.tech-list li {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.tech-list li img {
  width: 32px;
  height: 32px;
}

/* Features Section */
.lux-features {
  color: var(--text-color);
  margin-top: 3.5rem;
}
.lux-features h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  position: relative;
}
.lux-features h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--lux-gold, #D4AF37);
  margin: 0.6rem auto 0;
  border-radius: 999px;
}
.lux-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}
.lux-feature {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 1.5rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.lux-feature h3 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.lux-feature p {
  font-size: 0.95rem;
  opacity: 0.85;
}
.lux-feature-icon {
  width: 25px;
  height: 25px;
}

/* Gallery Section */
.lux-gallery {
  color: var(--text-color);
  margin-top: 4rem;
}
.lux-gallery h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 2rem;
}
.lux-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.lux-gallery-grid img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}
.lux-gallery-grid img:hover {
  transform: translateY(-6px);
}

/* Responsive */
@media (max-width: 768px) {
  .lux-modal {
    padding: 1.5rem;
    height: 95vh;
    overflow-y: auto;
  }

  .lux-hero {
    flex-direction: column;
  }

  .lux-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .lux-btn-primary,
  .lux-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .tech-list {
    justify-content: center;
  }
}
