/* ============================================
   HICKS COLLISION REPAIR — CUSTOM STYLES
   ============================================ */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Geometric shapes */
.geo-shape {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.geo-circle-1 {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: #34d399;
  top: -100px;
  right: -100px;
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #a7f3d0;
  bottom: 10%;
  left: 5%;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #6ee7b7;
  top: 40%;
  right: 15%;
  animation: float-slow 12s ease-in-out infinite;
}

.geo-square-1 {
  width: 120px;
  height: 120px;
  background: #d1fae5;
  top: 20%;
  left: 10%;
  transform: rotate(45deg);
  animation: spin-slow 25s linear infinite;
}

.geo-square-2 {
  width: 80px;
  height: 80px;
  background: #a7f3d0;
  bottom: 20%;
  right: 25%;
  transform: rotate(30deg);
  animation: spin-slow 20s linear infinite reverse;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid #6ee7b7;
  top: 60%;
  left: 20%;
  animation: float-slow 18s ease-in-out infinite;
}

.geo-triangle-2 {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 69px solid #34d399;
  top: 15%;
  right: 30%;
  transform: rotate(-20deg);
  animation: float-slow 14s ease-in-out infinite reverse;
}

.geo-circle-4 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #047857;
  bottom: -150px;
  right: -100px;
  opacity: 0.3;
  animation: float-slow 22s ease-in-out infinite;
}

.geo-diamond-1 {
  width: 100px;
  height: 100px;
  background: #34d399;
  top: 10%;
  left: 5%;
  transform: rotate(45deg);
  opacity: 0.15;
  animation: spin-slow 18s linear infinite;
}

.geo-circle-5 {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: #86efac;
  top: -100px;
  left: -100px;
  opacity: 0.3;
  animation: float-slow 16s ease-in-out infinite;
}

.geo-square-3 {
  width: 60px;
  height: 60px;
  background: #4ade80;
  bottom: 10%;
  right: 10%;
  transform: rotate(20deg);
  opacity: 0.2;
  animation: spin-slow 12s linear infinite reverse;
}

/* Floating stat cards */
.floating-card {
  z-index: 10;
}

.card-1 {
  animation: float-card-1 6s ease-in-out infinite;
}

.card-2 {
  animation: float-card-2 7s ease-in-out infinite;
}

.card-3 {
  animation: float-card-3 5.5s ease-in-out infinite;
}

.card-4 {
  animation: float-card-4 6.5s ease-in-out infinite;
}

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

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

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

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

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(2deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

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

/* Scroll reveal — progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(250, 248, 240, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

.nav-scrolled .font-display {
  color: #064e3b !important;
}

/* Mobile menu transitions */
#mobileMenu {
  animation: slideDown 0.25s ease;
}

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

/* Selection color */
::selection {
  background: #a7f3d0;
  color: #064e3b;
}
