/* Josour.io — Custom Styles */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

html { scroll-padding-top: 80px; }

::selection { background-color: #0BB5C8; color: #fff; }

input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(11, 181, 200, 0.15);
}

/* RTL Support */
.rtl {
  font-family: 'Dubai', 'DM Sans', sans-serif;
}

.rtl .font-heading {
  font-family: 'Dubai', 'Inter', sans-serif;
}

.rtl {
  line-height: 1.8;
  letter-spacing: 0;
}

.rtl h1, .rtl h2, .rtl h3, .rtl h4 {
  letter-spacing: 0;
}

.rtl .tracking-wide,
.rtl .uppercase {
  letter-spacing: 0;
}

.rtl .rtl-flip {
  transform: scaleX(-1);
}

.rtl .text-left {
  text-align: right;
}

.rtl .text-center {
  text-align: center;
}

.rtl select {
  background-position: left 0.75rem center;
}
