:root {
  --dark-bg: #1a1a1a;
  --primary-color: #4fc3f7;
  --dark-mode-text1: #c1c1c1;
  --dark-mode-text2: #e1e1e1;
  --dark-mode-text3: #a9a9a9;
  --secondary-color: #484e53;
  --border-color: #d6dded;
  --form-placeholder: #8987a1;

  --btn-font: "Montserrat", sans-serif;
  --main-font: "Poppins", sans-serif;
  --secondary-font: "Inter", sans-serif;
  --logo-font: "Oleo Script", display;
}

@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;800;900&display=swap);

@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;800;900&display=swap);

@import url(https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;800;900&display=swap);

@import url(https://fonts.googleapis.com/css2?family=Oleo+Script:wght@100;200;300;400;500;600;700&display=swap);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 10px;
  transition: 1s ease;
}

body {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  background-color: var(--dark-bg); 
}

.fade-out {
  opacity: 0;
}

.wrapper {
  width: 100%;
  height: auto;
  margin: 0 auto;
  background-color: var(--dark-bg);
}

/* ----- header section start ----- */

.header-section {
  position: fixed;
  width: 100%;
  height: auto;
  padding: 3rem 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* From https://css.glass */
  background: rgba(26, 26, 26, 0.13);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10.8px);
  -webkit-backdrop-filter: blur(10.8px);
}

.header-section .logo a img {
  width: 5rem;
}

.header-section .navbar ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}

.header-section .navbar ul li a {
  font-size: 1.8rem;
  color: var(--dark-mode-text1);
  font-family: monospace;
  position: relative;
}

/* navbar hover effect */

.header-section .navbar ul li a::before,
.header-section .navbar ul li a::after {
  content: "";
  position: absolute;
  display: block;
  border: 0 solid transparent;
  width: 0%;
  height: 0%;
  transition: all 0.3s ease;
}

.header-section .navbar ul li a::after {
  top: -10px;
  left: -10px;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
}

.header-section .navbar ul li a::before {
  right: -10px;
  bottom: -10px;
  border-bottom: 2px solid transparent;
  border-right: 2px solid transparent;
}

.header-section .navbar ul li a:hover::before,
.header-section .navbar ul li a:hover::after {
  width: 10px;
  height: 10px;
  border-color: var(--primary-color);
}

.header-section .navbar ul li a:active {
  color: var(--primary-color);
}

.header-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
}

.header-btns .btn1 {
  font-size: 1.5rem;
  color: #fff;
  padding: 1rem 2rem;
  border: 1px solid #c1c1c1;
  border-radius: 1rem;
  font-family: monospace;
}

.header-btns .btn1:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.header-btns .mode-btn img {
  width: 3rem;
  animation: slow-spin 5s linear infinite;
  transform-origin: center;
}

@keyframes slow-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.header-btns span {
  background-color: var(--dark-bg);
  display: none;
}

/* ----- header section end ----- */

/* ----- hero section start ----- */

.hero-section {
  width: 100%;
  height: 110vh;
  padding-top: 11rem;
}

.hero-section .hero-desc {
  width: 80%;
  height: 80%;
  text-align: center;
  background-image: url(../img/hero-bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  margin: 0 auto;
}

.hero-section .hero-desc img {
  width: 18rem;
  margin-top: 5rem;
  border-radius: 50%;
  background-image: linear-gradient(#d6dded, #4fc3f7, #d6dded, #4fc3f7);
  background-size: 400% 400%;
  animation: gradient-scroll 5s ease infinite;
}

@keyframes gradient-scroll {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-section .hero-desc h1 {
  font-size: 5rem;
  font-family: var(--main-font);
  font-weight: 600;
  color: #fff;
  margin-top: 1rem;
}

.hero-section .hero-desc h3 span {
  font-size: 2.5rem;
  font-weight: 600;
  font-family: var(--main-font);
  background-image: linear-gradient(90deg, #4fc3f7, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 1rem;
}

.hero-section .hero-desc p {
  width: 75rem;
  font-size: 1.8rem;
  font-family: var(--btn-font);
  font-weight: 400;
  color: var(--dark-mode-text2);
  letter-spacing: 0.1rem;
  margin: 0 auto;
  margin-top: 1rem;
}

.hero-section .hero-desc a {
  font-size: 1.5rem;
  font-family: monospace;
  color: #fff;
  margin-top: 5rem;
  display: inline-block;
  padding: 1.5rem 3rem;
  border: 1px solid #c1c1c1;
  border-radius: 7.5rem;
}

.hero-section .hero-desc a:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ----- hero section end ----- */

/* ============================= */

/* RESPONSIVE MEDIA */

@media (max-width: 1140px) {
  .header-section .navbar,
  .header-btns .btn1 {
    display: none;
  }

  .header-section .header-btns span {
    display: inline-block;
  }

  .header-btns {
    gap: 5rem;
  }
}

@media (max-width: 950px) {
  .hero-section .hero-desc p {
    width: 85%;
  }
}

@media (max-width: 540px) {
  .hero-section .hero-desc h1 {
    font-size: 3.8rem;
  }

  .hero-section .hero-desc h3 span {
    font-size: 1.8rem;
  }

  .hero-section .hero-desc p {
    font-size: 1.6rem;
  }
}

@media (max-width: 340px) {
  .hero-section .hero-desc img {
    width: 15rem;
  }

  .hero-section .hero-desc h1 {
    font-size: 3rem;
  }

  .hero-section .hero-desc p {
    width: 100%;
    font-size: 1.4rem;
  }
}

/* ==========================
   Sidebar styles
   ========================== */
.site-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 80vw);
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.98),
    rgba(12, 12, 12, 0.98)
  );
  color: #fff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
  transform: translateX(110%);
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 320ms ease;
  z-index: 1200;
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.site-sidebar.open {
  transform: translateX(0%);
}

.sidebar-close {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 3.6rem;
  line-height: 1;
  align-self: flex-end;
  cursor: pointer;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  z-index: 1100;
}

.sidebar-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.site-sidebar .sidebar-nav ul {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.4rem;
}

.site-sidebar .sidebar-nav ul li a {
  display: block;
  font-size: 2.2rem;
  color: #fff;
  line-height: 3.2rem;
  padding: 0.6rem 0.4rem;
  border-radius: 6px;
  font-family: monospace;
}

.site-sidebar .sidebar-nav ul li a:hover {
  color: var(--primary-color);
}

@media (min-width: 1141px) {
  .site-sidebar,
  .sidebar-overlay {
    display: none;
  }
}
