* {
  box-sizing: inherit;
}
body {
  font-family: "Source Sans Pro";
  background-color: white;
  color: black;
  transition: all 0.2s ease-in-out;
  margin: 0;
  padding: 0;
  width: 100%;
  z-index: -99;
  line-height: 1.5;
}
a {
  outline: none;
}
.title {
  font-weight: 600;
  font-size: 5.5rem;
  margin: 0px;
}
.subtitle {
  font-weight: 500;
  font-size: 3rem;
  margin: 0px;
}
.bold-title {
  font-weight: 700;
  font-size: 5.5rem;
  color: rgb(0, 177, 221);
}
#moon {
  padding-right: 10px;
}
.des {
  max-width: 700px;
}
.content {
  font-weight: 300;
  font-size: 1.4rem;
  width: 100%;
  max-width: 700px;
  margin-top: 0;
}
.header {
  border-bottom: 1px solid #e2e8f0;
  position: fixed;
  width: 100%;
}
.section_title {
  flex-shrink: 0;
  width: 200px;
  margin-right: 60px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
html {
  scroll-snap-type: y mandatory;
}
section {
  scroll-snap-align: start;
}

section:not(:first-of-type) {
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  padding: 0px 170px;
  height: 100vh;
  align-items: center;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
}
#bgvid {
  position: absolute;
  z-index: -2;
  right: 0;
  max-width: 50%;
  min-height: 100%;
  object-fit: cover;
}
/*.left-bg{
  background-color: #bdffff;
  width: 50%;
  transform: skewX(-8deg);
  transform-origin: top right;
  width:50%;
  height: 100%;
  position: absolute;
  z-index: -1;
}*/
.right {
  flex: 0 0 50%;
}
#first {
  display: flex;
  flex-direction: row;
  height: 100vh;
}

.title_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100vh;
  margin: 0 auto;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
}
.switch_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode {
  background-color: black;
  color: white;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/*https://css-tricks.com/having-fun-with-link-hover-effects*/
:root {
  --mainColor: #2196f3;
}

.title_link {
  background: linear-gradient(
    to bottom,
    var(--mainColor) 0%,
    var(--mainColor) 100%
  );
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 4px 4px;
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease-in, background-size 0.2s ease-in;
}
.title_link.dark-mode {
  color: #fff;
}
.title_link:hover {
  background-size: 4px 50px;
  color: white;
}

.title_button {
  width: 200px;
  padding: 15px 50px;
  border-radius: 999px;
  border: 5px solid #2851f6;
  font-family: "Assistant";
  font-size: 25px;
  white-space: nowrap;
  color: black;
  cursor: pointer;
  user-select: none;
  background: transparent;
  background-image: url(https://web.archive.org/web/20160312084140im_/http://splatoon.nintendo.com/assets/img/nav-bg-fill-blue.png?1443460871);
  background-repeat: repeat-x;
  filter: brightness(250%);
  background-position: 0 -100%;
  transition: background-position 1.5s ease;
}
.title_button.dark-mode {
  color: white;
}
.title_button:hover {
  background-position: 500% 100%;
}
#back-to-top {
  height: 50px;
  width: 50px;
  position: fixed;
  right: 0;
  z-index: 99;
  border-radius: 50%;
  box-shadow: 0px 0px 5px #ccc;
  margin: 17px;
  background: white;
  /*Position Out of View*/
  bottom: -150px;
  opacity: 0;
  transition: all 0.5s ease;
}
#dark-mode-btn {
  height: 50px;
  width: 50px;
  position: fixed;
  right: 0;
  z-index: 99;
  border-radius: 50%;
  box-shadow: 0px 0px 5px #ccc;
  margin: 17px;
  background: white;
  /*Position Out of View*/
  bottom: 0;

  transition: all 0.5s ease;
}
#back-to-top.show-btt {
  /*Position In View*/
  bottom: 60px;
  opacity: 1;
  transition: all 0.5s ease;
}
#dark-mode-btn-icon-light {
  opacity: 0;
}
#dark-mode-btn-icon-light.dark-mode {
  opacity: 1;
}
#dark-mode-btn-icon-dark {
  opacity: 1;
}
#dark-mode-btn-icon-dark.dark-mode {
  opacity: 0;
}
html {
  scroll-behavior: smooth;
}

/*https://www.codingnepalweb.com/skills-bar-ui-design-html-css/*/
.skill-bars {
  padding: 25px 30px;
  width: 600px;
}
.skill-bars .bar {
  margin: 20px 0;
}
.skill-bars .bar:first-child {
  margin-top: 0px;
}
.skill-bars .bar .info {
  margin-bottom: 5px;
}
.skill-bars .bar .info span {
  font-weight: 500;
  font-size: 17px;
  opacity: 0;
  animation: showText 0.5s 1s linear forwards;
}
@keyframes showText {
  100% {
    opacity: 1;
  }
}
.skill-bars .bar .progress-line {
  height: 10px;
  width: 100%;
  background: #f0f0f0;
  position: relative;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 10px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05),
    0 1px rgba(255, 255, 255, 0.8);
  animation: animate 0.5s cubic-bezier(1, 0, 0.5, 1) forwards;
}
@keyframes animate {
  100% {
    transform: scaleX(1);
  }
}

