body.blur {
  filter: blur(3px);
}

/* Styles for whole page */
.slide-in {
  opacity: 0;
  transform: translateX(-10%);
  transition: 500ms ease-in-out;
}

.slide-in.active {
  opacity: 1;
  transform: translateX(0);
}

.blur {
  filter: blur(10px);
}

.highlight-text {
  color: var(--lightest-slate);
}

.section {
  min-height: calc(100vh - 80px);
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  font-size: 1.1rem;
  color: var(--slate);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: 100%;
  border-radius: 5px;
}

.btn {
  position: relative;
  top: 0;
  left: 0;
  display: block;
  width: max-content;

  outline: 1px solid var(--green);
  border: none;
  border-radius: 5px;
  color: var(--green);
  background-color: var(--navy);
  font-size: 16px;
  padding: 18px 24px;
  transition: 200ms ease-in-out;
  overflow: hidden;
  z-index: 1;
}

.button-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
  width: min-content;
}

.btn-wrapper::after {
  position: absolute;
  display: block;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--green);
  border-radius: 5px;
  z-index: -1;
}

.hero .btn-wrapper {
  position: relative;
  width: fit-content;
  margin: 0;
}

.btn-wrapper:hover .btn {
  top: -5px;
  left: -5px;
}

/* Main Styles */
main {
  padding: 0 max(150px, 11vw);
  transition: 200ms;
  transition-delay: .3s;
}

/* width */
::-webkit-scrollbar {
  width: 7px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--dark-slate); 
  border-radius: 25px;
}

@media (max-width: 1200px) {
  /* change the layout of profile container */
  .profile_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin: 0 auto;
  }
}

/* Mobile Version Breakpoint */
@media (max-width: 840px) {

  main {
    padding: 0 max(1.8rem, 8vw);
  }

  /* change to mobile nav */
  .desktop_nav {
    display: none;
  }
  .mobile_nav {
    display: block;
  }

  .description {
    width: 100%;
  }

  /* Adjusting the mobile footer */
  .side_content {
    display: none !important;
  }
  .mobile_footer {
    display: block;
  }

  /* change the layout of contact_form */
  .contact_form {
    display: flex;
    flex-direction: column;
    width: clamp(200px, 60vw, 600px);
  }

  /* change the font-size of hero p */
  .about p {
    font-size: 1rem;
  }

  /* line after section heading will be shortened */
  .sec_heading::after {
    left: calc(100% + 10px);
    width: 25vw;
  }

  /* removing sections padding */
  .section {
    padding-left: 0;
    padding-right: 0;
  }

  /* changing font-size of projects headings and section headings */
  .projects h3 {
    font-size: 1.5rem;
  }
  .sec_heading {
    font-size: 1.7rem;
  }

  /* disable project card filpping on mobile version */
  .project_card {
    transform: rotateY(180deg);
  }
}

@media (max-width: 430px) {

  /* Hide Section heading */
  .sec_heading::after {
    display: none;
  }

  /* reduce padding from nav */
  nav {
    padding: 0 20px;
  }

  /* change the grid property of projects_container */
  .projects_container {
    grid-template-columns: 1fr;
  }

  /* change root font size */
  body, html {
    font-size: 14px;
  }

  /* fix name logo place */
  .name {
    top: 32%;
    left: 31%;
  }

  .profile {
    width: 100%;
  }

  .profile p {
    width: 100%;
    margin: auto;
  }

  .btn {
    font-size: 12px;
    padding: 15px 23px;
  }
}
