/* ===== ANIMATION STYLES ===== */

/* Fade-in animations for content */
.product-card,
.feature-card,
.about-content,
.team-member,
.department-card,
.feature-item,
.benefit-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card.animate-in,
.feature-card.animate-in,
.about-content.animate-in,
.team-member.animate-in,
.department-card.animate-in,
.feature-item.animate-in,
.benefit-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Loading state */
body:not(.loaded) {
  overflow: hidden;
}

body.loaded {
  overflow: visible;
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-orange),
    var(--dark-orange)
  );
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  z-index: 1000;
}

#back-to-top:hover {
  transform: translateY(-3px);
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.notification.notification-success {
  background: linear-gradient(135deg, #4caf50, #45a049);
}

.notification.notification-error {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}

/* Form validation styles */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #e74c3c;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.form-group input.success,
.form-group textarea.success,
.form-group select.success {
  border-color: #27ae60;
  box-shadow: 0 0 5px rgba(39, 174, 96, 0.3);
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-blue);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Improved accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
/* a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
} */

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--dark-blue);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
}

.skip-link:focus {
  top: 6px;
}

/* ===== ANIMATIONS AND TRANSITIONS ===== */

.feature-card,
.about-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card.animate-in,
.feature-card.animate-in,
.about-content.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.product-card {
  opacity: 1 !important;
  transform: none;
  display: block;
  visibility: visible;
}

/* Only hide when specifically filtered */
.product-card.hidden {
  /* display: none !important; */
}

.product-card.product-hidden {
  /* Use the correct class name from the JS */
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}
@media (min-width: 768px) {
  .product-card.filterable-product {
    border-radius: 0;
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== END OF CSS STYLES ===== */
