@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

body {
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  line-height: 24px;
  background-color: hsl(0, 0%, 16%);
  color: #e5e5e5;
}

.container {
  width: 1170px;
  margin: auto;
}

/*---------------------------Header---------------------------*/

.header-area {
  padding: 25px 0;
  transition: padding .3s;
}

.header-area.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: #202020;
  padding: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  text-transform: uppercase;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

.logo .fa-bolt {
  color: #fed700;
  font-size: 19.5px;
  position: absolute;
  top: 60%;
  left: 100%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: boltBlink 1.5s infinite;
}

@keyframes boltBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.signature {
  width: 100px;
  height: auto;
  margin-right: 10px;
}

.header ul {
  display: flex;
  align-items: center;
}

.header ul li {
  margin: 0 15px;
}

.header ul li a {
  text-transform: capitalize;
  display: block;
  position: relative;
}

.header ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #fed700;
  bottom: -5px;
  left: 0;
  transition: width 0.3s;
}

.header ul li a:hover::after {
  width: 100%;
}

.header ul li a.active {
  color: #fed700;
}

.header ul li a:hover {
  color: #fed700;
}

.header .menu_icon {
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: none;
}

/*---------------------------HomePage--------------------------*/

.FirstElement {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 5rem;
}

.FirstElement.adjusted-padding {
  padding-top: 40px;
}

.FirstElement .profile-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 15px solid #444444;
  box-shadow: 5px 7px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s, box-shadow 0.5s;
}

.FirstElement .profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
}

.profile-text {
  max-width: 750px;
  display: flex;
  flex-direction: column;
}

.profile-text h5 {
  color: #e5e5e5;
  font-size: 14px;
}

.profile-text h1 {
  color: #fed700;
  font-size: 3rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  }
  100% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 1);
  }
}

.profile-text p {
  color: #e5e5e5;
}

.profile-text .social i {
  color: #e5e5e5;
  font-size: 18px;
  margin-right: 10px;
  transition: 0.5s;
}

.profile-text .social i:hover {
  color: #fed700;
  transform: rotate(360deg);
}

/*---------------------------About---------------------------*/

.about-area {
  padding-top: 10px;
  background-color: #202020;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.about-area:hover {
  background-color: #303030;
}

.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  transition: transform 0.3s ease;
}

.about:hover {
  transform: translateY(-10px);
}

.about-content {
  flex-basis: 60%;
}

.about-content h4 {
  color: #fed700;
  font-size: 40px;
  line-height: 70px;
  text-transform: capitalize;
  text-shadow: 2px 2px 5px rgba(255, 215, 0, 0.6);
  transition: text-shadow 0.3s ease;
}

.about-content h4:hover {
  text-shadow: 4px 4px 10px rgba(255, 215, 0, 0.8);
}

.about-content ul {
  color: #fff;
  text-align: justify;
}

.about-content ul li {
  list-style-type: disc;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  font-size: 18px;
  transition: color 0.3s ease;
}

.about-content ul li:hover {
  color: #fed700;
}

.about-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 6px;
  height: 6px;
  background-color: #fed700;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.about-content ul li:hover::before {
  background-color: #fff;
}

.about-skills {
  flex-basis: 35%;
}

