@import url("https://fonts.googleapis.com/css2?family=Stack+Sans+Headline:wght@200..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

.books_list {
  list-style: none; /* removes default bullets */
  margin: 0;
  padding: 0;
}

.bookshelf_wrapper {
  position: absolute;
  bottom: 100px; /* place it above bottom of screen */
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 140px;
}

/* Shelf */
.shelf {
  width: 100%;
  height: 5px;
  background-color: #1e6cc7;
  position: absolute;
  bottom: 0;
}

/* Books */
.book_item {
  position: absolute;
  bottom: 0; /* align with shelf */
  width: 40px;
  opacity: 0;
  background-color: #1e6cc7;
  border: 5px solid #ffffff;
  transform-origin: bottom left;
  transform: translateX(300px);
  animation: travel 2500ms linear infinite;
}

/* First book */
.book_item.first {
  height: 140px;
}

.book_item.first::before,
.book_item.first::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  background-color: #ffffff;
  left: 0;
}

.book_item.first::before {
  top: 10px;
}
.book_item.first::after {
  bottom: 10px;
}

/* Second book */
.book_item.second {
  height: 120px;
}

.book_item.second::before,
.book_item.second::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 17.5px;
  border-top: 5px solid #ffffff;
  border-bottom: 5px solid #ffffff;
  left: 0;
  top: 10px;
}

.book_item.second::after {
  top: auto;
  bottom: 10px;
}

/* Third book with white dots */
.book_item.third {
  height: 120px;
}

.book_item.third::before,
.book_item.third::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 5px solid #ffffff;
  left: 9px;
  top: 10px;
}

.book_item.third::after {
  top: auto;
  bottom: 10px;
}

/* Fourth book */
.book_item.fourth {
  height: 130px;
}

.book_item.fourth::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 17.5px;
  border-top: 5px solid #ffffff;
  border-bottom: 5px solid #ffffff;
  top: 46px;
  left: 0;
}

/* Fifth book */
.book_item.fifth {
  height: 100px;
}

.book_item.fifth::before,
.book_item.fifth::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 17.5px;
  border-top: 5px solid #ffffff;
  border-bottom: 5px solid #ffffff;
  left: 0;
  top: 10px;
}

.book_item.fifth::after {
  top: auto;
  bottom: 10px;
}

/* Sixth book */
.book_item.sixth {
  height: 140px;
}

.book_item.sixth::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  background-color: #ffffff;
  bottom: 31px;
  left: 0;
}

.book_item.sixth::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 5px solid #ffffff;
  bottom: 10px;
  left: 9px;
}

.bookshelf_label {
  text-align: center;
  margin-top: 16vh; /* space between shelf and text */
  margin-left: 0.6vw;
  font-family: "Stack Sans Headline", sans-serif;
  font-weight: 700;
  font-size: 35px;
  color: #222; /* black, change if you want */
}

/* Animation delays */
.book_item:nth-child(2) {
  animation-delay: 416.666ms;
}
.book_item:nth-child(3) {
  animation-delay: 833.333ms;
}
.book_item:nth-child(4) {
  animation-delay: 1250ms;
}
.book_item:nth-child(5) {
  animation-delay: 1666.666ms;
}
.book_item:nth-child(6) {
  animation-delay: 2083.333ms;
}

/* Travel animation */
@keyframes travel {
  0% {
    opacity: 0;
    transform: translateX(300px) rotateZ(0deg) scaleY(1);
  }
  6.5% {
    transform: translateX(279.5px) rotateZ(0deg) scaleY(1.1);
  }
  8.8% {
    transform: translateX(273.6px) rotateZ(0deg) scaleY(1);
  }
  10% {
    opacity: 1;
    transform: translateX(270px) rotateZ(0deg);
  }
  17.6% {
    transform: translateX(247.2px) rotateZ(-30deg);
  }
  45% {
    transform: translateX(165px) rotateZ(-30deg);
  }
  49.5% {
    transform: translateX(151.5px) rotateZ(-45deg);
  }
  61.5% {
    transform: translateX(115.5px) rotateZ(-45deg);
  }
  67% {
    transform: translateX(99px) rotateZ(-60deg);
  }
  76% {
    transform: translateX(72px) rotateZ(-60deg);
  }
  83.5% {
    opacity: 1;
    transform: translateX(49.5px) rotateZ(-90deg);
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translateX(0px) rotateZ(-90deg);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

#main-content {
  transition: opacity 0.5s ease-in;
}

/* Loader Wrapper */
#loader-wrapper {
  position: fixed;
  top: 70%; /* move loader higher */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: auto; /* shrink to content */
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#loader {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

html,
body {
  margin: 0;
  padding: 0;
}

#hero {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
#banner {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}
#hero-label {
  text-align: center;
  font-family: "Stack Sans Headline", sans-serif;
  font-weight: 500;
  font-size: 50px;
  margin: 0;
  margin-top: 10vh;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff; /* solid background for contrast */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* visible shadow */
  position: sticky; /* stays at top when scrolling */
  top: 0;
  z-index: 1000;
}

.navbar {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
  font-family: "Stack Sans Headline", sans-serif;
  margin-right: 2vw;
}

.navbar li a {
  display: inline-block;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 10px;
  padding: 10px;
}

.navbar li a:hover {
  color: white;
  background-color: rgb(0, 119, 204);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#logo {
  width: 15%;
  height: 6%;
  display: flex;
  margin-left: 1vw;
  margin-top: 0.5vh;
}

#desc {
  background: linear-gradient(to bottom, #ffffff, #6ac1ff);
}

.desc-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desc-content img {
  width: 40%;
  height: auto;
  display: block;
  object-fit: contain;
}

.slider-wrapper {
  width: 45%;
  position: relative;
  margin-left: 9vw;
}

.slider {
  overflow: hidden;
  height: 300px;
}

.slides {
  display: flex;
  width: 300%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.slide.exit-left {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 1;
}
.slider-arrows {
  position: absolute;
  top: 60%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.slider-arrows button {
  background: rgba(0, 119, 204, 0.3);
  border-radius: 10px;
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  pointer-events: all;
  transition: background 0.3s ease;
}

.slider-arrows button#prev {
  transform: translateX(-60px); /* move OUTSIDE left */
}

.slider-arrows button#next {
  transform: translateX(60px); /* move OUTSIDE left */
}

.slider-arrows button:hover {
  background: rgba(1, 36, 61, 0.3);
}

.simurq-slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #bbe3ff;
  padding: 2rem;
  padding-left: 2vw;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  font-family: "Stack Sans Headline", sans-serif;
  gap: 2rem;
}

.simurq-slide h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.simurq-slide p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.simurq-slide img {
  width: 50%;
  height: auto;
  border-radius: 30% 0 30% 0; /* Custom shape */
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-left: 5vw;
}
