/* ── Base & Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: #2d1326;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

::selection {
  background: #F5A623;
  color: #2d1326;
}

/* ── Geometric Background Shapes ── */
.geo-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}

.geo-circle-1 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: #F5A623;
  top: -200px;
  right: -150px;
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #be185d;
  bottom: 10%;
  left: -100px;
  animation: float-slow 25s ease-in-out infinite reverse;
}

.geo-circle-3 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #F5A623;
  top: 50%;
  right: 10%;
  animation: float-slow 15s ease-in-out infinite;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 173px solid #F5A623;
  top: 40%;
  left: 5%;
  opacity: 0.04;
  animation: rotate-slow 30s linear infinite;
}

.geo-rect {
  width: 150px;
  height: 150px;
  border: 3px solid #be185d;
  border-radius: 24px;
  top: 70%;
  right: 5%;
  opacity: 0.06;
  transform: rotate(45deg);
  animation: float-slow 18s ease-in-out infinite;
}

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

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Floating Cards ── */
.floating-card {
  animation: float-card 6s ease-in-out infinite;
}

.card-beach {
  animation-delay: 0s;
}

.card-units {
  animation-delay: -2s;
}

.card-rating {
  animation-delay: -4s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(45, 19, 38, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #F5A623;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* ── Amenity Cards ── */
.amenity-card {
  position: relative;
  overflow: hidden;
}

.amenity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F5A623, #be185d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.amenity-card:hover::before {
  transform: scaleX(1);
}

/* ── Gallery Items ── */
.gallery-item {
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  border-color: rgba(245, 166, 35, 0.4);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Mobile Menu ── */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
  display: block;
}

/* ── Form Styles ── */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) saturate(5) hue-rotate(10deg);
  cursor: pointer;
}

input[type="date"] {
  color-scheme: dark;
}

select option {
  background: #4a1f3f;
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  .geo-shape {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #hero h1 {
    font-size: 3.5rem;
  }
}

/* ── Focus visible for accessibility ── */
*:focus-visible {
  outline: 2px solid #F5A623;
  outline-offset: 2px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
