@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

.bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.gradient-text {
  background: linear-gradient(45deg, #f39c12, #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.progress-bar {
  transition: width 1s ease-in-out;
}

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

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

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

::-webkit-scrollbar-thumb {
  background: #0a3d62;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3c6382;
}

.dark ::-webkit-scrollbar-track {
  background: #374151;
}

.dark ::-webkit-scrollbar-thumb {
  background: #6b7280;
}

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

/* WhatsApp Modal Overlay */
.whatsapp-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

/* Modal Box */
.whatsapp-modal-content {
  background: #fff; /* Light mode default */
  padding: 25px 20px;
  border-radius: 12px;
  width: 320px;
  max-width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideDown 0.4s ease;
  color: #111;
  transition: all 0.3s ease;
}

/* Dark Mode Modal Box */
html.dark .whatsapp-modal-content {
  background: #111827;
  color: #f0f0f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

/* Modal Title */
.whatsapp-modal-content h3 {
  margin-bottom: 10px;
  font-size: 20px;
  text-align: center;
  color: inherit; /* Matches light/dark theme */
}

/* Inputs */
.whatsapp-modal-content input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #fff;
  color: #111;
}

/* Dark mode inputs */
html.dark .whatsapp-modal-content input {
  background: #374151;
  color: #f0f0f0;
  border: 1px solid #555;
}

/* Inputs focus */
.whatsapp-modal-content input:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.3);
}

/* Buttons Container */
.whatsapp-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Send Button */
.whatsapp-modal-send {
  padding: 8px 14px;
  background-color: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.whatsapp-modal-send:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
}

/* Cancel Button */
.whatsapp-modal-cancel {
  padding: 8px 14px;
  background-color: #ccc;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Dark mode cancel button */
html.dark .whatsapp-modal-cancel {
  background-color: #444;
  color: #f0f0f0;
}

.whatsapp-modal-cancel:hover {
  transform: scale(1.05);
}

/* Animation */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
