* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(to bottom, #0f172a, #1e293b, #0f172a);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Concept Art Page Styling --- */
.concept-art-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2em;
    padding: 1em;
    max-height: 100%;
    overflow-y: auto;
}

.book-modal { z-index: 9999; }
.book-modal { overscroll-behavior: contain; }

.concept-art-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    display: block;
}

.concept-art-item:hover {
    transform: scale(1.02);
}

.concept-art-caption h4 {
    margin: 0 0 0.4em;
    font-size: 1rem;
    color: #222;
    text-align: center;
}

.concept-art-caption p {
    margin: 0;
    font-size: 0.92rem;
    color: #555;
    text-align: center;
    line-height: 1.4;
    font-style: italic;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    margin: 48px 0;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.newsletter-description {
    color: #e0e7ff;
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-newsletter {
    background: white;
    color: #2563eb;
    padding: 16px 48px;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

.btn-newsletter:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Rating Platforms (Amazon + Goodreads side by side) */
.rating-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;             /* uniform gap between the two */
  align-items: start;
  justify-items: center;
  width: 100%;  /* same height if contents differ */
  margin-bottom: 16px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-text {
    animation: fadeIn 1s ease-in;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
}

.hero-highlight {
    color: #60a5fa;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-bottom: 48px;
    max-width: 512px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: center;
    margin-bottom: 48px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2px;
    left: 50.4%;
    transform: translateX(-50%);
    color: #60a5fa;
    cursor: pointer;
    animation: bounce 2s infinite;
}

/* Books Section (missing core styles) */
.books-section {
  padding: 80px 0;
  background: #1e293b;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.text-highlight {
  color: #60a5fa;
}

.section-description {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 512px;
  margin: 0 auto;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.book-card {
  background: #0f172a;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 32px;
  cursor: pointer;
  transition: all 0.5s ease;
  position: relative;
}

.book-card:hover {
  border-color: #2563eb;
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.2);
}

.book-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.book-badge-available {
  background: #16a34a;
  color: white;
}

.book-badge-upcoming {
  border: 1px solid #60a5fa;
  color: #60a5fa;
  background: transparent;
}

.book-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 16px;
  min-height: 0;
}

/* Base book cover size (you currently only have the hover/transition) */
.book-cover {
  width: 350px;
  height: 575px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  margin-top: 24px;
  margin-bottom: 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.book-cover.upcoming { opacity: 0.8; }
.book-cover.upcoming:hover { opacity: 1; }


/* Buttons */
.btn {
    padding: 12px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.btn-outline {
    border: 1px solid #60a5fa;
    color: #60a5fa;
    background: transparent;
}

.btn-outline:hover {
    background: #60a5fa;
    color: #0f172a;
}

.btn-amazon {
    background: #ea580c;
    color: white;
}

.btn-amazon:hover {
    background: #dc2626;
}

.btn-tiktok {
    border: 1px solid #ec4899;
    color: #ec4899;
    background: transparent;
}

.btn-tiktok:hover {
    background: #ec4899;
    color: white;
}

.btn-notify {
    background: #2563eb;
    color: white;
    width: 100%;
}

.btn-notify:hover {
    background: #1d4ed8;
}
.book-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.book-subtitle {
    color: #60a5fa;
    margin-bottom: 16px;
    font-size: 1rem;
}

.book-description {
    color: #cbd5e1;
    margin-bottom: 24px;
    line-height: 1.7;
}

.book-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: #94a3b8;
    font-size: 0.875rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat svg {
    color: #fbbf24;
}

.book-buttons {
    display: flex;
    flex-direction: column;
    gap: 24px;
    left: auto;
    width: 100%;
}

.release-info {
    background: #1e293b;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.release-label {
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.875rem;
}

.release-date {
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #0f172a;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.author-card {
    background: #1e293b;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 48px;
}

.author-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: center;
}

.author-photo {
    width: 100%;
    max-width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.author-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.author-description {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: hsl(217, 33%, 17%);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.features-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card2 {
    background: hsl(217, 33%, 17%);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.feature-card2:hover {
    border-color: hsl(221, 83%, 53%);
}

.feature-card3 {
    background: hsl(217, 68%, 45%);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.feature-card:hover {
    border-color: hsl(221, 83%, 53%);
}

.feature-icon {
    color: #60a5fa;
    margin: 0 auto 16px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.feature-description {
    color: #cbd5e1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: #0f172a;
    border: 1px solid #374151;
    border-radius: 12px;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #374151;
}

.modal-book-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-book-cover {
    width: 64px;
    height: 96px;
    object-fit: cover;
    border-radius: 4px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.modal-subtitle {
    color: #60a5fa;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: white;
}
.modal-body {
    padding: 24px;
}

.modal-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #1e293b;
    border-radius: 8px;
    margin-bottom: 24px;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 16px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #2563eb;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-section {
    background: #1e293b;
    border-radius: 8px;
    padding: 24px;
}

.tab-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 16px;
}

.prologue-text {
    margin-bottom: 24px;
}

.prologue-text p {
    color: #cbd5e1;
    font-size: 1.125rem;
    line-height: 1.7;
    font-style: italic;
}

.prologue-footer {
    padding-top: 16px;
    border-top: 1px solid #374151;
}

.prologue-footer p {
    color: #94a3b8;
    font-size: 0.875rem;
}

.character {
    background: #1e293b;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.character-name {
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.character-description {
    color: #cbd5e1;
}

/* Character Photos in Modal */
.character-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.character-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.character-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.character-item {
    margin-bottom: 24px;
    padding: 16px;
    background: #f1f5f9;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.character-item p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.star {
    color: #fbbf24;
}

.rating-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.rating-text {
    color: #94a3b8;
}

.review {
    background: #1e293b;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-author {
    color: #94a3b8;
    font-size: 0.875rem;
}

.review-text {
    color: #cbd5e1;
    font-style: italic;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid #374151;
}

.modal-buttons {
    display: flex;
    gap: 16px;
}

.modal-buttons .btn {
    flex: 1;
}

@media (min-width: 769px) {
  .book-container {
    height: 600px;
  }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40%, 43% {
        transform: translateX(-50%) translateY(-10px);
    }
    70% {
        transform: translateX(-50%) translateY(-5px);
    }
    90% {
        transform: translateX(-50%) translateY(-2px);
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    /* General body padding to prevent edge overflow */
    body {
        padding: 0 10px;
        overflow-x: hidden;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
        text-align: center;
    }

    .section-description,
    .hero-description {
        text-align: center;
        padding: 0 10px;
    }

    .books-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        justify-items: center;
    }

    .book-card {
        transform: scale(0.9);
        margin: 0 auto;
        max-width: 95%;
    }

    .book-cover {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .book-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .author-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .features-grid,
    .features-grid2 {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 5% auto;
        width: 95%;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .page-text {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .book-modal-content {
        max-height: none;
        padding: 10px;
    }

    .book-container {
      height: calc(100vh - 180px);
    }

    .book-page {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

    .page-controls {
        position: static;
        transform: none;
        margin-top: 20px;
        justify-content: center;
    }

    .book-spine {
        display: none;
    }

    .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    width: 100% !important;
    padding: 0 1rem !important;
}


    .footer {
        padding: 2rem 1rem;
    }

    .container,
    .section {
        padding: 0 10px;
    }

    .social-links {
        flex-wrap: wrap;
    }

    /* Single-page mode (mobile) */
    .book-container.single-page .book-spine { display: none; }
    .book-container.single-page .book-page { width: 100% !important; } /* full width */
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

}

@media (max-width: 640px) {
    .book-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .modal-buttons {
        flex-direction: row;
    }

      .rating-platforms {
    grid-template-columns: 1fr;
  }
}

.rating-platform {
  background: #f8fafc;        /* subtle card look */
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  width: 100%;
  max-width: 280px;

  display: flex;              /* equalize heights */
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.rating-display {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-stars { font-size: 1.1rem; }
.rating-number { font-weight: 700; }

@media (max-width: 480px) {
  .rating-stars { font-size: 1rem; }     /* keep stars inside bounds on small screens */
  .rating-number { font-size: 1rem; }
}


/* Book Modal */
.book-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    overflow: hidden; /* lock page behind modal */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-modal.open {
    opacity: 1;
}

.book-modal-content {
    position: relative;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: visible; /* stop outer modal from scrolling */
    width: 90%;
    animation: bookOpen 0.5s ease-out;
}

.book-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.book-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.book-container {
    position: relative;
    width: 100%;
    height: clamp(420px, 72vh, 600px); /* flexible height */
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; /* important: child pages handle scroll */
}

.book-spine {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, #8b4513, #a0522d, #8b4513);
    transform: translateX(-50%);
    z-index: 10;
    border-radius: 2px;
    box-shadow: 
        inset 2px 0 4px rgba(0, 0, 0, 0.3),
        inset -2px 0 4px rgba(0, 0, 0, 0.3);
}

.book-pages {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s ease;
    align-items: stretch; /* make pages fill container height */
    min-height: 0;
}

.book-page {
  /* sizing inside the flex row */
  flex: 1 1 50%;
  min-width: 0;                 /* allow content to shrink so scrolling works */
  width: 50%;
  height: 100%;

  /* visuals */
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-left: none !important;
  border-right: none !important;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
  box-shadow: 0 5px 15px rgba(0,0,0,.1);
  border-radius: 0;             /* your left/right rules handle corner rounding */

  /* layout for inner content */
  display: flex;
  flex-direction: column;
  min-height: 0;                /* IMPORTANT: enable child overflow */

  /* scrolling */
  overflow-y: auto;             /* scroll happens here */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* stop rubber-band bubbling to body */
  touch-action: pan-y;          /* allow vertical panning only */

  /* iOS/GPU nudge for smoother scroll */
  position: relative;
  transform: translateZ(0);
}

.left-page {
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
}

.right-page {
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(to left, #f8f9fa 0%, #ffffff 100%);
}

.page-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #1e293b;
    min-height: 0; 
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 24px;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.page-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

.page-text p {
    margin-bottom: 16px;
    text-align: justify;
    font-style: italic;
}

.page-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}
.character-list {
    flex: 1;
}

.character-item {
    margin-bottom: 24px;
    padding: 16px;
    background: #f1f5f9;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.character-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.character-item p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f1f5f9;
    border-radius: 8px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1.25rem;
}

.rating-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.rating-text {
    color: #6b7280;
    font-size: 0.875rem;
}

.review-list {
    flex: 1;
}

.review-item {
    margin-bottom: 20px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.review-header .review-stars {
    color: #fbbf24;
    font-size: 1rem;
}

.review-author {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.review-item p {
    color: #374151;
    margin: 0;
    font-style: italic;
    line-height: 1.6;
}

.book-info {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.book-cover-small {
    flex-shrink: 0;
}

.book-cover-small img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.book-details {
    flex: 1;
}

.book-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.book-genre {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 4px;
}

.book-pages-count {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.book-purchase-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.book-purchase-buttons .btn {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.page-controls{
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
}
.page-btn {
    background: #2563eb;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

.page-indicator {
    display: flex;
    gap: 8px;
}

.page-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

.page-set-2 {
    display: none;
}

/* Book Opening Animation */
@keyframes bookOpen {
    0% {
        transform: scale(0.8) rotateY(-15deg);
        opacity: 0;
    }
    50% {
        transform: scale(0.9) rotateY(-5deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
}

/* Book Cover Hover Effect */
.book-cover {
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* mobile-only dots */
.page-dot.mobile-only { display: none; }

@media (max-width: 768px) {
    .page-dot.mobile-only { display: inline-block; }
    .book-page { width: 100%; }
}

/* Contact Form */
.section {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-titlewhite {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-features {
    margin-top: 2rem;
}

.contact-features h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-features ul {
    list-style: none;
}

.contact-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group textarea {
    resize: none;
    min-height: 100px;
}

.btn-form {
    width: 100%;
    background: white;
    color: #2563eb;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-form:hover {
    background: #f9fafb;
}

/* social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.social-link {
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 10%;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.social-link:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 12px rgba(34, 92, 163, 0.3);
}

.social-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.social-link:hover .social-icon {
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
}

/* prevent footer logo distortion */
.footer .logo img {
  height: 32px;          /* your intended size */
  width: auto !important;/* don't stretch horizontally */
  max-width: 100%;
  object-fit: contain;   /* safety if any size leaks in */
  display: block;
}

/* make sure the wrapper isn't imposing a height */
.footer .logo {
  height: auto;
  line-height: 0;        /* removes extra inline whitespace */
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.footer-logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #2563eb, #9333ea);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text {
    color: #9ca3af;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}
