:root {
  --fg-color: #fff;
  --bg-color: #2d3748;
  --link-color: #667fea;
  --parag-color: #eee;
  --loader-color: #2d3748;
  --box-color: #fff;
  --nav-bg-color: #1a212d;
  --nav-fg-color: #f7f7f7;
}

.light {
  --fg-color: #2d3748;
  --bg-color: #fff;
  --parag-color: #666;
  --loader-color: #fff;
  --box-color: #2d3748;
  --nav-bg-color: #f7f7f7;
  --nav-fg-color: #1a212d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  overflow-x: hidden;
  background: var(--bg-color);
  color: var(--bg-color);
  transition: 0.5s;
  text-overflow: ellipsis;
  user-select: none;
  -ms-overflow-style: none;
  -webkit-tap-highlight-color: transparent;
}

body.active {
  overflow: hidden;
}

body.active ::-webkit-scrollbar {
  display: none;
}

::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-thumb {
  background: var(--fg-color);
  border-radius: 20px;
  border: 4px solid var(--bg-color);
}

.preloader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--loader-color);
  z-index: 1;
}

.box {
  position: absolute;
  top: calc(50% - 20px);
  left: calc(50% - 20px);
  width: 50px;
  height: 50px;
  border-radius: 3px;
  background: var(--box-color);
  animation: animate 0.5s linear infinite;
}

.shadow {
  position: absolute;
  width: 50px;
  height: 5px;
  top: calc(50% - -39px);
  left: calc(50% - 20px);
  opacity: 0.1;
  border-radius: 50%;
  background: #000;
  animation: shadow 0.5s linear infinite;
}

.navigation {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--nav-bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 1s;
}

.navigation.active {
  left: 0;
}

.banner {
  position: relative;
  width: 50%;
  height: 100%;
}

.cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.navLink {
  position: relative;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
}

.navLink ul {
  position: relative;
  width: 100%;
}

.navLink ul li {
  position: relative;
  list-style: none;
}

.navLink ul li a {
  position: relative;
  color: var(--nav-fg-color);
  font-size: 2em;
  font-weight: 500;
  text-decoration: none;
  margin: 5px 0;
  margin-left: 100px;
  display: inline-block;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navLink ul li a:hover {
  color: var(--link-color);
}

.sec {
  position: relative;
  left: 0;
  width: 100%;
  min-height: 100vh;
  padding: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 1s;
}

.sec.active {
  left: 100%;
}

.sec .imgBx {
  position: relative;
  min-width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  margin: 8% 6% 8% 20%;
}

.sec .content {
  margin-left: 10px;
  margin-right: 20%;
}

.sec .content h2 {
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--parag-color);
}

.sec .content h2 span {
  font-weight: 700;
  color: var(--link-color);
  font-size: 3em;
}

.sec .content p {
  color: var(--parag-color);
  font-size: 1.2em;
  margin-bottom: 20px;
}

.sec .content .btn {
  background: var(--fg-color);
}

.sec .post {
  position: relative;
  color: var(--fg-color);
  margin: 20px 12%;
  width: 100%;
}

.sec .post h1 {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
}

.sec .post p {
  font-size: 1.4em;
  line-height: 1.6;
  margin-bottom: 20px;
  text-indent: 45px;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 100px;
  display: flex;
  justify-content: space-between;
  transition: 0.5s;
}

.toggle {
  position: relative;
  left: 0;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}

.toggle.active {
  left: -200px;
}

.toggle span {
  position: absolute;
  width: 30px;
  height: 3px;
  background: var(--fg-color);
  border-radius: 3px;
  transition: 0.5s;
}

.toggle span:nth-child(1) {
  transform: translateY(-10px);
  width: 17.5px;
  left: 5px;
}

.toggle.active span:nth-child(1) {
  width: 30px;
  transform: translateY(0px) rotate(45deg);
  transition-delay: 0.125s;
}

.toggle span:nth-child(2) {
  transform: translateY(10px);
  width: 10px;
  left: 5px;
}

