/* ==========================================================================
   Aipudio Web Solutions - Global Styles
   ========================================================================== */

/* استيراد الخطوط الرسمية في حال عدم توفرها محلياً */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;600;700;800&family=Cairo:wght@400;500;600;700;800&display=swap');

/* العناوين والخطوط */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  color: var(--color-text-main);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.4rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw + 0.2rem, 1.6rem);
}

p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

strong {
  color: var(--color-text-main);
  font-weight: 700;
}

/* الحاويات الأساسية */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ترويسة الأقسام (Section Headers) */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

.section-header.text-start {
  text-align: start;
  margin-inline: 0;
}

.section-title {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* تأثير التدرج للنصوص (Gradient Text) */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--color-accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* خلفيات التوهج الجمالية (Ambient Glow) */
.glow-bg {
  position: relative;
}

.glow-bg::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 15%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(10, 14, 23, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* فئات مرونة وتوزيع العناصر */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

/* أدوات مساعدة */
.text-center { text-align: center; }
.text-emerald { color: var(--color-accent-emerald); }
.text-amber { color: var(--color-accent-amber); }
.text-primary { color: var(--color-primary); }
