/* ============================
   GLOBAL PAGE STYLING
   ============================ */
body {
  background: #0b0b0f;
  color: #e6e6e6;
  font-family: "Georgia", serif;
  margin: 0;
  padding: 0;
}

header {
  text-align: center;
  padding: 60px 20px;

  /* UPDATED FOR SMOOTH BLEND */
  background: linear-gradient(
        180deg,
        rgba(11,11,15,0.9),
        rgba(11,11,15,0.7),
        rgba(11,11,15,0.4),
        rgba(11,11,15,0.15),
        transparent
  );
}

h1 {
  color: #d4af37;
  font-size: 3rem;
  letter-spacing: 2px;
}

.tagline {
  color: #c9c9c9;
  font-size: 1.2rem;
  margin-top: 10px;
}

section {
  max-width: 700px;
  margin: 60px auto;
  padding: 20px;
}

h2 {
  color: #d4af37;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background: #d4af37;
  color: #0b0b0f;
  text-decoration: none;
  margin-top: 20px;
  border-radius: 4px;
  font-weight: bold;
  transition: 0.3s;
}

.button:hover {
  background: #ffef9a;
  box-shadow: 0 0 10px gold;
}

footer {
  text-align: center;
  padding: 40px;
  color: #777;
}

/* ============================
   ABOUT PAGE STYLING
   ============================ */
.about-section {
  background: #111118;
  border: 1px solid #2a2a33;
  padding: 40px;
  max-width: 750px;
  margin: 60px auto;
  border-radius: 6px;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.12);
  line-height: 1.8;
  font-size: 1.1rem;
}

.signature {
  margin-top: 40px;
  text-align: right;
  color: #d4af37;
  font-style: italic;
  font-size: 1.2rem;
}

/* ============================
   BOOK LAUNCH PAGE STYLING
   ============================ */
.book-launch, .series-info {
  background: #111118;
  border: 1px solid #2a2a33;
  padding: 40px;
  max-width: 750px;
  margin: 60px auto;
  border-radius: 6px;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.12);
  line-height: 1.8;
  font-size: 1.1rem;
}

.release-date {
  color: #d4af37;
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: bold;
}

/* ============================
   NAVIGATION BAR (CELESTIAL + DROPDOWN)
   ============================ */
.navbar {
  width: 100%;
  padding: 12px 0 16px;
  text-align: center;
  margin-bottom: 30px;
  position: relative;

  background: linear-gradient(
    180deg,
    rgba(11,11,15,0.95),
    rgba(20,20,30,0.85),
    rgba(11,11,15,0.95)
  );
  background-size: 100% 300%;
  animation: navbar-flow 12s ease-in-out infinite alternate;

  backdrop-filter: blur(6px);
  border-bottom: 1px solid gold;
  z-index: 10;
}

@keyframes navbar-flow {
  from { background-position: 0% 0%; }
  to   { background-position: 0% 100%; }
}

/* LOGO */
.nav-logo {
  height: 45px;
  margin-right: 20px;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
}

/* NAV LINKS + DROPDOWN BUTTON */
.navbar a,
.dropdown-btn {
  color: #d4af37;
  text-decoration: none;
  margin: 0 18px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: 0.3s ease;
  position: relative;
  font-weight: bold;
  cursor: pointer;
}

.navbar a:hover,
.dropdown-btn:hover {
  color: #ffef9a;
  text-shadow: 0 0 12px gold;
}

.navbar .active {
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* ============================
   DROPDOWN MENU
   ============================ */
.dropdown {
  display: inline-block;
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid gold;
  border-radius: 6px;
  min-width: 200px;
  text-align: left;
  padding: 10px 0;
  z-index: 2000;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: gold;
  text-decoration: none;
  transition: 0.3s ease;
}

.dropdown-content a:hover {
  background: rgba(255, 215, 0, 0.15);
  color: #ffef9a;
  text-shadow: 0 0 12px gold, 0 0 18px rgba(255, 215, 0, 0.8);
  transform: translateX(4px);
}

/* ============================
   CELESTIAL UNDERLINE ANIMATION
   ============================ */
.celestial-link {
  position: relative;
}

.celestial-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, gold, transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: 0.4s ease;
}

.celestial-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ============================
   FLOATING GOLD SPARKLES
   ============================ */
.celestial-link:hover::before {
  content: "✨";
  position: absolute;
  top: -18px;
  right: -10px;
  font-size: 14px;
  animation: sparkle-float 1.2s ease forwards;
}

