/* GLOBAL */
@import url('https://fonts.googleapis.com/css2?family=Tiny5&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap');


:root {
  --bg-body: hsl(0, 0%, 8%);
  --bg-body2: hsl(0, 0%, 14%);
  --accent: hsl(153, 71%, 59%);
  --text1: hsl(0, 0%, 100%);
  --text2: hsl(0, 0%, 85%);
  --invalid: hsl(7, 100%, 68%);
  --fs-18: 1.125rem;
  --fs-88: 5.5rem;
  --fs-72: 4.5rem;
  --fs-40: 2.5rem;
  --fs-48: 3rem;
  --fs-36: 2.25rem;
  --fs-32: 2rem;
  --fs-24: 1.5rem;
  --fs-20: 1.25rem;
  --container: 69.375rem;
  --transition: 250ms ease-in-out;
}

::-webkit-scrollbar {
    width: 8px;
    background: #323232;

}


::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

#preloader {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  transform: translateY(0px);
  z-index: 1000;
  transition: transform 3s ease ; /* مدة الأنيميشن */
  border-bottom: 5px solid var(--accent);
}
#preloader img {
  animation: preload 3s infinite;
}
@keyframes preload {
  0% {
    transform: scale(1);
    }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}
#preloader a {
  position: absolute;
  bottom: 30px;
  right: 41%;
}
.power {
  font-size: 15px;
}
html,
body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

html {
  box-sizing: border-box;
  font-size: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body,
input,
textarea,
button {
  font-family: 'Space Grotesk', 'IBM Plex Sans Arabic' ,  sans-serif;
}

body {
  margin: 0;
  background-color: var(--bg-body);
  color: var(--text1);
  font-size: var(--fs-18);
  line-height: 1.56;
}

.bg-less-dark {
  background-color: var(--bg-body2);
}
img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  line-height: 1;
}
.header-xl {
  font-size: 2.5rem;
  font-size: clamp(2.5rem, 0.7rem + 7.68vw, 5.5rem);
  letter-spacing: -0.028em;
  line-height: 1.1;
}
.header__nav i {
  color: var(--text1);
  font-size: 1.8rem;
  transition: color var(--transition);
}
.header__nav i:hover{
  color: var(--accent);
}
p {
  font-size: 1rem;
  font-size: clamp(1rem, 0.79rem + 0.89vw, 1.125rem);
  line-height: 1.5;
  color: var(--text2);
}

a {
  transition: color var(--transition);
}

a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

input:invalid,
textarea:invalid {
  outline-color: var(--invalid);
}
.button {
  display: inline-block;
  padding-bottom: 0.625rem;
  font-size: 1rem;
  line-height: 1.625;
  letter-spacing: 0.143em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text1);
  text-decoration: none;
  background-image: linear-gradient(
    to right,
    var(--accent) 75%,
    var(--accent) 75%
  );
  background-position: 0 2.1em;
  background-repeat: repeat-x;
  background-size: 8px 2px;
}
a.underline,
button {
  display: inline-block;
  padding-bottom: 0.625rem;
  font-size: 1rem;
  line-height: 1.625;
  letter-spacing: 0.143em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text1);
  text-decoration: none;
  background-image: linear-gradient(
    to right,
    var(--accent) 75%,
    var(--accent) 75%
  );
  background-position: 0 2.1em;
  background-repeat: repeat-x;
  background-size: 8px 2px;
}

a:hover {
  color: var(--accent);
}

img,
svg {
  display: block;
}

.visually-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wrapper {
  width: calc(100% - 2rem);
  max-width: var(--container);
  margin-inline: auto;
}

/* 600px */
@media (min-width: 37.5em) {
  .wrapper {
    width: calc(100% - 3.75rem);
  }
}

/* UTILITY */

.bottom-border {
  border-bottom: 1px solid var(--text2);
}

/* HEADER */

.header {
  position: relative;
  z-index: 1;
  margin-block-start: 20px;
}

.header__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 20px 25px;
}

.header__home {
  font-size: 1.5rem;
  font-size: clamp(1.5rem, 1.02rem + 2.04vw, 2rem);
  line-height: 1;
  color: var(--text1);
  text-decoration: none;
  flex: 1 0 100%;
  font-family: "Tiny5", sans-serif !important;

}

.header__social > svg > path {
  transition: fill var(--transition);
}

.header__social:hover > svg > path {
  fill: var(--accent);
}

@media (min-width: 37.5em) {
  .header {
    margin-block-start: 30px;
    /* margin-block-end: 90px; */
  }

  .header__nav {
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 32px;
  }

  .header__home {
    flex: 0 1 auto;
    margin-inline-end: auto;
  }
}

