@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500&display=swap");
* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

:root {
  --main-color: #fdfffc;
  --sec-color: rgb(241, 216, 168);
  --bg-color: #ffffff;
  --bg-card: #0f1114;
  --bg-two-color: #f1ecea;
}

/* navbar */
nav {
  background-color: rgba(19, 14, 6, 0.21);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(50px) !important;
}
.navbar-brand {
  color: var(--main-color);
  font-size: 25px;
  font-weight: 500;
  font-family: Cinzel, sans-serif;
}
.nav-link {
  color: var(--main-color) !important;
  margin-left: 10px;
  font-weight: 400;
  position: relative;
  font-size: 20px;
  font-family: Cinzel, sans-serif;
}
.nav-link::before {
  content: " ";
  width: 0%;
  height: 3px;
  background-color: var(--main-color);
  position: absolute;
  top: 75%;
  left: 0%;
  transition: 0.4s;
  border-radius: 10px;
}
.nav-link:hover.nav-link::before {
  width: 18%;
  overflow: hidden;
}
.navbar-toggler {
  color: var(--main-color) !important;
}
.icons-list {
  color: var(--main-color);
  font-weight: bold;
  font-size: 2.5rem;
}

/* home main */
.home {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../assest/images/1.png");
  height: auto;
}
.heading-main {
  color: var(--main-color);
  padding: 10rem 1rem 3rem 1rem;
  font-weight: bold;
  font-family: Cinzel, sans-serif;
}
.sub-main {
  color: var(--main-color);
  font-weight: 400;
  font-size: 15px;
  padding: 0 1rem 3rem 1rem;
  font-family: Cinzel, sans-serif;
}
@media screen and (min-width: 1044px) {
  .home {
    height: 100%;
  }
  .heading-main {
    font-size: 4rem !important;
  }
  .nav-link:hover.nav-link::before {
    width: 100% !important;
    overflow: hidden;
  }
  .img-Stadium {
    height: 75%;
    object-fit: cover !important;
    width: 90%;
  }
}
@media (min-width: 576px) {
  .nav-link:hover.nav-link::before {
    width: 13%;
    overflow: hidden;
  }
}

/* about */
.about {
  background-color: var(--bg-card);
}
.name-about {
  color: var(--bg-two-color) !important;
  font-family: Cinzel, sans-serif;
}
.img-about {
  width: 90%;
  margin: 3rem 1rem 3rem 1rem;
  border-radius: 20px;
  opacity: 100%;
}
.img-about:hover {
  opacity: 75%;
}
.p-about {
  color: var(--main-color);
  font-weight: 400;
  font-size: 20px;
  margin: 1rem;
  font-family: Cinzel, sans-serif;
}
.heading-about {
  color: var(--main-color);
  font-weight: bold;
  margin: 1rem;
  font-family: Cinzel, sans-serif;
}
.sub_two_about {
  color: var(--main-color);
  font-size: 16px;
  margin: 1rem;
  overflow: hidden !important;
  font-family: Cinzel, sans-serif;
}
@media screen and (min-width: 1044px) {
  .p-about {
    margin: 4rem 1rem 1rem 1rem;
  }
  .heading-about {
    margin: 1.5rem 1rem 2rem 1rem;
  }
  .sub_two_about {
    font-size: 18px;
  }
}

