* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: black;
  color: white;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

/* navbar */

.navbar {
  position: sticky;
  top: 0;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 150px;
  z-index: 1000;
}

.navbar nav a {
  margin-right: 1rem;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: 0.2s;
  transition-timing-function: ease-in-out;
  cursor: pointer;
}

.navbar nav a:hover {
  color: #00fead;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

ul li i {
  font-size: 20px;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.name-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-light {
  width: 10px;
  height: 10px;
  background-color: #00ffae;
  border-radius: 50%;
  animation: blink 2s infinite;
  box-shadow: 1px 1px 5px 0.5px #15be88;

}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
    width: 8px;
    height: 8px;
  }
}

/* hero section */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* height: 100vh; */
  object-fit: cover;
  z-index: -1;
  transform-origin: top right;
  transition: transform 0.2s ease-out;
}

.hero {
  position: relative;
  height: 100vh;
}

.intro {
  width: 380px;
  font-family: "Switzer", "Switzer Placeholder", sans-serif;
  font-weight: bolder;
  font-size: 17px;
  line-height: 20px;
  position: absolute;
  margin-top: 50px;
  right: 130px;
}

.exp {
  color: #00fead;
  font-size: 20px;
  line-height: 33px;
  position: absolute;
  left: 150px;
  top: 200px;
}

.name {
  position: absolute;
  left: 200px;
  top: 290px;
  line-height: 140px;
}

.name h1 {
  font-size: 150px;
  direction: rtl;
}

.name p {
  margin-top: -30px;
  margin-left: -30px;
  font-weight: bolder;
}

/* About me section */
hr {
  width: 1000px;
  margin-left: 150px;
}

.about,
.skills,
.contact {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-left: 150px;
  width: 1150px;
  margin-bottom: 100px;
}

.about p {
  width: 550px;
}

.sec-h1 {
  font-size: 33px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

/* skills */

.all-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: justify;
  gap: 10px;
  align-items: baseline;
  width: 590px;

}

.skills p {
  font-size: 16px;
  padding: 10px 20px;
  border: 1px solid #888888;
  border-radius: 15px;
  border-bottom: 3px solid #888888;
}

/* contact section */

.contact p {
  color: #888888;
}

.contact a,
.top a {
  color: white;
  text-decoration: none;
  transition: 0.2s;
  transition-timing-function: ease-in-out;
  cursor: pointer;
}

.contact a:hover,
.top a:hover {
  color: #00fead;
}

.contact-info {
  margin-right: 370px;
}

/* footer */
footer {
  margin: 250px 150px 20px;
}

.thanks {
  font-size: 70px;
  width: 800px;
  line-height: 150px;

}

.lets {
  width: 200px;
  color: #00fead;
  line-height: 33px;
  margin-left: 400px;
  margin-top: 25px;
}

.top {
  margin-top: 50px;
  margin-left: 800px;
}


/* ===============Website responsiveness (additional service)==================== */

@media (max-width: 1220px){
  .navbar{
    padding: 20px 50px;
  }
  hr{
    width: 900px;
    margin-left: 50px;
  }
  .about,.skills,.contact{
    width: auto;
    margin-right: 20px;
    padding-left: 50px;
  }
  .top{
    margin-left: 600px;
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 20px;
  }

  nav{
    gap: 0;
  }

  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    text-align: center;
  }

  .intro,
  .exp,
  .name {
    position: static;
    width: 100%;
    margin: 20px 0;
  }

  .name h1 {
    font-size: 50px;
    line-height: 60px;
  }

  .name p {
    margin: 0;
    line-height: 1.5;
  }

  .about,
  .skills,
  .contact {
    flex-direction: column;
    padding: 0 20px;
    margin: 50px auto;
    width: 100%;
  }

  .sec-h1 {
    position: static;
    margin-bottom: 20px;
    font-size: 28px;
  }

  .about p,
  .all-skills,
  .contact-info {
    width: 100%;
    margin: 0;
  }

  .all-skills {
    justify-content: flex-start;
  }

  hr {
    width: 90%;
    margin: 0 auto;
  }

  footer {
    margin: 100px 20px 40px;
    text-align: center;
  }

  .thanks {
    font-size: 35px;
    line-height: 1;
    width: 100%;
  }

  .lets {
    margin: 20px auto;
  }

  .top {
    margin-top: 30px;
    margin-left: 0;
  }

  .top a {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .navbar nav a,
  .navbar nav div a,
  .top a {
    font-size: 14px;
  }

  nav ul{
    width: 80px;
  }

  .logo img {
    width: 40px;
  }

  .name h1 {
    font-size: 40px;
    line-height: 50px;
  }

  .thanks {
    font-size: 28px;
    line-height:1;
  }

  .all-skills p {
    font-size: 14px;
    padding: 8px 16px;
  }
}
