* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

 body {
  margin: 0;
  background: transparent;
  color: white;
  font-family: sans-serif;
  /* text-align: center; */
  /* padding-top: 100px; */
} 

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background:linear-gradient(1350deg, #000011, #0b1d3a),   /* أسود غامق → أزرق داكن */
    linear-gradient(135deg, #120a2a, #000011);
  top: 0;
  left: 0;
  z-index: -1;
}



nav {
  background-color: black;
}

nav img {
  width: 80px;
  height: 80px;
  filter: drop-shadow(5px 5px 15px rgb(84, 128, 216));
  cursor: pointer;
}

nav ul {
  margin-top: 10px;
  display: flex;
  gap: 60px;
  list-style: none;
  padding: 20px;
}

nav ul a {
  text-decoration: none;
  color: #898989;
  position: relative;
}

nav ul a:hover {
  color: #fff;
}

nav a::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #ee0653;
  transition: all 0.5s;
}

nav a:hover::before {
  width: 100%;
}

nav svg {
  margin-top: 20px;
  fill: #2f7aea;
  filter: drop-shadow(0px 5px 10px rgb(0, 162, 255));
  cursor: pointer;
  animation: bounce 2s infinite alternate;
}

.up a {
  cursor: pointer;
  position: fixed;
  z-index: 999999;
  padding: 10px;
  bottom: 100px;
  right: 50px;
}

header {
  /* background-image: url(./image/premium_vector-1736749054206-8dcd81e62a50.avif); 
  background-position: 50% 50%;
  background-size: cover;
  object-fit: cover;
  background-repeat: no-repeat; */
  padding: 60px 100px;
  min-height: 700px;
}

.move {
  display: inline-block;
  animation: waveHand 1.2s infinite;
  transform-origin: 70% 70%;
}

@keyframes waveHand {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

header button:hover {
  background-color: #0048ffbb !important;
}

header img {
  margin-left: 105px;
  border-radius: 50%;
  border: 4px solid transparent;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  padding: 4px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
}

main {
  /* background-image: url(./image/2.avif); 
  background-attachment: fixed;
  background-position: 100% 00%;
  background-size: cover;
  object-fit: cover;
  background-repeat: no-repeat; */
  padding: 60px 100px;
  min-height: 700px;
}

main img {
  width: 500px !important;
  height: 500px !important;
  margin-top: 40px;
  border-radius: 50%;
  filter: drop-shadow(0px 5px 10px rgba(104, 158, 233, 0.8));
}

.wave {
  display: inline-block;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

button {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border: none;
  padding: 12px 24px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.1s ease;
}

button:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 0 15px rgba(0, 198, 255, 0.6) !important;
}

main h1 {
  position: relative;
}

main h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 25%;
  height: 2px;
  background-color: #ee0653;
}

main svg {
  margin: 0 15px;
  fill: #9060ff;
}

.education {
  /* background-image: url(./image/8.avif); 
  background-position: 100% 70%;
  background-size: cover;
  object-fit: cover;
  background-repeat: no-repeat; */
  padding: 60px 100px;
  min-height: 600px;
}

.education h1 {
  position: relative;
}

.education h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0%;
  width: 20%;
  height: 4px;
  background-color: #ff064c;
}

.education img {
  margin-left: 100px;
  width: 500px;
  height: 500px;
  border-bottom-right-radius: 50%;
  border-top-left-radius: 50%;
  filter: drop-shadow(15px 15px 10px rgba(104, 147, 233, 0.8));
}

.skills {
  /* background-image: url(./image/10.avif); 
  background-position: 100% 0%;
  background-size: cover;
  object-fit: cover;
  background-repeat: no-repeat; */
  padding: 60px 100px;
  min-height: 700px;
}

.skills h1 {
  position: relative;
  font-size: 50px;
}

.skills h1::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 8%;
  transform: translateX(-50px);
  height: 4px;
  background-color: #ff064c;
}

.bg-body-secondary {
  background: #161b22 !important;
  cursor: pointer;
  border: none;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.15ms linear, box-shadow 0.2s linear;
}

.card.bg-body-secondary:hover {
  transform: rotate(8deg);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.6);
}

.skills svg {
  margin: 15px auto;
}


.service {
  /* background-image: url(./image/12.avif); 
  background-position: 100% 70%;
  background-size: cover;
  object-fit: cover;
  background-repeat: no-repeat; */
  padding: 60px 100px;
  min-height: 600px;
}

.service h1 {
  position: relative;
  font-size: 50px;
}

