*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}
:root {
  /* 🎨 أساسي */
  --primary: #E62727;       /* CTA - الأحمر */
  --secondary: #1E93AB;     /* التركواز */

  /* 🎯 ألوان مساعدة */
  --accent-gold: #F59E0B;  /* ذهبي */
  --accent-purple: #9333EA;/* بنفسجي */

  /* 🌐 خلفيات */
  --background-light: #F9FAFB;
  --background-dark: #0F172A;

  /* ✍ النصوص */
  --text-dark: #1E293B;
  --text-light: #e5e6e6;

  /* 🌈 تدرجات */
  --gradient-blue: linear-gradient(150deg, #06B6D9, #2874de);
  --primary-light:linear-gradient(135deg, #c2185b, #6a1b9a);
  --gradient-dark: linear-gradient(150deg, #06B6D9, #1E3A8A);
}
body {
  background: linear-gradient(160deg, #ddf8fd, #dbf2f6, #f8f9fa );
  min-height: 100vh;
  margin: 0;
}
/* =========================================head=============================================== */
header {
  position: relative; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 4%;
  background-color: var(--secondary);
  color: white;
  flex-wrap: wrap;
  z-index: 2;
}
.logo img {
  height: 35px;
}
.logo:hover img{
  transform: scale(1.1);
  transition: transform 0.7s ease;
  filter: invert(1); /* يقلب الأبيض لأسود */
}
.nav-links {
  display: flex;
  gap: 20px;
}
.nav-links a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 18px;
}
.nav-links a:hover {
  color:#1b4d3e;
}
.social-icons a {
  color: rgb(254, 254, 254);
  font-size: 18px;
  margin-right: 15px;
}
.social-icons a:hover {
  color: #1b4d3e;
}
.img-main{
  width:99%;
  margin: 20px 0.5% 100px 0.5%;
  display: flex;
  justify-content: center;
}
.img-main img{
  object-fit: cover;
  width: 99%;
  height: 80vh;
  border-radius: 3px;
  box-shadow: #4c363e 0px 0px 10px;
}
/*=======================================WRAPPER============================================ */
.loader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 90px;
  margin: 80px auto;
  perspective: 780px;
}

.text {
  font-size: 20px;
  font-weight: 700;
  color: #767676;
  z-index: 10;
}

.load-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 50%;
}

.load-inner.load-one {
  left: 0%;
  top: 0%;
  border-bottom: 3px solid #5c5edc;
  animation: rotate1 1.15s linear infinite;
}

.load-inner.load-two {
  right: 0%;
  top: 0%;
  border-right: 3px solid #9147ff;
  animation: rotate2 1.15s 0.1s linear infinite;
}

.load-inner.load-three {
  right: 0%;
  bottom: 0%;
  border-top: 3px solid #3b82f6;
  animation: rotate3 1.15s 0.15s linear infinite;
}
@keyframes rotate1 {
  0% {
    transform: rotateX(45deg) rotateY(-45deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(45deg) rotateY(-45deg) rotateZ(360deg);
  }
}
@keyframes rotate2 {
  0% {
    transform: rotateX(45deg) rotateY(45deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(45deg) rotateY(45deg) rotateZ(360deg);
  }
}
@keyframes rotate3 {
  0% {
    transform: rotateX(-60deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(-60deg) rotateY(0deg) rotateZ(360deg);
  }
}

/* ==================================== General Style ========================================== */
.about {
  margin: 40px auto;
  text-align: center;
  border-radius: 20px;
  max-width: 1100px;
  padding: 5px;
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
  background-image: linear-gradient(144deg,#AF40FF, #5B42F3 50%,#037780);
}
.card__content {
  background: linear-gradient(to bottom, #02cef7f6, #b0ecf4);
  border-radius: 17px;
  padding:80px;
  width: 100%;
  height: 100%;
}    
.about h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color:var(--text-dark);
}
.about p {
  font-size: 1.2rem;
  margin-bottom: 45px;
  color: rgb(89, 89, 89);
}section {
  padding: 60px 20px;
  text-align: center;
}
/*-------------------button-------------------*/
button {
  appearance: button;
  background-color: #1899D6;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 20px;
  margin: 0;
  outline: none;
  overflow: visible;
  padding: 13px 19px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
}
button:after {
  background-clip: padding-box;
  background-color: #1CB0F6;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}
button:main, button:focus {
  user-select: auto;
}

button:hover:not(:disabled) {
  filter: brightness(1.1);
}

button:disabled {
  cursor: auto;
}

button:active:after {
  border-width: 0 0 0px;
}

button:active {
  padding-bottom: 10px;
}
/* ============================================== Results Section ====================================== */
.results{  
  border-radius: 10px;
  background: linear-gradient(to bottom, #06B6D9, #e0f7fa);
  margin: 60px 5%;
  padding: 30px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.result-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.result-card img {
  width: 100%;
  display: block;
}
.result-card:hover {
  transform: translateY(-10px);
}
/* ======================================= Services Section ========================================== */
.services{
  background: linear-gradient(to bottom, #067a91, #e0f7fa);
  margin: 40px 5%;
  border-radius: 10px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;  
  padding: 40px;
}
.service-card {
  background: linear-gradient(135deg, #e63946, #ff6b6b);
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  font-size: 18px;
  font-weight: bold;
}
.service-card {
  background: linear-gradient(135deg, #e63946, #ff6b6b);
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.service-card:hover {
  transform: scale(1.05);
}
/* =============================================== Why Us Section ======================================= */
.why-us {
  background: linear-gradient(to bottom, #06B6D9, #e0f7fa);
  border-radius: 15px;
  max-width: 900px;
  margin:5% auto;
}
.why-us ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.why-us li {
  font-size: 18px;
  padding: 10px;
  margin: 5px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: right;
}
/* ====================================== Final CTA Section ===================================== */
.cta-final {
  background: linear-gradient(to bottom, #02cef7f6, #b0ecf4);
  padding: 70px 20px;
  border-radius: 15px;
  margin: 8% ;
  border: #0F172A 3px solid;
}
.cta-final h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--text-dark);
}
.cta-final p {
  font-size: 20px;
  margin-bottom: 25px;
  color: var(--text-dark);
}
/*=============================================loding=========================================*/
.loader-section{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px auto;
}
.loader1 {
  text-align: center;
  position: relative;
  display: flex;
}

.loader1 .ball {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.ball {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 8px 5px, white 5%, black);
  position: relative;
  transform-origin: 50% -100px;
}

.ball:last-child {
  animation: balance-right 1.2s infinite linear;
}

.ball:first-child {
  animation: balance-left 1.2s infinite linear;
}

@keyframes balance-right {
  0% {
    transform: rotate(0deg);
    animation-timing-function: linear;
  }

  50% {
    transform: rotate(0deg);
    animation-timing-function: ease-out;
  }

  75% {
    transform: rotate(-30deg);
    animation-timing-function: ease-in;
  }
}

@keyframes balance-left {
  0% {
    transform: rotate(0deg);
    animation-timing-function: ease-out;
  }

  25% {
    transform: rotate(30deg);
    animation-timing-function: ease-in;
  }

  50% {
    transform: rotate(0deg);
    animation-timing-function: linear;
  }
}

/*==========================================footer============================================ */
.footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; 
  gap: 40px;
  background: #1b1b1b;
  padding: 50px 8%;
  text-align: center;
}
.footer-bottom {
  text-align: center;
  background-color: #1b1b1b;
  font-size: 14px;
  color: #d5d4d4;
  padding-bottom: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer h1, .footer h2 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #ffcc00;
}
.footer p {
  margin: 10px 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  color:var(--text-light);
  gap: 8px;
}
.footer-logo {
  margin-top: 15px;
  padding: 5px;
  max-width: 120px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(245, 197, 3, 0.5);
}
.footer .social-icons {
  margin-top: 15px;
}
.footer .social-icons a {
  margin: 0 8px;
  font-size: 22px;
  color: #fff;
  transition: 0.3s;
}
.footer .social-icons a:hover {
  color: #ffcc00;
}
.footer-left nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ddd;
  margin: 8px 0;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 16px;
}
.footer-left nav a:hover {
  color: #ffcc00;
}
/*================================================mobile================================================*/
@media (max-width: 768px) {
  header { /*--------------head----------------------*/
    flex-direction: row;
    justify-content: space-between;
      padding: 5px 3%;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 5px;
    flex-wrap: wrap;
  }
  .logo img {
    height: 25px;
  }
  .social-icons a {
    font-size: 14px;
    margin-right: 8px;
  }
  .results{  
  margin: 60px 1%;
  padding: 20px;
  }
  .services{
  margin: 40px 1%;
}
  .services-grid {
    margin: 40px 1%;
    padding: 20px;
  }
  .why-us {
  margin:5% 1%;
}
  .cta-final {
    margin: 8% 1% ;
  }
  .logo {
    order: 2;
  }
  .social-icons {
    order: 1;
  }
  .img-main img{
    width: 99%;
    height:28vh;
  }
  .about {
    margin: 5% 1% ;
  }
  .card__content {
  padding:35px 5px;
  }
  .package-details {  /*-----------package-details------------*/
    padding: 15px;
  }
  .package-details h1 {
    font-size: 24px;
  }
  .package-details ul li {
    font-size: 19px;
    padding: 12px 15px;
  }
  .other-packages {   /*-----------other-Packages------------*/
    margin: 60px 0px 80px  0px;
  }
  .package-card {
    font-size:larger;
  }
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .footer {  /*------------------------footer----------------*/
    grid-template-columns: 1fr;   /* يخليهم تحت بعض */
    text-align: center;           /* توسيط النصوص */
  }
  .footer p {
    justify-content: center;
  }
  .footer-left nav a {
    justify-content: center;
  }
  .footer .social-icons {
    display: flex;
    justify-content: center;
  }
}
/*======================================reveal===========================================*/
/* الحالة الأولية لكل العناصر */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease;
}
/* الحالة بعد ما تظهر */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
