* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}
html {
  font-size: 62.5%;
  box-sizing: border-box;
}
body {
  font-weight: 400;
  font-family: sans-serif;
  padding: 2rem;
}

/* ************ */
/* Header Section */
/* ************ */
.top {
  display: flex;
  justify-content: space-around;
  margin-top: 4rem;
}
.profile_container {
  left: 10rem;
  max-width: 30.2rem;
}
.profile_image {
  width: 100%;
}

.show-modal {
  padding: 1.75rem 3.5rem;
  border-radius: 1.2rem;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 600;
  background: #fff;
  color: #444;
}

/* ************ */
/* Main Section */
/* ************ */
.main_section {
  margin: 0 auto;
}
.heading-primary,
.heading-secondary,
.heading-tertiary {
  font-weight: 700;
  color: #333;
  letter-spacing: -0.5px;
  text-align: center;
}
.heading-primary {
  font-size: 5.2rem;
  line-height: 1.05;
}
.heading-secondary {
  font-size: 3.6rem;
  line-height: 1.2;
  margin-bottom: 1.6rem;
}
.heading-tertiary {
  font-size: 3rem;
  margin-bottom: 3.2rem;
  position: relative;
}
.tertiary_container {
  display: flex;
  justify-content: center;
  padding-bottom: 1.2rem;
}
.heading-tertiary:after {
  content: "";
  position: absolute;
  bottom: -0.8rem;
  left: 22%;
  width: 60%;
  height: 4px;
  background: orangered;
  text-align: center;
}
/* work section */
.work_section {
  padding-bottom: 2rem;
}
.work_container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

.work_image-1 {
  width: 100%;
}
.work_button-group {
  display: flex;
  justify-content: space-between;
  padding: 1rem 3rem;
}
.work_button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.4rem;
  border: 1px solid blueviolet;
}

.card {
  border-radius: 1rem;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
}

/* ************ */
/* Footer Section */
/* ************ */
.footer_section {
  text-align: center;
}
/* ************ */
/* modal Section */
/* ************ */
.hidden {
  display: none;
}
.close {
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  font-size: 5rem;
  color: #333;
  cursor: pointer;
  border: none;
  background: none;
}
.about_section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 70%;
  background-color: #eee;
  padding: 6rem;
  border-radius: 0.5rem;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: 10;
}
.contact_section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 70%;
  background-color: #eee;
  padding: 6rem;
  border-radius: 0.5rem;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
}
.description {
  text-indent: 1em;
  font-size: 1.8rem;
  line-height: 1.6;
  padding-bottom: 2.4rem;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 5;
}

/* ************* */
/* Media queries */
/* ************* */
/* Below 1344px(smaller desktop) */
@media (max-width: 84em) {
  .work_button {
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
  }
}

/* Below 1200px(landscape tablets) */
@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }
  .work_container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
  }
}

/* Below 944px(tablets) */
@media (max-width: 59em) {
  html {
    font-size: 50%;
  }
}

/* Below 704px(smaller tablets) */
@media (max-width: 44em) {
  .work_container {
    grid-template-columns: repeat(1, 1fr);
    gap: 2.4rem;
  }
  .show-modal {
    padding: 1rem 2.6rem;
    font-size: 1.6rem;
    font-weight: 600;
  }
  .heading-primary {
    font-size: 3.6rem;
    line-height: 1.05;
  }
  .heading-secondary {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 1.6rem;
  }
  .top,
  .work_section,
  .about_section{
    padding:2rem;
    margin:2rem 1rem;
    border-radius:1.2rem;
    background :#fff;
    box-shadow:0 1rem 2rem rgba(0,0,0,0.08);
  }
}

/* Below 544px(phones */
@media (max-width: 34em) {
  .heading-primary {
    font-size: 3rem;
    line-height: 1.05;
  }
  .heading-secondary {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.6rem;
  }
  .show-modal {
    padding: 0.7rem 1rem;
    font-size: 1.6rem;
    font-weight: 600;
  }
  .top {
    gap: 1.2rem;
  }
  .about_section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 98%;
    background-color: #eee;
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
    z-index: 10;
  }
}
