/* General styles and reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #1c1c1c, #333333);
  color: #e0e0e0;
  padding: 0px;
  margin-top: 60px;
}

header {
  text-align: center;
  margin-bottom: 50px;
  width: 100%;
}

.hero {
  padding: 50px 0;
  width: 100vw;
  background: url('/assets/images/hero-bg.jpg') no-repeat center center/cover;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: fadeIn 2s ease-in-out;
  backdrop-filter: blur(10px);
  border-radius: 0;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 10px;
  color: #ffdd00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.5em;
  margin-bottom: 20px;
}

.intro {
  text-align: center;
  margin-bottom: 30px;
  animation: slideIn 2s ease-in-out;
}

.intro h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #ffdd00;
}

.intro p {
  font-size: 1.2em;
  color: #bbb;
}

.featured-content {
  text-align: center;
  margin-bottom: 50px;
}

.featured-content h2 {
  font-size: 2.5em;
  color: #ffdd00;
  margin-bottom: 20px;
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: #1c1c1c;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #e0e0e0;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card-content h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffdd00;
}

.card-content p {
  font-size: 1em;
  color: #bbb;
}

.buttons-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.button {
  display: inline-block;
  width: 100%;
  max-width: 350px;
  height: 200px;
  font-size: 1.5em;
  color: #fff;
  border: none;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.3s ease;
}

.button:hover::before {
  background: rgba(0, 0, 0, 0.2);
}

.button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.button-text {
  position: relative;
  z-index: 1;
  padding: 20px;
  backdrop-filter: blur(5px);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}

.carousel-section {
  text-align: center;
  margin: 50px 0;
}

.carousel-section h2 {
  font-size: 2.5em;
  color: #ffdd00;
  margin-bottom: 20px;
}

.carousel-strip {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  height: auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: 0 20px;
}

.carousel-item {
  background: #1c1c1c;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-right: 20px;
  flex-shrink: 0;
  height: auto;
}

.carousel-item a {
  text-decoration: none;
  color: #ffdd00;
}

.carousel-item h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffdd00;
}

.carousel-item p {
  font-size: 1em;
  color: #bbb;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.slick-dots {
  display: flex !important;
  justify-content: center;
  flex-wrap: nowrap !important;
  margin-top: 15px;
}

.slick-dots li {
  margin: 0 5px;
}

.slick-dots li button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ffdd00;
}

.slick-dots li.slick-active button {
  background-color: #ff8800;
}

@media (max-width: 768px) {
  .carousel-strip {
    flex-direction: column;
    align-items: center;
  }

  .carousel-item {
    width: 100%;
    margin-bottom: 20px;
    margin-right: 0;
  }
}

/* Book Cover Styles */
.book-cover-container {
  text-align: center;
  margin: 20px 0;
}

.book-cover {
  width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.book-cover:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.coming-soon-section {
  text-align: center;
  margin: 50px 0;
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.coming-soon-section h2 {
  font-size: 2.5em;
  color: #ffdd00;
  margin-bottom: 20px;
}

.coming-soon-section img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  background-color: #1c1c1c;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInModal 0.5s ease-in-out;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: #ffdd00;
  text-decoration: none;
  cursor: pointer;
}

.chapter-content h2 {
  color: #ffdd00;
  font-size: 2em;
  margin-bottom: 15px;
}

.chapter-content p {
  color: #e0e0e0;
  font-size: 1.2em;
  line-height: 1.6;
}

.newsletter-signup {
  text-align: center;
  margin-top: 50px;
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.newsletter-signup h2 {
  font-size: 2em;
  color: #ffdd00;
  margin-bottom: 20px;
}

.newsletter-signup form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter-signup input[type="email"] {
  padding: 10px;
  font-size: 1em;
  margin-bottom: 20px;
  border: none;
  border-radius: 5px;
  width: 100%;
  max-width: 300px;
}

.newsletter-signup button {
  padding: 10px 20px;
  font-size: 1em;
  color: #fff;
  background-color: #ffdd00;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-signup button:hover {
  background-color: #ffe033;
}

@media (min-width: 768px) {
  .buttons-container {
      flex-direction: row;
  }
}

footer {
  margin-top: 50px;
  text-align: center;
  font-size: 0.9em;
  color: #eee;
  width: 100vw;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.social-media a {
  color: #ffdd00;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.social-media a:hover {
  color: #ffe033;
}

/* Keyframes for animations */
@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

@keyframes slideIn {
  from {
      transform: translateY(20px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

/* Keyframe for modal fade-in */
@keyframes fadeInModal {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

[data-aos="fade-in"] {
  opacity: 0;
  transform: translateY(20px);
  transition-property: opacity, transform;
  transition-duration: 2s;
}

[data-aos="fade-in"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