.toggle.active span:nth-child(2) {
  width: 30px;
  transform: translateY(0px) rotate(135deg);
  transition-delay: 0.25s;
}

.toggle.active span:nth-child(3) {
  transform: translateX(60px);
}

.themeSwitch {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding-top: 7px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fg-color);
  color: var(--bg-color);
  cursor: pointer;
}

.themeSwitch::before {
  content: "\f185";
  font-size: 1.5em;
  margin-left: 8px;
  font-family: fontAwesome;
}

.light .themeSwitch::before {
  content: "\f186";
  font-size: 1.5em;
  margin-left: 10px;
  font-family: fontAwesome;
}

.btn {
  position: relative;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 10px 20px;
  min-width: 6.5rem;
  color: var(--bg-color);
  font-weight: 500;
  border-radius: 100px;
  letter-spacing: 1px;
}

footer {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 20px 100px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sci {
  position: relative;
  display: flex;
  align-items: center;
}

.sci li {
  list-style: none;
}

.sci li a {
  position: relative;
  margin-right: 20px;
  display: inline-block;
  transform: scale(0.75);
  opacity: 0.8;
  text-decoration: none;
}

.social {
  color: var(--fg-color);
}

.social::before {
  font-size: 2.5em;
  font-family: fontAwesome;
}

.copyrightText {
  font-weight: 500;
  color: var(--fg-color);
  letter-spacing: 1px;
}

@media (max-width: 320px) {
  header,
  footer {
    padding: 20px 40px;
  }

  .sec {
    padding: 70px;
    flex-direction: column;
    justify-content: center;
  }

  .sec .imgBx {
    width: 200px;
    min-width: 200px;
    height: 200px;
    margin-top: 10px;
    margin: 8% 8%;
  }

  .sec .content {
    margin-bottom: 20px;
    margin-left: 0;
    max-width: 100%;
  }

  .sec .post {
    width: 80%;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .sec .content h2 span {
    font-size: 1.2em;
  }

  .sec .post h1 {
    font-size: 1.8em;
  }

  .sec .post p {
    font-size: 1.1em;
  }

  .banner {
    display: none;
  }

  .navLink {
    width: 100%;
  }

  .toggle.active {
    left: -120px;
  }

  .navLink ul li a {
    font-size: 1.6em;
    margin-left: 50px;
  }
}

@media (min-width: 321px) and (max-width: 480px) {
  header,
  footer {
    padding: 20px 40px;
  }

  .sec {
    padding: 70px;
    flex-direction: column;
    justify-content: center;
  }

  .sec .imgBx {
    width: 280px;
    min-width: 280px;
    height: 280px;
    margin-top: 100px;
    margin: 8% 8%;
  }

  .sec .content {
    margin-bottom: 90px;
    margin-left: 0;
    max-width: 100%;
  }

  .sec .post {
    width: 80%;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .sec .content h2 span {
    font-size: 1.4em;
  }

  .sec .post h1 {
    font-size: 1.8em;
  }

  .sec .post p {
    font-size: 1.1em;
  }

  .banner {
    display: none;
  }

  .navLink {
    width: 100%;
  }

  .toggle.active {
    left: -120px;
  }

  .navLink ul li a {
    font-size: 1.8em;
    margin-left: 50px;
  }
}

@media (min-width: 481px) and (max-width: 600px) {
  header,
  footer {
    padding: 20px 40px;
  }

  .sec {
    padding: 70px;
    flex-direction: column;
    justify-content: center;
  }

  .sec .imgBx {
    width: 300px;
    min-width: 300px;
    height: 300px;
    margin-top: 80px;
    margin: 8% 8%;
  }

  .sec .content {
    margin-bottom: 80px;
    margin-left: 0;
    max-width: 100%;
  }

  .sec .post {
    width: 80%;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .sec .content h2 span {
    font-size: 1.4em;
  }

  .sec .post h1 {
    font-size: 1.8em;
  }

  .sec .post p {
    font-size: 1.1em;
  }

  .banner {
    display: none;
  }

  .navLink {
    width: 100%;
  }

  .toggle.active {
    left: -120px;
  }

  .navLink ul li a {
    font-size: 2em;
    margin-left: 50px;
  }
}

@media (min-width: 601px) and (max-width: 768px) {
  header,
  footer {
    padding: 20px 40px;
  }

  .sec {
    padding: 70px;
    flex-direction: column;
    justify-content: center;
  }

  .sec .imgBx {
    width: 320px;
    min-width: 320px;
    height: 320px;
    margin-top: 60px;
    margin: 8% 8%;
  }

  .sec .content {
    margin-bottom: 70px;
    margin-left: 0;
    max-width: 100%;
  }

  .sec .post {
    width: 80%;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .sec .content h2 span {
    font-size: 1.6em;
  }

  .sec .post h1 {
    font-size: 1.8em;
  }

  .sec .post p {
    font-size: 1.1em;
  }

  .toggle.active {
    left: -120px;
  }

  .navLink ul li a {
    font-size: 2em;
    margin-left: 50px;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  header,
  footer {
    padding: 20px 40px;
  }
  
  .sec {
    padding: 70px;
    flex-direction: column;
    justify-content: center;
  }

  .sec .imgBx {
    width: 340px;
    min-width: 340px;
    height: 340px;
    margin-top: 50px;
    margin: 8% 8%;
  }

  .sec .content {
    margin-bottom: 70px;
    margin-left: 0;
    max-width: 100%;
  }

  .sec .post {
    width: 80%;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .sec .content h2 span {
    font-size: 1.6em;
  }

  .sec .post h1 {
    font-size: 1.8em;
  }

  .sec .post p {
    font-size: 1.1em;
  }

  .toggle.active {
    left: -120px;
  }

  .navLink ul li a {
    font-size: 2em;
    margin-left: 50px;
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .sec .content {
    margin-right: 2%;
  }

  .sec .imgBx {
    width: 360px;
    min-width: 360px;
    height: 360px;
    margin-top: 55px;
    margin: 8% 8%;
  }

  .sec .content h2 span {
    font-size: 1.8em;
  }

  .sec .post h1 {
    font-size: 1.8em;
  }

  .sec .post p {
    font-size: 1.1em;
  }

  .navLink ul li a {
    font-size: 2em;
    margin-left: 60px;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .sec .content {
    margin-right: 3%;
  }

  .sec .imgBx {
    width: 380px;
    min-width: 380px;
    height: 380px;
    margin-top: 55px;
    margin: 8% 8%;
  }

  .sec .content h2 span {
    font-size: 2em;
  }

  .sec .post h1 {
    font-size: 2em;
  }

  .sec .post p {
    font-size: 1.2em;
  }

  .navLink ul li a {
    font-size: 2em;
    margin-left: 80px;
  }
}

@media (min-width: 1201px) and (max-width: 1300px) {
  .sec .content {
    margin-right: 5%;
  }
}

@media (min-width: 1301px) and (max-width: 1400px) {
  .sec .content {
    margin-right: 7%;
  }
}

@media (min-width: 1401px) and (max-width: 1500px) {
  .sec .content {
    margin-right: 9%;
  }
}

@media (min-width: 1501px) and (max-width: 1600px) {
  .sec .content {
    margin-right: 12%;
  }
}

@media (min-width: 1601px) and (max-width: 1700px) {
  .sec .content {
    margin-right: 17%;
  }
}

@media (min-width: 1701px) and (max-width: 1800px) {
  .sec .content {
    margin-right: 18%;
  }
}

@keyframes animate {
  17% {
    border-bottom-right-radius: 3px;
  }

  25% {
    transform: translateY(9px) rotate(22.5deg);
  }

  50% {
    transform: translateY(18px) scale(1, 0.9) rotate(45deg);
    border-bottom-right-radius: 40px;
  }

  75% {
    transform: translateY(9px) rotate(67.5deg);
  }

  100% {
    transform: translateY(0) rotate(90deg);
  }
}

@keyframes shadow {
  50% {
    transform: scale(1.2, 1);
  }
}