@keyframes sparkle-float {
  0% { opacity: 0; transform: translateY(10px) scale(0.5); }
  50% { opacity: 1; transform: translateY(-4px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-14px) scale(0.8); }
}
/* ============================
   ANIMATED CELESTIAL BACKGROUND
   ============================ */

/* SUPER DENSE STARFIELD — UPDATED TO REMOVE BOUNCE */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 300%;
    height: 300%;
    pointer-events: none;
    z-index: -10;

    background-image:
        radial-gradient(circle, rgba(255,255,255,0.9) 2px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.7) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.3) 0.8px, transparent 0.8px);

    background-size:
        120px 120px,
        90px 90px,
        60px 60px,
        40px 40px;

    opacity: 0.55;

    /* UPDATED: slower + vertical-only drift */
    animation: dense-stars 400s linear infinite, twinkle 3s ease-in-out infinite;
}

@keyframes dense-stars {
    from { transform: translateY(0); }
    to   { transform: translateY(-200px); }
}

/* TWINKLE EFFECT */
@keyframes twinkle {
    0%   { opacity: 0.4; }
    50%  { opacity: 1; }
    100% { opacity: 0.4; }
}

/* SHOOTING STAR TRAIL */
.shooting-star {
    position: fixed;
    top: 20%;
    left: -200px;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: shooting 18s linear infinite;
    filter: blur(1px);
}

@keyframes shooting {
    from {
        transform: translateX(0) translateY(0);
        opacity: 0.4;
    }
    to {
        transform: translateX(1600px) translateY(200px);
        opacity: 0;
    }
}

/* FLOATING GOLD DUST */
.gold-dust {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -7;
  background-image:
    radial-gradient(circle, rgba(212,175,55,0.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(212,175,55,0.3) 1px, transparent 1px),
    radial-gradient(circle, rgba(212,175,55,0.2) 1px, transparent 1px);
  background-size: 120px 120px, 180px 180px, 240px 240px;
  animation: gold-dust-float 40s linear infinite;
  opacity: 0.4;
}

@keyframes gold-dust-float {
  from { transform: translate(0, 0); }
  to { transform: translate(200px, -200px); }
}

/* PARALLAX GALAXIES */
.galaxy-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 30%, rgba(100,60,255,0.25), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(255,60,180,0.25), transparent 60%);
  animation: galaxy-parallax 120s linear infinite;
  pointer-events: none;
  z-index: -6;
}

@keyframes galaxy-parallax {
  from { transform: translate(0, 0); }
  to { transform: translate(-300px, -300px); }
}

/* ORGANIC CONSTELLATIONS */
.constellation-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -5;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.35) 2px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,0.25) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 140px 140px, 200px 200px, 260px 260px;
  opacity: 0.25;
  animation: constellation-drift 65s linear infinite,
             constellation-twinkle 4s ease-in-out infinite alternate;
}

@keyframes constellation-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-250px, -250px); }
}

@keyframes constellation-twinkle {
  from { opacity: 0.12; }
  to { opacity: 0.22; }
}

/* AURORA WAVES */
.aurora-layer {
    opacity: 0.06 !important;
    filter: blur(14px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -4;
    background: linear-gradient(180deg,
      rgba(0,255,200,0.08),
      rgba(0,150,255,0.06),
      transparent 70%);
    animation: aurora-flow 18s ease-in-out infinite alternate;
}

@keyframes aurora-flow {
  from { transform: translateY(0); opacity: 0.25; }
  to { transform: translateY(-30px); opacity: 0.35; }
}

/* MOON PHASE STRIP */
.moon-phase-strip {
  position: fixed;
  top: 10px;
  left: -200px;
  width: 200%;
  height: 60px;
  pointer-events: none;
  z-index: -3;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 12px, transparent 12px),
    radial-gradient(circle, rgba(255,255,255,0.6) 10px, transparent 10px),
    radial-gradient(circle, rgba(255,255,255,0.3) 8px, transparent 8px);
  background-size: 120px 60px;
  background-repeat: repeat-x;
  animation: moon-drift 50s linear infinite;
  opacity: 0.5;
}

@keyframes moon-drift {
  from { transform: translateX(0); }
  to { transform: translateX(400px); }
}

/* GOLD SHIMMER */
.shimmer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;

  background: radial-gradient(circle, rgba(212,175,55,0.12) 2px, transparent 2px),
              radial-gradient(circle, rgba(212,175,55,0.08) 1.5px, transparent 1.5px),
              radial-gradient(circle, rgba(212,175,55,0.05) 1px, transparent 1px);

  background-size: 160px 160px, 120px 120px, 90px 90px;

  opacity: 0.10;
  filter: blur(2px);
  transform: translateY(0);
  transition: transform 0.2s ease-out;
}