@media (min-width: 62.5em) {
  .header {
    margin-block-start: 40px;
    margin-block-end: 127px;
  }

  .header__nav {
    padding-right: 30px;
  }
}

/*  HERO */

.hero__wrapper {
  padding-bottom: 80px;
}

.hero__image {
    position: absolute;
    top: 0;
    left: 50%;
    translate: -50%;
    width: 474px;
    height: auto;
    margin-top: 4rem;
    filter: grayscale(1);
    border-radius: 35px;
}
.hero__rings {
  position: absolute;
  right: 50%;
  top: 130px;
  /* 8.125rem; */
  z-index: -1;
  /* width: 33.125rem; */
  height: auto;
}
.hero__ring {
  position: absolute;
  right: 50%;
  top: 130px;
  /* 8.125rem; */
  z-index: -1;
  /* width: 33.125rem; */
  height: auto;
}
.hero__asterisk {
  position: absolute;
  left: 50%;
  top: 130px;
  /* 8.125rem; */
  z-index: -1;
  /* width: 33.125rem; */
  height: auto;
}
.hero__lost {
  position: absolute;
  left: 50%;
  top: 420px;
  /* 8.125rem; */
  z-index: -1;
  width: 18.125rem;
  height: auto;
  animation: lost 1s ease-in-out infinite;
}


.hero__circle {
  position: relative;
  top: 171px;
  margin-bottom: -129px;
  translate: calc(100vw - 64px - 16px);
}

.hero__text {
  position: relative;
  text-align: center;
  margin-block-start: 335px;
}

.hero__headline {
  margin-block-end: 24px;
}

.hero__headline > br {
  display: none;
}

h1 > span {
  background-image: linear-gradient(
    to right,
    var(--accent) 75%,
    var(--accent) 75%
  );
  background-position: 0 1.18em;
  background-repeat: repeat-x;
  background-size: 8px 4px;
}
p > span {
  background-image: linear-gradient(
    to right,
    var(--accent) 75%,
    var(--accent) 75%
  );
  background-position: 0 1.18em;
  background-repeat: repeat-x;
  background-size: 8px 4px;
}
.hero__description {
  margin-block-end: 24px;
}

@keyframes lost {
  0% {
    opacity: 0.1;
    transform: scale(1) rotate(10deg);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    opacity: 0.1;
    transform: scale(1) rotate(10deg);
  }
}

@media (min-width: 37.5em) {
  .hero {
    position: relative;
    margin-block-start: -62px;
  }

  .hero__wrapper {
    padding-bottom: 60px;
  }

  .hero__content {
    display: flex;
    align-items: center;
  }

  .hero__content picture {
    order: 2;
  }

  .hero__image {
    position: relative;
    width: 42vw;
    max-width: 445px;
    /* width: 322px; */
    height: auto;
    left: auto;
    right: 0;
    translate: 0;
  }

  .hero__rings {
    top: 90px;
    right: auto;
    left: 0;
    translate: -50%;
  }
    .hero__ring {
    top: 90px;
    right: auto;
    left: 0;
    translate: -50%;
  }
    .hero__asterisk {
    top: 90px;
    left: auto;
    right: 0;
    translate: -50%;
  }

  .hero__circle {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 190px;
    translate: 50%;
    z-index: 1;
  }

  .hero__text {
    /* width: 62vw; */
    margin-block-start: 90px;
    margin-right: -30px;
    flex: 1 0 58vw;
    text-align: left;
    z-index: 1;
  }

  .hero__headline {
    margin-block-end: 60px;
  }

  .hero__headline > br {
    display: inline-block;
  }

  .hero__description {
    /* width: 70%; */
    margin-block-end: 34px;
  }


}

@media (min-width: 62.5em) {
  .hero {
    margin-block-start: 0px;
  }

  .hero__wrapper {
    position: relative;
    padding-bottom: 100px;
  }

  .hero__content {
    align-items: flex-start;
  }

  .hero__content picture {
    margin-left: -80px;
  }

  .hero__image {
    margin-block-start: -109px;
  }

  .hero__rings {
    top: 0px;
    translate: -50% -50%;
  }

  .hero__circle {
    top: 322px;
    right: 445px;
  }

  .hero__text {
    margin-block-start: 0;
    margin-right: 0;
    flex: 1;
  }

  .hero__headline {
    margin-block-end: 43px;
  }

  .hero__headline > br {
    display: none;
  }

  .hero__description {
    width: 38ch;
    margin-block-end: 66px;
  }

}

