/* =====================================================
   SABRE DE PLEIADES
   BOOK PAGE
===================================================== */

/* =====================================================
   ROOT
===================================================== */

:root {
  --midnight: #04081b;
  --deep-blue: #070d27;
  --cosmic-blue: #0b1437;
  --blue-soft: #111d4b;

  --gold: #d7b45a;
  --gold-light: #f0d78a;
  --gold-soft: rgba(215, 180, 90, 0.16);

  --white: #f7f5ef;
  --muted: #b9bdd0;

  --border: rgba(215, 180, 90, 0.18);
}

/* =====================================================
   RESET
===================================================== */

.book-page,
.book-page * {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(42, 65, 145, 0.14),
      transparent 32%
    ),
    var(--midnight);

  color: var(--white);

  font-family: "Inter", sans-serif;

  overflow-x: hidden;
}

/* =====================================================
   GENERAL
===================================================== */

section {
  position: relative;
  overflow: hidden;
}

.section-eyebrow {
  display: inline-block;

  margin-bottom: 18px;

  font-family: "Cinzel", serif;

  font-size: 0.72rem;

  letter-spacing: 0.28em;

  color: var(--gold);
}

.section-heading {
  max-width: 850px;

  margin-bottom: 60px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;

  text-align: center;
}

.section-heading h2 {
  margin: 0;

  font-family: "Cinzel", serif;

  font-size: clamp(2.3rem, 5vw, 4.4rem);

  line-height: 1.08;

  font-weight: 500;
}

.section-heading h2 span {
  color: var(--gold);
}

.section-heading p {
  max-width: 680px;

  margin: 22px auto 0;

  color: var(--muted);

  font-family: "Cormorant Garamond", serif;

  font-size: 1.3rem;

  line-height: 1.7;
}

.heading-line {
  width: 70px;

  height: 1px;

  margin-top: 25px;
}


/* =====================================================
   HERO
===================================================== */

.book-hero {
  min-height: 100vh;

  display: flex;

  align-items: center;

  justify-content: center;

  text-align: center;

  padding: 150px 7% 100px;

  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(35, 59, 137, 0.3),
      transparent 35%
    ),
    radial-gradient(
      circle at 15% 80%,
      rgba(19, 47, 119, 0.2),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #030719,
      #070d27 70%,
      #04081b
    );
}


/* =====================================================
   STARS
===================================================== */

.book-stars,
.preview-stars {
  position: absolute;

  inset: 0;

  pointer-events: none;

  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.8) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle,
      rgba(215, 180, 90, 0.45) 1px,
      transparent 1px
    );

  background-size:
    130px 130px,
    210px 210px;

  opacity: 0.28;

  animation: starDrift 28s linear infinite;
}

@keyframes starDrift {
  from {
    background-position:
      0 0,
      0 0;
  }

  to {
    background-position:
      130px 130px,
      -210px 210px;
  }
}


/* =====================================================
   HERO GLOW
===================================================== */

.book-glow {
  position: absolute;

  width: 650px;
  height: 650px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(215, 180, 90, 0.12),
      transparent 68%
    );

  filter: blur(20px);

  animation: heroGlow 7s ease-in-out infinite;
}

@keyframes heroGlow {
  0%,
  100% {
    transform: scale(0.92);

    opacity: 0.65;
  }

  50% {
    transform: scale(1.08);

    opacity: 1;
  }
}


/* =====================================================
   HERO CONTENT
===================================================== */

.book-hero-content {
  position: relative;

  z-index: 2;

  max-width: 950px;
}

.book-eyebrow {
  display: inline-block;

  margin-bottom: 25px;

  font-family: "Cinzel", serif;

  font-size: 0.8rem;

  letter-spacing: 0.35em;

  color: var(--gold);
}

.book-hero h1 {
  margin: 0;

  font-family: "Cinzel", serif;

  font-size: clamp(3.2rem, 8vw, 7rem);

  font-weight: 500;

  line-height: 1;

  letter-spacing: -0.03em;
}

.book-hero h1 span {
  color: var(--gold);
}

.book-subtitle {
  margin: 25px 0 0;

  font-family: "Cormorant Garamond", serif;

  font-size: clamp(1.4rem, 3vw, 2rem);

  font-style: italic;

  color: var(--gold-light);
}

