* {
  margin: 0px;
  padding: 0px;
  font-family: Poppins, sans-serif;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: #080808;
  color: #ffffff;
}
#header {
  width: 100%;
  height: 105vh;
  background-image: url(personal-portfolio-img/images/desktop.jpg);
  background-size: cover;
  background-position: center;
}
.container {
  width: 100%;
  padding: 10px 5%;
}
.navbar {
  width: 105%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: rgba(0, 0, 0, 0);
}
.name {
  width: 170px;
  height: 30px;
  font-size: 25px;
}
.unorderedlist li {
  display: inline-block;
  list-style: none;
  margin: 10px 20px;
}
.unorderedlist a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}
.unorderedlist a::after {
  content: "";
  width: 0%;
  height: 3px;
  background-color: #ff004f;
  position: absolute;
  left: 0px;
  bottom: -6px;
  transition: 0.5s;
}
.unorderedlist a:hover::after {
  width: 100%;
}
.header-text {
  margin-top: 20%;
  font-size: 60px;
}
#react_logo {
  width: 60px;
  height: 60px;
  margin-left: 5px;
  border-radius: 30px;
  position: absolute;
  animation: reactlogo 3s ease-in-out infinite normal;
}

@keyframes reactlogo {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}
.header-text h1 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 400;
}
.header-text p span {
  color: #ffffff;
}
.social-icons {
  margin-top: 30px;
}
.first-icons {
  margin-top: 10px;
}
.social-icons a {
  margin-right: 15px;
  text-decoration: none;
  font-size: 30px;
  color: #ababab;
  display: inline-block;
  transition: transform 0.5s;
}
.social-icons a:hover {
  color: #ff004f;
  transform: translateY(-5px);
}

/*---------------------------------------------About ME----------------------------------------*/

.main {
  padding: 50px 0px;
  color: #ababab;
}
.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.about_col_1 {
  flex-basis: 35%;
}
.about_col_1 img {
  width: 100%;
  border-radius: 15px;
}
.about_col_2 {
  flex-basis: 60%;
}
.subtitle {
  font-size: 60px;
  font-weight: 600;
  color: #ffffff;
}
.tab_titles {
  display: flex;
  margin: 20px 0 40px;
}
.tab_links {
  margin-right: 50px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}
.tab_links::after {
  content: "";
  width: 0%;
  height: 3px;
  background-color: #ff004f;
  position: absolute;
  left: 0px;
  bottom: -6px;
  transition: 0.5s;
}
.tab_links:hover::after {
  width: 100%;
}
.tab_links.active_link::after {
  width: 50%;
}
.tab_contents ul li {
  list-style: none;
  margin: 10px 0;
}
.tab_contents ul li span {
  color: #b54769;
  font-size: 14px;
}
.tech_stack {
  display: flex;
}
.tech_stack_logos {
  margin-left: 5px;
  width: 50px;
  height: 50px;
  transition: transform 0.5s;
}
.tech_stack_logos:hover {
  transform: translateY(-5px);
}
.sqaure_logo {
  border-radius: 5px;
}
#css {
  width: 45px;
  height: 50px;
}
.tab_contents {
  display: none;
}
.tab_contents.active_tab {
  display: block;
}

/*---------------------------Projects-----------------------------------*/

#portfolio {
  margin: 50px 0px;
}
.worklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
}
.work {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.work img {
  border-radius: 10px;
  width: 100%;
  display: block;
  transition: transform 0.5s;
}
.layer {
  width: 100%;
  height: 0%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), #ff004f);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  transition: height 0.5s;
}
.layer h3 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 20px;
}
.layer p {
  color: #ffffff;
  font-size: 14px;
}
.layer a {
  margin-top: 20px;
  color: #ff004f;
  text-decoration: none;
  font-size: 18px;
  line-height: 40px;
  background: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
}
.work:hover img {
  transform: scale(1.1);
}
.work:hover .layer {
  height: 100%;
}
.btn {
  display: block;
  margin: 50px auto;
  width: fit-content;
  border: 1px solid #ff004f;
  padding: 14px 50px;
  border-radius: 6px;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.5s;
}
.btn:hover {
  background-color: #ff004f;
}

/*-----------------------------------Contact Me--------------------------------------------------------*/

.contact_left {
  flex-basis: 35%;
}
.contact_right {
  flex-basis: 60%;
}
.contact_left p {
  margin-top: 30px;
}
.contact_left p i {
  color: #ff004f;
  margin-right: 15px;
  font-size: 25px;
}
.btn.btn_2 {
  display: inline-block;
  background-color: #ff004f;
}
.contact_right form {
  width: 100%;
}
form input,
form textarea {
  width: 100%;
  border: 0;
  outline: none;
  background-color: #262626;
  padding: 15px;
  margin: 15px 0px;
  color: #ffffff;
  font-size: 18px;
  border-radius: 6px;
}
form .btn_2 {
  padding: 14px 60px;
  font-size: 18px;
  margin-top: 20px;
  cursor: pointer;
}

#msg {
  color: #61b752;
  margin-top: -130px;
  display: none;
}

.copyright {
  width: 100%;
  margin-top: 20px;
  padding: 25px;
  text-align: center;
  background-color: #262626;
  font-size: 15px;
  font-weight: 500;
}

/*--------------------CSS for Small Screens---------------------------------------------*/
.navbar .fa-solid {
  display: none;
}
@media only screen and (max-width: 600px) {
  #header {
    width: 100%;
    background-image: url(personal-portfolio-img/images/mobile.jpg);
  }
  .header-text {
    width: 130px;
    margin-top: 100%;
    font-size: 25px;
  }
  .header-text h1 {
    margin-top: 30px;
    font-size: 17px;
  }
  #react_logo {
    width: 25px;
    height: 25px;
    border-radius: 30px;
    animation: reactlogo 3s ease-in-out infinite normal;
  }
  @keyframes reactlogo {
    from {
      rotate: 0deg;
    }
    to {
      rotate: 360deg;
    }
  }
  .navbar .fa-solid {
    display: block;
    font-size: 25px;
  }
  .navbar .unorderedlist {
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0px;
    right: -200px;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    z-index: 2;
  }
  .navbar .unorderedlist li {
    display: block;
    margin: 25px;
  }
  .navbar .unorderedlist .fa-solid {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }
  .subtitle {
    font-size: 40px;
  }
  .about_col_1,
  .about_col_2 {
    flex-basis: 100%;
  }
  .about_col_1 {
    margin-bottom: 30px;
  }
  .about_col_2 {
    font-size: 14px;
  }
  .contact_left,
  .contact_right {
    flex-basis: 100%;
  }
  .first-icons {
    display: flex;
    margin-top: 30px;
  }
}
