/* ==============================================================================
   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: #060b14;
  color: var(--text-slate);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle 800px at 85% 12%, rgba(34, 211, 238, 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(6, 182, 212, 0.05), transparent 65%),
    radial-gradient(circle 600px at 25% 90%, rgba(2, 132, 199, 0.04), transparent 60%);
  pointer-events: none;
  transform: translateZ(0);
  z-index: 0;
}

/* 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);
}

/* Custom Cyber Glass Global Scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.38) var(--bg-void);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--bg-void);
  border-inline-start: 1px solid var(--border-subtle);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
      rgba(34, 211, 238, 0.48) 0%,
      rgba(2, 132, 199, 0.45) 100%);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-void);
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,
      #22d3ee 0%,
      #0ea5e9 100%);
}

::-webkit-scrollbar-corner {
  background: var(--bg-void);
}