/* ============================================
   Atlantis by Interspeed Developments
   Custom Stylesheet
   ============================================ */

/* Base */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #1a1f2e;
}
::-webkit-scrollbar-thumb {
  background: #c9a96e;
  border-radius: 3px;
}

/* ── Navbar ── */
.navbar {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background-color: rgba(26, 31, 46, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

/* ── Hero Slider ── */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: opacity;
}
.hero-slide.active {
  opacity: 1;
}

/* ── Marquee ── */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  overflow: hidden;
  width: 100%;
}
.marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee-inner:hover {
  animation-play-state: paused;
}

/* ── Gold Decorative Line ── */
.gold-line::after {
  content: '';
  display: block;
  width: 55px;
  height: 2px;
  background: linear-gradient(90deg, #c9a96e, #e8d5a3);
  margin-top: 14px;
}
.gold-line-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* ── Amenity Card Hover ── */
.amenity-card {
  overflow: hidden;
  position: relative;
}
.amenity-card img {
  transition: transform 0.6s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.amenity-card:hover img {
  transform: scale(1.07);
}
.amenity-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 31, 46, 0.88) 0%, rgba(26, 31, 46, 0.1) 55%, transparent 100%);
}

/* ── Stat Card ── */
.stat-card {
  border-left: 3px solid #c9a96e;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(201, 169, 110, 0.12);
}

/* ── Feature Chip ── */
.feature-chip {
  border: 1px solid #c9a96e;
  color: #c9a96e;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: background-color 0.25s ease, color 0.25s ease;
  cursor: default;
}
.feature-chip:hover {
  background-color: #c9a96e;
  color: #1a1f2e;
}

/* ── Gallery Tabs ── */
.tab-btn {
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
  border-bottom: 2px solid transparent;
}
.tab-btn.active {
  color: #c9a96e;
  border-bottom-color: #c9a96e;
}

/* ── Gallery Image ── */
.gallery-img {
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-img:hover {
  opacity: 0.88;
  transform: scale(1.01);
}

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lightbox.open {
  display: flex;
}
#lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(201, 169, 110, 0.2);
}

/* ── Video Modal ── */
#video-modal {
  display: none;
}
#video-modal.open {
  display: flex;
}

/* ── Video Overlay ── */
.video-overlay {
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.72) 0%, rgba(26, 31, 46, 0.28) 100%);
}

/* ── Inline video player ── */
#play-overlay {
  transition: opacity 0.35s ease;
}
#video-wrapper:hover #play-overlay {
  opacity: 1 !important;
  pointer-events: auto !important;
}
#inline-video {
  display: block;
  width: 100%;
}

/* ── Mobile Menu ── */
#mobile-menu {
  display: none;
  flex-direction: column;
}
#mobile-menu.open {
  display: flex;
}

/* ── Gold Pulse CTA ── */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.5); }
  60%       { box-shadow: 0 0 0 14px rgba(201, 169, 110, 0); }
}
.pulse-btn {
  animation: pulse-gold 2.8s ease infinite;
}

/* ── Form Inputs ── */
.form-input {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-input:focus {
  outline: none;
  border-color: #c9a96e;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}
select option {
  background-color: #1a1f2e;
  color: #fff;
}

/* ── Section dividers ── */
.divider-gold {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #c9a96e, #e8d5a3);
  margin: 16px auto 0;
}

/* ── Floating call button ── */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: #c9a96e;
  color: #1a1f2e;
  padding: 14px 22px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.45);
  transition: background 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.floating-cta:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* ── AOS pointer-events fix ── */
[data-aos] {
  pointer-events: none;
}
[data-aos].aos-animate {
  pointer-events: auto;
}

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
  .floating-cta {
    bottom: 16px;
    right: 16px;
    padding: 12px 16px;
  }

  /* Prevent horizontal overflow on mobile */
  body {
    overflow-x: hidden;
  }

  /* Amenity cards — taller on mobile for readability */
  .amenity-card {
    min-height: 180px;
  }

  /* Stat cards — reduce padding on mobile */
  .stat-card {
    padding: 1.25rem 1rem;
  }

  /* Gallery images — smaller height on mobile */
  .gallery-img {
    height: 140px;
  }

  /* Lightbox — full screen on mobile */
  #lightbox img {
    max-width: 98vw;
    max-height: 80vh;
  }

  /* Feature chips — smaller on mobile */
  .feature-chip {
    font-size: 0.72rem;
    padding: 6px 10px;
  }

  /* Marquee text — slightly smaller on mobile */
  .marquee-inner span {
    font-size: 9px;
  }

  /* Video player controls accessible on touch */
  #play-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* ===== 480px — smallest phones (iPhone SE, 375px; older Androids, 360px; 320px) ===== */
@media (max-width: 480px) {
  /* Prevent any element from overflowing viewport */
  img, video, iframe { max-width: 100%; }

  /* Amenity card titles — prevent text overflow */
  .amenity-card h3 { font-size: 1rem; }

  /* Stat card number — reduce size */
  .stat-card .text-6xl { font-size: 2.5rem; }

  /* Gallery images — even smaller */
  .gallery-img { height: 120px; }

  /* Feature chips — tightest size */
  .feature-chip { font-size: 0.68rem; }
}
