@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600&display=swap");

* {
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none !important;
  outline: none;
  border: none;
  transition: all 0.2s linear;
}

*::selection {
  background: var(--skin-color);
  color: #333;
}

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

html::-webkit-scrollbar {
  width: 1.4rem;
}

html::-webkit-scrollbar-track {
  background: #222;
}

html::-webkit-scrollbar-thumb {
  background: var(--skin-color);
}

body {
  background: #111;
  overflow-x: hidden;
  padding-left: 35rem;
}

section {
  min-height: 100vh;
  padding: 1rem;
}

.button,
.btn {
  padding: 0.7rem 3rem;
  background: #333;
  color: #fff;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 2rem;
  border-radius: 5rem;
  text-transform: capitalize;
}

.button i {
  padding: 0 0.5rem;
  font-size: 1.8rem;
}

.button:hover,
.btn:hover {
  background: var(--skin-color);
}

.heading {
  text-align: center;
  margin: 0 6rem;
  font-size: 4rem;
  padding: 1rem;
  border-bottom: 0.1rem solid #fff4;
  color: #fff;
}

.heading span {
  color: var(--skin-color);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 100%;
  width: 35rem;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  text-align: center;
  text-transform: capitalize;
}

header .user img {
  height: 17rem;
  width: 17rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 0.7rem solid var(--skin-color);
}

header .user .name {
  font-size: 3.5rem;
  color: #fff;
}

header .user .post {
  font-size: 2rem;
  color: #eee;
}

header .index {
  width: 100%;
}

header .index ul {
  list-style: none;
  padding: 1rem 3rem;
}

header .index ul li a {
  display: block;
  padding: 1rem;
  margin: 1.5rem 0;
  background: #333333;
  color: #fff;
  font-size: 2rem;
  border-radius: 5rem;
}

header .index ul li a:hover,
header .index ul li button:hover {
  background: var(--skin-color);
}

header .index ul li button {
  position: absolute;
  top: 0;
  color: #fff;
  margin: 2rem 0;
  padding: 1rem;
  font-size: 2rem;
  display: block;

  background: rgba(51, 51, 51, 0.22);
  border-radius: 1rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(9.1px);
  -webkit-backdrop-filter: blur(9.1px);
}

.toggle-light-mode.on-body {
  position: fixed;
  top: 0;
  right: 2rem;
  color: #fff;
  margin: 2rem 0;
  padding: 1rem;
  font-size: 2rem;
  display: none;

  background: rgba(51, 51, 51, 0.22);
  border-radius: 1rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(9.1px);
  -webkit-backdrop-filter: blur(9.1px);
}

#menu {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: #333;
  color: #fff;
  cursor: pointer;
  font-size: 2.5rem;
  padding: 1rem 1.5rem;
  z-index: 1000;
  display: none;
}

.home {
  display: flex;
  justify-content: center;
  flex-flow: column;
  padding: 0 15rem;
}

.home h3 {
  font-size: 2.5rem;
  color: #fff;
}

.home h1 {
  font-size: 5rem;
  color: #fff;
}

.home h1 span {
  color: var(--skin-color);
}

.home p {
  font-size: 2rem;
  color: #eee;
  padding: 1rem 0;
}

.about .row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.about .row .info {
  flex: 1 1 48rem;
  padding: 2rem 1rem;
  padding-left: 6rem;
}

.about .row .info h3 {
  font-size: 2rem;
  color: var(--skin-color);
  padding: 1rem 0;
  font-weight: normal;
  text-transform: capitalize;
}

.about .row .info h3 span {
  color: #eee;
  padding: 0 0.5rem;
}

.about .row .info h3 span.disclaimer {
  font-style: italic;
  text-transform: none;
}

.about .row .counter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex: 1 1 48rem;
}

.about .row .counter .box {
  background: #222;
  text-align: left;
  padding: 2rem;
  margin: 2rem;
  width: 100%;
}

.about .row .counter .box h2 {
  font-size: 2.8rem;
  margin-top: 1rem;
  color: var(--skin-color);
  display: inline-flex;
}

.about .row .counter .box h3 {
  font-size: 1.6rem;
  color: white;
  padding: 1rem 0;
  font-weight: normal;
  text-transform: capitalize;
  display: inline-flex;
}

.about .row .counter .box p {
  font-size: 1.8rem;
  color: #fff;
  display: inline-flex;
}

.about .row .counter .box span {
  font-size: 1.5rem;
  background: #1a1a1a;
  color: #fff;
  border-radius: 5rem;
  padding: 0.5rem 2.5rem;
  display: block;
  max-width: max-content;
}

.education .box-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 0;
  padding-left: 3rem;
}

