/* CSS Document */
/* Global Styles */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f3ef;
  color: #1e1e1e;
  line-height: 1.6;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  border-radius: 12px;
}

h2, h3 {
  font-family: 'EB Garamond', serif;
  margin-bottom: 1rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  background: linear-gradient(to right, #001912, #00251c); /* Option 2: gradient */
  color: #fff;
  padding: 0.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;

  border-bottom: 2px solid #d4af37; /* Option 1: gold line */
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2); /* Optional glow */
}

.branding a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 0 4px #00ffcc, 0 0 8px rgba(0, 255, 204, 0.4); /* Option 3 */	
}

.branding a:hover {
  color: #ffd700;
}

.branding {
  line-height: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.branding h1 {
  font-size: 1.3rem;
  margin: 0;
  line-height: 1;
}

.tagline {
  color: #cccccc;
  font-style: italic;
  font-size: 0.75rem;
  margin: 0.15rem 0 0;
  line-height: 1.2;
}


.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 0;
}

.main-nav ul li a {
  color: #fdfdfd;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.main-nav ul li a:hover {
  color: #d4af37;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  background: url("../image/hero-background.jpg") no-repeat center top;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  filter: brightness(1.2); /* Slightly brightens the image */
  background-position-y: 10%; /* Moves the image up slightly */	
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 31, 23, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  margin-top: 4rem; /* This pushes the whole text block lower */	
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Button Styles */
.btn {
  background-color: #d4af37;
  color: #0a1f17;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
   transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.btn:hover {
  background-color: #b9911f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 10px #00ffcc, 0 0 20px rgba(0, 255, 204, 0.4);
}

/* About Author */
.about-author {
  position: relative;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
  background: linear-gradient(to right, #f5f3ef, #e6e2dd);
}

.about-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.about-photo {
  flex: 1 1 250px;
  max-width: 250px;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-text {
  flex: 2;
  min-width: 300px;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Featured Book Section */
.featured-book {
  position: relative;
  color: #ffffff;
  text-align: center;
  padding: 4rem 2rem;
  background: url("../image/protocol-background.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  animation: backgroundScroll 60s linear infinite;
  overflow: hidden;
}
.featured-book::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2)); /* subtle dim + fade */
  z-index: 0;
}

.featured-book .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.featured-book h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.featured-book p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Book Cover with Sci-Fi Hover Effect */
.featured-cover {
  max-width: 220px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-cover:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px #00ffcc, 0 0 40px rgba(0, 255, 204, 0.3);
}
.featured-book {
  position: relative;
  color: #ffffff;
  text-align: center;
  padding: 4rem 2rem;
  background: url("../image/protocol-background.jpg") no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

.featured-book::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2)); /* subtle dim + fade */
  z-index: 0;
}

.featured-book .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.featured-book h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.featured-book p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Book Cover with Sci-Fi Hover Effect */
.featured-cover {
  max-width: 220px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-cover:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px #00ffcc, 0 0 40px rgba(0, 255, 204, 0.3);
}
.featured-book {
  position: relative;
  color: #ffffff;
  text-align: center;
  padding: 4rem 2rem;
  background: url("../image/protocol-background.jpg") no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

.featured-book::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2)); /* subtle dim + fade */
  z-index: 0;
}

.featured-book .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.featured-book h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.featured-book p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Book Cover with Sci-Fi Hover Effect */
.featured-cover {
  max-width: 220px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-cover:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px #00ffcc, 0 0 40px rgba(0, 255, 204, 0.3);
}


/* Newsletter */
.newsletter {
  background-color: #f5f3ef;
  padding: 3rem 2rem;
  text-align: center;
}

.newsletter input[type="email"] {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 250px;
  margin-right: 0.5rem;
}

.newsletter button {
  background-color: #0a1f17;
  color: #fff;
  border: none;
  padding: 0.75rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
}

.newsletter button:hover {
  background-color: #d4af37;
  color: #0a1f17;
}

/* Book Gallery */
.book-gallery {
  padding: 3rem 2rem;
  text-align: center;
}

.book-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center; /* center the books horizontally */
  align-items: flex-start;
  margin-bottom: 3rem; /* 👈 this is what adds vertical space between rows */	
}
.book-link {
  text-decoration: none;
  color: inherit;
  display: block; /* important for layout */
}

.book {
  max-width: 200px;
  animation: bounce 3s infinite alternate;
}

.book-title {
  margin-top: 0.5rem;
  font-weight: bold;
}

.book-buttons a {
  margin-top: 0.5rem;
  display: inline-block;
  background-color: #d4af37;
  color: #0a1f17;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.book-buttons a:hover {
  background-color: #b9911f;
}
.book img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 15px #00ffcc;
}


/* Footer */
.site-footer {
  background-color: #0a1f17;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

.site-footer a {
  color: #d4af37;
  text-decoration: none;
  margin: 0 0.5rem;
  font-size: 1.2rem;
}

.site-footer a:hover {
  color: #fff;
}

/* Animations */
@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .about-layout {
    flex-direction: column;
    text-align: center;
  }

  .newsletter input[type="email"] {
    width: 100%;
    margin: 0 0 1rem;
  }

  .newsletter button {
    width: 100%;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
@keyframes backgroundScroll {
  from {
    background-position-y: 0%;
  }
  to {
    background-position-y: 100%;
  }
}
/* Tagline Hover Glow */
.tagline:hover {
  text-shadow: 0 0 8px #00ffcc, 0 0 15px #00ffcc;
  transition: text-shadow 0.3s ease;
}
.sci-fi-section {
  background: url("../image/kara_books_bg.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  padding: 4rem 2rem;
  z-index: 1;
}

.sci-fi-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 23, 0.6); /* overlay for better readability */
  z-index: -1;
}
.parents-kids-section {
  background: url("../image/parents_kids_bg.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  padding: 4rem 2rem;
  z-index: 1;
}

.parents-kids-section::before {
  content: "";
  position: absolute;
  inset: 0;
background: rgba(245, 243, 239, 0.6);
  z-index: -1;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.book-link {
  text-decoration: none;
  color: inherit;
  display: inline-block; /* change to block if needed */
  max-width: 200px;
}
/* Hover effect for book cards */
.book-link:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 255, 204, 0.3), 0 0 15px #00ffcc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Enhanced glowing button style */
.book-buttons a {
  background-color: #d4af37;
  color: #0a1f17;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 transparent;
}

.book-buttons a:hover {
  background-color: #b9911f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 10px #00ffcc, 0 0 20px rgba(0, 255, 204, 0.4);
}
.sci-fi-section h2,
.featured-book h2,
.featured-book p {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6); /* soft shadow for contrast */
}
.section-spacer {
  height: 60px;
   background: linear-gradient(to bottom, #001912 0%, rgba(245, 243, 239, 0.7) 100%);
}
/* Other styles... */

.sci-fi-section,
.sci-fi-section * {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}
.about-section img {
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.4); /* neon teal glow */
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: none;
}
.about-photo {
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.4); /* soft teal glow */
}
.extra-books-section {
background: url("../image/parents_kids_bg.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  padding: 4rem 2rem;
  z-index: 1;
}

.extra-books-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 243, 239, 0.85); /* warm soft overlay */
  z-index: -1;
}


