/* 
 * BASE CSS - Reset & Globals
 */

/* Minimal Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Base for rems */
}

body {
  font-family: var(--font-ar);
  /* Default Arabic */
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* English override if needed */
body[dir="ltr"] {
  font-family: var(--font-en);
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

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

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

::-webkit-scrollbar-thumb {
  background: #d1d1d6;
  border-radius: 5px;
  border: 3px solid var(--bg-body);
}

::-webkit-scrollbar-thumb:hover {
  background: #8e8e93;
}

/* Selection */
::selection {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}