@media (max-width: 768px) {
  .hero__lost {
    position: absolute;
    top: 737px;
    left: -10%;
  animation: lost infinite 1s linear;
  }

}
/* SKILLS */

.skills {
  position: relative;
}

.skills__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-block: 40px;
}

.skills__item {
  text-align: center;
}

.skills__title {
  font-size: 2rem;
  font-size: clamp(2rem, 0.33rem + 7.11vw, 2.8rem);
  line-height: 1.17;
  margin-block-end: 2px;
}
.skills__title i {
  color: var(--accent);
}
.skills__description {
  margin-block-end: 0;
}

.skills__rings {
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: 0 50%;
}

@media (min-width: 37.5em) {
  .skills__wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 52px 24px;
    border: none;
    padding-block: 52px 0;
  }

  .skills__item {
    text-align: left;
  }

  .skills__rings {
    translate: 40% 50%;
  }
}

@media (min-width: 62.5em) {
  .skills__wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 58px 30px;
    padding-block-start: 72px;
  }

  .skills__rings {
    translate: -40% 50%;
    left: 100%;
  }
}

/* PROJECTS */

.projects__wrapper {
  padding-block: 100px;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  justify-items: center;
  text-align: center;
}

.projects__headline {
  grid-column: 1 / span 2;
  margin-block-end: 0;
}

.projects__contact {
  grid-column: 1 / span 2;
}

.projects__item {
  grid-column: 1 / span 2;
}

.projects__picture {
  display: block;
  margin-block-end: 20px;
}

.projects__image {
  width: 100%;
  height: auto;
}

.projects__name {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  margin-block-end: 7px;
}

.projects__tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-block-end: 20px;
  text-transform: uppercase;
}

.projects__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media (min-width: 37.5em) {
  .projects__grid {
    gap: 60px 24px;
    justify-items: start;
    text-align: left;
  }

  .projects__contact {
    justify-self: end;
  }

  .projects__item {
    grid-column: span 1;
  }

  .projects__headline,
  .projects__contact {
    grid-column: span 1;
  }

  .projects__contact {
    align-self: center;
  }

  .projects__tags,
  .projects__links {
    display: block;
  }

  .projects__tags span {
    margin-inline-end: 18px;
  }

  .projects__links a {
    margin-inline-end: 30px;
  }

  .project__links {
    display: block;
  }
}

@media (min-width: 62.5em) {
  .projects__grid {
    gap: 70px 30px;
  }

  .projects__item {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
  }

  .projects__picture {
    position: relative;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .projects__picture::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    background-color: hsl(0, 0%, 0%);
    opacity: 0;
    transition: opacity 150ms ease-in-out;
  }

  .projects__item:hover .projects__picture::after {
    opacity: 0.5;
  }

  .projects__item:hover .projects__links {
    opacity: 1;
  }
  .projects__item:focus-within .projects__links {
    opacity: 1;
  }

  .projects__item:focus-within .projects__picture::after {
    opacity: 0.5;
  }

  .projects__image {
    width: 100%;
    height: auto;
  }

  .projects__links {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-self: center;
    align-self: center;
    z-index: 1;
    opacity: 0;
    transition: opacity 400ms ease-in-out;
  }

  .projects__links:hover ~ .projects__picture::after {
    opacity: 0.5;
  }

  .projects__tags {
    margin-block-end: 0;
  }
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.client-item {
  background: var(--dark-bg);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.client-item:hover {
  transform: translateY(-5px);
}

.client-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 1rem;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.client-item:hover .client-logo {
  filter: grayscale(0%);
}

.client-name {
  color: var(--light-text);
  font-size: 1.2rem;
  margin: 0;
}
/* CONTACT */

.contact {
  position: relative;
}

.contact__wrapper {
  padding-block: 84px;
}

.contact__headline {
  margin-block-end: var(--fs-20);
}

.contact__control {
  position: relative;
  margin-block-end: 16px;
}

.contact__control input,
.contact__control textarea {
  width: 100%;
  padding-block: 16px;
  padding-inline: 24px;
  border: none;
  border-bottom: 1px solid var(--text1);
  background: transparent;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--text1);
}

.contact__control > *::placeholder {
  color: var(--text1);
  opacity: 0.5;
  text-transform: uppercase;
}

.contact__control textarea {
  margin-block-end: 32px;
}

.contact__control.align-right {
  display: flex;
  justify-content: flex-end;
}

.contact__control button {
  background-color: transparent;
  border: none;
}

.contact__invalid-icon {
  display: none;
  width: var(--fs-24);
  height: var(--fs-24);
  position: absolute;
  top: 50%;
  right: 0;
  translate: -50% -50%;
}

.contact input:focus-visible:invalid ~ .contact__invalid-icon,
.contact textarea:focus-visible:invalid ~ .contact__invalid-icon {
  display: inline-block;
}

.contact textarea:focus-visible:invalid ~ .contact__invalid-icon {
  top: 1.2rem;
  right: 1.5rem;
  translate: none;
}

.contact__rings {
  position: absolute;
  left: 0;
  bottom: 97px;
  translate: -75%;
}

#form_button{
  border: 5px double var(--accent);
  cursor: pointer;  
}

