* {
  padding: 0;
  margin: 0;
  text-decoration: none;
  list-style: none;
}
html {
  scroll-behavior: smooth;
  transition: 0.5s;
}
body {
  font-family: "Cause", cursive;
  font-optical-sizing: auto;
  font-style: normal;
  background-color: var(--background-color);
}
.stop-scroll {
  overflow: hidden;
}
.container {
  margin: 0 auto;
}
/* start varibales */
:root {
  --main-color: #91cf20;
  --secondary-color: #ececec;
  --card-shadow: 0 2px 15px #00000034;
  --background-color: #fff;
  --heading-color: #000000;
  --text-color: #000000be;
  --button-color: #91cf20;
  --hover-color: #80aa32;
  --main-transiton: 0.3s;
  --animation-transition: 0.8s;
  --section-padding: 60px;
}
html.dark-mode {
  --card-shadow: 0 0px 4px rgb(132 132 132);
  --secondary-color: #1e1e1e;
  --background-color: #121212;
  --heading-color: #fff;
  --text-color: #e5e5e5c1;
}
/* center elements */
.center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* make elements visible */
.animate.visible {
  opacity: 1;
  transform: translateY(0);
  transform: scale(1);
  pointer-events: initial;
}
/* large */
@media (max-width: 1440px) {
  .container {
    width: 80%;
  }
}
/* medium */
@media (max-width: 992px) {
  .container {
    width: 80%;
  }
}
/* small */
@media (max-width: 768px) {
  .container {
    width: 90%;
  }
}
/* background blur */
.background {
  width: 100%;
  height: 100vh;
  background-color: #000000ae;
  position: absolute;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
}
.display {
  opacity: 1;
  pointer-events: initial;
}
/* start header  */
header {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--heading-color);
  padding: 10px 0;
  margin: 0 auto;
  position: relative;
  height: 88.5;
  background-color: var(--background-color);
}
header .logo {
  color: inherit;
  padding: 15px 0;
}
header .logo h1 span:last-child {
  color: var(--main-color);
  transition: var(--main-transiton);
}
header .logo:hover span:last-child {
  letter-spacing: 3px;
}
header nav {
  transition: 0.5s;
}
.show-nav-bar {
  transform: translateX(0);
}
header nav img {
  display: none;
}
header nav ul {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 20px;
  font-weight: bold;
}
header nav ul li:last-child {
  transition: var(--main-transiton);
}
header nav ul li:last-child a {
  border-radius: 25px;
  padding: 10px 15px;
  transition: var(--main-transiton);
  background-color: var(--button-color);
  color: var(--background-color);
}
header nav ul li:last-child a:hover {
  background-color: var(--hover-color);
}
header nav a {
  color: inherit;
  padding: 10px;
  position: relative;
}
header nav li:not(:last-child) a:hover {
  color: var(--main-color);
}
header nav li:not(:last-child) a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 2px;
  background-color: var(--main-color);
  width: 0;
  transition: 0.3s;
}
header nav li:not(:last-child) a:hover::after {
  left: 0;
  width: 100%;
  background-color: var(--main-color);
}
/* start hamburger menu */
.hamburger {
  height: 50px;
  width: 50px;
  transform: 0.2s;
  position: relative;
  transform: scale(0.8);
  display: none;
  right: 0;
}
.outline:focus {
  outline: 2px solid var(--main-color);
}
.hamburger .checkbox {
  position: absolute;
  opacity: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
}
.line {
  transition: 0.5s;
  stroke-width: 5px;
  stroke: var(--heading-color);
}
.lineTop {
  stroke-dasharray: 40 40;
  stroke-dashoffset: 25;
}
.lineBottom {
  stroke-dasharray: 40 40;
  stroke-dashoffset: 60;
}
.lineMid {
  stroke-dasharray: 40 40;
}
.checked .checkbox + svg .line {
  stroke: var(--main-color);
}
.checked .checkbox + svg .lineTop {
  stroke-dashoffset: 0;
  transform-origin: left;
  transform: rotateZ(45deg) translate(-7px, -5px);
}
.checked .checkbox + svg .lineMid {
  stroke-dashoffset: 40;
}
.checked .checkbox + svg .lineBottom {
  stroke-dashoffset: 0;
  transform-origin: left;
  transform: rotateZ(-45deg) translate(-5px, 5px);
}
/* end hamburger menu */
/* satrt switch mode  */
.ui-switch {
  --switch-bg: rgb(135, 150, 165);
  --switch-width: 48px;
  --switch-height: 20px;
  --circle-diameter: 32px;
  --circle-bg: var(--main-color);
  --circle-inset: calc((var(--circle-diameter) - var(--switch-height)) / 2);
}
.ui-switch input {
  display: none;
}
.slider {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--switch-bg);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}
.slider .circle {
  top: calc(var(--circle-inset) * -1);
  left: 0;
  width: var(--circle-diameter);
  height: var(--circle-diameter);
  position: absolute;
  background: var(--circle-bg);
  border-radius: inherit;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTkuMzA1IDEuNjY3VjMuNzVoMS4zODlWMS42NjdoLTEuMzl6bS00LjcwNyAxLjk1bC0uOTgyLjk4Mkw1LjA5IDYuMDcybC45ODItLjk4Mi0xLjQ3My0xLjQ3M3ptMTAuODAyIDBMMTMuOTI3IDUuMDlsLjk4Mi45ODIgMS40NzMtMS40NzMtLjk4Mi0uOTgyek0xMCA1LjEzOWE0Ljg3MiA0Ljg3MiAwIDAwLTQuODYyIDQuODZBNC44NzIgNC44NzIgMCAwMDEwIDE0Ljg2MiA0Ljg3MiA0Ljg3MiAwIDAwMTQuODYgMTAgNC44NzIgNC44NzIgMCAwMDEwIDUuMTM5em0wIDEuMzg5QTMuNDYyIDMuNDYyIDAgMDExMy40NzEgMTBhMy40NjIgMy40NjIgMCAwMS0zLjQ3MyAzLjQ3MkEzLjQ2MiAzLjQ2MiAwIDAxNi41MjcgMTAgMy40NjIgMy40NjIgMCAwMTEwIDYuNTI4ek0xLjY2NSA5LjMwNXYxLjM5aDIuMDgzdi0xLjM5SDEuNjY2em0xNC41ODMgMHYxLjM5aDIuMDg0di0xLjM5aC0yLjA4NHpNNS4wOSAxMy45MjhMMy42MTYgMTUuNGwuOTgyLjk4MiAxLjQ3My0xLjQ3My0uOTgyLS45ODJ6bTkuODIgMGwtLjk4Mi45ODIgMS40NzMgMS40NzMuOTgyLS45ODItMS40NzMtMS40NzN6TTkuMzA1IDE2LjI1djIuMDgzaDEuMzg5VjE2LjI1aC0xLjM5eiIgLz4KPC9zdmc+");
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-transition:
    left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  -o-transition:
    left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  transition:
    left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  box-shadow:
    0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14),
    0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}