.bar .progress-line span {
  height: 100%;
  position: absolute;
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: left;
  background: #6665ee;
  animation: animate 0.4s 1s cubic-bezier(1, 0, 0.5, 1) forwards;
}
.bar .progress-line.html span {
  width: 90%;
}
.bar .progress-line.css span {
  width: 60%;
}
.bar .progress-line.jquery span {
  width: 85%;
}
.bar .progress-line.python span {
  width: 50%;
}
.bar .progress-line.mysql span {
  width: 18%;
}
.progress-line.mysql span::before {
  position: absolute;
  content: "";
  top: -10px;
  right: 0;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-bottom-width: 0px;
  border-right-width: 0px;
  border-top-color: #000;
  opacity: 0;
  animation: showText2 0.5s 1.1s linear forwards;
  transform: scaleX(-1);
}
.progress-line.mysql span::after {
  position: absolute;
  top: -28px;
  right: -53px;
  font-weight: 500;
  background: #000;
  color: #fff;
  padding: 1px 8px;
  font-size: 12px;
  border-radius: 3px;
  opacity: 0;
  animation: showText2 0.5s 1.1s linear forwards;
}
.progress-line span::before {
  position: absolute;
  content: "";
  top: -10px;
  right: 0;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-bottom-width: 0px;
  border-right-width: 0px;
  border-top-color: #000;
  opacity: 0;
  animation: showText2 0.5s 1.1s linear forwards;
}
.progress-line.dark-mode span::before {
  border-top-color: #fff;
}
.progress-line span::after {
  position: absolute;
  top: -28px;
  right: 0;
  font-weight: 500;
  background: #000;
  color: #fff;
  padding: 1px 8px;
  font-size: 12px;
  border-radius: 3px;
  opacity: 0;
  animation: showText2 0.5s 1.1s linear forwards;
}
.progress-line.dark-mode span::after {
  background: #fff;
  color: #000;
}
@keyframes showText2 {
  100% {
    opacity: 1;
  }
}
.progress-line.html span::after {
  content: "Fluent";
}
.progress-line.css span::after {
  content: "Experienced";
}
.progress-line.jquery span::after {
  content: "Experienced";
}
.progress-line.python span::after {
  content: "Good";
}
.progress-line.mysql span::after {
  content: "Learning";
}
.title_icon {
  width: 50px;
  height: 50px;
}
#title_icon_wrapper {
  
  display: flex;
  gap: 20px;
  padding-top: 40px;
}

#nav {
  position: fixed;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.nav_icon {
  width: 20px;
  height: 20px;
  /*filter: invert(100%);*/
  transition: transform 0.1s ease-in-out;
}

.nav_label {
  margin-right: 15px;
  font-family: "Source Sans Pro";
  font-weight: 600;
  opacity: 0;

  transition: opacity 0.2s ease-in-out;
}

#nav a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
  color: #000;
}
#nav a:hover .nav_icon {
  transform: scale(1.4);
}
#nav a:hover .nav_label {
  opacity: 1;
}
.title_icon.dark-mode {
  filter: invert(100%);
}

.nav_icon.dark-mode {
  filter: invert(100%);
}
.cert_card_wrapper {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 1050px;
}
.cert_card {
  display: flex;
  flex-direction: row;
  border-radius: 25px;
  width: 500px;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  min-height: 144px;
}
.cert_card.dark-mode {
  box-shadow: 0px 1px 21px -5px rgba(255, 255, 255, 0.75);
}
.cert_head {
}
.cert_head img {
  width: 150px;
  height: 100%;
  object-fit: cover;
}
.cert_body_title {
  padding-left: 10px;
  font-size: 1.3rem;
  font-family: "Source Sans Pro";
  font-weight: 600;
}
.link-2 {
  position: relative;
  text-decoration: none;
  display: inline-block;
  color: black;
  padding: 0 1px;
  transition: color ease 0.3s;
  margin-left: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Source Sans Pro";
}

.link-2::before,
.link-2::after {
  content: "";
  position: absolute;
  background-color: #00b388;
  z-index: -1;
  height: 10%;
}

.link-2::before {
  width: 0%;
  left: 0;
  bottom: 0;
  transition: width ease 0.4s;
}

.link-2::after {
  width: 100%;
  left: 0;
  bottom: 0;
  transition: all ease 0.6s;
}

.link-2:hover::before {
  width: 100%;
}

.link-2:hover::after {
  left: 100%;
  width: 0%;
  transition: all ease 0.2s;
}

@media screen and (max-width: 1500px) {
  .title {
    font-size: 4rem;
  }
  .subtitle {
    font-size: 3rem;
  }
  .bold-title {
    font-size: 4rem;
  }
  .title_wrapper {
    padding-left: 40px;
  }
  section:not(:first-of-type) {
    display: block !important;
    padding: 80px 50px;
  }
  .content{
    font-size:1rem;
  }
  .title_wrapper{
    margin:0;
  }
  .title_icon{
    width:30px;
    height:30px;
  }
  #title_icon_wrapper{
    gap:10px;
  }
  #nav{
    right:20px;
  }
}
@media (max-width: 800px) {
  .title {
    font-size: 3rem;
  }
  .subtitle {
    font-size: 2rem;
  }
  .bold-title {
    font-size: 3rem;
  }
  .title_wrapper {
    padding: 70px 50px;
  }
  #first {
    flex-direction: column-reverse;
  }
  #bgvid {
    max-width: 100%;
    object-fit: cover;
    min-height: 20%;
  }
  .right {
    flex: 0 0 20%;
  }
  .section_title {
    text-align: left;
    width: auto;
  }
 
  .skill-bars {
    padding: 0;
    width: 100%;
  }
  .cert_card{
    height: 50px;
  }
}
