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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  background: #34d399;
  color: #064e3b;
}

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

.circle-1 {
  top: 12%;
  left: 5%;
  width: 120px;
  height: 120px;
  border: 3px solid rgba(52, 211, 153, 0.2);
  border-radius: 50%;
  animation: float-slow 8s ease-in-out infinite;
}

.circle-2 {
  top: 60%;
  right: 8%;
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 50%;
  animation: float-slow 6s ease-in-out infinite reverse;
}

.square-1 {
  top: 25%;
  right: 15%;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(52, 211, 153, 0.15);
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.triangle-1 {
  bottom: 20%;
  left: 12%;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid rgba(52, 211, 153, 0.1);
  animation: float-slow 7s ease-in-out infinite;
}

.dot-grid {
  top: 40%;
  left: 3%;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(52, 211, 153, 0.2) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.6;
}

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

.card-float-1 {
  animation-delay: 0s;
}

.card-float-2 {
  animation-delay: -1.3s;
}

.card-float-3 {
  animation-delay: -2.6s;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

@keyframes spin-slow {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.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; }

/* ===== NAVIGATION ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #059669;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-blur-lg;
  box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

#navbar.scrolled .nav-link {
  color: #1a4a3a;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-open #menuIcon #bar1 {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open #menuIcon #bar2 {
  opacity: 0;
}

.mobile-menu-open #menuIcon #bar3 {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 5px;
}

#mobileMenu.menu-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

#mobileMenu.menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
}

/* ===== REASON CARDS ===== */
.reason-card {
  position: relative;
}

/* ===== FORM STYLES ===== */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

  #hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 60px;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .floating-card.card-float-3 {
    display: none;
  }
}
