@import url("./components/footer.css");
@import url("./components/contact.css");
@import url("./components/about.css");
@import url("./components/header.css");
@import url("./components/home.css");
@import url("./utils.css");
@import url("./fonts/stylesheet.css");
@import url("./font.css");

* {
  font-family: "Britti Sans Trial", "sans-serif";
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  color: white;
}
*::selection {
  background-color: var(--clr-primary);
  color: var(--clr-dark);
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--clr-dark);
  overflow: y hiden;
  overflow-y: auto;
  overflow-x: hidden;
  cursor: inherit;
}
.home__section,
.about__section,
.contact__section {
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 50vh;
}
.container {
  margin: 0px 20px;
}
@media screen and (min-width: 768px) {
  .container {
    margin: 0px 50px;
  }
}
@media screen and (min-width: 1024px) {
  .container {
    margin: 0px 350px;
  }
}
@media screen and (min-width: 1400px) {
  .container {
    margin: 0px 400px;
  }
}

#blur-light {
  position: absolute;
  width: 150px;
  height: 150px;
  filter: blur(100px);
  -webkit-filter: blur(100px);
  background: radial-gradient(
    circle,
    var(--clr-primary),
    var(--clr-primary) 100%
  );
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.01s;
}

#blur-light:nth-child(2) {
  background: radial-gradient(
    circle,
    var(--clr-primary),
    var(--clr-primary) 100%
  );
  bottom: 0;
  right: 0;
}
#blur-light:nth-child(3) {
  background: radial-gradient(
 
  circle,
    var(--clr-primary),
    var(--clr-primary) 100%
  );
  bottom: -600px;
  right: 0;
  left: 0;
}

#cursor {
  z-index: 1000;
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(
    circle,
    var(--clr-primary),
    var(--clr-primary) 100%
  );
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.01s;
}

@media (hover: none) {
  #cursor {
    display: none;
  }
}

.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  right: 0;
  opacity: 0;
  background-color: var(--clr-dark); /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav__links {
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.sidenav__links a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 1rem;
  color: #818181;
  display: block;
  transition: 0.3s;
}
.sidenav__buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.sidenav__buttons a {
  /* padding: 0 0 0 32px; */
  text-decoration: none;
  /* font-size: 1rem; */
  color: #818181;
  display: block;
  transition: 0.3s;
}
.sidenav__buttons a:first-child {
  padding: 0 0 0 32px;
  text-decoration: none;
  /* font-size: 1rem; */
  color: #818181;
  display: block;
  transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: var(--clr-primary);
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  text-decoration: none;
  width: 30px;
  height: 30px;
  position: absolute;
  top: 0;
  right: 30px;
  font-size: 40px;
  margin-left: 50px;
}

::-webkit-scrollbar {
  background-color: #141414;
  width: 6px;
  height: 30px;
}
::-webkit-scrollbar-thumb {
  background-color: #7d7d7d;
}
::-webkit-scrollbar-track {
}

.open-nav {
  width: 100%;
  opacity: 1;
  display: block;
  animation: sidenav 3s steps(2) forwards;
}

.close-nav {
  width: 0%;
  display: block;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  animation: scale-up 0.3s ease-out;
}

@keyframes scale-up {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Light Theme Settings */
@media screen and (prefers-color-scheme: light) {
  *::selection {
    background-color: var(--clr-primary);
    color: var(--clr-light);
  }
  .sidenav {
    background-color: var(--clr-light); /* Black*/
  }
  body {
    background-color: var(--clr-light);
  }
  h1 {
    color: var(--clr-dark);
  }
  p {
    color: rgb(70, 70, 70);
  }

  ::-webkit-scrollbar {
    background-color: #7d7d7d;
    width: 6px;
    height: 30px;
  }
  ::-webkit-scrollbar-thumb {
    background-color: #ffffff;
  }
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
}

@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }
  .sidenav a {
    font-size: 18px;
  }
}
