/* styles.css */

body {
  font-family: "Almarai", sans-serif;
  margin: 0;
  padding: 0;
  direction: rtl;
  background-image: linear-gradient(to bottom, #ffffff, #faf9f7);
}
body.en-body {
  direction: ltr !important;
}
section:not(.about) {
  overflow: hidden;
}
.w-100 {
  width: 100%;
}
.text-bold {
  font-weight: bold;
}
.text-center {
  text-align: center;
}
.text-semibold {
  font-weight: 600;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.flex {
  display: flex;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.items-center {
  align-items: center;
}
#loading-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, #ffffff, #faf9f7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-page.hidden {
  opacity: 0;
  visibility: hidden;
}

[data-reveal] {
  transform: translateY(50px);
  opacity: 0;
  transition: 0.7s all ease-in-out;
  transition-delay: var(--delay);
}
[data-reveal="left"] {
  transform: translate(-50px, 0);
}
[data-reveal="right"] {
  transform: translate(50px, 0);
}
[data-reveal].revealed {
  transform: translate(0, 0);
  opacity: 1;
}
.button-92 {
  --c: #fff;
  /* text color */
  background: linear-gradient(90deg, #0000 33%, #fff5, #0000 67%)
      var(--_p, 100%) / 300% no-repeat,
    #faf9f7;
  /* background color */
  color: #0000;
  border: none;
  transform: perspective(500px) rotateY(calc(20deg * var(--_i, -1)));
  text-shadow: calc(var(--_i, -1) * 0.08em) -0.01em 0 #1d1102,
    calc(var(--_i, -1) * -0.08em) 0.01em 2px #0004;
  outline-offset: 0.1em;
  transition: 0.3s;
  border: 1.5px solid #0003;
  border-radius: 10px;
}

.button-92:hover,
.button-92:focus-visible {
  --_p: 0%;
  --_i: 1;
}

.button-92:active {
  text-shadow: none;
  color: #1d1102;
  box-shadow: inset 0 0 9e9Q #0005;
  transition: 0s;
}

.button-92 {
  top: 15px;
  left: 15px;

  font-weight: bold;
  font-size: 2rem;
  margin: 0;
  cursor: pointer;
  padding: 0.1em 0.3em;
}

.hero {
  text-align: center;
  padding: 20px;
}

.hero header h1 {
  font-size: 2.5rem;
  color: #1d1102;
  margin-top: 3rem;
}
header img {
  width: 150px;
}

.phone-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.phone-images .phone {
  max-width: 30%;
  height: auto;
}
body.en-body .lines-texture {
  right: 0;
}
.small-star-texture {
  left: -75px;
  top: 35%;
}
.setting-texture {
  left: -60px;
  top: 55%;
}
.at-texture {
  left: 35%;
  top: -30px;
}
.pointer-texture {
  left: 23%;
  top: -20px;
}

.details {
  margin-top: 5rem;
  color: #1d1102;
  gap: 30px;
}
.details div {
  width: 304.5px;
  display: flex;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  cursor: pointer;
}
.details div:not(:first-child) {
  justify-content: center;
}
.details div:first-child {
  justify-content: center;
}
.details div:last-child {
  justify-content: flex-end;
}
.details p {
  font-size: 20px;
  line-height: 32px;
  font-weight: 400;
}
body.en-body .details p {
  font-size: 18px;
  line-height: 28px;
}

.app-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.app-buttons a {
  transition: transform 0.3s ease;
}
.app-buttons a:hover {
  transform: translateY(-5px);
}

.app-buttons img {
  width: 150px;
  height: auto;
}

.key-bottom {
  bottom: -25px;
  width: 100%;
  height: 40px;
}
.key-bottom img {
  width: 80%;
  height: auto;
  max-width: 100% !important;
}
@media (max-width: 768px) {
  .phone-images > img {
    max-width: 45%;
  }
  .phone-images .key-bottom img {
    max-width: 100% !important;
  }
  .app-buttons img {
    width: 120px;
  }
}

/* About Section */
.about {
  text-align: center; /* Center-align content */
  padding: 40px 20px;
  border-left: 14px solid rgba(242, 178, 0, 1); /* Golden border */
  border-right: 14px solid rgba(242, 178, 0, 1);
  margin-top: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about .content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #121212;
}

.about .content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #595957;
  margin: 0 auto;
  max-width: 800px;
}
.first-yellow-star {
  top: -10%;
  left: 30%;
}
.second-yellow-star {
  top: -5%;
  left: 53%;
}
.third-yellow-star {
  bottom: -10%;
  left: 30%;
  transform: scale(1.4);
}
.fourth-yellow-star {
  bottom: -10%;
  right: 30%;
}
.first-small-black-star {
  top: -3%;
  left: 73%;
}
.second-small-black-star {
  left: 33%;
}

@media (max-width: 768px) {
  .about {
    border-left: 3px solid #f4b000;
    border-right: 3px solid #f4b000;
  }

  .about .content h2 {
    font-size: 1.5rem;
  }

  .about .content p {
    font-size: 1rem;
  }
}

/* General Section Styling */
.app-services {
  background-color: #ffffff;
  text-align: center;
  padding: 40px 20px;
  margin-top: 6rem;
}

.app-services h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #121212;
  margin-bottom: 40px;
}

/* Cards Container */
.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual Card Styling */
.service-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0px 12px 24px 3px rgba(35, 35, 31, 0.12);
  border: 1.5px solid rgba(217, 217, 212, 0.75);
  padding: 20px;
  width: 300px;
  text-align: center;
  transition: transform 0.5s ease;
}
.service-card div {
  width: 100%;
  display: flex;
  justify-content: center;
}
.service-card div div {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(242, 178, 0, 0.12);
  border-radius: 8px;
  padding: 4px;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  max-width: 50px;
}

