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

:root {
  --font-rowdies: 'Rowdies', sans-serif;
  --font-caveat: 'Caveat', cursive;
  --color-green: #29a587;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  font-family: var(--font-rowdies);
}

html {
  /* 1rem = 16px default */
  font-size: 62.5%;
  /* 1rem = 10px custom */
}

.container {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: linear-gradient(#232932, #2c3138, #232932);
}

/* ================= START OF HERO SECTION ===================== */
.landing {
  width: 100%;
  height: 100vh;
  position: relative;
}

.section-bg-heading {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-size: 30rem;
  font-family: var(--font-caveat);
  color: #31363d;
  opacity: 0.5;
}

.banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
}

.developer-info {
  margin-right: 15rem;
}

.greeting {
  font-size: 1.6rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.1rem;
}

.greeting span {
  color: var(--color-green);
}

.name {
  font-size: 10rem;
  width: 60rem;
  margin: 4rem 0 2rem 0;
  color: #fff;
  text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.name span {
  color: var(--color-green);
}

.prof {
  font-size: 1.8rem;
  font-weight: 300;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.2rem;
  margin-bottom: 6rem;
}

.prof span {
  color: var(--color-green);
  font-family: var(--font-caveat);
  font-size: 3rem;
  font-weight: bold;
  text-transform: capitalize;
  margin-left: 1.2rem;
}

.about {
  width: 60rem;
  font-family: var(--font-caveat);
  font-size: 2.5rem;
  line-height: 1;
  color: #a9abae;
  margin-bottom: 5rem;
}

.social-media {
  margin-bottom: 5rem;
}

.social-media i {
  font-size: 2.5rem;
  color: #fff;
  margin-right: 2rem;
  text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: color 0.3s;
}

.social-media i:hover {
  color: var(--color-green);
}

.btn {
  width: 20rem;
  height: 6rem;
  border: 2px solid #bbb;
  background-color: transparent;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 300;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
  margin-right: 7rem;
  border-radius: 3rem;
}

.btn::before {
  content: '';
  width: 100%;
  height: 100%;
  background-color: var(--color-green);
  border-radius: 3rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10;
  transform: scale(0);
  transition: transform 0.3s;
}

.btn:hover::before {
  transform: scale(1);
}

.cv-btn::after {
  content: '';
  width: 5rem;
  height: 0.2rem;
  background-color: #bbb;
  position: absolute;
  top: 50%;
  right: -5rem;
}

.cv span {
  font-size: 1.4rem;
  font-weight: 300;
  text-transform: uppercase;
  color: #fff;
}

.dev-img-wrapper {
  width: 60rem;
  height: 60rem;
  border-radius: 50%;
  background-color: var(--color-green);
  padding: 0rem 0rem 0 0rem;
  box-shadow:  rem 1rem rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}

.dev-img-wrapper img {
  width: 100%;
  height: 100%;
}

.dev-work {
  width: 25rem;
  height: 9rem;
  background-color: #1d222a;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: #fff;
  border: 0.2rem solid #bbb;
  border-radius: 6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
  position: absolute;
}

.dev-experience {
  bottom: 10rem;
  right: 40rem;
}

.dev-projects {
  bottom: 1rem;
  right: -2rem;
}

.dev-work span:nth-child(1) {
  font-size: 3rem;
  width: 50%;
  text-align: center;
}

.dev-work span:nth-child(2) {
  color: var(--color-green);
  width: 50%;
}

/* ================= END OF HERO SECTION ===================== */

/* ================= START OF SKILLS SECTION ===================== */
.skills {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-heading {
  font-size: 6rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: #fff;
  margin-bottom: 3rem;
}

.sub-heading {
  font-size: 2rem;
  color: var(--color-green);
  text-transform: uppercase;
}

.sub-heading span {
  font-family: var(--font-caveat);
  font-size: 3.5rem;
  text-transform: capitalize;
  color: #fff;
}

.skills-cards {
  width: 140rem;
  margin: 8rem 0 0 10rem;
  display: flex;
  flex-wrap: wrap;
}

.skills-card {
  width: 40rem;
  height: 18rem;
  margin: 3rem;
  padding: 0 3rem;
  /* position: relative; */
}

.skill {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.skill span {
  font-size: 2rem;
  color: #eee;
}

.skill span:nth-child(2) {
  color: var(--color-green);
}

.skills-card p {
  font-family: var(--font-caveat);
  font-size: 2rem;
  color: #bbb;
  margin-bottom: 4rem;
}

/* ================= END OF SKILLS SECTION ===================== */

/* ================= START OF PROJECT SECTION ===================== */
.projects {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-cards {
  width: 140rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10rem;
  padding-bottom: 10rem;
  z-index: 100;
}

.project-card {
  width: 40rem;
  height: 55rem;
  background-color: #1d222a;
  margin: 2rem;
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-img {
  width: 36rem;
  height: 20rem;
  border-radius: 1rem;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.project-img img:hover {
  transform: scale(1.3);
}

.techs span {
  font-size: 1.6rem;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--color-green);
  letter-spacing: 0.1rem;
}

.project-name {
  font-size: 3rem;
  font-weight: 300;
  color: #fff;
  margin-top: -2rem;
}

.project-desc {
  font-family: var(--font-caveat);
  font-size: 2.2rem;
  color: #ccc;
}

.project-btn {
  width: 20rem;
  height: 4rem;
  background-color: transparent;
  font-size: 1.8rem;
  text-align: left;
  color: #fff;
  border: none;
  cursor: pointer;
}

.project-btn i {
  color: var(--color-green);
  margin-left: 1rem;
  transition: margin-left 0.3s;
}

.project-btn:hover i {
  margin-left: 2rem;
}

.projects .btn {
  margin: 5rem 0 0 0;
}

/* ================= END OF PROJECT SECTION ===================== */

/* ================= START OF CONTACT SECTION ===================== */
.contact {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-content {
  width: 120rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-left div {
  display: flex;
  align-items: center;
  margin: 3rem 0;
}

.contact-left i {
  width: 5rem;
  height: 5rem;
  background-color: #1d222a;
  border: 2px solid #bbb;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: #eee;
  margin-right: 9rem;
  position: relative;
}

.contact-left i:after {
  content: '';
  width: 4rem;
  height: 0.2rem;
  background-color: #bbb;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -4rem;
}

.contact-info {
  width: 20rem;
  display: flex;
  flex-direction: column;
}

.contact-info span {
  width: 100%;
}

.contact-info span:nth-child(1) {
  font-family: var(--font-caveat);
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
}

.contact-info span:nth-child(2) {
  font-size: 1.6rem;
  font-weight: 300;
  color: #777;
}

.contact-right {
  width: 60rem;
  height: 60rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.input-groups {
  display: flex;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.5rem 2rem;
}

.input-group input,
textarea {
  height: 6rem;
  margin: 0 3rem 5rem 0;
  background: #1d222a;
  border: 2px solid #777;
  border-radius: 3rem;
  font-size: 1.6rem;
  font-weight: 300;
  color: #fff;
  padding: 1rem 1rem 1rem 2rem;
}

.input-groups input {
  width: 35rem;
}

.input-group textarea {
  margin-bottom: 2rem;
  height: 12rem;
  resize: none;
}

.contact-btn {
  width: calc(100% - 3rem);
  height: 5rem;
  background-color: var(--color-green);
  border: 0.2rem solid #bbb;
  border-radius: 3rem;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.2rem;
  cursor: pointer;
}
/* ================= END OF CONTACT SECTION ===================== */

/* ================= START OF FOOTER SECTION ===================== */
.footer {
  width: 100%;
  height: 10rem;
  border-top: 0.1rem solid #444;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.icons i {
  font-size: 2rem;
  color: #fff;
  margin-right: 2rem;
  text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.copyright,
.author {
  font-size: 1.6rem;
  color: #fff;
}

.author span {
  font-family: var(--font-caveat);
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-green);
}
/* ================= END OF FOOTER SECTION ===================== */

@media (max-width: 1700px) {
  html {
    font-size: 57%;
  }

  .contact-content {
    width: 120rem;
  }
}

@media (max-width: 1500px) {
  html {
    font-size: 52%;
  }

  .name {
    font-size: 7rem;
    width: 40rem;
  }

  .about {
    width: 45rem;
  }

  .dev-img-wrapper {
    width: 40rem;
    height: 40rem;
  }

  .dev-work {
    width: 20rem;
    height: 7rem;
    padding: 0 1rem;
  }

  .dev-work span:nth-child(1) {
    font-size: 2rem;
    width: 35%;
  }

  .dev-experience {
    bottom: 22rem;
    right: 25rem;
  }

  .dev-projects {
    bottom: 14rem;
    right: -4rem;
  }

  .section-bg-heading {
    font-size: 23rem;
  }

  .skills {
    height: 100%;
    padding: 10rem 0 20rem 0;
  }

  .skills-cards,
  .projects-cards {
    width: 100rem;
  }

  .contact-content {
    width: 110rem;
  }
}

@media (max-width: 1200px) {
  html {
    font-size: 45%;
  }

  .contact-content {
    width: 100rem;
    justify-content: space-evenly;
  }

  .contact-right {
    margin-right: -15rem;
  }

  .input-groups {
    flex-direction: column;
  }

  .input-groups input {
    width: 60rem;
  }
}

@media (max-width: 900px) {
  html {
    font-size: 39%;
  }

  .section-bg-heading {
    font-size: 20rem;
  }

  .contact-content {
    width: 110rem;
  }

  .contact-right {
    margin-right: -5rem;
  }
}

@media (max-width: 700px) {
  html {
    font-size: 35%;
  }

  .section-bg-heading {
    font-size: 17rem;
  }

  .developer-img {
    display: none;
  }

  .skills-cards {
    align-items: center;
    justify-content: center;
  }

  .skills-card {
    width: 60rem;
  }

  .project-card {
    align-items: center;
    width: 50rem;
  }

  .contact-content {
    width: 70rem;
  }

  .contact-left {
    display: none;
  }
}

@media (max-width: 500px) {
  .banner {
    width: 70%;
  }

  .section-heading {
    text-align: center;
  }

  .skills-card,
  .contact-content {
    width: 55rem;
  }

  .input-groups input {
    width: 50rem;
  }

  .icons {
    display: none;
  }
}