/* ================= MOBILE FIRST ================= */

/* ================= MOBILE HERO ================= */
.mobile-hero {
  padding-top: 100px;
  background: #f5f0eb;
  height: 100vh;
}

.mobile-hero_content {
  margin-top: 30px;
  margin-inline: 24px;
}

.mobile-hero-title {
  font-family: 'Lifta Swash Fixed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #1f1f1f;
  line-height: 160%;
  text-align: center;
  margin-bottom: 20px;
}

.mobile-hero-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #5b5b5b;
  text-align: right;
  margin-bottom: 40px;
  text-align: center;
}

.mobile-map-container {
  position: relative;
  width: 100%;
  height: 100%;
  margin-top: 20px;
}

.mobile-map-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tooltip_mobile {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  background: #fff;
  padding: 16px 12px;
  font-size: 18px;
  font-weight: 500;
  color: #344054;
  border-radius: 16px;
  width: fit-content;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  animation: 2s linear infinite alternate mobile-bounce;
}

.hero-tooltip_mobile::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%);
  width: 0px;
  height: 0px;
  border-top: 11px solid #fff;
  border-left: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 11px solid transparent;
}

.mobile-floating-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 30;
  width: 90%;
  max-width: 320px;
}

.mobile-floating-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #1f1f1f;
  text-align: center;
  font-weight: 600;
}

/* ================= PARTNERS ================= */
.partners {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.partners-container {
  max-width: 2000px;
  margin: 0 auto;
}

.partners-content {
  width: fit-content;
  max-width: 90%;
  margin: 0 auto 50px;
}

.partners-label {
  font-family: 'Lifta Swash Fixed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.6;
  display: block;
  margin-bottom: 30px;
  text-align: center;
  width: fit-content;
}

.partners-logos {
  margin-bottom: 40px;
  padding: 0 20px 10px;
  overflow: hidden;
  width: 100%;
  mask: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
}

.partners-logos__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: max-content;
  margin: 0 auto;
  gap: 16px;
  height: 100%;
  animation: slide-mobile 20s linear infinite;
}

.partner-card {
  width: 138px;
  height: 142px;
  border-radius: 12px;
  border-width: 3px;
  padding: 16px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #6ef2c2, #f6c177) border-box;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.partner-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partners-title {
  font-family: 'Lifta Swash Fixed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.4;
}

.partners-desc {
  margin: 0 auto 30px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 24px;
  line-height: 1.8;
  color: #dadada;
}

.partners-rocks {
  background-image: url('/images/rocks-background.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 1000px;
}

.partners-rocks img {
  width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

/* ================= ABOUT ================= */
.about {
  background: #000;
  padding: 60px 0;
  color: #fff;
}

.about .container {
  width: 90%;
  max-width: 2000px;
  margin: 0 auto;
}

.about-header {
  text-align: right;
  margin-bottom: 40px;
}

.about-header h2 {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 800;
  font-family: 'Lifta Swash Fixed', sans-serif;
}

.about-header p {
  color: #ccc;
  line-height: 1.6;
  font-size: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  direction: ltr;
}

.about-grid > div {
  width: 100%;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: #e9e4dc;
  color: #000;
  padding: 24px 20px;
  border-radius: 16px;
  border: 2px solid #6ef2c2;
  text-align: right;
}

.stat-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #130c07;
}

.stat-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #130c07;
}

.about-rock {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid #6ef2c2;
  z-index: 0;
  display: flex;
  align-items: end;
  justify-content: end;
}

