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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-english);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

body.rtl {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--clr-border);
}
.section:last-of-type { border-bottom: none; }

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--clr-text-secondary);
  font-size: var(--text-md);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-border-hover); }

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--clr-accent);
  color: white;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-secondary);
}
.btn-secondary:hover {
  border-color: var(--clr-text-muted);
  color: var(--clr-text);
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: var(--text-sm);
}
.btn-icon:hover {
  border-color: var(--clr-text-secondary);
  color: var(--clr-text);
  background: var(--clr-surface-hover);
}
.btn-icon.active {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}