.service-card p {
  font-size: 1.2rem;
  color: #595957;
  font-weight: 400;
  line-height: 1.6;
}

.faq {
  display: grid;
  grid-template-columns: 1fr;
  margin: 20px auto;
  gap: 50px;
  background-color: #fff;
  border-radius: 8px;
  padding: 50px 40px;
  max-width: 1200px;
  /* Remove fixed height */
  overflow: hidden;
}

.faq h2 {
  font-size: 28px;
  color: #121212;
  margin-bottom: 20px;
  font-weight: 800;
}

.faq p {
  font-size: 1.2rem;
  color: #595957;
  margin-bottom: 20px;
  line-height: 36px;
}

.faq-item {
  width: 100%;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 28px;
  font-weight: 400;
  color: #121212;
  padding: 10px 0;
}

.faq-question:hover {
  color: rgba(242, 178, 0, 1);
}

.faq-answer {
  font-size: 20px;
  color: #595959;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.faq-answer.open {
  opacity: 1;
  /* max-height is dynamically set in JS */
}

.faq-answer.open {
  display: block;
  max-height: 500px; /* Adjust max height according to your content */
  opacity: 1;
}

.toggle-icon {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  font-weight: bold;
  font-size: 25px;
  transition: transform 0.3s ease-in-out;
  display: inline-block; /* Ensures transform works as expected */
}

.faq-answer.open + .faq-question .toggle-icon {
  transform: rotate(45deg); /* Rotate + to form an X */
}

.faq-setting {
  right: -35px;
  bottom: 10%;
  transform: scale(0.7);
}
.faq-small-star {
  right: -30px;
  top: 30%;
  transform: scale(0.7);
}
body.en-body .faq-small-star {
  left: -45px;
}
body.en-body .faq-setting {
  left: -55px;
}
.faq-pointer {
  left: 20%;
  top: 0;
}
.faq-at {
  right: 50%;
  top: -5%;
}
.faq-key {
  right: 50%;
  top: 100%;
}

