/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== NAVBAR ===== */
.nav-fixed {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 35, 66, 0.06);
  transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
  box-shadow: 0 4px 30px rgba(10, 35, 66, 0.08);
}

.nav-link {
  position: relative;
}

/* ===== HERO ===== */
.hero {
  position: relative;
}

.hero-geo {
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-geo-1 {
  animation: float1 8s ease-in-out infinite;
}
.hero-geo-2 {
  animation: float2 10s ease-in-out infinite;
}
.hero-geo-3 {
  animation: float3 7s ease-in-out infinite;
}
.hero-geo-4 {
  animation: float4 5s ease-in-out infinite;
}
.hero-geo-5 {
  animation: float5 6s ease-in-out infinite;
}
.hero-geo-6 {
  animation: float6 4s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15px, 20px) scale(1.03); }
}
@keyframes float3 {
  0%, 100% { transform: rotate(12deg) translate(0, 0); }
  50% { transform: rotate(18deg) translate(10px, -15px); }
}
@keyframes float4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -10px); }
}
@keyframes float5 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8px, 8px); }
}
@keyframes float6 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -6px); }
}

.hero-btn {
  position: relative;
  overflow: hidden;
}

.hero-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-btn:hover::after {
  opacity: 1;
}

/* Scroll dot animation */
.scroll-dot {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ===== AMENITY CARDS ===== */
.amenity-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.amenity-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===== GALLERY ===== */
.gallery-item {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(10, 35, 66, 0.15);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  max-height: 500px;
}

.mobile-link {
  display: block;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
  padding-left: 12px;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.revealed {
    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; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== FORM ===== */
input:focus, textarea:focus {
  outline: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .font-heading {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* ===== FOCUS VISIBLE ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #2ED6B5;
  outline-offset: 2px;
  border-radius: 4px;
}
