
/* ==================== Reset & Global ==================== */
* {
  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: #eff0f0;

  /* 🌈 تدرجات */
  --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, #e2f5f8, #e1f5f8, #f8f9fa );
  min-height: 100vh;
  margin: 0;
}
/* ===================================== Header =============================================== */
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: var(--text-light);
  text-decoration: none;
  font-size: 18px;
}
.nav-links a:hover {
  color: var(--text-dark);
}
.social-icons a {
  color: var(--text-light);
  font-size: 18px;
  margin-right: 15px;
}
.social-icons a:hover {
  color: var(--text-dark);
}
/*=======================================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);
  }
}
/* ============================================== Hero Section ======================================== */
.card1 {
  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%,#036e76);
}
.card__content {
  background: linear-gradient(to bottom, #02cef7f6, #b0ecf4);
  border-radius: 17px;
  padding:80px 20px;
  width: 100%;
  height: 100%;
}    

.card1 h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color:var(--text-light);
}
.card1 p {
  font-size: 1.2rem;
  margin-bottom: 45px;
  color: var(--text-dark)
}
/* From Uiverse.io by mrhyddenn */ 
.btn {
  position: relative;
  padding: 10px 20px;
  border-radius: 7px;
  border: 2.5px solid rgb(61, 106, 255);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  background: var(--background-dark);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 0 transparent;
  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}

.btn:hover {
  background: rgb(61, 106, 255);
  box-shadow: 0 0 30px 5px rgba(0, 142, 236, 0.815);
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.btn:hover::before {
  -webkit-animation: sh02 0.5s 0s linear;
  -moz-animation: sh02 0.5s 0s linear;
  animation: sh02 0.5s 0s linear;
}

.btn::before {
  content: '';
  display: block;
  width: 0px;
  height: 86%;
  position: absolute;
  top: 7%;
  left: 0%;
  opacity: 0;
  background: #fff;
  box-shadow: 0 0 50px 30px #fff;
  -webkit-transform: skewX(-20deg);
  -moz-transform: skewX(-20deg);
  -ms-transform: skewX(-20deg);
  -o-transform: skewX(-20deg);
  transform: skewX(-20deg);
}

@keyframes sh02 {
  from {
    opacity: 0;
    left: 0%;
  }

  50% {
    opacity: 1;
  }

  to {
    opacity: 0;
    left: 100%;
  }
}

.btn:active {
  box-shadow: 0 0 0 0 transparent;
  -webkit-transition: box-shadow 0.2s ease-in;
  -moz-transition: box-shadow 0.2s ease-in;
  transition: box-shadow 0.2s ease-in;
}
/* ========================================== Portfolio Section ======================================== */
.portfolio {
  text-align: center;
  border-radius: 12px;
  padding: 60px 20px;
  margin: 100px 8%;
  background: linear-gradient(to bottom, #06B6D9, #e0f7fa);
}
.portfolio h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--background-light);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.portfolio-card {
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.portfolio-card:hover {
  transform: scale(1.05);
}
.portfolio-card img {
  width: 100%;
  height: auto;
  object-fit: contain; 
  background: #fff;   
  padding: 5px;       
}
/* ====================================== Services Section ============================================ */
.services {
  text-align: center;
  border-radius: 12px;
  padding: 80px 40px;
  margin: 100px 8%;
  background: linear-gradient(to bottom, #04bce1f6, #e0f7fa);
}
.services h2 {
  font-size: 1.8rem;
  margin-bottom: 50px;
  color: #c2185b;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service-card {
  background: #fff;
  color:var(--secondary);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-weight: bold;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
}
/* ================================= Value Section ======================================= */
.value {
  text-align: center;
  padding: 60px 20px;
  margin: 40px 8%;
  background: var(--secondary);
  border-radius: 12px;
}
.value h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #c2185b;
}
.value p {
  font-size: 1.2rem;
  color: #333;
}

/* ==================================== Testimonials Section ========================================== */
.testimonials {
  background: linear-gradient(to bottom, #06B6D9, #d3f3f8); 
  padding: 60px 20px;
  border-radius: 12px;
  margin: 80px 8%;
  text-align: center;
}
.testimonials h2 {
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 50px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 15px;
}
.testimonial-card span {
  font-weight: bold;
  color: #c2185b;
  display: block;
}
/* ==================== CTA Final Section ==================== */
.cta-final {
  background:linear-gradient(to bottom, #02cef7f6, #b0ecf4);
  text-align: center;
  color: var(--text-light);
  padding: 70px 20px;
  border-radius: 12px;
  margin: 90px 8%;
  border: #0F172A 3px solid;
}
.cta-final h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text-light);
}
.cta-final p {
  color:var(--text-dark);
}
.cta-final .cta-btn {
  background: var(--primary);
  color: #fff;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}
.cta-final .cta-btn:hover {
  background: var(--secondary);
  transform: scale(1.05);
}
/* From Uiverse.io by gharsh11032000 */ 
.div54{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px;
}
.button {
  position: relative;
  width: 150px;
  height: 40px;
  background-color: #000;
  display: flex;
  align-items: center;
  color: white;
  flex-direction: column;
  justify-content: center;
  border: none;
  padding: 12px;
  gap: 12px;
  border-radius: 8px;
  cursor: pointer;
}
.button::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -4px;
  top: -1px;
  margin: auto;
  width: 158px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100% );
  z-index: -10;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.button::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100% );
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
}

.button:hover::after {
  filter: blur(30px);
}

.button:hover::before {
  transform: rotate(-180deg);
}

.button:active::before {
  scale: 0.7;
}
/*=============================================loding=========================================*/
.loader-section{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 90px 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;
  color: #fff;
  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;
  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;
}
/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 5px 3%;
  }
  .card1{
    margin: 100px 1%;
  }
  .card1 h1 {
    font-size: 1.5rem;
  }
  .testimonials {
  margin: 65px 1%;
}
.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
  .services {
    margin: 100px 1%;
  }
  .cta-final {
    margin: 90px 1%;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 5px;
    flex-wrap: wrap;
  }
  .cta-final {
    padding: 30px 20px;
  }
  .logo {
    order: 2;
  }
  .logo img {
  height: 25px;
  }
  .social-icons a {
    font-size: 14px;
    margin-right: 8px;
  }
  .social-icons {
    order: 1;
  }
  .portfolio {   /*---------------------portfolio-----------------*/
    margin: 100px 1%;
  }
  .cta-final h1 {
    font-size: 1.4rem;
  }
  footer {  /*-------------------------footer-----------------*/
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .alahed, .content-our {
    text-align: center;
    padding: 0;
  }
  .content-links {
    align-items: center;
  }
  .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);
}


