* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background-color: #111;
}
::-webkit-scrollbar-thumb {
  background-color: #ff2a5e;
}

body {
  background-color: #444;
  font-family: "cairo", sans-serif;
  transform-origin: top;
  position: relative;
  overflow-x: hidden;
  z-index: 10;
  height: 88vh;
}

a {
  color: #ff2a5e;
  text-decoration: none;
}

ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
}

p,
li,
h1,
h2,
h3,
h4,
h5,
h6 {
  direction: rtl;
}

button {
  background-color: #ff2a5e;
  border: none;
  padding: 10px;
  font-size: 20px;
  border-radius: 5px;
  color: #111;
  transition: 0.3s ease;
}

header {
  top: 0;
  height: 120px;
  position: fixed;
  width: 100%;
  padding: 10px 2% 0;

  display: flex;
  background-color: #111;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  border-bottom: 2px solid #ff2a5e;
}

header .logo {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}

header .logo span {
  color: #ff2a5e;
}

header .header_right {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

header .header_right_top {
  display: flex;
  justify-content: end;
  padding-right: 10px;
}

header .menu {
  display: flex;
  justify-content: end;
}

header .header_right .social_links {
  gap: 1.3rem;
}

header .header_right .social_links li a {
  font-size: 1.8rem;
}
#open-menu-btn,
#close-menu-btn {
  display: none;
}

.nav_menu {
  gap: 2.5rem;
}
.nav_menu li a {
  font-size: 1.1rem;
  transition: 0.5s;
  display: inline-block;
  animation: gotop 0.5s ease forwards;
  animation-delay: calc(0.2s * var(--i));
}
.nav_menu li a:hover {
  text-decoration: underline #ff2a5e;
  color: #ff2a5e;
}
@keyframes gotop {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  margin-top: 120px;
  height: calc(100vh - 130px);
}

.home p {
  font-size: 1.9rem;
  color: white;
  width: 50%;
  text-align: center;
}

.home .brand {
  font-size: 2rem;
  background-color: #ff2a5e;
  padding: 5px;
}

#Home h1 {
  font-size: 2rem;
  color: white;
}

.home .brand a {
  color: white;
  font-weight: bold;
}

.img_bg {
  width: 100%;
  min-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(images/NJ858.webp);

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 10px;
}

.solid {
  width: 100%;
  min-height: calc(100vh - 120px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}

#Packages h1 {
  font-size: 2rem;
  color: white;
  text-align: right;
}

.cards {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card {
  border: 1px solid #ccc;
  padding: 15px;
  width: 300px;
  height: 200px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* المهم هنا */
  align-items: end;
}

#Packages .cards {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

#Packages .card {
  border: 1px solid #ccc;
  padding: 15px;
  width: 300px;
  height: 370px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* المهم هنا */
  align-items: end;
}

#Packages .card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease-in;
}

#Packages .card h3 {
  margin-bottom: 7px;
  text-align: right;
}

#Packages .card p {
  margin-bottom: 3px;
  text-align: right;
  font-size: 0.9rem;
}

#Packages .card ul {
  flex-direction: column;
  justify-content: end;
  align-items: end;
}

#Packages .card li {
  text-align: right;
}

#Packages .card .ask {
  margin-top: 5px;
}

#Packages .card a {
  display: inline-block;
  margin-top: 10px;
  background-color: #ff2a5e;
  color: white;
  padding: 10px;
  border-radius: 5px;
  transition: 0.3s ease;
}

#Packages .card a:hover {
  background-color: #fe255b;
  box-shadow: 0px 0px 10px #ff2a5e;
}

#Products h1 {
  font-size: 2rem;
  color: white;
}

#Products {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.imgs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.img {
  width: 300px;
  height: 450px;
}

.img img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

#Site_links h1 {
  font-size: 2rem;
  color: white;
  text-align: right;
}

#Site_links .links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

#Site_links .links a {
  font-size: 2rem;
  color: white;
  background-color: #ff2a5e;
  padding: 10px 20px;
}

#Site_links .links a:hover {
  background-color: #fe255b;
  box-shadow: 0px 0px 30px #ff2a5e;
}

