/* start global rules */
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  border: none;
  margin: 0;
  padding: 0;
}
:root {
  --background-color: #1f242d;
  --second-bg-color: #323946;
  --text-color: #fff;
  --main-color: red;
  --lineheight: 1.7;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 767px) {
  .container {
    width: 750px;
  }
}
/* medium */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
/* large */
@media (min-width: 1200px) {
  .container {
    width: 1190px;
  }
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(transparent, var(--main-color));
  border-radius: 6px;
}
.preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: var(--background-color); /* لون خلفية الشاشة التحميل */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
  z-index: 9999; /* يضمن أن تظهر فوق كل شيء آخر */
}
.container-pre {
  position: absolute;
  top: 45%;
  left: 48%;
}

.square {
  width: 8px;
  height: 30px;
  background: rgb(255, 0, 0);
  border-radius: 10px;
  display: block;
  /*margin:10px;*/
  -webkit-animation: turn 2.5s ease infinite;
  animation: turn 2.5s ease infinite;
  box-shadow: rgb(255, 0, 0) 0px 1px 15px 0px;
}

.container-pre .top {
  position: absolute;
  left: 40%;
  top: 50%;
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}

.container-pre .bottom {
  position: absolute;
  left: 40%;
  top: 50%;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

.container-pre .left {
  position: absolute;
  left: 40%;
  top: 50%;
}

.container-pre .right {
  position: absolute;
  left: 40%;
  top: 50%;
  -webkit-transform: rotate(-180deg);
  transform: rotate(-180deg);
}

@-webkit-keyframes turn {
  0% {
    transform: translateX(0) translateY(0) rotate(0);
  }

  50% {
    transform: translateX(400%) translateY(100%) rotate(90deg);
  }

  100% {
    transform: translateX(0) translateY(0) rotate(0);
  }
}

@keyframes turn {
  0% {
    transform: translateX(0) translateY(0) rotate(0);
  }

  70% {
    transform: translateX(400%) translateY(100%) rotate(90deg);
  }

  100% {
    transform: translateX(0) translateY(0) rotate(0);
  }
}
/* header */
header {
  position: fixed;
  width: 100%;
  left: 0;
  padding: 15px 0px;
  z-index: 5;
  background-color: var(--background-color);
}
header.shadow {
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
}
header .container {
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* @media (max-width: 767px) {
  header {
    padding-left: 30px;
    padding-right: 30px;
    /* margin-top: 20px; */
/* position: relative; }*/
header .logo {
  font-size: 30px;
  font-weight: 600;
  color: var(--text-color);
  z-index: 2;
}
.navBar {
  display: flex;
  gap: 30px;
}
.navBar a {
  font-size: 20px;
  transition: 0.3s;
  color: var(--text-color);
}
.navBar a:hover,
.navBar .active-home {
  color: var(--main-color);
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  opacity: 0;
  transition: 0.7s;
  display: none;
  transform: translateX(100%);
}
@media (max-width: 991px) {
  .overlay {
    display: block;
  }
  .navBar a {
    font-size: 25px;
  }
  header {
    padding: 5px 0;
  }
}
/* 
.burger {
  z-index: 2;
  position: relative;
  width: 40px;
  height: 30px;
  background: transparent;
  cursor: pointer;
  display: block;
}
.burger {
  display: none;
}
.burger input {
  display: none;
}

.burger span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: #fff;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.burger span:nth-of-type(1) {
  top: 0px;
  transform-origin: left center;
}

.burger span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.burger span:nth-of-type(3) {
  top: 100%;
  transform-origin: left center;
  transform: translateY(-100%);
}

.burger input:checked ~ span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 0px;
  left: 5px;
}

.burger input:checked ~ span:nth-of-type(2) {
  width: 0%;
  opacity: 0;
}

.burger input:checked ~ span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 28px;
  left: 5px;
} */
.burger {
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 13%;
  color: #090909;
  width: 3.5em;
  height: 3.5em;
  border-radius: 0.5em;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.3s;
  z-index: 1000;
  /* box-shadow: 6px 6px 12px #c5c5c5,
             -6px -6px 12px #ffffff; */
}

.burger:active {
  color: #666;
  box-shadow: inset 4px 4px 12px var(--main-color),
    inset -4px -4px 12px var(--main-color);
}

input[type="checkbox"] {
  display: none;
}

.burger span {
  width: 70%;
  height: 4px;
  background: var(--text-color);
  border-radius: 100px;
  transition: 0.3s ease;
}

input[type]:checked ~ span.top {
  transform: translateY(290%) rotate(45deg);
  width: 40px;
}

input[type]:checked ~ span.bot {
  transform: translateY(-270%) rotate(-45deg);
  width: 40px;
  box-shadow: 0 0 10px #495057;
}

input[type]:checked ~ span.mid {
  transform: translateX(-20px);
  opacity: 0;
}
@media (max-width: 992px) {
  header .logo {
    font-size: 30px;
  }
}
p {
  font-size: 18px;
}
@media (max-width: 991px) {
  .navBar {
    opacity: 0;
    z-index: -10;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    /*  */
    transform: translate(800px, -50%);
    gap: 25px;
    transition: 0.3s;
  }
  .navBar a {
    margin: 0 0 20px 0;
    /* margin-right: 0; */
  }
  .burger {
    display: flex;
  }
}

.transform-nav {
  transform: translate(-50%, -50%);
}
.transform-over {
  transform: translateX(0);
}
.activeOver {
  /* display: block; */
  opacity: 1;
  /* z-index: 1; */
  /* transition: 0.3s; */
}
.activeNavbar {
  opacity: 1;
  /* display: flex; */
  z-index: 999;
  transition: 0.3s;
}
.home .container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 992px) {
  .home .container {
    flex-wrap: wrap;
    padding: 80px 15px 0;
    text-align: center;
    height: fit-content;
    justify-content: center;
  }
}

@media (max-width: 767px) {
}
.home .home-content h3 {
  /* font-size: 3.2rem;  */
  font-size: 35px;
  font-weight: 700;
}
.home .home-content h1 {
  font-weight: 700;
  font-size: 50px;
}
.home .home-content h3:nth-of-type(2) {
  margin-bottom: 15px;
}

.home .home-content P {
  line-height: var(--lineheight);
}
.home .home-content h3 span {
  color: var(--main-color);
}
.home .home-content .social-media {
  display: flex;
}
@media (max-width: 767px) {
  .home .home-content .social-media {
    align-items: center;
    justify-content: center;
  }
  .home-content {
    z-index: 2;
  }
  .home h3 span {
    font-size: 28px;
  }
  /* .home .home-content h3 .typed-Jss{
    display: block;
  } */
}

@media (max-width: 992px) {
  .home .home-content .social-media {
    align-items: center;
    justify-content: center;
  }
}
.home .home-content .social-media a {
  color: var(--main-color);
  border: 2px solid var(--main-color);
  border-radius: 50%;
  padding: 8px;
  width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 15px 15px 0;
  transition: 0.3s ease;
}

.home .home-content .social-media a:hover {
  background-color: var(--main-color);
  color: var(--second-bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}
.btn-cv {
  background-color: var(--main-color);
  color: #fff;
  padding: 1rem 1.8rem;
  border-radius: 6px;
  display: inline-flex;
  box-shadow: 0 0 1rem var(--main-color);
  transition: 0.3s ease;
  font-weight: 700;
  letter-spacing: 0.1rem;
  cursor: pointer;
}
.btn-cv:hover {
  box-shadow: 0 0 3rem var(--main-color);
}
.home-img img {
  max-width: 100%;
}
@media (max-width: 991px) {
  .home-img img {
    width: 350px;
    transform: translateX(10px);
  }
}
@media (max-width: 400px) {
  .home-img img {
    width: 250px;
  }
}

.about {
  background-color: var(--second-bg-color);
}

.about .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  padding: 60px 15px;
}
@media (max-width: 992px) {
  .about .container {
    gap: 0;
    flex-wrap: wrap;
    text-align: center;
    flex-direction: column;
    /* height: 6 0vh; */
  }
  .about .container img {
    display: none;
  }
}
.about .about-content h2 {
  font-size: 70px;
}
.about .about-content h2 span {
  color: var(--main-color);
}
.about .about-content h3 {
  line-height: 1.2;
  letter-spacing: 1px;
}
.about .about-content p {
  line-height: var(--lineheight);
}
.about img {
  /* width: 35vw; */
}
/* arrow-button start */
.arrow-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 12px;
  background-color: var(--main-color);
  color: var(--second-bg-color);
  text-align: center;
  border-radius: 10px;
  transition: opacity 0.3s ease;
  opacity: 0;
  cursor: pointer;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 20px;
  transition: 0.7s;
}
.active {
  opacity: 1;
}
.shadowArow {
  box-shadow: 0 0 5rem var(--main-color);
}
/*/* arrow-button  end */

.services {
  /* padding: 0 0 50px 0; */
}
.services .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.services .container .services-box {
  background-color: var(--second-bg-color);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  border: solid 3px var(--background-color);
  transition: 0.5s ease;
  cursor: pointer;
}
.services .container .services-box:hover {
  border: solid 3px var(--main-color);
  transform: scale(1.03);
}
.services .container .services-box i {
  color: var(--main-color);
  font-size: 40px;
}
.services .container .services-box h3 {
  font-size: 30px;
}
.services .container .services-box p {
  line-height: 1.5;
}
.main-heading {
  font-size: 50px;
  text-align: center;
  /* margin-bottom: 60px !important; */
}
.main-heading span {
  color: var(--main-color);
}
.portfolio {
  background-color: var(--second-bg-color);
  padding: 20px 0 0 0;
}
.portfolio .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}
.portfolio img {
  width: 100%;
  transition: 0.3s;
  border-radius: 15px;
}
.portfolio .portfolio-box {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.portfolio .portfolio-content {
  position: absolute;
  left: 0;
  bottom: 0;
  text-align: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), var(--main-color));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: translateY(100%);
  transition: 0.3s ease-in-out;
  color: var(--text-color);
}
.portfolio .portfolio-content h4 {
  font-size: 40px;
}
.portfolio .portfolio-content p {
  font-size: 20px;
  margin: 25px 0;
}
.portfolio .portfolio-content i {
  font-size: 40px;
}
.portfolio .portfolio-content a {
  color: var(--text-color);
  text-decoration: none;
}
.portfolio .portfolio-box:hover img {
  transform: scale(1.1);
}
.portfolio .portfolio-box:hover .portfolio-content {
  transform: translateY(0);
}
/* end  portfolio */

