/* Custom styling for Lamsat Al-Ibdaa Website */

/* Font Definitions */
body.font-ar {
  font-family: 'SF Pro Display', 'Inter', 'Cairo', sans-serif;
}

body.font-en {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.headline-font {
  font-family: 'Cairo', sans-serif;
}

body.font-en .headline-font {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

/* Base Transition Setup */
.transition-all-custom {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass Navigation Backdrop */
.glass-nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Custom Scrollbar for Premium Feel */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: theme('colors.surface-container');
}

::-webkit-scrollbar-thumb {
  background: theme('colors.primary');
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: theme('colors.primary-container');
}

/* Portfolio Carousel Scroller Styles */
.portfolio-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.portfolio-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(232, 95, 36, 0.3);
  border-radius: 3px;
}

.portfolio-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 95, 36, 0.6);
}

/* Smooth Scroll Behaviour */
html {
  scroll-behavior: smooth;
}

/* Reveal elements on scroll classes */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Floating WhatsApp Button Pulse Effect */
.whatsapp-pulse {
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Lightbox Animation */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-animate {
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hover effects for Bento grid and product cards */
.bento-card-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.dark .bento-card-hover:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

/* --- Infinite Loop Marquee Styles for Partners & Suppliers --- */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 3rem;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 3rem;
  min-width: 100%;
  animation: scroll-ltr 30s linear infinite;
}

@keyframes scroll-ltr {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* For Arabic (RTL) Layout scrolling direction swap */
[dir="rtl"] .marquee-group {
  animation: scroll-rtl 30s linear infinite;
}

@keyframes scroll-rtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Pause marquee on hover */
.marquee-container:hover .marquee-group {
  animation-play-state: paused;
}

/* Filter buttons styling */
.filter-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-btn.active {
  background-color: #E85F24;
  color: white;
  border-color: #E85F24;
  box-shadow: 0 4px 12px rgba(232, 95, 36, 0.2);
}
