/* ==============================================================================
   TAYYAR CYBER RESET & BASE ENFORCEMENT
   100% Horizontal Overflow Prevention (scrollWidth <= clientWidth)
   ============================================================================== */

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

html {
  font-size: 16px;
  line-height: 1.6;
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-void);
  overflow-x: hidden;
  width: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #070c18;
  background-image: 
    radial-gradient(circle 800px at 85% 12%, rgba(0, 242, 254, 0.08), transparent 60%),
    radial-gradient(circle 700px at 15% 38%, rgba(14, 165, 233, 0.06), transparent 60%),
    radial-gradient(circle 900px at 80% 70%, rgba(0, 255, 136, 0.04), transparent 65%),
    radial-gradient(circle 600px at 25% 90%, rgba(168, 85, 247, 0.03), transparent 60%);
  background-attachment: fixed;
  color: var(--text-slate);
  position: relative;
  text-rendering: optimizeLegibility;
}

/* Force headings to use bold weights and heading fonts */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 800;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: var(--font-arabic-heading);
}

[dir="ltr"] h1,
[dir="ltr"] h2,
[dir="ltr"] h3,
[dir="ltr"] h4 {
  font-family: var(--font-latin);
  letter-spacing: -0.025em;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

ul, ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
  direction: ltr;
}

::selection {
  background: var(--laser-cyan-glow);
  color: var(--laser-cyan);
}