.book-hero-text {
  max-width: 650px;

  margin: 25px auto 0;

  color: var(--muted);

  font-size: 1rem;

  line-height: 1.8;
}

.book-hero-button {
  display: inline-flex;

  align-items: center;

  gap: 14px;

  margin-top: 40px;

  padding: 15px 28px;

  border: 1px solid var(--border);

  color: var(--white);

  text-decoration: none;

  font-size: 0.8rem;

  letter-spacing: 0.15em;

  text-transform: uppercase;

  transition: 0.5s ease;
}

.book-hero-button i {
  color: var(--gold);
}

.book-hero-button:hover {
  background: var(--gold-soft);

  border-color: var(--gold);

  color: var(--white);

  transform: translateY(-4px);
}


/* =====================================================
   BOOK OVERVIEW
===================================================== */

.book-overview {
  padding: 130px 7%;

  background:
    linear-gradient(
      180deg,
      var(--midnight),
      var(--deep-blue)
    );
}

.book-overview-container {
  max-width: 1250px;

  margin: auto;

  display: grid;

  grid-template-columns: 0.85fr 1.15fr;

  align-items: center;

  gap: 100px;
}


/* =====================================================
   BOOK COVER
===================================================== */

.book-cover-wrapper {
  position: relative;

  display: flex;

  justify-content: center;
}

.book-cover-frame {
  position: relative;

  width: min(100%, 410px);

  padding: 15px;
}

.book-cover-frame img {
  display: block;

  width: 100%;

  height: auto;
}

.cover-orbit {
  position: absolute;

  width: 480px;
  height: 480px;

  border: 1px solid rgba(215, 180, 90, 0.12);

  border-radius: 50%;

  animation: orbitSpin 25s linear infinite;

  pointer-events: none;
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}


/* =====================================================
   BOOK CONTENT
===================================================== */

.book-overview-content h2 {
  margin: 0 0 25px;

  font-family: "Cinzel", serif;

  font-size: clamp(2.4rem, 4vw, 4rem);

  font-weight: 500;

  line-height: 1.15;
}

.book-overview-content h2 span {
  color: var(--gold);
}

.book-overview-content p {
  max-width: 680px;

  margin-bottom: 20px;

  color: var(--white);

  font-family: "Cormorant Garamond", serif;

  font-size: 1.45rem;

  line-height: 1.55;

  text-align: justify;

  text-indent: 40px;
}


/* =====================================================
   SLOW ONE-BY-ONE SCROLL REVEAL
===================================================== */

.reveal-left {
  opacity: 0;

  transform: translateX(-100px);

  filter: blur(3px);

  transition:
    opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.8s ease;

  will-change:
    opacity,
    transform,
    filter;
}

.reveal-left.visible {
  opacity: 1;

  transform: translateX(0);

  filter: blur(0);
}


/* =====================================================
   EXTRA SMOOTHNESS FOR REVEAL ELEMENTS
===================================================== */

.reveal-left:nth-child(1) {
  transition-delay: 0s;
}

.reveal-left:nth-child(2) {
  transition-delay: 0.35s;
}

.reveal-left:nth-child(3) {
  transition-delay: 0.7s;
}

.reveal-left:nth-child(4) {
  transition-delay: 1.05s;
}

.reveal-left:nth-child(5) {
  transition-delay: 1.4s;
}


/* =====================================================
   RESPONSIVE - BOOK SECTIONS
===================================================== */

@media (max-width: 1100px) {

  .book-overview-container {
    gap: 60px;
  }

}


@media (max-width: 991px) {

  .book-overview-container {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .book-cover-wrapper {
    margin-bottom: 20px;
  }

  .book-overview-content p {
    margin-left: auto;

    margin-right: auto;
  }

}


@media (max-width: 700px) {

  .book-hero {
    min-height: 90vh;

    padding: 130px 6% 80px;
  }

  .book-overview {
    padding: 90px 6%;
  }

}


@media (max-width: 500px) {

  .book-hero h1 {
    font-size: 3rem;
  }

  .book-hero-text {
    font-size: 0.92rem;
  }

  .book-cover-frame {
    width: 85%;
  }

  .cover-orbit {
    width: 350px;

    height: 350px;
  }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;

  }

}


/* =====================================================
   SYNOPSIS BUTTON
===================================================== */

