@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1.5rem));
  }
}

/* Base animations */
.fade-in { 
  animation: fadeInUp 1s ease forwards; 
}

.animate-scroll {
  animation: scroll 25s linear infinite;
  display: flex;
  width: max-content;
}

.carousel { 
  display: flex; 
  overflow: hidden; 
  scroll-behavior: smooth; 
}

.carousel img { 
  transition: transform 0.5s ease; 
}

.carousel img:hover { 
  transform: scale(1.05); 
}

/* Header styles when scrolled */
.scrolled-header {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

/* Ensure text elements remain white when the header is scrolled */
.scrolled-header .text-white,
.scrolled-header h1,
.scrolled-header #mobile-menu-btn i {
  color: #ffffff !important;
  text-shadow: none !important;
}

#main-header:not(.scrolled-header) {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

/* Style for active product tab button */
.product-tab.active-tab {
  background-color: #93c5fd; /* blue-300 */
  color: #1e3a8a; /* blue-900 */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #60a5fa; /* blue-400 */
}

/* Service Card Styles */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  height: 24rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: all 0.3s;
}

.service-card:hover .service-content {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Employee Card Styles */
.employee-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.25rem;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.employee-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Scroll-triggered animation classes */
.section-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.section-fade-up.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-fade-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.card-fade-left.fade-in-left-visible {
  opacity: 1;
  transform: translateX(0);
}

.card-fade-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.card-fade-right.fade-in-right-visible {
  opacity: 1;
  transform: translateX(0);
}

.service-card.scale-in-visible {
  opacity: 1;
  transform: scale(1);
}

.employee-card.fade-in-up-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Product cards specific animations */
#products .group {
  transition: all 0.6s ease;
}

/* Add some delay for staggered animations */
.card-fade-left:nth-child(odd) {
  transition-delay: 0.1s;
}

.card-fade-right:nth-child(even) {
  transition-delay: 0.2s;
}