/* Additional styles for extra visual polish */
:root {
  /* Patterns for backgrounds */
  --pattern-dots: radial-gradient(var(--color-primary-light) 2px, transparent 2px);
  --pattern-grid: linear-gradient(to right, rgba(10, 95, 56, 0.1) 1px, transparent 1px),
                 linear-gradient(to bottom, rgba(10, 95, 56, 0.1) 1px, transparent 1px);
}

/* Add subtle patterns to sections for depth */
#about {
  background-image: var(--pattern-dots);
  background-size: 20px 20px;
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-light);
  opacity: 0.97;
  z-index: -1;
}

#team {
  background-image: var(--pattern-grid);
  background-size: 20px 20px;
  position: relative;
}

#team::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-light);
  opacity: 0.97;
  z-index: -1;
}

/* Enhanced card hover effects */
.service-card:hover .icon-container {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(60, 184, 120, 0.4);
}

.feature-card:hover .icon {
  transform: rotate(360deg);
  transition: transform 0.8s ease;
}

/* Button enhancements */
.btn-primary, .btn-secondary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before, 
.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  left: 0;
  width: 100%;
}

/* Improvements to testimonial cards */
.team-card {
  position: relative;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--color-primary);
  transition: height 0.3s ease;
  z-index: 1;
}

.team-card:hover::before {
  height: 100%;
}

/* Animated stats */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: transform 1.5s ease;
  z-index: 1;
  pointer-events: none;
}

.stat-card:hover::after {
  transform: rotate(30deg) translate(100%, 100%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* Additional form enhancements */
.form-group input:focus,
.form-group textarea:focus {
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  transform: translateY(-2px);
}

/* Success message styling */
.success-message {
  background-color: var(--color-success);
  color: white;
  padding: var(--spacing-6);
  border-radius: var(--border-radius-lg);
  text-align: center;
  animation: fadeInUp 0.5s ease forwards;
}

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

/* Mobile menu enhancements */
.mobile-menu {
  background-color: var(--color-primary-dark);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}