.btn-synopsis {

  margin-top: 1.5rem;

  padding: 0.9rem 2.2rem;

  font: inherit;

  font-weight: 600;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: var(--accent, #d4af37);

  background: transparent;

  border: 1px solid var(--accent, #d4af37);

  border-radius: 999px;

  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;

}

.btn-synopsis:hover,
.btn-synopsis:focus-visible {

  background: var(--accent, #d4af37);

  color: var(--bg-dark, #0b0d1a);

  transform: translateY(-2px);

}


/* =====================================================
   SYNOPSIS MODAL
===================================================== */

.synopsis-modal {

  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 2vh 2vw;

  opacity: 0;

  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;

}

.synopsis-modal.is-open {

  opacity: 1;

  visibility: visible;

}


/* =====================================================
   MODAL OVERLAY
===================================================== */

.synopsis-modal__overlay {

  position: absolute;

  inset: 0;

  background: rgba(5, 6, 15, 0.85);

  backdrop-filter: blur(6px);

}


/* =====================================================
   MODAL DIALOG
===================================================== */

.synopsis-modal__dialog {

  position: relative;

  width: 94vw;

  max-width: 1000px;

  max-height: 92vh;

  overflow-y: auto;

  padding: 3rem 4.5rem;

  color: var(--text, #e8e8f0);

  background: var(--bg-card, #14162b);

  border: 1px solid rgba(212, 175, 55, 0.35);

  border-radius: 18px;

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5);

  transform: translateY(20px) scale(0.97);

  transition:
    transform 0.3s ease;

  outline: none;

}

.synopsis-modal.is-open .synopsis-modal__dialog {

  transform: translateY(0) scale(1);

}


/* =====================================================
   MODAL HEADER
===================================================== */

.synopsis-modal__dialog .section-eyebrow {

  display: block;

}

.synopsis-modal__dialog h3 {

  margin: 0.5rem 0 1.25rem;

  font-size: 2rem;

}


/* =====================================================
   MODAL BODY
===================================================== */

.synopsis-modal__body {

  font-size: 1.05rem;

}

.synopsis-modal__body p {

  margin: 0 0 1.1rem;

  line-height: 1.8;

  text-align: left;

}


/* =====================================================
   CLOSE BUTTON
===================================================== */

.synopsis-modal__close {

  position: absolute;

  top: 1rem;

  right: 1.4rem;

  width: 44px;

  height: 44px;

  font-size: 2.2rem;

  line-height: 1;

  color: var(--accent, #d4af37);

  background: none;

  border: none;

  cursor: pointer;

  opacity: 0.85;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;

}

.synopsis-modal__close:hover {

  opacity: 1;

  transform: rotate(90deg);

}

.synopsis-modal__close:focus-visible {

  color: #f0cf5a;

  opacity: 1;

  transform: rotate(90deg);

  outline: 2px solid var(--accent, #d4af37);

  outline-offset: 2px;

  border-radius: 50%;

}


/* =====================================================
   LOCK PAGE SCROLL
===================================================== */

body.modal-open {

  overflow: hidden;

}


/* =====================================================
   GOLD SCROLLBAR
===================================================== */

.synopsis-modal__dialog {

  scrollbar-width: thin;

  scrollbar-color:
    var(--accent, #d4af37)
    rgba(255, 255, 255, 0.06);

}

.synopsis-modal__dialog::-webkit-scrollbar {

  width: 10px;

}

.synopsis-modal__dialog::-webkit-scrollbar-track {

  background: rgba(255, 255, 255, 0.06);

  border-radius: 999px;

  margin: 18px 0;

}

.synopsis-modal__dialog::-webkit-scrollbar-thumb {

  background: var(--accent, #d4af37);

  border-radius: 999px;

  border: 2px solid transparent;

  background-clip: padding-box;

}

.synopsis-modal__dialog::-webkit-scrollbar-thumb:hover {

  background: #f0cf5a;

  background-clip: padding-box;

}


/* =====================================================
   SYNOPSIS TEXT
===================================================== */

.synopsis-modal__body p,
.synopsis-modal__body p:first-child {

  color: var(--white, #ffffff);

  font-family: "Cormorant Garamond", serif;

  font-size: 1.45rem;

  line-height: 1.55;

  text-align: justify;

  text-indent: 40px;

  margin: 0 0 1.1rem;

}


/* =====================================================
   AMAZON BUTTON
===================================================== */

.synopsis-modal__amazon-btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  margin-top: 20px;

  padding: 12px 28px;

  color: var(--white);

  background-color: #b8860b;

  font-family: "Cormorant Garamond", serif;

  font-size: 1.1rem;

  font-weight: 600;

  text-decoration: none;

  letter-spacing: 1px;

  border: 1px solid #d4af37;

  border-radius: 4px;

  transition: all 0.3s ease;

}

.synopsis-modal__amazon-btn i {

  font-size: 1.2rem;

}

.synopsis-modal__amazon-btn:hover {

  color: #fff;

  background-color: #d4af37;

  transform: translateY(-2px);

  box-shadow:
    0 6px 15px rgba(212, 175, 55, 0.3);

}


/* =====================================================
   SYNOPSIS TABLET
===================================================== */

@media (max-width: 900px) {

  .synopsis-modal__dialog {

    padding: 2.5rem 2rem;

  }

}


/* =====================================================
   SYNOPSIS PHONE
===================================================== */

@media (max-width: 600px) {

  .synopsis-modal {

    padding: 0;

  }

  .synopsis-modal__dialog {

    width: 100vw;

    height: 100vh;

    max-height: 100vh;

    border-radius: 0;

    padding: 2.5rem 1.25rem;

  }

  .synopsis-modal__body {

    font-size: 1rem;

  }

  .synopsis-modal__body p,
  .synopsis-modal__body p:first-child {

    font-size: 1.25rem;

    text-align: left;

    text-indent: 24px;

  }

}


/* =====================================================
   REVIEWS & TESTIMONIALS
===================================================== */

.reviews-section {

  position: relative;

  padding: 130px 7%;

  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(35, 59, 137, 0.18),
      transparent 40%
    ),
    var(--midnight);

}

.reviews-container {

  max-width: 1250px;

  margin: auto;

}


/* =====================================================
   REVIEWS GRID
===================================================== */

.reviews-grid {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 35px;

  margin-top: 60px;

}

.review-image {

  position: relative;

  display: block;

  width: 100%;

  padding: 0;

  border: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.025);

  cursor: pointer;

  overflow: hidden;

  transition:
    transform 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease;

}

.review-image img {

  display: block;

  width: 100%;

  height: auto;

  transition:
    transform 0.7s ease,
    opacity 0.5s ease;

}

.review-image:hover {

  transform: translateY(-8px);

  border-color: rgba(215, 180, 90, 0.55);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35);

}

.review-image:hover img {

  transform: scale(1.03);

  opacity: 0.9;

}


/* =====================================================
   REVIEW LIGHTBOX
===================================================== */

.review-lightbox {

  position: fixed;

  inset: 0;

  z-index: 10000;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 40px;

  background: rgba(3, 5, 15, 0.94);

  backdrop-filter: blur(10px);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;

}

.review-lightbox.is-open {

  opacity: 1;

  visibility: visible;

  pointer-events: auto;

}


/* =====================================================
   REVIEW LIGHTBOX IMAGE
===================================================== */

.review-lightbox__image {

  position: relative;

  z-index: 2;

  display: block;

  max-width: 92vw;

  max-height: 90vh;

  width: auto;

  height: auto;

  object-fit: contain;

  border: 1px solid rgba(215, 180, 90, 0.35);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6);

  transform: scale(0.92);

  transition:
    transform 0.35s ease;

}

.review-lightbox.is-open .review-lightbox__image {

  transform: scale(1);

}


/* =====================================================
   REVIEW LIGHTBOX OVERLAY
===================================================== */

.review-lightbox__overlay {

  position: absolute;

  inset: 0;

  cursor: pointer;

}


/* =====================================================
   REVIEW LIGHTBOX CLOSE BUTTON
===================================================== */

.review-lightbox__close {

  position: absolute;

  top: 20px;

  right: 30px;

  z-index: 3;

  width: 50px;

  height: 50px;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0;

  color: var(--gold);

  background: rgba(4, 8, 27, 0.75);

  border: 1px solid rgba(215, 180, 90, 0.35);

  border-radius: 50%;

  font-size: 2rem;

  line-height: 1;

  cursor: pointer;

  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;

}

.review-lightbox__close:hover {

  color: #fff;

  background: var(--gold);

  transform: rotate(90deg);

}


/* =====================================================
   REVIEWS MOBILE
===================================================== */

@media (max-width: 700px) {

  .reviews-section {

    padding: 90px 6%;

  }

  .reviews-grid {

    grid-template-columns: 1fr;

    gap: 25px;

    margin-top: 45px;

  }

  .review-lightbox {

    padding: 20px;

  }

  .review-lightbox__image {

    max-width: 95vw;

    max-height: 85vh;

  }

  .review-lightbox__close {

    top: 15px;

    right: 15px;

    width: 44px;

    height: 44px;

  }

}
.book-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Responsive */
@media (max-width: 768px) {
    .book-hero {
        background-size: cover;
        background-position: center center;
    }
}

@media (max-width: 480px) {
    .book-hero {
        background-size: cover;
        background-position: center center;
    }
}



































/* =========================================================
   REVIEWS IMAGE ANIMATION
========================================================= */

.review-image {
    opacity: 0;
    transition:
        opacity 1.8s ease,
        transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Left image starts from the left */
.review-left {
    transform: translateX(-120px);
}

/* Right image starts from the right */
.review-right {
    transform: translateX(120px);
}

/* Images become visible */
.review-image.review-show {
    opacity: 1;
    transform: translateX(0);
}

/* Right image appears slightly after the left */
.review-right.review-show {
    transition-delay: 0.3s;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .review-left {
        transform: translateX(-70px);
    }

    .review-right {
        transform: translateX(70px);
    }

    .review-image {
        transition-duration: 1.6s;
    }

}



































/* =========================================================
   REVIEWS TITLE - TOP REVEAL
========================================================= */

.reviews-title {
    opacity: 0;
    transform: translateY(-100px);
    transition:
        opacity 1.5s ease,
        transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When visible */
.reviews-title.title-show {
    opacity: 1;
    transform: translateY(0);
}












































/* =========================================================
   REVIEW IMAGE LIGHTBOX
========================================================= */

.review-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.90);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.review-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   FULL SIZE IMAGE
========================================================= */

.review-lightbox img {
    display: block;

    max-width: 95vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    transform: scale(0.85);

    transition: transform 0.4s ease;
}

.review-lightbox.active img {
    transform: scale(1);
}


/* =========================================================
   GOLD CLOSE BUTTON
========================================================= */

.review-lightbox-close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 50px;
    height: 50px;

    padding: 0;

    border: 2px solid #e5b93f;
    border-radius: 50%;

    background: rgba(8, 14, 39, 0.85);

    color: #e5b93f;

    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 100000;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.review-lightbox-close:hover {
    background: #e5b93f;
    color: #080e27;

    transform: rotate(90deg);
}


/* =========================================================
   PREVENT PAGE SCROLL
========================================================= */

body.review-lightbox-open {
    overflow: hidden;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .review-lightbox {
        padding: 15px;
    }

    .review-lightbox img {
        max-width: 96vw;
        max-height: 85vh;
    }

    .review-lightbox-close {
        top: 15px;
        right: 15px;

        width: 44px;
        height: 44px;

        font-size: 28px;
    }

}


































/* ==========================================
   CHARACTER PROFILES
   SABRE DE PLEIADES
========================================== */

.section.dark {
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(92, 65, 160, 0.16), transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(255, 215, 106, 0.08), transparent 28%),
        #091126;
    overflow: hidden;
}


/* ==========================================
   COSMIC STAR BACKGROUND
========================================== */

.section.dark::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.75) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 215, 106, 0.5) 1px, transparent 1.5px);

    background-size:
        95px 95px,
        150px 150px;

    background-position:
        10px 20px,
        60px 80px;

    opacity: 0.18;

    animation: characterStars 70s linear infinite;

    pointer-events: none;
}

@keyframes characterStars {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-180px);
    }

}


