* {
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
    scroll-behavior:smooth;
}

body {
    background-color: #ffffff;
    overflow-x: hidden;
}

header{
    background-color: #ffffff;
    position: fixed;
    z-index: 99;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 130px;
}
#name{
    text-decoration: none;
    color: #2877ed;
    font-size: 1.8em;
    font-weight: bold;
    text-transform: uppercase;
}
#name:hover{
  color: #2d0193;
}
.menu-icon {
  font-size: 28px;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  display: none; /* نخفيه في الشاشات الكبيرة */
  transition: rotate 0.3s ease,color 0.3s ease;
  }
  .menu-icon.open{
    transform: rotate(180deg);
    color:#ffcc22;
  }
.navigation a{
    color: #3a6cf4;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    padding-left: 30px;
    transition: 0.5s ease;
    display: inline-block;
}
.navigation a:hover{
    color: #2d0193;
    transform: scale(1.1);
}
.navigation{
  transition: transform 0.3s ease;
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.navigation.show{
  animation: slideIn 0.3s ease forwards;
}


section{
    padding: 100px 150px;
}
.main{
    width:100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: url(wallpaperflare.com_wallpaper\ \(6\).jpg) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 60px;
}
.main h2{
    font-size: 2em;
    color: #fff;
    font-weight: 700;

}

.main h2 span{
    display: inline-block;
    position: relative;
    margin: 10px 0px;
    color:rgb(86, 106, 254);
    font-size: 3em;
    font-weight: 600;
    letter-spacing: 1px;
}

.typing {
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  color: #fff;
  font-size: 2em;
  font-weight: 600;
  animation: typing 3s forwards;
}

@keyframes typing {
  from { width: 0; }
  to { width: 14ch; } /* عدد الحروف في النص */
}
.main h4{
    color:#fff;
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 30px;
}
.main-btn {
    color: #fff;
    background-color: #2877ed;
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    padding:0.9375em 2.10em;
    border-radius: 15px;
    letter-spacing: 1px;
    margin-bottom: 30px;
    transition: 0.5s ease;
    margin-right: 2em;

}
.main-btn:hover{
    background-color: #2d0193;
    box-shadow: 0 0px 20px rgba(45,1,147,0.9);
    transform: scale(1.1); 
}
.contact  {
    color: #2877ed;
    font-size: 1.8em;
    padding-bottom: 20px;
    font-weight: 600;
}
.social-icons a{
    text-decoration: none;
    color:#ffffff;
    margin-top: 20px;
    font-size: 1.7em;
    padding-right: 20px;
    padding: 5px;
    transition:0.5s ease;
}
.social-icons a:hover{
    background-color:var(--color);
    transform: scale(1.1);
    font-size: 2.1em;
    border-radius: 50%;
    box-shadow: 0 0 30px var(--color);

}

.title {
    display:flex;
    justify-content:center;
    text-align:center;
    color: #ffffff;
    font-size: 2.3em;
    font-weight: 800;
    margin-bottom: 40px;

}
.content {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 20px 0;
  }
 
  .card {
    background: rgba(255, 255, 255, 0.8);
    flex: 0 0 auto;
    width:21.25em;
    box-shadow: 0 5px 25px rgba(1 1 1 / 30%);
    border-radius: 18px;
    padding:10px;
    flex-shrink: 0;
    margin:15px;
    transition: 0.5s ease;
}


.card:hover{
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(1 1 1 / 20%);
}
.icon {
    color:#2877ed;
    font-size: 8em;
    text-align: center;
    margin-bottom: 5px;
}
.info {
    text-align: center;
}

.info h3 {
    color:#2877ed;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
}
.info p {
  font-weight: 520;
  font-size: 20px;
}
.cards {
    background-image: url(https://cdn.hashnode.com/res/hashnode/image/upload/v1714589655883/ce0b34df-283b-4ab2-8773-bf8aeb8a9f3e.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.card a {
    text-decoration: none;
    color: #fff;
    background-color: #2877ed;
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    padding:0.5em 1.5em;
    border-radius: 10px;
    letter-spacing: 1px;
    margin-top: 15px;
    transition: 0.5s ease;
    
}
.card a:hover{
    background-color: #2d0193;
    box-shadow: 0 10px 20px rgba(45,1,147,0.3);
    transform: scale(1.1); 
}
.about{
    background: linear-gradient(36deg, #e2e2e2,#c9d6ff,rgb(150, 150, 150));
}

.about-container{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-left: 20px;
  flex-wrap: wrap;
}
.about-img {
  position: relative;
  width: auto;
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}
.overlay-text{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%)scale(1);
  color: #e2e2e2;
  font-size: 1.8em;
  font-weight: bold;
  opacity: 0;
  transition: 0.5s ease;
  text-align: center;
}
.about-img img:hover{
  transition: 0.5s ease;
  filter: blur(5px);
}
.about-img:hover .overlay-text{
  opacity: 1;
  background-color: rgba(0,0,0,0.5);
  padding: 10px 20px;
  border-radius: 10px;
}
.img-text {
  max-width: 400px;
  font-size: 1.1em;
  color: #333;
}
.img-text h3{
  margin-bottom: 30px;
  background-color: burlywood;
  padding: 0 5px;
  display:inline-block;
  font-size: 1.5rem;
  font-weight: 600;
}
.img-text p {
  font-size: 1.2em;
  font-weight: 600;
  border:2px solid #838500 ;
  padding: 10px 15px;
  border-radius: 20px;
  background-color: #c9d6ff;
  justify-content: space-around;
}
.su-btn {
  color: #fff;
  background-color: #2877ed;
  font-size: 1.1em;
  font-weight: 600;
  display: inline-block;
  padding:0.9375em 2.1875em;
  border-radius: 15px;
  letter-spacing: 1px;
  margin-top: 30px;
  transition: 0.5s ease;
  text-decoration: none;
}
.su-btn:hover {
  background-color: #2d0193;
    box-shadow: 0 0px 20px rgba(45,1,147,0.3);
    transform: scale(1.1); 
}
footer{
  background-color: #2d0193;
}
footer p{
  text-align: center;
  padding: 10px;
  background-color: #2877ed;
  color: #fff;
  font: bold;
  font-size: 1.2em;
  font-weight: bold;
}
footer p a{
  text-decoration: none;
  color: #fff;
}





@media (max-width: 1024px) {/*for and laptops*/
  header {
    padding: 10px 50px;
  }
  .menu-icon{
    display: block;
    position: absolute;
    right: 20px;
  }
  .navigation{
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #ffffff;
    width: 200px;
    padding: 15px;
    z-index: 1000;
  }
  .navigation.show{
    display: flex;
  }
  .navigation ul {
    flex-direction: column;
  }
  .navigation a {
    border-bottom: 1px solid #fff;
  }

  section {
    padding: 80px 50px;
  }

  .main {
    flex-direction: column;
    text-align: center;
    padding: 50px 20px;
    margin-top: 20px;
  }

  .main h2 span {
    font-size: 2em;
  }

  .main h4 {
    font-size: 1.3em;
  }

  .about-container {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
}

@media (max-width: 768px) { /*for phones*/
  header {
    flex-direction: column;
    align-items:flex-start;
    padding: 10px 20px;
  }
  .menu-icon{
    display: block;
  }


  section {
    padding: 60px 20px;
  }

  .main h2 {
    font-size: 1.5em;
    margin-top: 20px;
  }

  .main h2 span {
    font-size: 1.8em;
  }

  .main h4 {
    font-size: 1em;
  }

  .card {
    width: 70%;
    margin: 10px 10px;
    height: auto;
  }

  .title {
    font-size: 1.8em;
  }

  .info h3 {
    font-size: 1.2em;
  }

  .icon {
    font-size: 5em;
  }

  .overlay-text{
    font-size: 1.3rem;
  }
  .img-text h3{
    font-size: 1.4rem;
  }
}


