/* Alexandria-Medium font for Arabic in RTL */
@font-face {
  font-family: 'alex-md';
  src: url('fonts/Alexandria-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Gotham-Medium font for English in LTR */
@font-face {
  font-family: 'gotham-md';
  src: url('fonts/GOTHAM-MEDIUM.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html[dir="rtl"] .arabic {
  font-family: 'alex-md', sans-serif;
}

/* Helper to mirror row direction for RTL layouts */
html[dir="rtl"] .rtl-row-reverse {
  flex-direction: row-reverse;
}

html[dir="rtl"] .address {
  text-align: right;
}

/* Cleanup: no longer using space-x utilities on nav in RTL */

/* html[dir="ltr"] .english {
  font-family: 'gotham-md', sans-serif;
} */

html[dir="rtl"] .english {
  display: none;
}

html[dir="ltr"] .arabic {
  display: none;
}

body {
  font-family: 'Inter', sans-serif;
}

.pacifico-font {
  font-family: 'Pacifico', cursive;
}

.particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(30, 170, 231, 0.3);
  border-radius: 0;
  animation: float 20s infinite linear;
  box-shadow: 0 0 15px rgba(30, 170, 231, 0.3);
}

.particle:nth-child(2n) {
  background: rgba(26, 20, 73, 0.3);
  box-shadow: 0 0 15px rgba(26, 20, 73, 0.3);
}

.particle:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 20%;
  top: 50%;
  animation-delay: -2s;
}

.particle:nth-child(3) {
  left: 30%;
  top: 70%;
  animation-delay: -4s;
}

.particle:nth-child(4) {
  left: 40%;
  top: 90%;
  animation-delay: -6s;
}

.particle:nth-child(5) {
  left: 50%;
  top: 10%;
  animation-delay: -8s;
}

.particle:nth-child(6) {
  left: 60%;
  top: 40%;
  animation-delay: -10s;
}

.particle:nth-child(7) {
  left: 70%;
  top: 60%;
  animation-delay: -12s;
}

.particle:nth-child(8) {
  left: 80%;
  top: 80%;
  animation-delay: -14s;
}

.particle:nth-child(9) {
  left: 90%;
  top: 30%;
  animation-delay: -16s;
}

.particle:nth-child(10) {
  left: 95%;
  top: 50%;
  animation-delay: -18s;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  80% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

.gradient-text {
  background: linear-gradient(90deg, #1eaae7, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px -5px rgba(30, 170, 231, 0.15), 0 8px 10px -6px rgba(30, 170, 231, 0.15);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.accordion-content.active {
  max-height: 500px;
  /* Adjust as needed */
}

.hero-bg {
  background-color: #0f172a;
  background-image:
    radial-gradient(ellipse 80% 80% at 50% -20%, rgba(30, 170, 231, 0.3), rgba(255, 255, 255, 0)),
    radial-gradient(ellipse 80% 80% at 50% 120%, rgba(26, 20, 73, 0.3), rgba(255, 255, 255, 0));
}

.section-bg {
  background-color: #1e293b;
  background-image:
    radial-gradient(at 0% 0%, rgba(26, 20, 73, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(30, 170, 231, 0.15) 0px, transparent 50%);
}

/* Partner Logo Styling - White Effect */
.partner-logo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: filter 0.3s ease, opacity 0.3s ease;
  max-width: 160px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-logo:hover {
  filter: none;
  opacity: 1;
  transition: all 0.5s ease-in-out;
}

.bg-bw:hover {
  background-color: #ffffff;
  padding: 1px;
}

.partner-tab.active-tab {
  color: #1eaae7;
}

p {
  font-weight: 100 !important;
}

/* Ensure Arabic font is used inside modals in RTL */
html[dir="rtl"] .modal-content {
  font-family: 'alex-md', sans-serif;
}

/* Nav active state */
nav a.nav-link {
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav a.nav-link.active {
  color: #1eaae7 !important;
  border-bottom-color: #1eaae7;
}

/* Active menu item styles */
.nav-item.active {
  color: #1eaae7 !important;
  border-bottom: 2px solid #1eaae7;
}