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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== NAV ===== */
.nav {
  background: rgba(253, 248, 240, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(5, 150, 105, 0.08);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}

.nav.scrolled {
  background: rgba(253, 248, 240, 0.95);
  box-shadow: 0 4px 30px rgba(5, 150, 105, 0.08);
}

.nav-logo-text {
  color: #064e3b;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #059669;
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #059669 !important;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(253, 248, 240, 0.98);
  backdrop-filter: blur(20px);
}

.mobile-menu.open {
  max-height: 400px;
  padding-top: 0;
}

.mobile-link {
  border-bottom: 1px solid rgba(5, 150, 105, 0.08);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
  color: #059669;
  padding-left: 8px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #059669;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 50px;
  border: 1.5px solid rgba(5, 150, 105, 0.3);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(5, 150, 105, 0.06);
  border-color: #059669;
  transform: translateY(-2px);
}

/* ===== SECTION LABEL ===== */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(5, 150, 105, 0.15);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, #fdf8f0 0%, #f0fdf4 40%, #ecfdf5 100%);
  position: relative;
  min-height: 100vh;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.hero-circle-1 {
  width: 600px;
  height: 600px;
  background: #059669;
  top: -200px;
  right: -150px;
}

.hero-circle-2 {
  width: 400px;
  height: 400px;
  background: #10b981;
  bottom: -100px;
  left: -100px;
}

.hero-circle-3 {
  width: 200px;
  height: 200px;
  background: #34d399;
  top: 40%;
  left: 45%;
  opacity: 0.04;
}

.hero-leaf {
  position: absolute;
  opacity: 0.05;
}

.hero-leaf-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  right: 5%;
  background: #059669;
  border-radius: 0 60px 60px 0;
  transform: rotate(45deg);
}

.hero-leaf-2 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 3%;
  background: #10b981;
  border-radius: 60px 0 0 60px;
  transform: rotate(-30deg);
}

.hero-badge {
  animation: fadeInUp 0.8s ease both;
}

.hero-content > * {
  animation: fadeInUp 0.8s ease both;
}

.hero-content > *:nth-child(2) { animation-delay: 0.1s; }
.hero-content > *:nth-child(3) { animation-delay: 0.2s; }
.hero-content > *:nth-child(4) { animation-delay: 0.3s; }
.hero-content > *:nth-child(5) { animation-delay: 0.4s; }
.hero-content > *:nth-child(6) { animation-delay: 0.5s; }

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

.hero-images {
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-img-main-img {
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-img-float-1 {
  animation: float 6s ease-in-out infinite;
}

.hero-img-float-2 {
  animation: float 6s ease-in-out infinite 3s;
}

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

/* Scroll indicator */
.scroll-indicator {
  opacity: 0.5;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #059669, transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== SERVICES ===== */
.service-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(5, 150, 105, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(5, 150, 105, 0.12);
}

.service-card-img {
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-img-wrap {
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.service-card-body {
  background: white;
}

/* ===== ABOUT ===== */
.about-img-primary {
  box-shadow: 0 25px 80px rgba(5, 150, 105, 0.12);
}

.about-img-secondary {
  border: 4px solid white;
}

/* ===== GALLERY ===== */
.gallery-item {
  overflow: hidden;
  border-radius: 16px;
}

.gallery-img {
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(5, 150, 105, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(5, 150, 105, 0.1);
}

/* ===== CONTACT ===== */
.input-field {
  background: white;
  border: 1.5px solid rgba(5, 150, 105, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #064e3b;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  width: 100%;
}

.input-field::placeholder {
  color: #05966940;
}

.input-field:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.contact-success {
  animation: fadeInUp 0.5s ease;
}

/* ===== CTA BANNER ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #059669;
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  background: #f0fdf4;
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #34d399;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #059669;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 40;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #047857;
  transform: translateY(-2px);
}

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

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

/* Prefers 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; }
  .reveal { opacity: 1; transform: none; }
  .hero-images, .hero-content > * { animation: none; opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

  .hero-images {
    margin-top: 2rem;
  }

  .hero-img-main-img {
    height: 350px !important;
  }

  .hero-img-float-1 {
    width: 80px !important;
    height: 100px !important;
    bottom: -4px !important;
    left: -4px !important;
  }

  .hero-img-float-2 {
    width: 64px !important;
    height: 80px !important;
    top: -2px !important;
    right: -2px !important;
  }

  .about-img-secondary {
    display: none;
  }

  .hero-dots {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-content > * {
    animation-delay: 0s !important;
  }

  .hero-badge {
    margin-bottom: 1.5rem;
  }

  .scroll-indicator {
    display: none;
  }
}
