/* ===== Hero Section Animations ===== */
@keyframes heroKenBurns {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1.15);
  }
}

@keyframes heroBadgeReveal {
  0% {
    opacity: 0;
    transform: translateX(-60px) scale(0.8);
    filter: blur(10px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

[dir="rtl"] .hero-badge-reveal,
.hero-badge-reveal-rtl {
  animation-name: heroBadgeRevealRTL !important;
}

@keyframes heroBadgeRevealRTL {
  0% {
    opacity: 0;
    transform: translateX(60px) scale(0.8);
    filter: blur(10px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroTitleSlideUp {
  0% {
    opacity: 0;
    transform: translateY(80px) skewY(3deg);
    filter: blur(12px);
  }
  50% {
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
    filter: blur(0);
  }
}

@keyframes heroSubtitleReveal {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroLineExpand {
  0% {
    opacity: 0;
    width: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    width: 6rem;
    transform: scaleX(1);
  }
}

@keyframes heroDescFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroCTABounceIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.7);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
  70% {
    transform: translateY(4px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroGlowPulse {
  0%, 100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.1);
  }
}

/* Hero Animation Classes */
.hero-ken-burns {
  animation: heroKenBurns 20s ease-in-out infinite alternate;
}

.hero-badge-reveal {
  opacity: 0;
  animation: heroBadgeReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-title-1 {
  opacity: 0;
  animation: heroTitleSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-title-2 {
  opacity: 0;
  animation: heroSubtitleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-line {
  opacity: 0;
  transform-origin: left center;
  animation: heroLineExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

[dir="rtl"] .hero-line {
  transform-origin: right center;
}

.hero-desc {
  opacity: 0;
  animation: heroDescFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
}

.hero-cta {
  opacity: 0;
  animation: heroCTABounceIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s forwards;
}

.hero-glow {
  animation: heroGlowPulse 4s ease-in-out infinite;
}

/* Hero dots entrance */
@keyframes heroDotsReveal {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.hero-dots-reveal {
  opacity: 0;
  animation: heroDotsReveal 0.8s ease-out 2s forwards;
}

/* Hero arrows entrance */
@keyframes heroArrowsReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-arrows-reveal {
  opacity: 0;
  animation: heroArrowsReveal 0.8s ease-out 2.2s forwards;
}

/* Reduced motion for hero */
@media (prefers-reduced-motion: reduce) {
  .hero-ken-burns,
  .hero-badge-reveal,
  .hero-title-1,
  .hero-title-2,
  .hero-line,
  .hero-desc,
  .hero-cta,
  .hero-glow,
  .hero-dots-reveal,
  .hero-arrows-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Custom Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* Service Item Active State */
.service-item.active h3 {
  color: white !important;
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.animate-slide-in {
  animation: slideIn 0.8s ease-out forwards;
  opacity: 0;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Animation Delays */
.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-400 {
  animation-delay: 0.4s;
}

.animation-delay-600 {
  animation-delay: 0.6s;
}

/* Scroll Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(80px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-80px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.6);
    filter: blur(10px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-12deg) scale(0.85) translateY(40px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(120px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes flipInX {
  from {
    opacity: 0;
    transform: perspective(800px) rotateX(25deg) translateY(60px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: perspective(800px) rotateX(0) translateY(0);
    filter: blur(0);
  }
}

@keyframes scaleReveal {
  from {
    opacity: 0;
    transform: scale(0.3);
    filter: blur(15px);
  }
  50% {
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes slideRevealLeft {
  from {
    opacity: 0;
    transform: translateX(-120px) skewX(8deg);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0) skewX(0);
    filter: blur(0);
  }
}

@keyframes slideRevealRight {
  from {
    opacity: 0;
    transform: translateX(120px) skewX(-8deg);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0) skewX(0);
    filter: blur(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(60px);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(-10px);
    filter: blur(0);
  }
  80% {
    transform: scale(0.97) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* Scroll Animation Classes */
.scroll-animate {
  opacity: 0;
  transition: none;
  will-change: opacity, transform, filter;
}

.scroll-animate.animate-in {
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.animate-in {
  animation-name: fadeInUp;
}

.fade-down.animate-in {
  animation-name: fadeInDown;
}

.fade-left.animate-in {
  animation-name: fadeInLeft;
}

.fade-right.animate-in {
  animation-name: fadeInRight;
}

.zoom-in.animate-in {
  animation-name: zoomIn;
}

.rotate-in.animate-in {
  animation-name: rotateIn;
}

.slide-up.animate-in {
  animation-name: slideInUp;
  animation-duration: 1.1s;
}

.flip-in.animate-in {
  animation-name: flipInX;
  animation-duration: 1.1s;
}

.scale-reveal.animate-in {
  animation-name: scaleReveal;
  animation-duration: 1.2s;
}

.slide-reveal-left.animate-in {
  animation-name: slideRevealLeft;
  animation-duration: 1s;
}

.slide-reveal-right.animate-in {
  animation-name: slideRevealRight;
  animation-duration: 1s;
}

.bounce-in.animate-in {
  animation-name: bounceIn;
  animation-duration: 1.2s;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Stagger Animation Delays */
.stagger-1.animate-in { animation-delay: 0.15s; }
.stagger-2.animate-in { animation-delay: 0.3s; }
.stagger-3.animate-in { animation-delay: 0.45s; }
.stagger-4.animate-in { animation-delay: 0.6s; }
.stagger-5.animate-in { animation-delay: 0.75s; }
.stagger-6.animate-in { animation-delay: 0.9s; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .scroll-animate {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* Mobile Menu Curtain Animations */
@keyframes curtainDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
  }
}

@keyframes curtainUp {
  from {
    max-height: 500px;
    opacity: 1;
  }
  to {
    max-height: 0;
    opacity: 0;
  }
}

.menu-slide-down {
  animation: curtainDown 0.4s ease-out forwards;
  overflow: hidden;
}

.menu-slide-up {
  animation: curtainUp 0.4s ease-out forwards;
  overflow: hidden;
}

/* Search Modal Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scaleIn 0.3s ease-out forwards;
}

/* Float Animation for Decorative Background */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

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

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

::-webkit-scrollbar-thumb {
  background: #BEA230;
  border-radius: 6px;
}

/* Thin scrollbar for search results */
#results-container::-webkit-scrollbar {
  width: 4px;
}

#results-container::-webkit-scrollbar-track {
  background: transparent;
}

#results-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

#results-container::-webkit-scrollbar-thumb:hover {
  background: rgba(190, 162, 48, 0.5);
}

#results-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