/* ==========================================
   KEEP CONTENT ABOVE BACKGROUND
========================================== */

.section.dark .container {
    position: relative;
    z-index: 2;
}


/* ==========================================
   SECTION TITLE
========================================== */

.section.dark h2 {
    position: relative;

    margin-bottom: 65px;

    color: #ffd76a;

    font-family: "Cinzel", serif;

    font-size: clamp(32px, 4vw, 48px);

    font-weight: 600;

    letter-spacing: 1px;

    text-align: center;

    text-shadow:
        0 0 15px rgba(255, 215, 106, 0.18),
        0 0 35px rgba(255, 215, 106, 0.08);
}


/* Small decorative line underneath title */

.section.dark h2::after {
    content: "";

    display: block;

    width: 70px;
    height: 2px;

    margin: 18px auto 0;

    background: linear-gradient(
        90deg,
        transparent,
        #ffd76a,
        transparent
    );

    box-shadow:
        0 0 12px rgba(255, 215, 106, 0.5);
}


/* ==========================================
   CHARACTER CARD
========================================== */

.character-card {
    position: relative;

    height: 100%;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid rgba(255, 215, 106, 0.14);

    border-radius: 22px;

    overflow: hidden;

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease;

}


/* ==========================================
   CARD TOP GLOW
========================================== */