/* SCROLL SHIMMER — UPDATED TO STOP BOUNCE */
body.scrolling .shimmer-overlay {
  transform: translateY(0);
}
/* ============================
   CELESTIAL BORDERS
   ============================ */

.celestial-border {
  border: 2px solid rgba(212,175,55,0.4);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(212,175,55,0.15);
}

.celestial-border::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.25) 12px
  );
  opacity: 0.25;
  animation: border-stars 12s linear infinite;
  pointer-events: none;
}

@keyframes border-stars {
  from { transform: translateX(0); }
  to { transform: translateX(-200px); }
}

/* ============================
   POEM BUTTONS
   ============================ */

.poem-button {
    display: block;
    width: 80%;
    max-width: 500px;
    margin: 12px auto;
    padding: 14px 20px;
    background: linear-gradient(135deg, #d4a72c, #f7e7a1);
    color: #000;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.poem-button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.9);
}

/* ============================
   TITLE ANIMATIONS
   ============================ */

h1 {
    max-width: 500px;
    margin: 40px auto 20px auto;
    text-align: center;
    color: #f7e7a1;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    position: relative;
    animation: fadeInTitle 1.4s ease forwards, pulseGlow 3s infinite ease-in-out;
}

h1::after {
    content: "";
    display: block;
    width: 60%;
    height: 3px;
    margin: 10px auto 0 auto;
    background: linear-gradient(90deg, #f7e7a1, #d4a72c, #f7e7a1);
    border-radius: 2px;
    animation: shimmerLine 2.5s infinite linear;
}

@keyframes fadeInTitle {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes shimmerLine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes pulseGlow {
    0% { text-shadow: 0 0 12px rgba(255, 215, 0, 0.6); }
    50% { text-shadow: 0 0 22px rgba(255, 215, 0, 1); }
    100% { text-shadow: 0 0 12px rgba(255, 215, 0, 0.6); }
}

/* ============================
   MODALS
   ============================ */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: rgba(10, 10, 20, 0.95);
    margin: 8% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    color: #f7e7a1;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: gold;
}

.close:hover {
    color: #ffef9a;
    text-shadow: 0 0 10px gold;
}

.poem-text {
    white-space: pre-wrap;
    line-height: 1.6;
    margin-top: 15px;
}

/* ============================
   HOME SECTION
   ============================ */

.home-section {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.home-section h1,
.home-section h2,
.home-section p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.learn-more-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: gold;
    color: black;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.learn-more-btn:hover {
    background: #ffef9a;
    box-shadow: 0 0 12px gold;
}

/* ============================
   ABOUT PAGE
   ============================ */

.about-centered {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
    line-height: 1.8;
    font-size: 1.15rem;
}

.about-centered p {
    margin-bottom: 22px;
}

.signature {
    margin-top: 30px;
    font-style: italic;
    color: #d4af37;
    font-size: 1.2rem;
}

/* ============================
   ABOUT PHOTOS
   ============================ */

.about-photos {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
    flex-wrap: wrap;
}

.about-photo {
    width: 160px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.4);
    transition: 0.3s ease;
}

.about-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.55);
}

.signature {
    text-align: center !important;
    width: 100%;
    display: block;
    margin: 30px auto 0 auto;
    font-style: italic;
    color: #d4af37;
    font-size: 1.2rem;
}

/* ============================
   HOME SECTION (MATCHING OTHER PAGES)
   ============================ */

.home-section {
    background: #111118;
    border: 1px solid #2a2a33;
    padding: 40px;
    max-width: 750px;
    margin: 60px auto;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.12);
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
}

.home-section::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 140px;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.25) 2px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.15) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 180px 180px, 140px 140px, 100px 100px;
    animation: home-stars 40s linear infinite;
    pointer-events: none;
    opacity: 0.25;
}

@keyframes home-stars {
    from { transform: translateY(0); }
    to { transform: translateY(-60px); }
}

header::after {
    content: "";
    display: block;
    width: 80%;
    height: 2px;
    margin: 20px auto 0 auto;
    background: linear-gradient(90deg, transparent, gold, transparent);
    opacity: 0.4;
}

.home-section h1 {
    position: relative;
}

.home-section h1::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 200px;
    height: 40px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(212,175,55,0.15), transparent 70%);
    pointer-events: none;
    opacity: 0.4;
}

/* ============================
   HOME CARDS
   ============================ */

.home-card {
    background: #111118;
    border: 1px solid #2a2a33;
    padding: 40px;
    max-width: 750px;
    margin: 40px auto;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.12);
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: center;
}

.home-card h2,
.home-card p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