#form_button:hover{
  background-color: var(--accent);
  color: var(--bg-body);
  transition: background-color 0.3s, color 0.3s;
    
}

@media (min-width: 37.5em) {
  .contact__rings {
    bottom: 47px;
    translate: -75%;
  }
}

@media (min-width: 62.5em) {
  .contact__wrapper {
    display: grid;
    grid-template-columns: repeat(2, 27.8rem);
    justify-content: space-between;
  }

  .contact__headline {
    margin-block-end: var(--fs-36);
  }

  .contact__rings {
    translate: -40%;
  }
}

/* 999.98px */
@media (max-width: 62.49875em) {
  .contact__wrapper {
    max-width: 27.8rem;
  }

  .contact__text {
    text-align: center;
  }
}

footer {
  padding-block: 40px 60px;
}

@media (min-width: 37.5em) {
  footer {
    padding-block: 30px 40px;
  }
}

@media (min-width: 62.5em) {
  footer {
    padding-block: 47px 92px;
  }
}

.certifications {
    margin: 100px auto;
    max-width: 1200px; /* تحديد الحد الأقصى للعرض */
    height: auto; /* تغيير إلى auto ليكون الارتفاع مرن */
    display: flex;
    flex-wrap: wrap; /* تفعيل لف العناصر على الشاشات الصغيرة */
    justify-content: center;
    gap: 30px; /* تحديد الفجوة بين العناصر */
}

.certifications .certificate {
    width: 30%; /* عرض افتراضي لكل صورة */
    height: auto; /* ارتفاع مرن للحفاظ على نسبة العرض إلى الارتفاع */
    object-fit: cover;
    border-radius: 5px;
    border: 5px solid var(--accent);
    transition: transform 0.5s ease-in-out; /* تحسين التأثير */
}

.certifications .certificate:hover {
    transform: scale(1.2); /* تكبير الصورة عند التمرير */
    cursor: pointer; /* تحديد التمرير على الصورة */
    box-shadow: 0 0 10px var(--accent); /* تضييف نمط التوا��ل الشبكي */
    z-index: 1;
}
/* Media Queries لتحسين التفاعل مع الشاشات الصغيرة */

@media (max-width: 768px) {
    .certifications .certificate {
        width: 40%; /* عرض أكبر للصور على الشاشات الصغيرة */
    }
}

@media (max-width: 480px) {
    .certifications .certificate {
        width: 80%; /* عرض أكبر للصور على الشاشات الأصغر */
    }
}
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  text-decoration: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #333);
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
  opacity: 0; /* يبدأ مخفيًا */
  pointer-events: none;
}

#scrollTop.show {
  opacity: 1;
  pointer-events: auto;
}

#scrollTop:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

#scrollTop svg {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

#scrollTop .arrow {
  font-size: 1.4rem; /* تقليل حجم الأيقونة بما يتناسب مع حجم الزر */
  color: #fff;
  z-index: 1;
  pointer-events: none;
}
/* ===== Slider Container ===== */
.services-slider {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem 3rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 25px 45px rgba(0,0,0,0.4);
}

.card-bg {
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  opacity: 0.2;
  pointer-events: none;
}

.service-card i {
  margin-top: 1rem;
  color: var(--accent);
}

.service-title {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.3rem;
  color: #fff;
  transform: translateZ(30px);
}

.service-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e0e0e0;
  transform: translateZ(20px);
}

.splide__arrows,
.splide__pagination {
  display: none !important;
}
.reviews-slider {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 1.5rem 3rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 25px 45px rgba(0,0,0,0.4);
}

.review-card i {
  margin-top: 1rem;
  color: var(--accent);
}

.review-title {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.3rem;
  color: #fff;
  transform: translateZ(30px);
}

.review-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e0e0e0;
  transform: translateZ(20px);
}