.character-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 10%;

    width: 80%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 106, 0.8),
        transparent
    );

    opacity: 0.5;

    transition: opacity 0.4s ease;
}


/* ==========================================
   CARD HOVER
========================================== */

.character-card:hover {
    transform: translateY(-12px);

    border-color: rgba(255, 215, 106, 0.5);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(212, 175, 55, 0.12);
}

.character-card:hover::before {
    opacity: 1;
}


/* ==========================================
   IMAGE AREA
========================================== */

.character-card img {
    display: block;

    width: 100%;
    height: 420px;

    object-fit: contain;
    object-position: center;

    margin: 0;

    padding: 20px;

    background:
        radial-gradient(
            circle at center,
            rgba(79, 64, 130, 0.18),
            transparent 65%
        );

    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}


/* Image hover */

.character-card:hover img {
    transform: scale(1.045);

    filter:
        drop-shadow(0 15px 25px rgba(0, 0, 0, 0.45))
        drop-shadow(0 0 18px rgba(255, 215, 106, 0.08));
}


/* ==========================================
   CHARACTER NAME
========================================== */

.character-card h3 {
    margin: 0;

    padding: 22px 25px 10px;

    color: #ffd76a;

    font-family: "Cinzel", serif;

    font-size: clamp(20px, 2vw, 25px);

    font-weight: 600;

    line-height: 1.3;

    text-align: center;

    text-shadow:
        0 0 12px rgba(255, 215, 106, 0.15);
}


