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

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

body {
  background-color: #F9F7F0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F9F7F0;
}
::-webkit-scrollbar-thumb {
  background: #A5D6A7;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #66BB6A;
}

/* ===== NAVIGATION ===== */
#mainNav {
  background: rgba(249, 247, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(165, 214, 167, 0.3);
}

#mainNav.scrolled {
  background: rgba(254, 255, 254, 0.95);
  box-shadow: 0 4px 30px rgba(27, 94, 32, 0.08);
}

/* ===== HERO SHAPES ===== */
.hero-shape {
  animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
  animation-delay: 0s;
  animation-duration: 10s;
}
.shape-2 {
  animation-delay: -2s;
  animation-duration: 12s;
}
.shape-3 {
  animation-delay: -1s;
  animation-duration: 6s;
}
.shape-4 {
  animation-delay: -3s;
  animation-duration: 7s;
}
.shape-5 {
  animation-delay: -4s;
  animation-duration: 9s;
}
.shape-6 {
  animation-delay: -2s;
  animation-duration: 11s;
}

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

/* ===== FLOATING CARDS ===== */
.floating-card {
  animation: floatCard 6s ease-in-out infinite;
}

.card-1 {
  animation-delay: 0s;
}
.card-2 {
  animation-delay: -2s;
}
.card-3 {
  animation-delay: -4s;
}

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

/* ===== SECTION REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== STAGGER CARDS ===== */
.stagger-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-card:nth-child(1) { transition-delay: 0.05s; }
.stagger-card:nth-child(2) { transition-delay: 0.1s; }
.stagger-card:nth-child(3) { transition-delay: 0.15s; }
.stagger-card:nth-child(4) { transition-delay: 0.2s; }
.stagger-card:nth-child(5) { transition-delay: 0.25s; }
.stagger-card:nth-child(6) { transition-delay: 0.3s; }

/* ===== MOBILE MENU ===== */
#mobileMenu {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== FORM INPUTS ===== */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* ===== LINK UNDERLINE HOVER ===== */
a {
  text-decoration: none;
}

/* ===== IMAGE HOVER ===== */
img {
  max-width: 100%;
  height: auto;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .stagger-card {
    opacity: 1;
    transform: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
}