.container {
  color: white !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 30px !important;
}

.container ul {
  align-items: end !important;
  justify-content: end !important;
  flex-direction: column !important;
}

#About .container {
  color: white;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#About .container ul {
  align-items: end;
  justify-content: end;
  flex-direction: column;
}

#Contact h1 {
  font-size: 2rem;
  color: white;
}

#Contact .contact_bottom {
  background-color: #444;
  display: flex;
  width: 80%;
  justify-content: space-between;
  direction: rtl;
}

#Contact .contact_info {
  display: flex;
  gap: 20px;
  flex-direction: column;
  flex-wrap: wrap;
  background-color: #111;
  padding: 20px;
  font-size: 1.2rem;
  width: 30%;
}

#Contact form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 70%;
  padding: 30px;
  direction: rtl;
}

#Contact form input,
#Contact form textarea {
  width: 100%;
  padding: 10px;
  border: none;
  font-size: 1.1rem;
  outline: none;
  background-color: #222;
  color: white;
}

#Contact form textarea {
  resize: none;
  min-height: 100px;
}

#Contact form button {
  background-color: #ff2a5e;
  color: white;
  padding: 10px;
  border-radius: 5px;
  transition: 0.3s ease;
}

#Contact form button:hover {
  background-color: #fe255b;
  box-shadow: 0px 0px 10px #ff2a5e;
}

#Reviews {
  padding-bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#Reviews h1 {
  font-size: 2rem;
  color: white;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #111;
  color: white;
  text-align: center;
  padding: 2px;
  font-size: 1.1rem;
}

.anima2 {
  position: absolute;
  left: -30%;
  top: 50%;
  width: 50%;
  transform: translateY(-50%) rotate(180deg);
  z-index: -1;
}

.anima {
  position: absolute;
  right: -30%;
  top: 50%;
  width: 50%;
  transform: translateY(-50%);
  z-index: -1;
}

@media screen and (max-width: 1024px) {
  #open-menu-btn {
    display: inline-block;
  }
  .nav_menu {
    position: fixed;
    top: 5rem;
    right: 5%;
    height: fit-content;
    width: 18rem;
    flex-direction: column;
    gap: 0;
    display: none;
  }
  .nav_menu li {
    width: 100%;
    height: 4rem;
    animation: animateNavItem 0.4s linear forwards;
    transform-origin: top right;
    opacity: 0;
  }
  .nav_menu li:nth-child(2) {
    animation-delay: 0.2s;
  }
  .nav_menu li:nth-child(3) {
    animation-delay: 0.4s;
  }
  .nav_menu li:nth-child(4) {
    animation-delay: 0.6s;
  }
  .nav_menu li:nth-child(5) {
    animation-delay: 0.8s;
  }
  .nav_menu li:nth-child(6) {
    animation-delay: 1s;
  }
  .nav_menu li:nth-child(7) {
    animation-delay: 1.2s;
  }
  @keyframes animateNavItem {
    0% {
      transform: rotateZ(-90deg) rotateX(90deg) scale(0.1);
    }
    100% {
      transform: rotateZ(0) rotateX(0) scale(1);
      opacity: 1;
    }
  }
  .nav_menu li {
    margin: 0;
  }
  .nav_menu li a {
    animation: none;
  }
  .nav_menu li a {
    background-color: #1b1b1b;
    box-shadow: -4rem 6rem 10rem rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
  }
  .nav_menu li a:hover {
    background-color: #333;
    text-decoration: none;
  }
  .home p {
    font-size: 1.4rem;
  }
  .home .brand {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 600px) {
  .nav_menu {
    right: 10%;
  }
  .home p {
    font-size: 1.1rem;
    width: 85%;
  }

  .home .brand {
    font-size: 1.2rem;
  }
  header .header_right .social_links {
    gap: 1rem;
  }
  header .header_right .social_links li a {
    font-size: 1.5rem;
  }
  #Contact .contact_bottom {
    flex-direction: column;
  }
  #Contact .contact_info,
  #Contact form {
    width: 100%;
  }
  .anima {
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(180deg);
  }
  .anima2 {
    display: none;
  }
}
