/* Custom Typography & Bilingual Direction Rules */
html[lang="en"] body {
  font-family: 'Inter', sans-serif;
  margin: 0;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] .font-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

html[lang="ar"] body {
  font-family: 'Tajawal', sans-serif;
  margin: 0;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .font-heading {
  font-family: 'Cairo', sans-serif;
}

/* Hexagonal Cellular Architectural Grid Pattern */
.hex-grid-bg {
  background-color: #071B34;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%231DA1F2' stroke-opacity='0.09' stroke-width='1'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23064896' stroke-opacity='0.14' stroke-width='1'/%3E%3C/svg%3E");
}

.hex-grid-light {
  background-color: #F8FAFC;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23064896' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
}

/* Glassmorphism Utilities */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Keep sections visible reliably across all browsers and scroll states */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

::-webkit-scrollbar-track {
  background: #0F172A;
}

::-webkit-scrollbar-thumb {
  background: #064896;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1DA1F2;
}