.slider .circle::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  border-radius: inherit;
  -webkit-transition: all 500ms;
  -o-transition: all 500ms;
  transition: all 500ms;
  opacity: 0;
}
.switch:checked + .slider .circle {
  left: calc(100% - var(--circle-diameter));
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTQuMiAyLjVsLS43IDEuOC0xLjguNyAxLjguNy43IDEuOC42LTEuOEw2LjcgNWwtMS45LS43LS42LTEuOHptMTUgOC4zYTYuNyA2LjcgMCAxMS02LjYtNi42IDUuOCA1LjggMCAwMDYuNiA2LjZ6IiAvPgo8L3N2Zz4=");
}

.ui-switch input:active + .slider .circle::before {
  -webkit-transition: 0s;
  -o-transition: 0s;
  transition: 0s;
  opacity: 1;
  width: 0;
  height: 0;
}
/* end switch mode  */
@media (max-width: 992px) {
  header {
    width: inherit;
  }
  .logo {
    font-size: 12px;
  }
  .hamburger {
    transform: scale(0.7);
  }
  header nav {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    padding: 20px;
    background-color: #fff;
    color: var(--text-color);
    width: 45%;
    height: 100vh;
    z-index: 1000;
    background-color: var(--background-color);
    color: var(--heading-color);
  }
  header nav ul {
    margin-top: 100px;
    flex-direction: column;
    gap: 0;
  }
  nav ul li {
    width: 100%;
    text-align: center;
  }
  header nav ul a {
    padding: 15px;
    display: block;
  }
  header nav li:not(:last-child) a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: var(--text-color);
    width: 100%;
    transition: 0.3s;
  }
  header nav ul li:last-child a {
    display: none;
  }
  .ui-switch {
    position: absolute;
    right: 60px;
    transform: scale(0.8);
  }
  .hamburger {
    display: block;
    z-index: 1001;
  }
}
/* end header  */
