/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ===== GEOMETRIC HERO SHAPES ===== */
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.shape { position: absolute; }

.shape-circle-1 {
  width: 420px; height: 420px;
  border: 3px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -80px; right: -60px;
  animation: float 8s ease-in-out infinite;
}
.shape-circle-2 {
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  bottom: 15%; left: 5%;
  animation: float 6s ease-in-out infinite reverse;
}
.shape-triangle {
  width: 0; height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid rgba(255,255,255,0.06);
  top: 20%; left: 8%;
  transform: rotate(15deg);
  animation: spin 20s linear infinite;
}
.shape-square {
  width: 100px; height: 100px;
  border: 2px solid rgba(255,255,255,0.1);
  bottom: 20%; right: 10%;
  transform: rotate(45deg);
  animation: float 7s ease-in-out infinite;
}
.shape-ring {
  width: 160px; height: 160px;
  border: 4px solid rgba(255,255,255,0.07);
  border-radius: 50%;
  top: 40%; right: 5%;
  animation: float 9s ease-in-out infinite reverse;
}
.shape-dots {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  top: 30%; right: 20%;
  box-shadow:
    20px 30px 0 rgba(255,255,255,0.15),
    40px 10px 0 rgba(255,255,255,0.1),
    10px 50px 0 rgba(255,255,255,0.12),
    50px 40px 0 rgba(255,255,255,0.08);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-20px) rotate(var(--rot, 0deg)); }
}
@keyframes spin {
  from { transform: rotate(15deg); }
  to { transform: rotate(375deg); }
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ===== NAVBAR SCROLL ===== */
#navbar.scrolled {
  background: rgba(2, 44, 34, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== IMAGE HOVER ZOOM ===== */
.gallery-img { transition: transform 0.5s ease; }
.gallery-img:hover { transform: scale(1.05); }

/* ===== CUSTOM SELECTION ===== */
::selection { background: rgba(16, 185, 129, 0.3); color: #064e3b; }
