/* Import required fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Playfair+Display:wght@700&family=Merriweather:wght@400;700&family=Montserrat:wght@600&display=swap');

/* Basic resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body */
body {
    background: #B7A3E3;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #2D1D47;
    overflow-x: hidden;
    transition: background 0.3s ease;
}

/* Hide mobile menu by default */
.menu-toggle {
  display: none;
}

/* Middle section */
.middle-content {
    background-color: rgba(45, 29, 71, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    flex-grow: 1;
}

/* ------------------- NAVBAR ------------------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(45, 29, 71, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
  font-family: 'Roboto', sans-serif; /* ✅ Navbar font */
}

.navbar.sticky {
    background-color: rgba(45, 29, 71, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    border-radius: 50%;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.brand-name {
    color: white;
    font-weight: 700;
    font-size: 24px;
}

/* Navbar links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Hover & Active Link States */
.nav-links li a.active,
.nav-links a:hover {
  background: linear-gradient(90deg, #df76ac, #ec4899);
  transform: scale(1.05);
}

.nav-links li a:hover {
    background-color: #d687b6;
}

/* ------------------- MAIN CONTENT ------------------- */
.main-content {
    flex-grow: 1;
    padding: 25px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 80px;
    animation: fadeIn 1s ease-in;
}

/* Intro Section */
.intro-section {
    background-color: #B7A3E3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    animation: slideIn 1s ease-out;
}

.text-content {
    flex: 1;
    padding-right: 40px;
    font-size: 20px;
    line-height: 1.4;
    opacity: 0;
    animation: fadeInUp 1.5s ease-in-out 0.3s forwards;
}

/* ✅ Intro header font (Playfair Display Bold) */
.text-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 60px;
    margin-bottom: 8px;
    font-style: italic;
    color: #2a2548;
}

/* ✅ Paragraph + FullText font (Merriweather) */
.text-content p,
#fullText {
    font-family: 'Merriweather', serif;
    font-weight: 400;
}

/* Highlight style */
.highlight {
    font-weight: 700;
    font-style: normal;
}

/* Intro Buttons */
.intro-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    opacity: 0;
    animation: fadeInUp 1.5s ease-in-out 0.5s forwards;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Preview Button */
.preview-btn {
    font-family: 'Roboto', sans-serif;
    background-color: transparent;
    border: 2px solid #2D1D47;
    color: #2D1D47;
    transition: all 0.3s ease;
}

.preview-btn:hover {
    background-color: #2D1D47;
    color: #fff;
    transform: scale(1.1);
}

/* Buy Now Button */
.buy-btn {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(90deg, #f472b6, #ec4899);
    color: #fff;
    border: 2px solid #D687B6;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    background-color: #ec4899;
    border-color: #ec4899;
    transform: scale(1.1);
}

/* Book Image Slider */
.book-image-slider {
    flex: 0 0 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-in;
}

.slider-image {
    width: 400px;
    height: auto;
    margin-bottom: 15px;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.image-toggle-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.toggle-btn {
    background-color: #2D1D47;
    border: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.toggle-btn:hover {
    background-color: #ec4899;
    transform: scale(1.2);
}

.toggle-btn.active {
    background-color: #ec4899;
}

/* ------------------- SYNOPSIS SECTION ------------------- */
.synopsis {
    background-color: #B7A3E3;
    padding: 20px 30px;
    border-radius: 8px;
    color: #2D1D47;
    width: 90%;
    max-width: 1000px;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

/* ✅ Synopsis header (Montserrat Semi-Bold) */
.synopsis h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 18px;
}

/* ✅ Synopsis text (Merriweather) */
.synopsis p {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
}

/* ------------------- FOOTER ------------------- */
footer {
  background: linear-gradient(90deg, #f472b6, #ec4899);
  color: rgba(45, 29, 71, 0.9);
  font-size: 14px;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  backdrop-filter: blur(5px);
}

footer a {
  color: rgba(45, 29, 71, 0.9);
  text-decoration: none;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer a:hover {
  transform: scale(1.2);
  color: #f472b6;
}

footer p {
  font-family: 'Roboto', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ------------------- WHATSAPP ICON ------------------- */
.whatsapp-icon {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    display: inline-block;
    background-color: #25D366;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.whatsapp-icon:hover img {
    transform: scale(1.1);
}

/* ------------------- ANIMATIONS ------------------- */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

@keyframes stickyNav {
    0% { top: -100px; }
    100% { top: 0; }
}