/* ==========================================
   CHARACTER DESCRIPTION
========================================== */

.character-card p {
    margin: 0;

    padding: 4px 25px;

    color: rgba(255, 255, 255, 0.72);

    font-family: "Cormorant Garamond", serif;

    font-size: 1.25rem;

    font-style: italic;

    font-weight: 400;

    line-height: 1.4;

    letter-spacing: 0.3px;

    text-align: center;

}


/* Last paragraph spacing */

.character-card p:last-child {
    padding-bottom: 28px;
}


/* ==========================================
   CARD BOTTOM GLOW
========================================== */

.character-card::after {
    content: "";

    position: absolute;

    bottom: -80px;
    left: 50%;

    width: 180px;
    height: 120px;

    transform: translateX(-50%);

    background: rgba(255, 215, 106, 0.08);

    filter: blur(45px);

    opacity: 0;

    transition: opacity 0.5s ease;

    pointer-events: none;
}

.character-card:hover::after {
    opacity: 1;
}


/* ==========================================
   BOOTSTRAP COLUMN SPACING
========================================== */

.section.dark .row {
    row-gap: 30px;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 991px) {

    .section.dark {
        padding: 80px 5%;
    }

    .section.dark h2 {
        margin-bottom: 50px;
    }

    .character-card img {
        height: 380px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

    .section.dark {
        padding: 70px 20px;
    }

    .section.dark h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .character-card {
        border-radius: 18px;
    }

    .character-card img {
        height: 350px;
        padding: 15px;
    }

    .character-card h3 {
        font-size: 22px;
        padding-top: 20px;
    }

    .character-card p {
        font-size: 1.15rem;
        padding-left: 20px;
        padding-right: 20px;
    }

}


/* ==========================================
   SMALL PHONES
========================================== */

@media (max-width: 480px) {

    .section.dark {
        padding: 60px 15px;
    }

    .section.dark h2 {
        font-size: 28px;
    }

    .character-card img {
        height: 300px;
    }

    .character-card h3 {
        font-size: 20px;
    }

    .character-card p {
        font-size: 1.08rem;
    }

}




/* Character Profiles Section Spacing */
.section.dark {
    padding-top: 100px;
    padding-bottom: 100px;
}
































/* =====================================================
   MOREIPA FEATURE SECTION
===================================================== */

.moreipa-section {
    position: relative;
    padding: 120px 6%;
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(111, 78, 160, 0.14),
            transparent 40%
        ),
        #08080d;
    color: #fff;
    overflow: hidden;
}

