
/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f5f5f5;
}

/* ===== Layout Helper ===== */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* ===== Universal Button Style ===== */
.btn {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid #f7c705;
  border-radius: 30px;
  font-weight: bold;
  color: #333;
  background-color: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: #f7c705;
  color: white;
}

/* ===== Navbar ===== */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.nav-left a,
.nav-right a {
  margin: 0 12px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  /*flex: 1;*/
  gap:12px
}

.nav-right {
  justify-content: flex-end;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-img {
  height: 80px;
  max-width: 100%;
  object-fit: contain;
}

/* ===== User Icon ===== */
.user-icon {
  width: 40px;
  height: 40px;
  background-color: #ffd700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.user-icon:hover {
  transform: scale(1.05);
}

.user-icon svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

/* ===== Modal Overlay ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background-color: white;
  border-radius: 12px;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 5px;
}

.close-btn:hover {
  color: #333;
}

.form-title {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
  color: #333;
}

.form-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background-color: #fafafa;
}

.form-input:focus {
  outline: none;
  border-color: #ffd700;
  background-color: white;
}

.form-input::placeholder {
  color: #999;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.submit-btn:hover {
  background-color: #555;
}

.login-btn {
  background-color: #ffd700;
  color: #333;
}

.login-btn:hover {
  background-color: #ffed4a;
}

.form-switch {
  text-align: center;
  color: #666;
}

.form-switch a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
}

.form-switch a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media screen and (max-width: 1024px) {
  .home-content {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .home-text,
  .home-image {
    max-width: 100%;
  }

  .home-image {
    justify-content: center;
    margin-top: 30px;
  }

  .home-text h1 {
    font-size: 36px;
  }

  .home-text p {
    font-size: 16px;
  }

  .footer-container,
  .footer-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .store-buttons img {
    margin: 10px auto;
  }

  .modal {
    padding: 30px 20px;
    width: 95%;
  }

  .nav-container {
    padding: 0 15px;
  }

  .logo {
    font-size: 20px;
  }

  .user-icon {
    width: 35px;
    height: 35px;
  }

  .user-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ===== Home Content Layout ===== */
.home-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 120px; /* Prevents text from hiding behind navbar */
  gap: 40px;
  flex-wrap: wrap;
}

.home-text {
  flex: 1;
  padding-right: 20px;
}

.home-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  height: 350px;
}

.home-image img {
  max-width: 100%;
  height: auto;
  animation: fadeInOut 6s infinite ease-in-out;
}

/* ===== Image Animation (Swapping/Fading) ===== */
@keyframes fadeInOut {
  0%, 100% {
    opacity: 0;
    transform: translateX(20px);
  }
  10%, 90% {
    opacity: 1;
    transform: translateX(0);
  }
}
/*update new one*/
/* ===== Bookstore Grid ===== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  justify-items: center;
}

.book-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  width: 180px;
  cursor: pointer;
}

.book-card:hover {
  transform: translateY(-5px);
}

.book-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.book-card h3 {
  margin: 10px 0 5px;
  font-size: 16px;
  color: #333;
}

.book-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

/* ===== Shop Button ===== */
.shop-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color:#f7c705;
  color:black;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.shop-btn:hover {
  background-color: black;
  color:white;
}

/* ===== About Section - Flipbook ===== */
.book {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 250vw;
  width: 100%;
  height: 100%;
  max-width: 1075px;
  margin: auto;
  transition: opacity 0.4s 0.2s;
}

.book .pages {
  width: 60vw;
  height: 44vw;
  position: relative;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  border-radius: 4px;
}

.book .page {
  position: absolute;
  top: 0;
  width: 30vw;
  height: 44vw;
  transform-origin: 0 0;
  transition: transform 1.4s;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  cursor: pointer;
  user-select: none;
  background-color: #f0f0f0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left top;
}

/* Page Overlay for Fade Effect */
.book .page:before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.7s;
  z-index: 2;
}

/* Odd Pages (Right Side) */
.book .page:nth-child(odd) {
  pointer-events: all;
  transform: rotateY(0deg);
  right: 0;
  border-radius: 0 4px 4px 0;
  background-image: linear-gradient(to right, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 10%);
}
.book .page:nth-child(odd):hover {
  transform: rotateY(-15deg);
}
.book .page:nth-child(odd):hover:before {
  background: rgba(0, 0, 0, 0.03);
}

/* Even Pages (Left Side) */
.book .page:nth-child(even) {
  pointer-events: none;
  transform: rotateY(180deg);
  transform-origin: 100% 0;
  left: 0;
  border-radius: 4px 0 0 4px;
  background-image: linear-gradient(to left, rgba(0,0,0,.12) 0%, rgba(0,0,0,0) 10%);
}
.book .page:nth-child(even):before {
  background: rgba(0, 0, 0, 0.2);
}

/* Flipping State */
.book .page.flipped:nth-child(odd) {
  pointer-events: none;
  transform: rotateY(-180deg);
}
.book .page.flipped:nth-child(even) {
  pointer-events: all;
  transform: rotateY(0deg);
}
.book .page.flipped:nth-child(even):hover {
  transform: rotateY(15deg);
}
.book .page.flipped:nth-child(even):hover:before {
  background: rgba(0, 0, 0, 0.03);
}


/* ===== Book Club Section ===== */
#bookclub {
  background-image: url('footer.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  text-align: center;
  color: black;
}

#bookclub h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

#bookclub p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* ===== Footer ===== */
.custom-footer {
  background-color: #000;
  color: #fff;
  padding: 80px 40px 40px;       /* Top, Left/Right, Bottom */
  font-family: Arial, sans-serif;
  border-radius: 40px;           /* Curved corners */
  margin: 60px auto;
  width: calc(100% - 80px);      /* Leaves 40px space on each side */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}



.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-logo img {
  height: 80px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex: 1;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  min-width: 160px;
}

.footer-column h4 {
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.store-buttons img {
  height: 40px;
  margin: 10px 0;
  display: block;
}

.footer-bottom {
  border-top: 1px solid #444;
  text-align: center;
  padding-top: 15px;
  font-size: 13px;
  margin-top: 20px;
  color: #aaa;
}

/* ===== Animations ===== */
@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}
.highlight-title {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  text-align: left;
  max-width: 300px;
}

.highlight {
  position: relative;
  display: inline-block;
  color: #000;
  font-style: italic;
  z-index: 1;
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 8px;
  background-color: #f7c705;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease-in-out;
  z-index: -1;
}

.highlight.animate::after {
  transform: scaleX(1);
}
.container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    text-align: center;
}

h1 {
    font-size: 48px;
    font-weight: bold;
    color: black;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-align: center;

}

p {
    color: black;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
    text-align-last: center;
}