.about-skills ul li {
  border-bottom: 1px dashed #ddd;
  padding-bottom: 10px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 18px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.about-skills ul li:hover {
  color: #fed700;
  border-color: #fed700;
}

.about-skills ul li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/*---------------------------Button---------------------------*/

.btn-group {
  margin: 45px 0;
}

.btn-group .btn {
  border-color: #d5d5d5;
  color: #fff;
  background-color: #333;
  padding: 12px 25px;
  margin: 5px 0;
  margin-right: 7px;
  border-radius: 30px;
  border: 2px solid #e5e5e5;
  box-shadow: 0 10px 10px -8px rgb(0 0 0 / 78%);
  transition: all 0.3s ease;
}

.btn-group .btn:hover {
  background-color: #fed700;
  color: #333;
  transform: translateY(-3px);
  box-shadow: 0 15px 20px -10px rgba(255, 215, 0, 0.5);
}

.btn.active {
  border-color: #fed700;
}

/*---------------------------Education & Internship---------------------------*/

.education-content .row {
  display: flex;
  border-radius: 5px;
  height: 400px;
  margin-bottom: 250px;
  transition: transform 0.3s ease;
}

.education-content .row:hover {
  transform: translateY(-5px);
}

.education-content .title {
  color: #fed700;
  text-shadow: 1px 1px 3px rgba(255, 215, 0, 0.7);
}

.education-content .row .education,
.education-content .row .internship {
  color: #e5e5e5;
  flex: 0 0 50%;
  max-width: 50%;
  margin-top: 30px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.education-content .row .education:hover,
.education-content .row .internship:hover {
  transform: translateX(5px);
  color: #fed700;
}

.education-content h3.title {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 700;
  text-transform: capitalize;
  color: #fed700;
}

.education-content .row.timeline-box {
  flex: 0 0 100%;
  max-width: 100%;
}

.education-content .row .timeline {
  padding: 30px 15px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  width: 100%;
  position: relative;
  background-color: rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.education-content .row .timeline:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-5px);
}

.education-content .row .timeline-item {
  position: relative;
  padding-left: 37px;
  padding-bottom: 50px;
  transition: transform 0.3s ease;
}

.education-content .row .timeline-item:hover {
  transform: translateX(10px);
}

.education-content .row .internship .timeline-item {
  padding-left: 37px;
  padding-bottom: 30px;
}

.education-content .row .timeline-item:last-child {
  padding-bottom: 0;
}

.education-content .row .timeline-item::before {
  content: "";
  width: 1px;
  position: absolute;
  height: 100%;
  left: 7px;
  top: 0;
  background-color: #fed700;
  transition: background-color 0.3s ease;
}

.education-content .row .timeline-item:hover::before {
  background-color: #fff;
}

.education-content .row .circle-dot {
  position: absolute;
  left: 0;
  top: 0;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: #e5e5e5;
  transition: background-color 0.3s ease;
}

.education-content .row .timeline-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  color: #fed700;
}

.education-content .row .timeline-text {
  line-height: 25px;
  font-size: 16px;
  text-align: justify;
  color: #e5e5e5;
}

.education-content .row .timeline-title:hover {
  text-shadow: 2px 2px 5px rgba(255, 215, 0, 0.7);
}

.education-content .row .circle-dot:hover {
  background-color: #fed700;
}

/*---------------------------Projects---------------------------*/

.project-content {
  padding: 90px 0;
}

.project-title {
  margin-bottom: 60px;
  text-align: center;
}

.project-title h4 {
  text-transform: uppercase;
  font-size: 40px;
  line-height: 40px;
  color: #fed700;
  margin-bottom: 20px;
  animation: glow 2s infinite alternate;
}

.project-title p {
  color: #e5e5e5;
}