.moreipa-container {
    max-width: 1250px;
    margin: 0 auto;
}

.moreipa-section .section-heading {
    text-align: center;
    margin-bottom: 70px;
}

.moreipa-section .section-eyebrow {
    display: block;
    margin-bottom: 15px;
    color: #c9a96e;
    font-family: "Cinzel", serif;
    font-size: 13px;
    letter-spacing: 4px;
}

.moreipa-section h2 {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 500;
}

.moreipa-section h2 span {
    color: #c9a96e;
}

.heading-line {
    width: 70px;
    height: 1px;
    margin: 25px auto 0;
    background: #c9a96e;
}

/* CONTENT */

.moreipa-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 70px;
}

/* IMAGE */

.moreipa-image {
    position: relative;
}

.moreipa-image::before {
    content: "";
    position: absolute;
    inset: -15px;
    border: 1px solid rgba(201, 169, 110, 0.35);
    z-index: 0;
}

.moreipa-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 560px;
    object-fit: cover;
    filter: brightness(0.85);
}

/* DESCRIPTION */

.moreipa-description {
    padding: 20px 0;
}

.description-eyebrow {
    display: block;
    margin-bottom: 20px;
    color: #c9a96e;
    font-family: "Cinzel", serif;
    font-size: 12px;
    letter-spacing: 3px;
}

.moreipa-description h3 {
    margin-bottom: 30px;
    font-family: "Cinzel", serif;
    font-size: clamp(28px, 4vw, 45px);
    line-height: 1.25;
    font-weight: 500;
}

.moreipa-description h3 span {
    display: block;
    color: #c9a96e;
}

.moreipa-description p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Cormorant Garamond", serif;
    font-size: 19px;
    line-height: 1.7;
}

.moreipa-divider {
    width: 60px;
    height: 1px;
    margin: 30px 0 20px;
    background: #c9a96e;
}

.moreipa-quote {
    color: #c9a96e !important;
    font-family: "Cinzel", serif !important;
    font-size: 16px !important;
    letter-spacing: 1px;
    font-style: italic;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .moreipa-section {
        padding: 90px 6%;
    }

    .moreipa-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .moreipa-image img {
        height: 450px;
    }

}

@media (max-width: 576px) {

    .moreipa-section {
        padding: 70px 5%;
    }

    .moreipa-section .section-heading {
        margin-bottom: 50px;
    }

    .moreipa-image::before {
        inset: -8px;
    }

    .moreipa-image img {
        height: 350px;
    }

    .moreipa-description p {
        font-size: 18px;
    }

}
/* =========================================================
   MOREIPA COSMIC PARTICLES
========================================================= */

.moreipa-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}


/* PARTICLE CANVAS */

#moreipaParticles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.75;
}


/* KEEP CONTENT ABOVE PARTICLES */

.moreipa-container {
    position: relative;
    z-index: 2;
}


/* VERY SUBTLE COSMIC GLOW */

.moreipa-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;

    top: 10%;
    left: -250px;

    background: radial-gradient(
        circle,
        rgba(215, 180, 90, 0.08) 0%,
        rgba(100, 130, 255, 0.035) 35%,
        transparent 70%
    );

    pointer-events: none;
    z-index: -2;

    animation: moreipaGlow 12s ease-in-out infinite alternate;
}


.moreipa-section::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;

    right: -220px;
    bottom: -100px;

    background: radial-gradient(
        circle,
        rgba(90, 130, 255, 0.07) 0%,
        rgba(215, 180, 90, 0.025) 40%,
        transparent 72%
    );

    pointer-events: none;
    z-index: -2;

    animation: moreipaGlow 15s ease-in-out infinite alternate-reverse;
}


@keyframes moreipaGlow {

    0% {
        transform: scale(0.9);
        opacity: 0.45;
    }

    100% {
        transform: scale(1.12);
        opacity: 0.9;
    }

}

#moreipaParticles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 1;
}