.font {
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-style: normal;
}
.main-page-color {
  background-color: rgb(0, 0, 0);
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  

}
.main-link-animation {
  padding:10px 0px;
  transition: 0.3s ease-in-out;
  transform: scale(0.8);
}
.main-link-animation:hover {
  transition: 0.3s ease-in-out;
  transform: scale(1.2);
}
.main-page-div {
  z-index: 1; 
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border: solid rgb(66, 0, 128) ;
  border: 2px solid rgb(66, 0, 128);
  border-radius: 25px;
  padding: 5% 8%;
  box-shadow:
    0 0 10px rgb(66, 0, 128),
    0 0 20px rgb(66, 0, 128),
    0 0 30px rgb(66, 0, 128),
    0 0 40px rgb(66, 0, 128);
  
  background: rgba(59, 59, 59, 0.212);     /* أسود نصف شفاف */
  backdrop-filter: blur(5px);        /* يبلور اللي وراه */
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transform: scale(0.5);
    animation: 
    imgIntro 0.7s ease-out forwards,
    glow 1.5s ease-in-out infinite alternate;
}
@keyframes imgIntro {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
  @keyframes glow {
    from {
      box-shadow:
        0 0 5px rgb(66, 0, 128),
        0 0 10px rgb(66, 0, 128),
        0 0 15px rgb(66, 0, 128),
        0 0 20px rgb(66, 0, 128);
    }
    to {
      box-shadow:
        0 0 20px rgb(66, 0, 128),
        0 0 30px rgb(66, 0, 128),
        }
  }
.img {
  width: 150px;
  border-radius: 20%;
  box-shadow: 0 0 20px rgb(66, 0, 128);  
  animation: floatWave 4s ease-in-out infinite;
}
@keyframes floatWave {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  25% {
    transform: translate(10px, -5px) rotate(2deg);
  }
  50% {
    transform: translate(0px, -10px) rotate(-2deg);
  }
  75% {
    transform: translate(-10px, -5px) rotate(2deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
}
.ferst-link {
  padding: 10px 25px;
  border-radius: 15px;
  color: White;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

.ferst-link:hover {
  background-color: rgba(59, 59, 59, 0.212);
  box-shadow: 0 0 25px rgb(66, 0, 128);
  
}

.div-links {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 33px;
  background-color: rgba(82, 82, 82, 0.425);
  border-radius: 15px;
  color: white;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  transform: scale(0.9);
}

.div-links:hover {
  box-shadow: 0 0 25px rgb(66, 0, 128);
  transform: scale(1);
}

.img-links {
  width: 35px;
  height: auto;
}
.div-links1 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 37px;
  background-color: rgba(82, 82, 82, 0.425);
  border-radius: 15px;
  color: white;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  transform: scale(0.9);
}

.div-links1:hover {
  box-shadow: 0 0 25px rgb(66, 0, 128);
  transform: scale(1);
}
.div-links2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 28px;
  background-color: rgba(82, 82, 82, 0.425);
  border-radius: 15px;
  color: white;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  transform: scale(0.9);
}

.div-links2:hover {
  box-shadow: 0 0 25px rgb(66, 0, 128);
  transform: scale(1);
}
.div-links3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 33px;
  background-color: rgba(82, 82, 82, 0.425);
  border-radius: 15px;
  color: white;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  transform: scale(0.9);
}

.div-links3:hover {
  box-shadow: 0 0 25px rgb(66, 0, 128);
  transform: scale(1);
}
canvas#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;       /* 🔥 canvas في الخلفية */
  pointer-events: none; /* 🔥 يخلي العناصر فوقه قابلة للضغط */
}

.main-page-div {
  position: relative;
  z-index: 1;       /* 🔥 هذا فوق الـ canvas */
}

@media (max-width: 768px) {
  .main-page-div {
    padding: 10% 15%;
    gap: 15px;
    transform: scale(0.7);
  }
  .img {
    width: 100px;
  }
}


