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

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

body {
  overflow-x: hidden;
}

/* ===== Geometric Shapes ===== */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.circle-1 {
  width: 400px;
  height: 400px;
  background: #34d399;
  top: -100px;
  right: -100px;
  animation: float1 20s ease-in-out infinite;
}

.circle-2 {
  width: 250px;
  height: 250px;
  background: #fbbf24;
  bottom: 10%;
  left: 5%;
  animation: float2 15s ease-in-out infinite;
}

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

.geo-square {
  position: absolute;
  opacity: 0.06;
}

.square-1 {
  width: 120px;
  height: 120px;
  background: #34d399;
  top: 20%;
  left: 8%;
  border-radius: 24px;
  transform: rotate(15deg);
  animation: spin1 25s linear infinite;
}

.square-2 {
  width: 80px;
  height: 80px;
  background: #fbbf24;
  bottom: 25%;
  right: 10%;
  border-radius: 16px;
  transform: rotate(-10deg);
  animation: spin2 20s linear infinite;
}

.geo-triangle {
  position: absolute;
  opacity: 0.06;
}

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

.triangle-2 {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid #fbbf24;
  top: 15%;
  right: 20%;
  animation: float2 22s ease-in-out infinite;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

@keyframes float2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(20px) translateX(-15px); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

@keyframes spin1 {
  from { transform: rotate(15deg); }
  to { transform: rotate(375deg); }
}

@keyframes spin2 {
  from { transform: rotate(-10deg); }
  to { transform: rotate(350deg); }
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Staggered delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* ===== Navbar ===== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 253, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(5, 150, 105, 0.1);
}

.nav-link {
  position: relative;
}

/* ===== Mobile Menu ===== */
#mobileMenu {
  max-height: 0;
}

#mobileMenu.open {
  max-height: 320px;
}

.mobile-link {
  display: block;
}

/* ===== Utility ===== */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 70px;
  }
}