/* services cards */
.card-match {
  background-color: var(--bg-color);
  overflow: hidden;
}
.flip-card {
  background-color: transparent;
  width: 300px;
  height: 400px;
  perspective: 1000px;
  margin: 1rem auto;
  font-family: Cinzel, sans-serif;
  text-align: center!important;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flip-card-front {
  background-color: var(--bg-card);
  color: var(--main-color);
  vertical-align: middle;
}
.flip-card-back {
  background-color: var(--bg-card);
  color: var(--main-color);
  transform: rotateY(180deg);
}
.name-match {
  padding: 1rem 1rem 1rem 1rem;
}
.line-two {
  display: block;
  width: 6rem;
  height: 2.4px;
  margin: 0rem auto 0.3rem auto;
  background-color: var(--bg-two-color);
}
.services-name {
  text-align: center !important;
  font-weight: 500;
  font-size: 25px;
  overflow: hidden;
  font-family: Cinzel, sans-serif;
}

/* product */
.name-group-product {
  color: var(--bg-card) !important;
  padding: 15px 0 10px 0;
  font-family: Cinzel, sans-serif;
}
.line-product {
  display: block;
  width: 6rem;
  height: 2.4px;
  margin: 1.6rem auto;
  background-color: var(--bg-card);
}
.line {
  display: block;
  width: 6rem;
  height: 2.4px;
  margin: 1.6rem auto;
  background-color: var(--bg-two-color);
}
.img-Stadium {
  max-width: 90%;
  opacity: 75%;
  transition: 0.5s;
  border-radius: 30px;
}
.img-Stadium:hover {
  opacity: 100%;
}

/* footer - FIXED */
.footer {
  background-color: var(--bg-card);
  padding: 30px 0 10px 0;
}
.heading-footer {
  color: var(--bg-two-color);
  padding: 0 0 15px 0;
  text-align: left;
  font-family: Cinzel, sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.img-footer {
  max-width: 100%;
  margin: 0 auto;
}
.ul-footer {
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.li-footer {
  list-style: none;
  color: var(--main-color);
  font-weight: 400;
  font-size: 14px;
  padding: 6px 0;
  opacity: 0.8;
  overflow: hidden;
  text-align: left;
  font-family: Cinzel, sans-serif;
  transition: 0.3s all;
  line-height: 1.6;
}
.li-footer:hover {
  padding-left: 10px;
  transition: 0.3s all;
  cursor: pointer;
  opacity: 1;
}
.li-footer a {
  color: var(--main-color) !important;
  text-decoration: none;
}
.li-footer a:hover {
  color: var(--bg-two-color) !important;
}
.li-footer i {
  margin-right: 8px;
  width: 20px;
  display: inline-block;
}
.line-footer {
  display: block;
  width: 100%;
  height: 1px;
  margin: 15px 0 0 0;
  background-color: rgba(255, 255, 255, 0.15);
  overflow: hidden !important;
}
.end {
  background-color: var(--main-color);
  overflow: hidden;
  padding: 12px 0;
}
.end-footer {
  color: #0f1114 !important;
  font-size: 16px;
  font-weight: 600;
  padding: 0;
  text-align: center;
  font-family: Cinzel, sans-serif;
  margin: 0;
}

/* buttons */
.bto {
  background-color: transparent !important;
  border: solid var(--main-color) !important;
  margin: auto 1rem 3rem 1rem;
  outline: none !important;
  padding: 1rem;
  list-style: none;
  text-decoration: none !important;
}
.bto:hover {
  background-color: var(--bg-two-color) !important;
  color: var(--bg-card)!important;
}
.bto:hover a {
  color: var(--bg-card) !important;
}
a {
  list-style: none !important;
  text-decoration: none !important;
  color: var(--bg-two-color) !important;
  font-weight: bold;
}

/* scroll top */
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 20px;
  font-weight: 800;
  border: none;
  outline: none;
  background-color: var(--bg-card);
  color: var(--main-color);
  cursor: pointer;
  padding: 15px;
  height: 8%;
  border-radius: 5px;
}

/* Language Switcher */
.language-switcher {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
}

.lang-btn {
  background: var(--bg-card);
  color: var(--main-color);
  border: 2px solid var(--main-color);
  padding: 8px 16px;
  border-radius: 25px;
  font-family: Cinzel, sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(10px);
}

.lang-btn:hover {
  background: var(--main-color);
  color: var(--bg-card);
  transform: scale(1.05);
}

/* RTL Support for Arabic - FIXED */
html[dir="rtl"] .navbar-nav {
  margin-right: auto;
  margin-left: 0 !important;
}

html[dir="rtl"] .nav-link {
  margin-left: 0;
  margin-right: 10px;
}

html[dir="rtl"] .li-footer {
  text-align: right;
  padding-right: 0;
  padding-left: 0;
}

html[dir="rtl"] .li-footer:hover {
  padding-left: 0;
  padding-right: 10px;
}

html[dir="rtl"] .services-name,
html[dir="rtl"] .name-match {
  text-align: center !important;
}

html[dir="rtl"] .sub_two_about {
  text-align: right;
}

html[dir="rtl"] .heading-footer {
  text-align: right;
}

html[dir="rtl"] .li-footer i {
  margin-right: 0;
  margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .language-switcher {
    top: 70px;
    right: 10px;
  }
  .lang-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
  .heading-footer {
    text-align: center !important;
    padding-top: 15px;
  }
  .li-footer {
    text-align: center !important;
  }
  .li-footer:hover {
    padding-left: 0 !important;
  }
  html[dir="rtl"] .heading-footer {
    text-align: center !important;
  }
  html[dir="rtl"] .li-footer {
    text-align: center !important;
  }
  html[dir="rtl"] .li-footer:hover {
    padding-right: 0 !important;
  }
  .footer .row > div {
    margin-bottom: 10px;
  }
}
/* إجبار الأرقام على الاتجاه الصحيح */
.phone-number {
  direction: ltr !important;
  display: inline-block;
  unicode-bidi: embed;
}

/* أو استخدام هذه الطريقة البديلة */
.li-footer .bi-whatsapp + span,
.li-footer .bi-envelope + span {
  direction: ltr !important;
  display: inline-block;
}