.projects {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.project {
  color: #e5e5e5;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  width: 100%;
  position: relative;
  padding: 25px;
  text-align: center;
  flex-basis: 32%;
  transition: .3s;
  background-color: #202020;
}

.project i {
  background-color: #fed700;
  width: 60px;
  height: 60px;
  color: #333;
  font-size: 26px;
  line-height: 60px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.project:hover i {
  transform: scale(1.2);
}

.project h4 {
  font-size: 26px;
  text-transform: capitalize;
  margin: 20px 0;
}

.project p {
  text-align: justify;
}

.project:hover {
  border-color: #fed700;
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/*---------------------------Contact Me---------------------------*/

.contact-content {
  padding: 100px 0;
  color: #fff;
  text-align: center;
}

.contact-content .contact-title h4 {
  font-size: 40px;
  text-transform: capitalize;
  color: #fed700;
  padding-bottom: 10px;
  animation: glow 2s infinite alternate;
}

.contact-content .contact-title p {
  padding-bottom: 20px;
}

.contact {
  max-width: 700px;
  margin: auto;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 15px;
  border: 0;
  margin-bottom: 10px;
  background-color: #202020;
  color: #fff;
  border: 1px solid #444;
  border-radius: 5px;
  transition: border-color 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
  border-color: #fed700;
  outline: none;
}

.contact .submit {
  width: auto;
  background-color: #fed700;
  padding: 10px 40px;
  font-weight: bold;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact .submit:hover {
  transform: scale(1.1);
  background-color: #ffcc00;
}

#msg {
  color: #fff;
  font-size: 20px;
  margin-top: -8px;
  display: block;
}

/*---------------------------Footer---------------------------*/

.footer {
  margin-top: 50px;
  background-color: #0d0d0d;
  text-align: center;
  padding: 20px;
  color: #fff;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.social-btn {
  background: #1a1a1a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(167, 112, 255, 0.3);
}

.social-btn:hover {
  background: rgba(167, 112, 255, 0.3);
  border-color: #fed700(167, 112, 255, 0.5);
  transform: translateY(-3px);
}

.footer-text {
  font-size: 14px;
  color: #fed700;
}

/*---------------------------Trusted Server---------------------------*/

.trusted-server {
  text-align: center;
  background-color: #0d0d0d;
  padding: 50px 20px;
  color: #fff;
}

.trusted-server h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #fed700;
  animation: glow 2s infinite alternate;
}

/* إضافة Flexbox هنا لعرض السيرفرات بجانب بعض */
.server-container {
  display: flex;
  justify-content: center;
  gap: 20px; /* المسافة بين السيرفرات */
  flex-wrap: wrap; /* يضمن الانتقال إلى سطر جديد عند الحاجة */
}

.server-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  width: 280px;
  text-align: center;
  box-shadow: 0 0 15px rgba(167, 112, 255, 0.3);
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.server-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(167, 112, 255, 0.5);
}

.server-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.server-card h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.server-card p {
  font-size: 14px;
  color: #bbb;
}

.server-card span {
  display: block;
  font-size: 13px;
  color: #d6b603;
  margin-bottom: 10px;
}

.visit-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: #d1b200;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.visit-btn:hover {
  background-color: #8a5edc;
  transform: translateY(-3px);
}

/*---------------------------Responsive Design---------------------------*/

/* Medium layout */
@media only screen and (min-width:1000px) and (max-width:1200px){
  .container{
    width: 970px;
  }
}

@media(max-width:1050px){
  .FirstElement{ 
    flex-direction: column;
    padding-top: 2rem;
  }
  .profile-text{
    padding: 40px 0px;
  }
}



/* tablet layout */
@media only screen and (min-width:768px) and (max-width:999px){
  .container{
    width: 750px;
  } 
}  


/* Mobile Layout */
@media only screen and (max-width:767px){
  .container{
    width: 350px;
  }

  .header .menu_icon {
    display: block;
  }
  .header ul{
    display: none;
  }
  .header i{
    color: #e5e5e5;
  }

  .profile-text{
    width: 350px;
  }
  .FirstElement .profile-text p{
    text-align: justify;
  }
  .about{
    flex-direction: column;
    flex-basis: 100%;
    margin-bottom: 30px;
  }
  .about-skills{
    width: 100%;
    margin-top: 30px;
  }
  .education-content .row {
    flex-direction: column;
    height: auto;
    margin-bottom: 50px;
  }

  .education-content .row .education,
  .education-content .row .internship {
    flex-basis: 100%;
    max-width: 100%;
    margin-top: 30px;
  }
  .project{
    flex-basis: 100%;
    margin-bottom: 30px;
  }

}

