/* Timeline animations */
.timeline-item {
    opacity: 0;
    transform: translateX(0);
    transition: all 0.7s ease-in-out;
}

.timeline-item.from-left {
    transform: translateX(-100px);
}

.timeline-item.from-right {
    transform: translateX(100px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Language menu customization */
.language-dropdown {
    position: relative;
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 40;
}

.language-menu:not(.hidden) {
    display: block;
}

.language-menu button {
    transition: background-color 0.2s;
}

/* RTL Support */
.arabic-font {
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .timeline-item.from-left {
    transform: translateX(100px);
}

[dir="rtl"] .timeline-item.from-right {
    transform: translateX(-100px);
}

[dir="rtl"] .timeline-item.visible {
    transform: translateX(0);
}

/* Banner animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: scroll 60s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Video background blur effect */
.video-bg {
    filter: blur(5px);
}

/* Smooth transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Custom animations */
@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RTL Support */
[dir="rtl"] {
  font-family: 'Cairo', sans-serif;
}

/* === banner inf animation */
.banner-container {
    position: relative;
    width: 100%;
    background: #1d1d1d;
    color: white;
    padding: 1rem 0;
    overflow: hidden;
  }
  
  .fog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      #1d1d1d 0%,
      transparent 5%,
      transparent 95%,
      #1d1d1d 100%
    );
    z-index: 2;
  }
  
  .marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  
  .marquee-content {
    display: flex;
    width: fit-content;
    animation: scroll 60s linear infinite;
  }
  
  .marquee-text {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-right: 2rem;
  }
  
  .marquee-text span {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    padding: 0 1rem;
  }
  
  .separator {
    opacity: 0.7;
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  /* Optional: Pause animation on hover */
  .marquee-container:hover .marquee-content {
    animation-play-state: paused;
  }

/* Common Styles */
html, body {
  scroll-behavior: smooth;
}

/* RTL overrides for language menu */
html[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

/* RTL overrides for icons and buttons */
html[dir="rtl"] .fa-arrow-right:before {
  content: "\f060"; /* fa-arrow-left */
}

html[dir="rtl"] .fa-arrow-left:before {
  content: "\f061"; /* fa-arrow-right */
}

/* RTL adjustments for flex items */
html[dir="rtl"] .lg\:flex-row {
  flex-direction: row-reverse;
}

/* Active language button */
.lang-btn.bg-primary\/10 {
  position: relative;
  font-weight: 600;
}

.lang-btn.bg-primary\/10::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background-color: #F1CE30;
  border-radius: 2px;
}

html[dir="rtl"] .group\:hover\:translate-x-1 {
  transform: translateX(-4px) !important;
}