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

::selection {
  background-color: black;
  color: white;
}

html {
  scroll-behavior: smooth;
  cursor: url("/assets/triangle.png"), auto;
}

#prehomeSection {
  width: auto;
  height: 95dvh;
  background-color: white;
  margin: 0;
  padding: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

img {
  margin: auto;
}

@media (max-width: 767.98px) {
  img {
    width: 50%;
  }
}

.fade-in {
  -webkit-animation: fade-in 2s cubic-bezier(0.39, 0.575, 0.565, 1) both;
  animation: fade-in 2s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

@-webkit-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Navbar container */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center; /* centers the nav links */
  background-color: #ffffff;
  padding: 1rem 2rem;
  position: relative;
}

/* Logo on the top left */
.logo {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  object-fit: contain;
}

.logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

/* Center nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 1.5mm;
  transition: all ease-in-out 0.2s;
}

.nav-links a {
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.nav-links a::before,
.nav-links a::after {
  content: "";
  position: absolute;
  border: 0px solid transparent;
  width: 0%;
  height: 0%;
  bottom: 0%;
  right: 0%;
}

.nav-links a::before {
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.nav-links a::after {
  border-top-width: 1px;
  border-right-width: 1px;
}

.nav-links a:hover {
  color: black;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 5px;
  padding-left: 8px;
}

.nav-links a:hover::before,
.nav-links a:hover::after {
  border-color: black;
  transition: border-color 0s, width 0.3s, height 0.3s;
  width: 100%;
  height: 100%;
}

.nav-links a:hover::before {
  transition-delay: 0s, 0s, 0.2s;
}

.nav-links a:hover::after {
  transition-delay: 0s, 0.2s, 0s;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    display: none;
    text-align: center;
  }

  .logo {
    width: fit-content;
    text-align: left;
    margin-left: -40px;
  }

  .logo img {
    width: 50%;
    height: auto;
    object-fit: contain;
    margin-top: 50px;
  }
}
