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

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

body {
  margin: 0;
  overflow-x: hidden;
}

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

.geo-circle-1 {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, #34D399 0%, transparent 70%);
  top: -80px;
  right: -100px;
  animation: float1 8s ease-in-out infinite;
}

.geo-circle-2 {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, #A7F3D0 0%, transparent 70%);
  bottom: 10%;
  left: -60px;
  animation: float2 10s ease-in-out infinite;
}

.geo-circle-3 {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #6EE7B7;
  top: 40%;
  right: 8%;
  opacity: 0.08;
  animation: float3 6s ease-in-out infinite;
}

.geo-square-1 {
  width: 120px;
  height: 120px;
  background: #D1FAE5;
  border-radius: 20px;
  top: 20%;
  left: 5%;
  transform: rotate(45deg);
  opacity: 0.1;
  animation: spin 20s linear infinite;
}

.geo-square-2 {
  width: 80px;
  height: 80px;
  background: #A7F3D0;
  border-radius: 14px;
  bottom: 25%;
  right: 15%;
  transform: rotate(20deg);
  opacity: 0.12;
  animation: float1 7s ease-in-out infinite reverse;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid #6EE7B7;
  top: 60%;
  left: 12%;
  opacity: 0.08;
  animation: spin 15s linear infinite reverse;
}

.geo-ring-1 {
  width: 200px;
  height: 200px;
  border: 4px solid #34D399;
  border-radius: 50%;
  top: 15%;
  right: 20%;
  opacity: 0.1;
  animation: float2 9s ease-in-out infinite;
}

.geo-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(110, 231, 183, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

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

@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(5deg); }
}

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

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

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

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

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

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

  .service-card {
    opacity: 0;
    transform: translateY(24px);
  }

  .service-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
}

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

#navbar.scrolled {
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

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

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

/* ===== SERVICE CARDS ===== */
.service-card {
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

/* ===== FORM STYLES ===== */
input:focus, textarea:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

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

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .service-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