.form {
}
.form .container form {
  max-width: 70rem;
  text-align: center;
}
.form form .input-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.form .container form .input-box input,
.form .container form textarea {
  width: 100%;
  padding: 20px;
  margin-bottom: 20px;
  border-style: none;
  background-color: var(--second-bg-color);
  color: var(--text-color);
  border-radius: 8px;
  outline: none;
  resize: none;
}
.form form .input-box input {
  width: 49% !important;
}
.form form .input-box input:checked {
  /* outline: none; */
  border-style: none;
  /* border: none; */
}
/* End  Form */
/* Next Page about */
.aboutPageAbout {
  display: flex;
  align-items: center;
  justify-content: center;
}
.aboutPageAbout .content {
  margin-top: 25px;
  text-align: center;
}
.aboutPageAbout .content p {
}
/* Next Page about */
/*web-devPage */
.web-devPage {
}
/*web-devPage */
.context {
  width: 100%;
  position: absolute;
  top: 50vh;
}

.context h1 {
  text-align: center;
  color: #fff;
  font-size: 50px;
}

/* .area{
   
    background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8);  
    width: 100%;
    
    
   
} */

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: -1;
}

/* spikes */
.spikes {
  position: relative;
}
.spikes::after {
  content: "";
  position: absolute;
  right: 0;
  width: 100%;
  height: 30px;
  z-index: -1;
  background-image: linear-gradient(
      135deg,
      var(--second-bg-color) 25%,
      transparent 25%
    ),
    linear-gradient(225deg, var(--second-bg-color) 25%, transparent 25%);
  background-size: 30px 30px;
}
.spikes2 {
  position: relative;
  z-index: 0;
}
.spikes2::after {
  content: "";
  position: absolute;
  right: 0;
  width: 100%;
  height: 30px;
  z-index: -1;
  background-image: linear-gradient(
      135deg,
      var(--background-color) 25%,
      transparent 25%
    ),
    linear-gradient(225deg, var(--background-color) 25%, transparent 25%);
  background-size: 30px 30px;
}
/* spikes */
.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  animation: animate 25s linear infinite;
  bottom: -150px;
}

