
:root {
  --primary-green: #22c55e;
  --primary-green-dark: #16a34a;
  --primary-green-soft: #86efac;
  --primary-green-light: #dcfce7;
  --text-dark: #0f172a;
  --text-gray: #64748b;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  scroll-behavior: smooth;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInDown {
  animation: fadeInDown 0.6s ease-out;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
  animation: fadeInRight 0.6s ease-out;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out;
}

.animate-scaleIn {
  animation: scaleIn 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.gradient-primary {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
}

.gradient-light {
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.gradient-radial {
  background: radial-gradient(circle at 50% 50%, var(--primary-green) 0%, var(--primary-green-dark) 100%);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-green {
  box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.15);
}

.shadow-green-lg {
  box-shadow: 0 20px 40px -10px rgba(34, 197, 94, 0.2);
}

.nav-link-active {
  position: relative;
  color: var(--primary-green);
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-green);
  border-radius: 1px;
}

.hover-underline {
  position: relative;
  transition: color 0.3s ease;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.hover-underline:hover::after {
  width: 100%;
}

.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}


.responsive-text-xs {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
}

.responsive-text-sm {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
}

.responsive-text-base {
  font-size: clamp(1rem, 3vw, 1.125rem);
}

.responsive-text-lg {
  font-size: clamp(1.125rem, 3.5vw, 1.25rem);
}

.responsive-text-xl {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
}

.responsive-text-2xl {
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.responsive-text-3xl {
  font-size: clamp(2rem, 6vw, 3rem);
}

.responsive-text-4xl {
  font-size: clamp(2.5rem, 7vw, 4rem);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.card {
  background: var(--bg-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.section-padding {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
}

.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 640px) {
  .container-custom {
    padding: 0 1rem;
  }
}

.service-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
  transition: left 0.6s ease;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(34, 197, 94, 0.15), 0 0 0 1px rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
  color: var(--primary-green);
}

.service-icon {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-dropdown-active {
  background: rgba(34, 197, 94, 0.1) !important;
  color: #15803d !important;
  border-left: 3px solid #22c55e;
}

.nav-dropdown-active i {
  color: #15803d !important;
}

@media (max-width: 1023px) {
  .mobile-cta-button {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000;
    transition: all 0.3s ease;
    margin-top: 1rem !important;
  }

  .mobile-cta-button:hover {
    background: #333333 !important;
    border-color: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .mobile-nav-active {
    background: rgba(34, 197, 94, 0.08) !important;
    color: #15803d !important;
    border-left: 3px solid #22c55e;
  }
}

.btn-enhanced {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

.btn-enhanced:hover::before {
  left: 100%;
}

.image-loading {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%);
  background-size: 20px 20px;
  animation: loading-shimmer 1.5s ease-in-out infinite;
}

.image-loading img {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.image-loading.loaded {
  background: none;
}

.image-loading.loaded img {
  opacity: 1;
}

@keyframes loading-shimmer {
  0% { background-position: 0 0; }
  100% { background-position: 20px 20px; }
}

@media (max-width: 768px) {
  .touch-target {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn {
    padding: 1rem 2rem;
    min-height: 48px;
  }

  .mobile-menu a {
    padding: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

.footer-link {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-green);
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

@media (max-width: 640px) {
  .mobile-compact {
    padding: 0.75rem;
  }

  .mobile-spacing {
    margin-bottom: 1.5rem;
  }

  .mobile-text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

.scroll-reveal-stagger:nth-child(1) { animation-delay: 0.1s; }
.scroll-reveal-stagger:nth-child(2) { animation-delay: 0.2s; }
.scroll-reveal-stagger:nth-child(3) { animation-delay: 0.3s; }
.scroll-reveal-stagger:nth-child(4) { animation-delay: 0.4s; }
.scroll-reveal-stagger:nth-child(5) { animation-delay: 0.5s; }
.scroll-reveal-stagger:nth-child(6) { animation-delay: 0.6s; }

.content-image {
  max-height: 400px;
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.side-image {
  max-height: 350px;
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

@media (min-width: 1024px) {
  .content-image,
  .side-image {
    max-height: 300px;
  }
}

.image-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  max-height: 400px;
}

.image-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.image-overlay:hover::before {
  opacity: 1;
}

.image-overlay img {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-overlay:hover img {
  transform: scale(1.05);
}

.form-field {
  position: relative;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1), 0 0 0 1px var(--primary-green);
  transform: translateY(-1px);
}

.loading-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.hover-bounce:hover {
  animation: gentle-bounce 0.6s ease;
}

@keyframes gentle-bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0, -5px, 0);
  }
  70% {
    transform: translate3d(0, -3px, 0);
  }
  90% {
    transform: translate3d(0, -1px, 0);
  }
}