body {
  overflow-x: hidden;
}

.vector {
  background-image: url("images/vector.png");
  background-size: cover;
  background-position: center;
}

/* Custom Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Custom Slider Styling */
.slider {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 5px;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #7cb342;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(124, 179, 66, 0.4);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #7cb342;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(124, 179, 66, 0.4);
}

/* Custom Checkbox Styling */
input[type="checkbox"] {
  accent-color: #7cb342;
}

/* Smooth transitions for all interactive elements */
* {
  transition-property: color, background-color, border-color, transform,
    box-shadow;
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #7cb342;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #689f38;
}

/* Focus styles for accessibility */
input:focus,
button:focus,
select:focus,
textarea:focus {
  outline: 2px solid #7cb342;
  outline-offset: 2px;
}

/* Hero section background overlay animation */
.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(124, 179, 66, 0.1),
    rgba(104, 159, 56, 0.1)
  );
  animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 0.6;
  }
}

/* Loading animation for buttons */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Responsive font sizes */
@media (max-width: 640px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }
}

/* Enhanced mobile menu animation */
#mobile-menu-panel {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom details/summary styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary span {
  transform: rotate(45deg);
}

details summary span {
  transition: transform 0.2s ease;
}

/* Card hover effects */
.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button hover effects */
.transform:hover {
  transform: translateY(-2px);
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(45deg, #7cb342, #689f38);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced form styling */
.form-input {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: #7cb342;
  box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
  transform: translateY(-1px);
}

/* Success message styling */
.success-message {
  background: linear-gradient(135deg, #7cb342, #689f38);
  color: white;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
}

/* Error message styling */
.error-message {
  background: #fee2e2;
  color: #dc2626;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
  border: 1px solid #fecaca;
}
