/* ========== BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
}

::selection {
  background: #800020;
  color: #fff;
}

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

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

.geo-circle-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(128,0,32,0.08) 0%, transparent 70%);
  bottom: 10%;
  left: -100px;
  border-radius: 50%;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
  width: 120px;
  height: 120px;
  background: rgba(244,160,185,0.2);
  top: 25%;
  left: 5%;
  border-radius: 24px;
  transform: rotate(45deg);
  animation: spin-slow 30s linear infinite;
}

.geo-square-2 {
  width: 60px;
  height: 60px;
  background: rgba(128,0,32,0.1);
  bottom: 20%;
  right: 8%;
  border-radius: 12px;
  transform: rotate(20deg);
  animation: spin-slow 20s linear infinite reverse;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid rgba(244,160,185,0.12);
  top: 40%;
  right: 3%;
  animation: float-slow 12s ease-in-out infinite;
}

.geo-dots {
  width: 100px;
  height: 100px;
  top: 60%;
  left: 2%;
  background-image: radial-gradient(circle, rgba(128,0,32,0.15) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.6;
}

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

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

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

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

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

.animate-float-delayed {
  animation: float-delayed 5s ease-in-out infinite 1s;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  animation: scroll 30s linear infinite;
}

/* ========== FLOATING CARDS ========== */
.geo-shape,
.animate-float,
.animate-float-delayed {
  will-change: transform;
}

/* ========== MENU CARDS ========== */
.menu-card {
  border: 1px solid rgba(128,0,32,0.06);
  transform: translateY(0);
}

.menu-card:hover {
  border-color: rgba(128,0,32,0.15);
}

/* ========== COMMUNITY CARDS ========== */
.community-card {
  border: 1px solid rgba(128,0,32,0.06);
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

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

#mobileMenu.closed .mobile-link {
  opacity: 0;
  transform: translateY(20px);
}

/* ========== NAVBAR ========== */
#navbar.scrolled {
  background: rgba(253,248,244,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(128,0,32,0.08), 0 4px 30px rgba(128,0,32,0.06);
}

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

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

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .animate-scroll {
    animation: none;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .geo-square-1 {
    width: 60px;
    height: 60px;
  }
  .geo-circle-1 {
    width: 300px;
    height: 300px;
  }
  .geo-circle-2 {
    width: 200px;
    height: 200px;
  }
}
