* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: #222;
  color: #eee;
  scroll-behavior: smooth;
}
.hamburger {
  display: none;
}
.navbar {
  display: flex;
  justify-content: space-between;
  height: 50px;
  align-items: center;
  padding: 0 30px;
  position: sticky;
  top: 0;
  background-color: #123;
}
.navbar .logo {
  color: #eee;
}
.navList {
  list-style: none;
  display: flex;
  gap: 20px;
}
.navList a {
  text-decoration: none;
  color: #eee;
  font-weight: bold;
  transition: 0.3s;
}
.navList a:hover {
  color: rgb(24, 207, 207);
}
.container {
  display: flex;
  height: 95vh;
  align-items: center;
  color: #eee;
}
.container a {
  color: rgb(24, 207, 207);
}

.profile {
  width: 50%;
  display: flex;
  justify-content: center;
}
.profile img {
  height: 400px;
  /* background-color: #333;
  border-radius: 10px;
  padding: 10px; */
}
.desc {
  width: 50%;
  font-size: 1.5rem;
  box-shadow: -20px 20px #444;
  margin: 0 40px;
  border-radius: 10px;
  padding: 10px;
  background-color: #333;
}
.name {
  line-height: 2;
  font-size: 1.5rem;
  color: rgb(24, 207, 207);
  font-weight: bold;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
}
.description {
  margin: 10px 0;
  color: rgb(222, 210, 210);
  font-size: 1.2rem;
}
.social {
  margin: 20px 0;
  display: flex;
  gap: 20px;
}

span {
  color: rgb(24, 207, 207);
  font-size: 1.5rem;
  font-weight: bold;
}
h2 {
  text-align: center;
  margin: 40px 0;
}
hr {
  border: 1px solid #333;
  margin: 50px 0;
}
.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 10px;
  border-radius: 10px;
  background-color: #345;
  height: 80%;
}
.abt-right {
  color: #d9d9d9;
  font-size: 1.2rem;
}
.cv {
  margin: 15px 0;
}
.cv a {
  color: rgb(24, 207, 207);
  background-color: #222;
  padding: 5px;
  text-decoration: none;
}
.services {
  background: linear-gradient(45deg, #333, #444);
  padding: 17px 9%;
  margin: 50px 10px;
  border-radius: 10px;
}
.services .content,
.projects .content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.services .content .card {
  box-shadow: 10px 10px 10px #222;
  border-radius: 5px;
  background-color: #333;
  text-align: center;
  padding: 30px 20px;
  font-size: 1.2rem;
}
.services .content .card img {
  height: 150px;
}
.services .content .card h3,
.projects .content .card h3 {
  margin: 30px 0;
}
.services .content .card p,
.projects .content .card p {
  height: 80px;
  margin: 10px 0;
}
.projects {
  background-color: #345;
  padding: 17px 9%;
  margin: 50px 10px;
  border-radius: 10px;
}
.projects .content .card {
  border-radius: 10px;
  text-align: center;
  padding: 30px 20px;
  font-size: 1.3rem;
  background-color: #333;
  box-shadow: 10px 10px 10px #222;
}

.projects .content .card img {
  height: 200px;
  /* background-color: #666; */
  padding: 10px;
  border-radius: 10px;
  width: 100%;
  object-fit: cover;
}
.projects a {
  color: #eee;
  font-weight: bold;
  background-color: rgb(177, 31, 60);
  border-radius: 5px;
  padding: 5px 8px;
  text-decoration: none;
}
h3 {
  margin: 5px;
}
.skill {
  width: 80%;
  margin: 60px auto;
  color: #fff;
  padding: 20px;
  box-shadow: 10px 10px 10px #111;
  background-color: #456;
  border-radius: 10px;
}
.skill li {
  margin: 20px 0;
  padding: 10px;
  list-style: none;
}
.s-bar {
  background: white;
  display: block;
  border: 1px solid black;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.s-bar span {
  height: 20px;
  float: left;
  background: linear-gradient(45deg, lightgreen, blueviolet);
  border-radius: 10px;
  border: 2px solid black;
}
.HTML {
  width: 90%;
}
.CSS {
  width: 80%;
}
.JavaScript {
  width: 70%;
}
.React {
  width: 40%;
}
.Bootstrap {
  width: 70%;
}
.Tailwind {
  width: 50%;
}
.Python {
  width: 40%;
}
.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.form-container {
  width: 80%;
  background: linear-gradient(#212121, #212121) padding-box,
    linear-gradient(145deg, transparent 35%, #e81cff, #40c9ff) border-box;
  border: 2px solid transparent;
  padding: 32px 24px;
  font-size: 14px;
  font-family: inherit;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  border-radius: 16px;
}

.form-container button:active {
  scale: 0.95;
}

.form-container .form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-container .form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-container .form-group label {
  display: block;
  margin-bottom: 5px;
  color: #717171;
  font-weight: 600;
  font-size: 12px;
}

.form-container .form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  background-color: transparent;
  border: 1px solid #414141;
}

.form-container .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  resize: none;
  color: #fff;
  height: 96px;
  border: 1px solid #414141;
  background-color: transparent;
  font-family: inherit;
}

.form-container .form-group input::placeholder {
  opacity: 0.5;
}

.form-container .form-group input:focus {
  outline: none;
  border-color: #e81cff;
}

.form-container .form-group textarea:focus {
  outline: none;
  border-color: #e81cff;
}

.form-container .form-submit-btn {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-self: flex-start;
  font-family: inherit;
  color: #717171;
  font-weight: 600;
  width: 40%;
  background: #313131;
  border: 1px solid #414141;
  padding: 12px 16px;
  font-size: inherit;
  gap: 8px;
  margin-top: 8px;
  cursor: pointer;
  border-radius: 6px;
}

.form-container .form-submit-btn:hover {
  background-color: #fff;
  border-color: #fff;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 10px 0;
  background-color: #111;
}
.footer .social a {
  color: #eee;
}
.footer p {
  opacity: 0.8;
}

/* Tablet View */
@media screen and (max-width: 820px) {
  .profile img {
    height: 250px;
  }
}
/* Mobile View */

@media screen and (max-width: 750px) {
  .navbar {
    padding: 0;
  }
  .navList {
    flex-direction: column;
    top: 50px;
    position: fixed;
    width: 100%;
    background-color: #333;
    align-items: center;
    padding: 20px 0;
    right: 100%;
    transition: 0.3s ease-in-out;
  }
  .hamburger {
    display: block;
  }
  .bar {
    display: block;
    cursor: pointer;
    height: 5px;
    width: 30px;
    margin-top: 3px;
    border-radius: 5px;
    background-color: #fff;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transition: 0.3s ease-in-out;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    transition: 0.3s ease-in-out;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    transition: 0.3s ease-in-out;
  }
  .navList.active {
    right: 0;
  }
  .profile {
    display: none;
  }
  .desc {
    width: 100%;
    height: 70%;
  }
  .name {
    line-height: 4;
  }
  .description {
    margin-top: 50px;
  }
  .social {
    margin-top: 30px;
  }
  .about {
    flex-direction: column;
  }
  .abt-right {
    padding: 10px;
  }
}
