/* Lunaby Website - Main Stylesheet */
@import url('../fonts/poppins-fallback.css');
@import url('https://fonts.googleapis.com/css2?family=Potta+One&display=swap');

/* Base */
html {
  -webkit-font-smoothing: antialiased;
  -webkit-text-size: 100%;
  min-width: 400px;
  overflow-x: hidden;
  overflow-y: scroll;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
  list-style: none;
  cursor: none !important;
}

a {
  text-decoration: none;
  color: white;
}

a:hover {
  color: hotpink;
}

body {
  margin: 0;
  padding: 0;
  background-color: #17141d;
  color: white;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body::-webkit-scrollbar {
  width: 1em;
}

body::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb {
  background-color: hotpink;
  outline: 1px solid slategrey;
}

/* Animations */
.fade-in {
  animation: fadeIn ease 2s;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Navigation Bar */
.nav-bar {
  display: flex;
  justify-content: space-between;
  background-color: rgba(35, 38, 36, 1);
  color: white;
  padding: 1% 2%;
  font-family: 'Potta One';
}

.nav-bar img {
  display: block;
  height: auto;
  width: 100%;
}

.nav-bar-img {
  display: flex;
  margin: auto;
  margin-left: 15px;
  width: 50px;
  height: 50px;
}

.nav-bar-img h1 {
  margin: auto;
  padding-left: 1.5rem;
  font-family: 'Potta One', cursive !important;
}

.nav-bar-links ul {
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-bar-links li a {
  padding: 1rem;
  display: block;
}

.nav-bar-links li a:hover {
  cursor: pointer;
  color: hotpink;
}

.nav-bar-toggle {
  position: absolute;
  cursor: pointer;
  top: 1.25rem;
  right: 1.25rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.nav-bar-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .nav-bar-toggle {
    display: flex;
  }

  .nav-bar-links {
    display: none;
    width: 100%;
  }

  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-bar-links ul {
    width: 100%;
    flex-direction: column;
  }

  .nav-bar-links li {
    text-align: center;
  }

  .nav-bar-links li a {
    padding: .5rem 1rem;
  }

  .nav-bar-links.active {
    display: flex;
  }
}

/* Footer */
.footer {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin-top: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
  justify-content: space-between;
  background: #272928;
  font-family: 'Potta One';
}

.footer-information {
  padding: 20px;
  margin: auto;
}

.footer-information p {
  font-family: 'Poppins';
  color: darkgrey;
  font-size: 12px;
}

.footer-links {
  padding: 20px;
  margin: auto;
  font-family: 'Poppins';
}

.footer-links ul {
  padding: 0;
}

.footer-links ul li a {
  text-decoration: none;
  color: white;
}

.footer-links ul li a:hover {
  cursor: pointer;
  color: hotpink;
}

/* Invite Button */
.invite-link {
  position: fixed;
  bottom: 20px;
  left: 20px;
  margin: 0;
  padding: 10px;
  display: flex;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  align-items: center;
  background: hotpink;
  overflow: hidden;
  box-shadow: 20px black;
  transition: transform .5s ease;
}

.invite-link img {
  max-width: 100px;
  height: auto;
}

.invite-link:hover .overlay {
  opacity: 0.85;
}

.invite-text {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 10px;
  font-family: 'Poppins';
  font-size: 25px;
  color: white;
}

@media (max-width: 1024px) {
  .invite-link {
    transform: scale(0);
  }
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0px;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: rgba(0, 0, 0, 0.7);
  text-align: center;
}

.overlay-text {
  position: relative;
  top: 10px;
  font-family: 'Poppins';
  font-size: 15px;
}

.preview:hover .overlay {
  opacity: 0.85;
}

/* Custom Cursor */
:root {
  --cursor-color-one: #ff69b4;
  --cursor-color-two: transparent;
  --cursor-color-three: #ff69b4;
}

.cursor {
  width: 25px;
  height: 25px;
  transform: translateX(-50%) translateY(-50%);
  border: 1px solid;
  border-color: var(--cursor-color-one);
  background: var(--cursor-color-two);
  border-radius: 50%;
  transition: width 200ms ease-out, height 200ms ease-out,
    opacity 300ms ease-out, background-color 250ms ease-in-out,
    border-color 250ms ease-in-out;
  position: fixed;
  opacity: 0;
  z-index: 25;
  pointer-events: none;
  will-change: left, top;
}

.expand {
  width: 50px !important;
  height: 50px !important;
}

.inner-cursor {
  width: 5px;
  height: 5px;
  transform: translateX(-50%) translateY(-50%);
  border-radius: 100%;
  background-color: var(--cursor-color-three);
  position: fixed;
  transition: width 200ms ease-out, height 200ms ease-out,
    opacity 200ms ease-out, background-color 250ms ease-in-out;
  opacity: 0;
  z-index: 25;
  pointer-events: none;
  will-change: left, top;
}

.cursor-modal {
  pointer-events: none;
  position: fixed;
  height: fit-content;
  width: fit-content;
  background-color: #fff;
  padding: 20px;
  color: #000;
  max-width: 300px;
  font-size: 11px;
  opacity: 0;
  line-height: 20px;
  z-index: 14;
  font-weight: 500;
  transition: opacity 100ms cubic-bezier(0.47, 0, 0.745, 0.715);
  font-family: 'Poppins';
}

/* Desktop Nav (Alternative) */
@media only screen and (max-width: 1350px) {
  nav.desktop-nav { display: none; }
  button.hamburger-button { display: block; }
  nav.hamburger-wrapper { display: flex; }
}

@media only screen and (max-width: 750px) {
  nav.desktop-nav { display: none; }
  button.hamburger-button { display: block; }
  nav.hamburger-wrapper { display: flex; }
}

header {
  width: 100%;
  padding: 30px 60px;
  background-color: rgba(35, 38, 36, 0.95);
  position: fixed;
  z-index: 10;
  backdrop-filter: blur(10px);
}

nav.desktop-nav {
  display: flex;
  flex-direction: row;
  column-gap: 20px;
  width: fit-content;
}

nav.desktop-nav a {
  position: relative;
  color: #ffffff;
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'Poppins';
  background: transparent;
  padding: 10px 25px;
  transition: 350ms ease;
  background-color: #ff69b400;
}

nav.desktop-nav a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  transition: 100ms ease-in-out;
  background-color: #ff69b4;
}

nav.desktop-nav a:hover::after,
nav.desktop-nav a:focus::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  bottom: 0;
  left: 0;
  background-color: #ff69b4;
}

.desktop-nav .slide-active {
  background-color: #ff69b466;
}

/* Hamburger Button */
button.hamburger-button {
  aspect-ratio: 1 / 1;
  width: 40px;
  display: none;
  position: relative;
  margin: auto;
  border-radius: 100%;
  padding: 5px;
  border: 1px solid #fff;
  background: none;
  transition: all 150ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger-button .line-one {
  display: block;
  position: absolute;
  pointer-events: none;
  left: 50%;
  transform: translateX(-50%);
  bottom: 35%;
  height: 1px;
  width: 23px;
  background-color: #fff;
  transition-delay: 0s, 250ms, 0s;
  transition-property: transform, bottom, background-color;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  transition-duration: 100ms;
}

.hamburger-button .line-two {
  display: block;
  pointer-events: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 35%;
  height: 1px;
  width: 23px;
  background-color: #fff;
  transition-delay: 0s, 250ms, 0s;
  transition-property: transform, top, background-color;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  transition-duration: 100ms;
}

.hamburger-button-active .line-one {
  bottom: 50%;
  transition-delay: 250ms, 0s, 0s;
  transform: translateX(-50%) rotateZ(45deg);
}

.hamburger-button-active .line-two {
  top: calc(50% - 1px);
  transition-delay: 250ms, 0s, 0s;
  transform: translateX(-50%) rotateZ(-45deg);
}

.hamburger-button:hover {
  border-color: #ff69b4;
  transform: scale(1.1);
}

.hamburger-button:hover :is(.line-one, .line-two) {
  background-color: #ff69b4;
}

.hamburger-button-active:hover {
  border-color: #ff69b4;
  transform: scale(1.1);
}

.hamburger-button-active:hover :is(.line-one, .line-two) {
  background-color: #ff69b4;
}

/* Hamburger Menu */
nav.hamburger-wrapper {
  position: fixed;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: fit-content;
  left: 50%;
  top: 42%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 20;
  width: 50%;
  height: 80%;
  background-color: #fff;
  border: 1px solid #000;
  opacity: 0;
  transition: all 300ms ease;
  pointer-events: none;
  user-select: none;
}

nav.hamburger-wrapper-active {
  opacity: 1;
  pointer-events: all;
  user-select: all;
  top: 50%;
}

.hamburger-container {
  width: 100%;
  height: 80%;
  display: grid;
  min-width: fit-content;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}

.hamburger-container a {
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Poppins';
  align-items: center;
  width: fit-content;
  height: fit-content;
  user-select: none;
  color: #000;
  background-color: #fff;
  padding: 15px 25px;
  transition: all 500ms cubic-bezier(0.075, 0.82, 0.165, 1);
}

.hamburger-container a:hover,
.hamburger-container a:focus {
  color: #fff;
  background-color: #ff69b4;
}