.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
}
.circles li:nth-child(11) {
  left: var(--random-12);
  width: 50px;
  height: 50px;
  animation-duration: 16s;
  animation-delay: 0s;
}

.circles li:nth-child(12) {
  left: var(--random-11);
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 20s;
}

.circles li:nth-child(13) {
  left: var(--random-12);
  width: 20px;
  height: 20px;
  animation-delay: 1s;
}

.circles li:nth-child(14) {
  left: var(--random-11);

  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 13s;
}

.circles li:nth-child(15) {
  left: var(--random-12);
  width: 30px;
  height: 30px;
  animation-delay: 8s;
}

.circles li:nth-child(16) {
  left: var(--random-11);
  width: 60px;
  height: 60px;
  animation-delay: 5s;
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}
/* :end circle */
.footer {
  /* height: 80px; */
  /* background-color: var(--second-bg-color); */
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  text-align: center;
}
.footer p,
.footer i {
  color: var(--text-color);

  line-height: var(--lineheight);
}
.footer span {
  /* display: block; */
  color: var(--main-color);
}
.footer i {
  color: #ff0000;
}

/* end Next Page */
/* pop */
.popub {
  position: fixed;
  transform: translate(-50%, -50%) scale(0) rotate(360deg);
  top: 50%;
  left: 50%;
  border-radius: 6px;
  background-color: var(--background-color);
  transition: 0.3s ease;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popub.scale {
  transform: translate(-50%, -50%) scale(1) rotate(0);
  z-index: 1000;
}
.popub .popub-content {
}
.popub .popub-content h2 {
  font-size: 38px;
  font-weight: 600;
}

.popub .popub-content p {
}
.popub .popub-content img {
  width: 100px;
  margin-top: -50px;
  border-radius: 50%;
}
.popub .popub-content button {
  font-size: 18px;
  /* width: 50%; */
  /* margin: 0 auto; */
  /* display: block; */
  /* width: 70%; */
}
/* cards */
.date {
}
.date .container {
}
.date .container img {
  max-width: 100%;
}
.date .all-boxex {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}
@media (max) {
}
.footer .social-media a {
  color: var(--main-color);
  display: flex;
}
.footer .social-media a {
  color: var(--main-color);
  color: var(--main-color);
  border: 2px solid var(--main-color);
  border-radius: 8px;
  padding: 8px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 15px 15px 0;
  transition: 0.3s ease;
  font-size: 32px;
}
.End {
  background-color: var(--second-bg-color);
  padding-top: 20px;
}
/* G */
.portfolio .portfolio-box:hover .portfolio-content {
  transform: translateY(0);
  color: #fff;
}
