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

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

body {
  margin: 0;
  background-color: #fefdf8;
  color: #064e3b;
}

/* ===== NAVBAR ===== */
#navbar {
  background: rgba(254, 253, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6, 95, 70, 0.08);
}

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.96);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  transition: width 0.25s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== HERO SHAPES ===== */
.shape-circle-1 {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  left: -100px;
  animation: floatShape 8s ease-in-out infinite;
}

.shape-circle-2 {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 10%;
  right: 5%;
  animation: floatShape 10s ease-in-out infinite reverse;
}

.shape-circle-3 {
  position: absolute;
  width: 160px;
  height: 160px;
  background: rgba(110, 231, 183, 0.12);
  border-radius: 50%;
  top: 30%;
  right: 35%;
  animation: floatShape 6s ease-in-out infinite;
}

.shape-square-1 {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(251, 191, 36, 0.15);
  border-radius: 16px;
  top: 20%;
  left: 8%;
  transform: rotate(45deg);
  animation: spinShape 14s linear infinite;
}

.shape-triangle-1 {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid rgba(16, 185, 129, 0.15);
  bottom: 25%;
  left: 15%;
  animation: floatShape 7s ease-in-out infinite;
}

.shape-dots {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, rgba(254, 243, 199, 0.3) 2px, transparent 2px);
  background-size: 16px 16px;
  top: 60%;
  right: 8%;
  animation: floatShape 9s ease-in-out infinite reverse;
}

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

@keyframes spinShape {
  0% { transform: rotate(45deg); }
  100% { transform: rotate(405deg); }
}

/* ===== FLOATING CARDS ===== */
.floating-card {
  z-index: 20;
}

.card-top-right {
  animation: floatCard1 4s ease-in-out infinite;
}

.card-bottom-left {
  animation: floatCard2 5s ease-in-out infinite;
}

.card-mid-right {
  animation: floatCard3 3.5s ease-in-out infinite;
}

@keyframes floatCard1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes floatCard3 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.reveal-up {
  animation: fadeInUp 0.7s ease forwards;
}

.reveal-left {
  animation: fadeInLeft 0.7s ease forwards;
}

.reveal-right {
  animation: fadeInRight 0.7s ease forwards;
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

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

.mobile-link {
  display: block;
}

/* ===== ACCESSIBILITY ===== */
@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;
  }
}

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

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

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

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