.footer {
  color: #1d1102;
  padding: 60px 120px;
  display: flex;
  justify-content: center;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  background-color: #d2d3d2;
  border-radius: 16px;
  padding: 65px 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer .logo img {
  width: 150px;
}

.contact-button {
  background-color: #fff;
  color: #111;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s, color 0.3s;
  font-family: "Almarai", sans-serif;
}

.contact-button:hover {
  background-color: #ddd;
  color: #000;
}

.arrow-icon {
  width: auto;
}

.social-icons {
  display: flex;
  gap: 30px;
  margin-bottom: 10px;
}
.social-icon img {
  width: 28px;
}

.social-icon {
  transition: transform 0.3s, color 0.3s;
}

.social-icon:hover {
  color: #ddd;
  transform: translateY(-5px);
}

/*animation */
.left-right-animation {
  animation: left_right 6s ease-in infinite alternate-reverse;
}
.left-right-short-animation {
  animation: left_right_short 6s ease-in infinite alternate-reverse;
}

@keyframes left_right {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-20px);
    transform: translateX(-20px);
  }
}
@keyframes left_right_short {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-7px);
    transform: translateX(-7px);
  }
}
.up-down-animation {
  animation: up_down 6s ease-in infinite alternate-reverse;
}

@-webkit-keyframes up_down {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
  }
}

@keyframes up_down {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
  }
}

/*responsive design*/

@media screen and (max-width: 1200px) {
  .setting-texture {
    left: -35px;
  }
  .small-star-texture {
    left: -38px;
  }
  .details {
    gap: 0;
  }
  .details p {
    font-size: 18px;
  }
  .details div:last-child {
    justify-content: center;
  }
  .faq {
    grid-template-columns: 1fr;
    place-items: center;
  }
  .faq > div {
    width: 100%;
  }
  .faq-item {
    width: 100%;
  }
  .faq-key {
    right: 50%;
    bottom: -21%;
    transform: scale(0.7);
  }
  .faq-small-star,
  .faq-setting {
    display: none;
  }
}
@media screen and (max-width: 992px) {
  .setting-texture {
    left: -32px;
  }
  .small-star-texture {
    left: -30px;
  }

  .at-texture {
    top: -17px;
  }
  .pointer-texture {
    top: -8px;
  }
  .key-bottom {
    bottom: -25px;
  }
  .details {
    gap: 20px;
  }
  .details p {
    font-size: 15px;
  }
  .details img {
    width: 15px;
  }
  .details > div {
    width: 100%;
  }
  .second-small-black-star {
    opacity: 0.5;
  }
  .footer {
    padding: 50px 50px;
  }
}

@media screen and (max-width: 768px) {
  .hero header h1 {
    font-size: 2.1rem;
  }
  .setting-texture {
    left: -23px;
    transform: scale(0.8);
  }
  .small-star-texture {
    left: -22px;
    transform: scale(0.8);
  }
  .lines-texture {
    right: -29%;
    top: -9%;
  }
  .details {
    flex-direction: column;
    gap: 0;
  }
  .details div:first-child {
    justify-content: flex-start;
  }
  .details div:last-child {
    justify-content: flex-end;
  }
  .details p,
  body.en-body .details p {
    font-size: 18px;
    line-height: 25px;
    font-weight: 600;
  }
  .app-services h2,
  .faq h2 {
    font-size: 1.5rem;
  }
  .faq-question {
    font-size: 21px;
  }
  .footer {
    padding: 50px 20px;
  }
  .footer-container {
    flex-direction: column;
    gap: 20px;
    padding: 65px 45px 90px;
  }

  .footer .logo img {
    width: 130px;
  }
  .social-icons {
    gap: 20px;
  }
  .social-icon img {
    width: 25px;
  }
  .button-92 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 576px) {
  .hero header h1 {
    font-size: 1.7rem;
    margin-bottom: 2.5rem;
  }
  .phone-images {
    gap: 8px;
  }
  .at-texture img,
  .pointer-texture img,
  .setting-texture img,
  .small-star-texture img {
    transform: scale(0.7);
  }
  .details {
    flex-direction: column;
    gap: 0;
    margin-top: 4rem;
  }
  .details p,
  body.en-body .details p {
    font-size: 14px;
  }
  .lines-texture img {
    height: 400px;
  }
  .lines-texture {
    right: -55px;
    top: 0px;
    opacity: 0.7;
  }
  .faq {
    padding: 50px 20px;
  }
  .faq-question {
    line-height: 1.5;
  }
  
}

@media screen and (max-width: 400px) {
  .en-body .hero header h1 {
    font-size: 1.55rem;
  }
  body.en-body .details div {
    justify-content: center;
  }
}
