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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Hide scrollbar for gallery */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(13, 74, 13, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

.menu-line {
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== HERO GEOMETRIC SHAPES ===== */
.geo-shape {
  position: absolute;
  pointer-events: none;
}

.geo-circle-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(111, 191, 111, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 212, 168, 0.2) 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite reverse;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid rgba(111, 191, 111, 0.1);
  top: 25%;
  left: 3%;
  transform: rotate(-15deg);
  animation: spin 20s linear infinite;
}

.geo-square {
  width: 100px;
  height: 100px;
  background: rgba(168, 212, 168, 0.08);
  border: 2px solid rgba(168, 212, 168, 0.15);
  top: 40%;
  right: 8%;
  transform: rotate(45deg);
  animation: float 7s ease-in-out infinite;
}

.geo-dots {
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, rgba(168, 212, 168, 0.3) 1px, transparent 1px);
  background-size: 16px 16px;
  bottom: 20%;
  right: 25%;
  opacity: 0.6;
}

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

@keyframes spin {
  from { transform: rotate(-15deg); }
  to { transform: rotate(345deg); }
}

/* ===== AMENITY CARDS ===== */
.amenity-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger children */
.reveal-grid > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-grid.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-grid.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-grid.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-grid.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-grid.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-grid.revealed > *:nth-child(6) { transition-delay: 0.3s; }

.reveal-grid.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-grid > * {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .geo-circle-1 {
    width: 300px;
    height: 300px;
  }
  .geo-circle-2 {
    width: 150px;
    height: 150px;
  }
  .geo-triangle {
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(111, 191, 111, 0.1);
  }
  .geo-square {
    width: 50px;
    height: 50px;
  }
}
</style>
