:root {
  --bg: #140017;
  --bg-2: #220027;
  --surface: rgba(255, 255, 255, 0.1);
  --text: #fff7fd;
  --muted: #ffdff2;
  --pink: #ff1fae;
  --pink-neon: #ff39c6;
  --pink-soft: #ffd1ef;
  --pink-dark: #c3007d;
  --border: rgba(255, 255, 255, 0.24);
  --scroll-progress: 0%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 31, 174, 0.27), transparent 35%),
    radial-gradient(circle at 85% 25%, rgba(255, 57, 198, 0.25), transparent 30%),
    linear-gradient(160deg, var(--bg-2), var(--bg));
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: var(--scroll-progress);
  background: linear-gradient(90deg, var(--pink), #ffffff 50%, var(--pink-neon));
  box-shadow: 0 0 20px rgba(255, 31, 174, 0.9);
  z-index: 999;
}

.container { width: min(1120px, 92vw); margin: auto; }
.bg-glow {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 31, 174, 0.22) 0%, rgba(0, 0, 0, 0) 60%);
  animation: pulse 7s ease-in-out infinite;
  z-index: -1;
  will-change: transform;
}
@keyframes pulse {
  50% { transform: scale(1.14); opacity: 0.75; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(25, 0, 25, 0.62);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(255, 31, 174, 0.2);
  background: rgba(25, 0, 25, 0.8);
}
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.55px;
  text-shadow: 0 0 18px rgba(255, 31, 174, 0.35);
}
.nav-links { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  position: relative;
  transition: color 0.25s, text-shadow 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  background: linear-gradient(90deg, var(--pink-neon), #fff);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a:hover,
.nav-links a.active { color: var(--pink-neon); text-shadow: 0 0 18px rgba(255, 31, 174, 0.6); }
.menu-toggle { display: none; background: none; color: var(--text); border: 1px solid var(--border); border-radius: 8px; }

section { padding: 5.5rem 0 2.5rem; }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; min-height: 80vh; }
.chip {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 31, 174, 0.2);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  box-shadow: inset 0 0 24px rgba(255, 31, 174, 0.2);
}
h1, h2, h3 { font-family: "Playfair Display", serif; margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 5vw, 4rem); }
.hero p { color: var(--muted); line-height: 1.65; }
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 1.4rem; }
.btn {
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(90deg, var(--pink-dark), var(--pink-neon));
  color: white;
  box-shadow: 0 12px 26px rgba(255, 31, 174, 0.45);
}
.btn-outline { background: transparent; color: var(--pink-soft); border: 1px solid var(--pink-soft); }

.hero-image-wrap { justify-self: end; width: min(420px, 100%); perspective: 1000px; }
.hero-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4), 0 0 42px rgba(255, 31, 174, 0.2);
  animation: float 5s ease-in-out infinite;
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
}
@keyframes float { 50% { transform: translateY(-10px); } }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.about p { color: var(--muted); }
.about-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
}
.timeline { margin-top: 1rem; display: grid; gap: 0.6rem; }
.timeline div {
  background: var(--surface);
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.timeline div:hover { transform: translateX(6px); box-shadow: 0 0 16px rgba(255, 31, 174, 0.2); }
.timeline span { color: var(--pink-neon); font-weight: 700; margin-right: 0.5rem; }

.section-heading p { color: var(--muted); }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}
.book-card::before {
  content: "";
  position: absolute;
  inset: -150% -20%;
  background: linear-gradient(120deg, transparent 45%, rgba(255,255,255,0.25) 50%, transparent 55%);
  transform: translateX(-100%);
  transition: transform .7s ease;
}
.book-card:hover::before { transform: translateX(100%); }
.book-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.book-card h3 { font-size: 1.1rem; margin: 0.75rem 0 0.4rem; }
.view-more {
  opacity: 0;
  transform: translateY(12px);
  transition: 0.3s;
  width: 100%;
  border: none;
  border-radius: 9px;
  padding: 0.6rem 0.7rem;
  font-weight: 700;
  background: white;
  color: var(--pink-dark);
  cursor: pointer;
}
.book-card:hover {
  background: linear-gradient(160deg, rgba(255, 201, 236, 0.96), rgba(255, 31, 174, 0.9));
  color: #280018;
  transform: translateY(-7px);
  box-shadow: 0 18px 32px rgba(255, 31, 174, 0.33);
}
.book-card:hover .view-more { opacity: 1; transform: translateY(0); }

.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-bottom: 1rem; }
.media-card {
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.media-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(255,31,174,.25); }
.media-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; margin-bottom: 0.4rem; }
.media-card:hover img { filter: brightness(1.07) saturate(1.2); }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
blockquote {
  margin: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform .3s ease;
}
blockquote:hover { transform: translateY(-5px); }
cite { display: block; margin-top: 0.8rem; color: var(--pink-soft); font-style: normal; }

.contact-form { display: grid; gap: 0.85rem; max-width: 740px; }
label { display: grid; gap: 0.35rem; color: var(--muted); }
input, select, textarea {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(255, 31, 174, 0.45);
  border-color: var(--pink-neon);
}
.social-row { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.social-row a { color: var(--pink-soft); text-decoration: none; }

footer { margin-top: 3rem; background: #08030a; border-top: 1px solid var(--border); }
.footer-inner { padding: 1.5rem 0; display: grid; gap: 0.8rem; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.newsletter { display: flex; gap: 0.5rem; max-width: 420px; }
.newsletter button {
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
}
.designed { color: var(--pink-soft); opacity: 0.95; }

.book-modal {
  width: min(900px, 92vw);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #1a001c;
  color: var(--text);
  padding: 1.2rem;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: 0.3s;
}
.book-modal[open] { opacity: 1; transform: translateY(0) scale(1); }
.book-modal::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); }
.modal-content { display: grid; grid-template-columns: 0.75fr 1fr; gap: 1rem; }
.modal-content img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.meta { color: var(--pink-soft); margin-top: -0.4rem; }
.stars { color: #ffd369; font-size: 1.25rem; margin-bottom: 0.45rem; }
.quote { font-style: italic; color: var(--muted); }
.platforms { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.75rem 0; }
.status {display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.75rem 0; }
.platforms a {
  color: #210013;
  background: var(--pink-soft);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 7px;
  font-weight: 700;
}
.status a {
  color: #e40f8b;
  background: var(--pink-soft);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 7px;
  font-weight: 600;
}
.close-modal {
  margin-left: auto;
  display: block;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 7px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 920px) {
  .hero, .about, .modal-content { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .menu-toggle { display: inline-block; }
  .nav-links {
    position: absolute;
    right: 4vw;
    top: 64px;
    display: none;
    flex-direction: column;
    background: #210021;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem;
  }
  .nav-links.open { display: flex; }
  .book-grid { grid-template-columns: 1fr; }
}