/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDFCF8;
}
::-webkit-scrollbar-thumb {
  background: #A7F3D0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6EE7B7;
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: #059669;
  color: #fff;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: #059669;
  border: 2px solid #059669;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #ECFDF5;
  transform: translateY(-2px);
}

/* White Button (CTA section) */
.btn-white {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: #fff;
  color: #059669;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.btn-white:hover {
  background: #F0FDF4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Outline White Button */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* Input Fields */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  color: #1F2937;
  background: #FAF8F3;
  transition: all 0.2s ease;
  outline: none;
}
.input-field:hover {
  border-color: #A7F3D0;
}
.input-field:focus {
  border-color: #059669;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}
.input-field::placeholder {
  color: #9CA3AF;
}

/* Floating Cards Animation */
.floating-card {
  animation: float 6s ease-in-out infinite;
}
.floating-card:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.floating-card:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 5s;
}

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

/* Service Cards */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery Items */
.gallery-item {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
  min-height: 200px;
}
.gallery-item.visible {
  opacity: 1;
  transform: scale(1);
}

/* Testimonial Cards */
.testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nav Links */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile Nav Links */
.mobile-nav-link {
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}
.mobile-nav-link:hover {
  color: #059669;
}
.mobile-nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #059669;
  margin: 4px auto 0;
  transition: width 0.3s ease;
}
.mobile-nav-link:hover::after {
  width: 60px;
}

/* Navbar Scroll State */
.nav-scrolled {
  background: rgba(253, 252, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Section reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu animation */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .floating-card {
    display: none;
  }
  #hero .relative {
    text-align: center;
  }
  #hero .flex-wrap.justify-center {
    justify-content: center;
  }
  #hero .flex.items-center.gap-6 {
    justify-content: center;
  }
}

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

/* Accessibility: reduced motion */
@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;
  }
  .service-card, .gallery-item, .testimonial-card, .reveal {
    opacity: 1;
    transform: none;
  }
}
