/* Global styles (RTL template) */
/* Use this file for global utilities and component base styles.
   For production: it's recommended to compile only used Tailwind utilities. */

:root {
  --primary-color: #E46074;
  --secondary-color: #EBEAEB;
  --third-color: #444243;
  --base-font: 'Cairo', 'Poppins', sans-serif;
}

/* Accessibility: respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  position: relative;
  font-family: var(--base-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #0f172a;
  background: #ffffff;
}

/* Scrollbar (webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: white;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 999px;
}

/* Firefox scrollbar */
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) white;
}

/* Preloader transition */
#preloader.hide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}

/* ============================ */
/* ===== SCROLL TOP BTN ======= */
/* ============================ */
#scrollTopBtn {
  transform: translateY(20px);
}

#scrollTopBtn.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0);
}

#scrollTopBtn.show:hover {
  animation: pulseGlow 1.5s infinite;
}