.about-rock video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rock-overlay {
  color: #fff;
  direction: rtl;
  padding: 20px;
  width: 100%;
  background-image: linear-gradient(0deg, #99989b, #98979a, transparent);
}

.rock-overlay > span {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.rock-overlay a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.rock-overlay a > span {
  transition: margin 300ms linear;
}

.rock-overlay a:hover > span {
  margin-right: 4px;
}

.about-map {
  background: #f6f1e8;
  border-radius: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  border: 3px solid #9ff5e1;
}

.about-map h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #000;
  text-align: center;
}

.about-map p {
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
  color: #363636;
  margin-bottom: 20px;
}

.map-wrapper {
  background-image: url(images/full-map.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  height: 100%;
  width: 100%;
}

.map-wrapper img {
  width: 100%;
  opacity: 0.6;
}

.about-tooltip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 8px;
  color: #344054;
  text-align: center;
  line-height: 1.6;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  animation: 2s linear infinite alternate mobile-bounce;
}

.about-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%);
  width: 0px;
  height: 0px;
  border-top: 11px solid #fff;
  border-left: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 11px solid transparent;
}

/* ================= PRODUCTS ================= */
.products {
  padding: 120px 0;
  background: #ffffff;
  direction: ltr;
}

.products-layout {
  width: fit-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.products-intro {
  display: flex;
  flex-direction: column;
  direction: rtl;
}

.products-intro h2 {
  font-size: 24px;
  font-weight: 800;
  color: #2c3e5d;
  font-family: 'Lifta swash fixed';
  line-height: 160%;
  text-align: right;
  margin-bottom: 16px;
}

.products-intro p {
  font-size: 20px;
  line-height: 1.6;
  color: #2c3e5d;
  font-weight: 500;
  max-width: 320px;

  font-family: 'IBM Plex Sans Arabic';
  text-align: right;
  margin-bottom: 48px;
}

.products-btn {
  align-self: flex-start;
  text-align: center;
  padding: 16px 32px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  color: #ffffff;
  border: 3px solid transparent;
  background:
    linear-gradient(#e58b2a, #e58b2a) padding-box,
    linear-gradient(135deg, #6ef2c2, #8c7cff, #f6c177) border-box;
  transition: 0.3s ease;
  margin-bottom: 16px;
  display: inline-block;
  width: fit-content;
}

.product-card {
  width: 100%;
  position: relative;
  background: #fbf5ee;
  border-radius: 32px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 530px;
  border: 3px solid transparent;
  background:
    linear-gradient(#fbf5ee, #fbf5ee) padding-box,
    linear-gradient(135deg, #6ef2c2, #8c7cff, #f6c177) border-box;
}

.card-content h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #2c3e5d;
  font-family: 'Lifta swash fixed';
  text-align: right;
}

.card-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #3e4c59;
  text-align: right;
}

.product-card img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-top: auto;
}

/* ================= ALLIANCES ================= */
.alliances {
  padding: 60px 5px;
  direction: rtl;
  background: #ffffff;
}

.alliances-heading {
  text-align: right;
  font-size: 32px;
  font-weight: 800;

  color: #2c3e5d;
  font-family: 'Lifta swash fixed';
  margin-bottom: 50px;
}

.alliances-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alliances-grid > div {
  flex-shrink: 0;
}

.alliance-item {
  background: #fbf5ee;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid transparent;
  background:
    linear-gradient(#f8f1ec, #f8f1ec) padding-box,
    conic-gradient(#d77dee, #facb7c, #89f9e8, #9299fc, #d77dee) border-box;
  width: 100%;
  margin: 0 auto;
}

.alliance-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.alliance-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.alliance-body p {
  font-size: 24px 45px;
  line-height: 1.6;
  color: #130c07;
  margin-bottom: 20px;
}

.btn-logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  direction: ltr;
}

.alliance-brand {
  width: 200px;
  height: 60px;
}

.alliance-cta {
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border: 3px solid transparent;
  background:
    linear-gradient(#d97706, #d97706) padding-box,
    conic-gradient(#d77dee, #facb7c, #89f9e8, #9299fc, #d77dee) border-box;
  transition: 0.3s;
}

/* ================= DESKTOP STYLES (768px and above) ================= */

@media (min-width: 514px) {
  .about-grid {
    grid-template-columns: 1fr 2fr;
    grid-template-rows: repeat(2, 1fr);
  }

  .about-map {
    grid-row: 1;
    grid-column: span 2;
  }
}

@media (min-width: 768px) {
  .mobile-header,
  .mobile-hero {
    display: none;
  }

  /* Desktop Hero */
  .hero {
    position: relative;
    background: #f5f0eb;
    display: flex;
    height: max(100vh, 1000px);
  }

  .hero-title {
    position: absolute;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1009px;
    font-family: 'Lifta Swash Fixed', sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.6;
    text-align: center;
    color: #363636;
    z-index: 5;
  }

  .hero-right {
    width: 50%;
    position: relative;
    overflow: hidden;
  }

  .hero-right img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }

  .cards-wrapper {
    position: absolute;
    inset: 0;
  }

  .info-card h3 {
    font-size: 20px;
    font-weight: 800;
    line-height: 100%;
    color: #130c07;
  }

  .info-card p {
    font-size: 20px;
  }

  .info-card {
    position: absolute;
    width: 218px;
    min-height: 170px;
    padding: 20px;
    background: #f8f1ec;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: 0.3s ease;
  }

  .info-card:nth-child(1) {
    top: 30%;
    right: 7%;
  }
  .info-card:nth-child(2) {
    top: 50%;
    left: 25%;
  }
  .info-card:nth-child(3) {
    top: 60%;
    right: 11%;
  }
  .info-card:nth-child(4) {
    top: 75%;
    left: 20%;
  }

  .hero-left {
    width: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f8f1ec;
    overflow: hidden;
  }

  .map {
    position: relative;

    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    margin-top: 200px;
    padding-top: 90px;
    padding-right: 20px;
    z-index: 0;
  }

  .map img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
  }

  .map .hero-desc {
    width: 601px;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.6;
    color: #2c3e5d;
  }

  .hero-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-20%, 30%);
    background: #fff;
    padding: 16px 12px;
    font-size: 18px;
    font-weight: 500;
    color: #344054;
    border-radius: 16px;
    width: fit-content;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    animation: 1s linear infinite alternate bounce;
  }

  .hero-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%);
    width: 0px;
    height: 0px;
    border-top: 11px solid #fff;
    border-left: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-right: 11px solid transparent;
  }

  /* Desktop Partners */
  .partners-label {
    text-align: right;
    font-size: 20px;
  }

  .partners-logos__inner {
    gap: 30px;
    animation: slide-desktop 20s linear infinite;
  }

  .partner-card {
    width: 277px;
    height: 285px;
    border-radius: 24px;
  }

  .partners-title {
    font-size: 40px;
  }

  /* Desktop About */
  .about-grid {
    grid-template-columns: 1fr 3fr 5fr;
    grid-template-rows: 1fr;
  }

  .stat-card {
    width: 180px;
    height: 140px;
  }

  .about-map {
    grid-row: 1;
    grid-column: 3;
  }

  /* Desktop Products */
  .products-layout {
    flex-direction: row;
  }

  .products-intro {
    min-height: 530px;
    width: auto;
  }

  .products-intro h2,
  .products-intro p {
    text-align: right;
  }

  .products-btn {
    align-self: flex-start;
  }

  .products-arrows {
    align-self: flex-end;
    justify-content: flex-start;
  }

  .product-card {
    width: 453px;
    min-height: 530px;
  }

  .alliances {
    padding: 60px 20px;
  }

  /* Desktop Alliances */
  .alliance-media img {
    height: 320px;
  }

  .alliances-grid {
    flex-direction: row;
  }

  .alliance-item {
    width: 90%;
  }

  .btn-logo {
    flex-direction: row-reverse;
    justify-content: space-between;
  }
}

@media (min-width: 1117px) {
  .map .hero-desc {
    display: flex;
  }

  .about-grid {
    gap: 32px;
  }
}

@keyframes bounce {
  to {
    transform: translate(-20%, 40%);
  }
}

@keyframes mobile-bounce {
  to {
    transform: translate(-50%, -85%);
  }
}

@keyframes slide-mobile {
  to {
    transform: translateX(calc(50% + 8px));
  }
}

@keyframes slide-desktop {
  to {
    transform: translateX(calc(50% + 15px));
  }
}