.education .box-container .box {
  width: 47%;
  margin: 4rem 1rem;
  padding-left: 4rem;
  border-left: 0.2rem solid #fff;
  position: relative;
}

.education .box-container .box span {
  font-size: 1.3rem;
  background: #222;
  color: #fff;
  border-radius: 5rem;
  padding: 0.5rem 2.5rem;
}

.education .box-container .box h3 {
  font-size: 2rem;
  color: #fff;
  padding-top: 1.5rem;
  text-transform: capitalize;
}

.education .box-container .box p {
  font-size: 1.4rem;
  color: #eee;
  padding-top: 1rem 0;
}

.education .box-container .box i {
  position: absolute;
  top: -1.5rem;
  left: -2.5rem;
  height: 5rem;
  width: 5rem;
  border-radius: 50%;
  line-height: 5rem;
  text-align: center;
  font-size: 2rem;
  color: #fff;
  background: var(--skin-color);
}

.portfolio .box-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.portfolio .box-container .box {
  height: 500px;
  width: 45%;
  border-radius: 1rem;
  margin: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio .box-container .box img {
  height: 57%;
  width: 100%;
  object-fit: cover;
  flex-grow: 1;
}

.portfolio .box-container img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.portfolio .project-data {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: #1a1a1a;
  height: 40%;
  justify-content: space-between;
  color: #eee;
  font-size: medium;
}

.portfolio .portfolio-title {
  font-size: medium;
  color: var(--skin-color);
}

.portfolio .button {
  display: inline-flex;
  align-items: center;
  text-align: center;
  font-size: 1.5rem;
  width: fit-content;
}

.portfolio .button i {
  margin-left: 0.5rem;
  transition: 0.3s;
}

.portfolio .button:hover i {
  transform: translateX(0.5rem);
}

.contact .row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.contact .row .content {
  flex: 1 1 30rem;
  padding: 4rem;
  padding-bottom: 0;
}

.contact .row form {
  flex: 1 1 45rem;
  padding: 2rem;
  margin: 2rem;
  margin-bottom: 4rem;
}

.contact .row form .box {
  padding: 1.5rem;
  margin: 1rem 0;
  background: #3333;
  color: #fff;
  font-size: 1.7rem;
  width: 100%;
}

.contact .row form .box::placeholder {
  text-transform: capitalize;
}

.contact .row form .message {
  height: 15rem;
  resize: none;
}

.contact .row .content .title {
  text-transform: uppercase;
  color: #fff;
  font-size: 3rem;
  padding-bottom: 2rem;
}

.contact .row .content .info h3,
.contact .row .content .info h3 a {
  display: flex;
  align-items: center;
  font-size: 2rem;
  color: #eee;
  padding: 1rem 0;
  font-weight: normal;
  text-transform: none;
}

.contact .row .content .info h3 i {
  padding-right: 1rem;
  color: var(--skin-color);
}

.top {
  width: 4rem;
  position: fixed;
  bottom: 7.5rem;
  right: 2rem;
  z-index: 100;
  display: none;
}

.modal {
  font-size: medium;
  max-width: 95%;
}

.modal-dialog {
  text-align: center;
}

.modal-header {
  background-color: #1a1a1a;
  justify-content: center;
}

.modal-title {
  color: #eee;
  font-size: medium;
}

.modal-footer {
  border: none;
}

.btn {
  border: none;
}

.button.disabled {
  cursor: not-allowed !important;
}

footer {
  position: fixed;
  bottom: 3px;
  width: 100%;
  font-size: 1.5rem;
  color: #fff;
  text-align: center;
}

footer a {
  text-decoration: none;
  color: var(--skin-color);
}

footer span {
  color: palevioletred;
}

body.scroll-down footer {
  display: block;
}

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

  .home {
    padding: 1rem 4rem;
  }
}

@media (min-width: 1200px) {
  footer p {
    margin-right: 14%;
  }
}

@media (min-width: 991px) {
  header .index ul li button {
    display: none;
  }

  .toggle-light-mode.on-body {
    display: block;
  }
}

@media (max-width: 991px) {
  header {
    left: -120%;
  }

  #menu {
    display: block;
  }

  header.toggle {
    left: 0%;
  }

  body {
    padding: 0;
  }
}

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

@media (max-width: 600px) {
  header {
    width: 100vw;
  }

  .heading {
    margin: 0 3rem;
  }

  .about .row .counter .box {
    width: 100%;
  }

  .education .box-container .box {
    width: 100%;
  }

  .portfolio .box-container .box {
    width: 98%;
  }

  .portfolio .box-container .box img {
    height: 52%;
    flex-grow: 0;
  }

  .portfolio .project-data {
    flex-grow: 1;
    padding: 12px;
  }
  .contact .row .form {
    margin: 3rem 0;
  }
}