.service h1::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0%;
  width: 12%;
  height: 4px;
  background-color: #ff064c;
}

.service img {
  width: 300px;
  height: 300px;
  border-bottom-left-radius: 50%;
  border-top-right-radius: 50%;
  filter: drop-shadow(15px 15px 10px rgba(104, 147, 233, 0.8));
}

.projects {
  /* background-image: url(./image/freepik_assistant_1755799913708.png);
  background-position: 100% 70%;
  background-size: cover;
  object-fit: cover;
  background-repeat: no-repeat; */
  padding: 60px 100px;
  min-height: 600px;
}

.projects h1 {
  position: relative;
  font-size: 50px;
}

.projects h1::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 8%;
  transform: translateX(-50px);
  height: 4px;
  background-color: #ff064c;
}

.projects .card:hover {
  box-shadow: 0 4px 15px #0091ff;
}

.contact {
  /* background-image: url(./image/freepik__a-dark-textured-background-with-subtle-gradients-o__89909.png); 
  background-position: 100% 70%;
  background-size: cover;
  object-fit: cover;
  background-repeat: no-repeat; */
  padding: 60px 100px;
  min-height: 600px;
}

.contact h1 {
  position: relative;
  font-size: 50px;
}

.contact h1::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 8%;
  transform: translateX(-50px);
  height: 4px;
  background-color: #ff064c;
}

footer {
  background-color: black;
}

footer img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 80px;
  height: 80px;
  filter: drop-shadow(0px 15px 5px rgb(84, 128, 216));
  cursor: pointer;
}

footer ul {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
  list-style: none;
  padding: 20px;
}

footer ul a {
  text-decoration: none;
  color: #898989;
  position: relative;
}

footer ul a:hover {
  color: #fff;
}

footer a::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #ee0653;
  transition: all 0.5s;
}

footer a:hover::before {
  width: 100%;
}

footer .icon {
  height: 40px;
  width: 100%;
  justify-content: center;
  display: flex;
  gap: 35px;
  margin-bottom: 20px;
}

footer svg {
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 30px;
  border-radius: 50%;
  filter: drop-shadow(0 5px 10px rgb(84, 128, 216));
}

footer svg {
  width: 100%;
  height: 100%;
  fill: #00f2ff;
  border-radius: 10px;
}

footer svg:hover {
  fill: #0008ff !important;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  header {
    padding: 40px 40px;
  }

  .img-wrapper {
    width: 370px;
    height: 370px;
  }

  header img {
    width: 350px;
    height: 350px;
  }
  main {
    padding: 40px 40px;
  }

  main img {
    width: 350px !important;
    height: 350px !important;
  }

  .education {
    padding: 40px 40px;
  }

  .education img {
    width: 350px;
    height: 350px;
  }

  .skills {
    padding: 40px 20px;
  }

  .service {
    padding: 40px 40px;
  }

  .projects {
    padding: 40px 40px;
  }

  .contact {
    padding: 40px 40px;
  }
}

@media (max-width: 768px) {
  header img {
    margin-top: 40px;
    width: 280px;
    height: 280px;
  }

  main img {
    width: 300px !important;
    height: 300px !important;
  }

  .education img {
    margin-left: 20px;
    margin-top: 100px;
    width: 300px;
    height: 300px;
  }

  .skills {
    margin-left: 30px;
  }
}

@media (max-width: 426px) {
  header {
    padding: 40px 10px;
  }

   header img {
    margin-left: 20px  ;
    width: 240px;
    height: 240px
  }


  main {
    padding: 40px 10px;
  }

  main img {
    width: 250px !important;
    height: 250px !important;
    margin-left: 20px;
  }

  .education {
    padding: 40px 20px;
  }

  .education img {
    margin-left: 10px;
    width: 250px;
    height: 250px;
  }

  .skills {
    padding: 40px 10px;
    margin-left: 0;
  }

  .skills h1 {
    font-size: 25px;
  }

  .skills h1::after {
    width: 20%;
  }

  .service {
    padding: 40px 15px;
  }

  .service h1 {
    font-size: 30px !important;
  }

  .service h1::after {
    width: 30%;
  }

  .projects h1 {
    font-size: 25px !important;
  }

  .projects h1::after {
    width: 25%;
  }

  .contact {
    padding: 40px 15px;
  }

  .contact h1 {
    font-size: 25px;
  }

  .contact h1::after {
    width: 25%;
  }

  .up a {
    bottom: 100px;
    right: 100px;
  }

  .up a:last-child {
    bottom: 40px;
    right: 100px;
  }
}
