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

* {
  margin: 0;
  padding: 0;
  border: border-box;
  font-family: Poppins;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: #fbfdfe;
  color: #232829;
}

/* Navbar */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fbfdfe;
  z-index: 999;
  padding: 2.4rem;
  height: 3.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  height: 2.2rem;
}

.navbar-list {
  display: flex;
  gap: 4rem;
  list-style-type: none;
}

.navbar-list .navbar-links {
  color: #232829;
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.navbar-list .navbar-links:hover {
  color: #0974f1;
}

.contact {
  padding: 1rem 2rem;
  border: 0.1rem solid #232829;
  border-radius: 2.5rem;
}

.navbar-btn {
  display: none;
  background: transparent;
  cursor: pointer;
}

.nav-btn {
  width: 2.5rem;
  height: 2.5rem;
}

.navbar-btn .close-btn {
  display: none;
}

/* Main */

.main {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  height: 100vh;
}

.pfp {
  width: 9.5%;
  padding-top: 2.8rem;
  padding-bottom: 3.6rem;
}

.top-h1,
.contact-h1 {
  text-align: center;
  font-size: 4.5rem;
  font-weight: 800;
  background-image: linear-gradient(to right, #8364e8, #0974f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-p {
  font-size: 3.8rem;
  font-weight: 600;
  width: 80%;
  text-align: center;
}

.top-p2 {
  font-size: 1.8rem;
  width: 50%;
  text-align: center;
  color: #9796a2;
}

.top-btn {
  align-items: center;
  display: flex;
  justify-content: center;
  font-size: 1.4rem;
  margin: 4.6rem auto 0 auto;
  padding: 1rem 2rem;
  background: linear-gradient(to right, #823fee, #1756dd);
  border: none;
  border-radius: 5rem;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease 0s;
}

.top-btn:hover {
  box-shadow: 0 0 1rem #1756dd;
}

.arrow-icon {
  padding-left: 0.5rem;
  height: 1.5rem;
}

/* About */

.about {
  margin-top: 2rem;
  padding-top: 13rem;
}

.about-content {
  padding-top: 7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12rem;
}

.photo img {
  width: 30rem;
  height: auto;
  border-radius: 2rem;
}

.content-right {
  flex-basis: 40rem;
}

.about-boxes {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 13rem;
  height: 10rem;
  border-radius: 1rem;
  border: 0.1rem solid #d6d4d4;
  transition: all 0.2s ease 0s;
}

.box:hover {
  border-color: #1756dd;
}

.box h3 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.box p {
  margin-top: 0.5rem;
  font-size: 1.3rem;
  color: #979682;
}

.box i {
  font-size: 2.5rem;
}

.about-p {
  margin-bottom: 3rem;
  font-size: 1.6rem;
  font-weight: 400;
}

.about-btn {
  display: inline-block;
  font-size: 1.5rem;
  padding: 1rem 2rem;
  width: fit-content;
  background: linear-gradient(to right, #823fee, #1756dd);
  border: none;
  border-radius: 5rem;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease 0s;
}

.about-btn:hover {
  box-shadow: 0 0 1rem #1756dd;
}

/* Skills */

.skills {
  margin-top: 2rem;
  padding-top: 13rem;
}

.skills-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  padding-top: 7rem;
}

.skills-h2 {
  text-align: center;
  background-image: linear-gradient(to right, #8364e8, #0974f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
  padding-bottom: 1.5rem;
}

.skills-content {
  padding: 2.5rem;
  border-radius: 2rem;
}

.skills-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 1rem;
}

.skills-content {
  border: 0.1rem solid #9796a2;
}

.skills-content:hover {
  border-color: #1756dd;
}

.skills-content-data {
  display: flex;
  column-gap: 0.6rem;
}

.skills-content-data i {
  font-size: 1.5rem;
  padding-top: 0.2rem;
}

.skill-name {
  line-height: 1.8rem;
  font-size: 1.6rem;
  font-weight: 500;
}

.skill-level {
  color: #9796a2;
  font-size: 1.2rem;
}

/* Services */

.services {
  margin-top: 2rem;
  padding-top: 13rem;
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.services-list {
  display: flex;
  margin: 0 5rem;
}

.items .services-h {
  font-size: 2.4rem;
  font-weight: 500;
}

.items {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 7rem;
  width: 100%;
  gap: 1rem;
}

.items p {
  width: 80%;
  flex-basis: 80%;
}

.services-icons {
  width: 8rem;
  height: 8rem;
}

/* Work */

.work {
  margin-top: 2rem;
  padding-top: 13rem;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  justify-content: center;
  align-items: center;
  gap: 5rem;
  margin: 0 10rem;
}

.work-items {
  position: relative;
  overflow: hidden;
  margin-top: 7rem;
  border-radius: 1rem;
}

.work-items img {
  width: 100%;
  border-radius: 1rem;
  display: block;
  transition: transform 0.3s;
}

.image-text {
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), #501ef5);
  border-radius: 1rem;
  position: absolute;
  overflow: hidden;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 3rem;
  color: #ffffff;
  transition: height 0.3s;
}

.work-items:hover img {
  transform: scale(1.1);
}

.work-items:hover .image-text {
  height: 100%;
}

.image-text h2 {
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.image-text p {
  font-size: 1.5rem;
}

.image-text a {
  margin-top: 2rem;
  color: #1756dd;
  text-decoration: none;
  font-size: 2rem;
  background: #ffffff;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.work-btn {
  display: block;
  width: fit-content;
  align-items: center;
  font-size: 1.5rem;
  margin: 3.5rem auto;
  padding: 1rem 2rem;
  background: linear-gradient(to right, #823fee, #1756dd);
  border: none;
  border-radius: 5rem;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  transition: box-shadow 0.3s;
}

.work-btn:hover {
  box-shadow: 0 0 1rem #1756dd;
}

/* Contact me */

.contact-me {
  margin-top: 2rem;
  padding-top: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.reach {
  font-size: 1.8rem;
  color: #9796A2;
  margin-top: 5rem;
  margin-bottom: 2rem;
}

.contact-p1, .phone {
  font-size: 2.6rem;
  text-decoration: none;
  color: #232829;
  margin-bottom: 1rem;
  font-weight: 600;
}


.social-icons {
  margin-top: 2.5rem;
}

.social-icons a {
  color: #232829;
  text-decoration: none;
  font-size: 3.5rem;
  margin-right: 1.5rem;
  display: inline-block;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: linear-gradient(to right, #8364e8, #0974f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(-0.5rem);
}

form input,
form textarea {
  width: 75%;
  border: 0;
  outline: none;
  background: #d6d4d4;
  padding: 1.5rem;
  margin: 1.5rem;
  border-radius: 1rem;
}

input::placeholder,
textarea::placeholder {
  color: #413c3c;
  opacity: 70%;
}

.contact-right button {
  align-items: center;
  font-size: 1.5rem;
  margin: 2rem 1.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(to right, #823fee, #1756dd);
  border: none;
  border-radius: 5rem;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  transition: box-shadow 0.3s;
}

.contact-right button:hover {
  box-shadow: 0 0 1rem #1756dd;
}

.hr {
  border: none;
  height: 0.02rem;
  background-color: #9796a2;
  margin: 6rem 0 2rem;
}

.copyright {
  text-align: center;
  font-size: 1.8rem;
  padding: 2rem 0;
  margin-top: 2rem;
}

/* Responsive */

@media only screen and (max-width: 63em) {
  .main {
    width: 100%;
    height: 100vh;
    gap: 1.5rem;
  }

  .logo {
    height: 2rem;
  }

  .top-h1,
  .top-p {
    font-size: 2.4rem;
    text-align: center;
    width: 95%;
  }

  .top-h1,
  .contact-h1 {
    font-size: 3.2rem;
  }

  .top-p {
    line-height: 3.2rem;
  }

  .top-p2 {
    width: 90%;
    font-size: 1.6rem;
  }

  .pfp {
    padding-bottom: 0.8rem;
    width: 35%;
  }

  .top-btn {
    margin-top: 1rem;
  }

  .about {
    padding-top: 0;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-top: 6rem;
  }

  .about-h1 {
    width: 100%;
  }

  .content-right {
    text-align: center;
    align-items: center;
    padding: 0 4rem;
  }

  .about-content img {
    width: 30rem;
  }

  .about-boxes {
    align-items: center;
    justify-content: center;
  }

  .skills-h1 {
    width: 100%;
  }

  .skills-container {
    flex-direction: column;
    margin: 0 2.5rem;
    gap: 3rem;
  }

  .skills-content {
    padding: 2.5rem;
  }

  .work-h1 {
    width: 100%;
  }

  .work-list {
    grid-template-columns: 1fr;
    margin: 4rem;
    gap: 2rem;
  }

  .work-items {
    margin-top: 3rem;
  }

  .work-items img {
    width: 100%;
  }

  .services {
    margin-top: 2rem;
  }

  .services-h1 {
    width: 100%;
  }

  .services-list {
    display: block;
  }

  .services-icons {
    width: 5rem;
    height: 5rem;
  }

  .items .services-h {
    font-size: 2.2rem;
  }

  .items {
    padding-top: 5rem;
    gap: 1rem;
  }

  .items p {
    width: 100%;
  }

  .header {
    position: fixed;
  }

  .navbar-btn {
    display: block;
    z-index: 999;
  }

  .navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    width: 100%;
    height: 100vh;
    background-color: #fbfdfe;
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(100%);
    transition: all 0.2s linear;
    opacity: 0;
    visibility: hidden;
  }

  .navbar-list {
    flex-direction: column;
    align-items: center;
  }

  .navbar-list .navbar-links {
    font-size: 2rem;
  }

  .active .navbar {
    visibility: visible;
    transform: translateX(0);
    opacity: 1;
  }

  .active .navbar-btn .nav-btn[name="close-btn"] {
    display: block;
  }

  .active .navbar-btn .nav-btn[name="menu-btn"] {
    display: none;
  }

  .contact-me {
    padding-top: 13rem;
    margin-top: 2rem;
  }
  
  .contact-left p {
    margin-top: 2rem;
  }

  form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  form input,
  form textarea {
    margin: 1.5rem;
  }
}