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

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

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

.geo-circle-3 {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #a7f3d0;
  top: 30%;
  left: 15%;
  animation: float 10s ease-in-out infinite;
}

.geo-square-1 {
  width: 100px;
  height: 100px;
  background: #34d399;
  bottom: 20%;
  right: 15%;
  transform: rotate(45deg);
  animation: spin 20s linear infinite;
}

.geo-square-2 {
  width: 60px;
  height: 60px;
  background: #6ee7b7;
  top: 20%;
  right: 30%;
  transform: rotate(20deg);
  animation: spin 15s linear infinite reverse;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid #a7f3d0;
  top: 40%;
  right: 5%;
  animation: float 7s ease-in-out infinite;
  opacity: 0.06;
}

.dot-pattern {
  position: absolute;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(110, 231, 183, 0.4) 2px, transparent 2px);
  background-size: 12px 12px;
  pointer-events: none;
}

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

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

/* ===== NAVBAR ===== */
#navbar {
  background: rgba(255, 251, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(6, 78, 59, 0.1);
}

.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: 6px;
  transform: rotate(-45deg) translate(3px, -3px);
}

.mobile-link {
  display: block;
  border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

.mobile-link:last-child {
  border-bottom: none;
}

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

.reveal[data-state="hidden"] {
  opacity: 0;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal[data-state="visible"] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BUTTON HOVER EFFECTS ===== */
a {
  text-decoration: none;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FFFBF0;
}

::-webkit-scrollbar-thumb {
  background: #059669;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* ===== SELECTION ===== */
::selection {
  background: #059669;
  color: #FFFBF0;
}
