:root {
  --navy: #06102a;
  --navy-2: #081d91;
  --blue: #2e7cd1;
  --gold: #d4af37;
  --gold-2: #f3d27a;
  --cream: #edeae6;
  --white: #f7f4ee;
  --ink: #f4f1ea;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--ink);
  background: var(--navy);
  overflow-x: hidden;
}

body[dir="rtl"] {
  font-family: Cairo, Montserrat, sans-serif;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: drift 28s ease-in-out infinite alternate;
}

.bg-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 16, 42, 0.88) 0%, rgba(6, 16, 42, 0.65) 42%, rgba(8, 29, 145, 0.25) 100%),
    linear-gradient(180deg, rgba(6, 16, 42, 0.3) 0%, rgba(6, 16, 42, 0.5) 100%);
}

body[dir="rtl"] .bg-wash {
  background:
    linear-gradient(270deg, rgba(6, 16, 42, 0.88) 0%, rgba(6, 16, 42, 0.65) 42%, rgba(8, 29, 145, 0.25) 100%),
    linear-gradient(180deg, rgba(6, 16, 42, 0.3) 0%, rgba(6, 16, 42, 0.5) 100%);
}

@keyframes drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cardSlide {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-150%) skewX(-15deg);
  }
  100% {
    transform: translateX(150%) skewX(-15deg);
  }
}

@keyframes goldGlow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
  }
  50% {
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  }
}

.top,
.stage,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 6vw 0;
  animation: fadeIn 0.6s ease-out 0.1s both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}

.wordmark {
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.08em;
  line-height: 1;
}

.chevron {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent var(--gold);
  margin-inline-start: 0.2rem;
}

.arabic-name {
  margin: 0;
  font-family: Cairo, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-2);
  opacity: 0.95;
  animation: fadeUp 0.7s ease-out 0.3s both;
}

.lang {
  margin-inline-start: auto;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(237, 234, 230, 0.3);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.lang:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.stage {
  width: min(100% - 2rem, 1120px);
  max-width: 920px;
  margin: 0 auto;
  padding: 6vh 8vw 3rem;
  text-align: center;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.kicker {
  margin: 0 0 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  animation: fadeUp 0.7s ease-out 0.3s both;
}

h1 {
  margin: 0 0 1.2rem;
  text-align: center;
  font-size: clamp(2.35rem, 7.5vw, 5.6rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.045em;
  animation: fadeUp 0.8s ease-out 0.4s both;
}

.line-en,
.line-ar {
  display: block;
  white-space: nowrap;
}

.line-ar {
  font-family: Cairo, sans-serif;
  letter-spacing: 0;
}

.gold {
  color: var(--gold-2);
  animation: goldGlow 4s ease-in-out infinite;
}

.lede {
  margin: 0 auto 2.5rem;
  max-width: 44rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(247, 244, 238, 0.82);
  animation: fadeUp 0.7s ease-out 0.5s both;
}

.modes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0 0 2rem;
  padding: 0;
}

.mode-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  cursor: default;
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  animation: cardSlide 0.7s ease-out forwards;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s,
              box-shadow 0.4s;
}

.mode-card:nth-child(1) { animation-delay: 0.6s; }
.mode-card:nth-child(2) { animation-delay: 0.75s; }
.mode-card:nth-child(3) { animation-delay: 0.9s; }

.mode-card:hover {
  transform: translate3d(0, -6px, 0);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow:
    0 12px 40px rgba(6, 16, 42, 0.6),
    0 0 30px rgba(212, 175, 55, 0.12);
}

.mode-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mode-card:hover img {
  transform: scale(1.08);
}

.mode-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
}

.mode-shine::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: translateX(-150%) skewX(-15deg);
  animation: shimmer 0.8s ease-out forwards;
}

.mode-card:hover .mode-shine {
  opacity: 1;
}

.mode-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 16, 42, 0.88) 100%);
  z-index: 1;
}

.mode-card span {
  position: relative;
  z-index: 3;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 1rem 2.2rem;
  margin: 0 0 1.5rem;
  animation: fadeUp 0.7s ease-out 1.1s both;
}

.contact-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(237, 234, 230, 0.5);
  font-weight: 600;
}

.contact-box a {
  color: var(--gold-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.contact-box a:hover {
  color: var(--white);
}

.phone-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  font-family: Montserrat, sans-serif;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 6vw 1.8rem;
  color: rgba(237, 234, 230, 0.55);
  font-size: 0.85rem;
  animation: fadeUp 0.7s ease-out 1.2s both;
}

.meta {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

@media (max-width: 720px) {
  .top {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .arabic-name {
    order: 3;
    width: 100%;
    font-size: 0.85rem;
  }

  .lang {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  .stage {
    padding-top: 4vh;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .kicker {
    letter-spacing: 0.22em;
    font-size: 0.65rem;
  }

  .modes {
    grid-template-columns: 1fr;
  }

  .mode-card {
    min-height: 140px;
    padding: 1rem;
  }

  h1 {
    font-size: clamp(2.1rem, 12vw, 4rem);
  }

  .foot {
    flex-direction: column;
    text-align: center;
  }
}
