/* ============================================================
   FARHANA TAJO — Author Website Styles
   ============================================================ */

/* ── Hindi / Devanagari Font ── */
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #c9a96e;
  --gold-light: #e8c98a;
  --gold-dark: #9c7840;
  --bg-dark: #0b0e14;
  --bg-mid: #111827;
  --bg-card: #1a2235;
  --text-primary: #f0e8d8;
  --text-secondary: #9ea8b8;
  --text-gold: #c9a96e;
  --font-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(11, 14, 20, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(201, 169, 110, 0);
  transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease, padding 0.4s ease;
}

.navbar.scrolled {
  background: rgba(11, 14, 20, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  padding: 0.9rem 4rem;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.nav-logo.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 232, 216, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--gold);
  padding: 0.55rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 16px rgba(201, 169, 110, 0.3);
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(201, 169, 110, 0.5);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1.16);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(11, 14, 20, 0.35) 0%,
      rgba(11, 14, 20, 0.2) 40%,
      rgba(11, 14, 20, 0.5) 80%,
      rgba(11, 14, 20, 0.95) 100%);
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(201, 169, 110, 0.6);
  border-radius: 50%;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-100vh) translateX(var(--drift)) scale(1.5);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dark);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1s var(--ease-out-expo) 0.3s forwards;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
  font-family: var(--font-serif);
  font-weight: 300;
  color: #fff;
  text-shadow:
    0 0 80px rgba(201, 169, 110, 0.3),
    0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}

.line-1 {
  font-size: clamp(5rem, 12vw, 11rem);
  animation: fadeSlideUp 1.2s var(--ease-out-expo) 0.5s forwards;
  letter-spacing: 0.06em;
}

.line-2 {
  font-size: clamp(5.5rem, 14vw, 13rem);
  animation: fadeSlideUp 1.2s var(--ease-out-expo) 0.75s forwards;
  letter-spacing: 0.15em;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-style: italic;
  color: rgba(240, 232, 216, 0.7);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1s var(--ease-out-expo) 1.1s forwards;
}

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out-expo) 1.6s forwards;
}

.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.6);
}

.scroll-arrow {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(201, 169, 110, 0.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  position: relative;
  background: var(--bg-dark);
  padding: 0 0 8rem;
  overflow: hidden;
}

.wave-transition {
  position: relative;
  height: 200px;
  margin-top: -120px;
  pointer-events: none;
}

.wave-transition svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wave {
  animation: waveAnim 8s ease-in-out infinite alternate;
}

.wave-2 {
  animation-delay: -2s;
  animation-duration: 11s;
}

.wave-3 {
  animation-delay: -5s;
  animation-duration: 14s;
}

@keyframes waveAnim {
  0% {
    d: path("M0,130 C240,60 480,190 720,130 C960,70 1200,190 1440,130 L1440,200 L0,200 Z");
  }

  100% {
    d: path("M0,110 C200,180 480,50 720,120 C960,180 1220,50 1440,110 L1440,200 L0,200 Z");
  }
}

.botanical-left,
.botanical-right {
  position: absolute;
  top: 100px;
  pointer-events: none;
  z-index: 0;
}

.botanical-left {
  left: -40px;
}

.botanical-right {
  right: -40px;
}

.about-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

/* Photo */
.about-photo-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.about-photo-frame {
  position: relative;
  width: 320px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, 0.2),
    0 0 60px rgba(201, 169, 110, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.6);
}

.author-portrait-placeholder {
  display: block;
  width: 100%;
}

.author-portrait-placeholder svg {
  display: block;
  width: 100%;
  height: auto;
}

.photo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 50%,
      rgba(201, 169, 110, 0.06) 100%);
  pointer-events: none;
}

.about-photo-ornament {
  position: absolute;
  bottom: -20px;
  right: 24px;
  animation: spinSlow 12s linear infinite;
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

/* About text */
.about-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.about-name {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.quote-block {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-left: 2px solid rgba(201, 169, 110, 0.4);
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.05) 0%, transparent 100%);
  border-radius: 0 4px 4px 0;
  margin-bottom: 2rem;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 0;
  color: var(--gold);
  opacity: 0.5;
  position: absolute;
  top: 1rem;
  left: 0.5rem;
}

.quote-mark-close {
  top: auto;
  bottom: 0.2rem;
  left: auto;
  right: 0.5rem;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(240, 232, 216, 0.9);
  list-style: none;
  padding: 0 1rem;
}

.quote-text em {
  color: var(--gold-light);
  font-style: italic;
}

.about-bio {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(201, 169, 110, 0.25);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ============================================================
   BOOK SECTION
   ============================================================ */
.book-section {
  position: relative;
  background: var(--bg-mid);
  padding: 8rem 0 10rem;
  overflow: hidden;
}

.book-section-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(201, 169, 110, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 50%, rgba(124, 61, 107, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.book-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

/* 3D Book */
.book-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.book-glow-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.15), transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.9);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.book-3d-wrap {
  perspective: 1200px;
  padding: 2rem;
}

.book-3d {
  width: 220px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-25deg) rotateX(4deg);
  transition: transform 0.8s var(--ease-out-expo);
  animation: bookFloat 6s ease-in-out infinite;
}

.book-3d:hover {
  transform: rotateY(-5deg) rotateX(2deg) scale(1.04);
}

@keyframes bookFloat {

  0%,
  100% {
    transform: rotateY(-25deg) rotateX(4deg) translateY(0);
  }

  50% {
    transform: rotateY(-25deg) rotateX(4deg) translateY(-12px);
  }
}

.book-face {
  position: absolute;
  backface-visibility: hidden;
}

.book-front {
  width: 220px;
  height: 300px;
  left: 0;
  top: 0;
  transform: translateZ(18px);
  border-radius: 2px 4px 4px 2px;
  overflow: hidden;
  box-shadow:
    6px 6px 30px rgba(0, 0, 0, 0.7),
    inset -3px 0 12px rgba(0, 0, 0, 0.3);
}

.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-front-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 50%);
}

.book-cover-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.book-cover-author {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.3rem;
}

.book-spine {
  width: 36px;
  height: 300px;
  left: -36px;
  top: 0;
  background: linear-gradient(135deg, #2d1f0e, #1a1008);
  transform: rotateY(-90deg) translateZ(0px);
  transform-origin: right;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
  border-radius: 2px 0 0 2px;
}

.book-spine span {
  font-family: var(--font-serif);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 280px;
}

.book-back {
  width: 220px;
  height: 300px;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, #1a2235, #0b0e14);
  transform: translateZ(-18px) rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 4px 2px 2px 4px;
}

.book-back-content {
  text-align: center;
}

.book-back-content p {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(240, 232, 216, 0.8);
  line-height: 1.7;
}

.back-credit {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-top: 0.8rem;
  display: block;
}

.book-shadow {
  width: 200px;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  margin-top: 0.5rem;
  animation: shadowPulse 6s ease-in-out infinite;
}

@keyframes shadowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(0.85);
  }

  50% {
    opacity: 0.8;
    transform: scaleX(1);
  }
}

.book-title-badge {
  position: absolute;
  top: 10px;
  right: 30px;
  background: var(--gold);
  color: var(--bg-dark);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.4);
  animation: badgePop 0.6s var(--ease-out-expo) 1.5s both;
}

@keyframes badgePop {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-15deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(-3deg);
  }
}

/* Book Preview */
.book-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.preview-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.book-section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.book-section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Book page preview card */
.book-page-preview {
  background: #f5ede0;
  border-radius: 4px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(201, 169, 110, 0.15);
  overflow: hidden;
  transform: perspective(800px) rotateX(2deg);
  opacity: 0;
  transform: perspective(800px) rotateX(2deg) translateY(20px);
  transition:
    opacity 0.8s var(--ease-out-expo) 0.4s,
    transform 0.8s var(--ease-out-expo) 0.4s;
}

.book-page-preview.page-open {
  opacity: 1;
  transform: perspective(800px) rotateX(2deg) translateY(0);
}

.page-preview-inner {
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  min-height: 240px;
}

.page-left,
.page-right {
  padding: 2rem 1.8rem;
  position: relative;
}

.page-left {
  background: #f5ede0;
}

.page-right {
  background: #f2e8d5;
}

.page-spine-fold {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.03));
  box-shadow: inset -2px 0 4px rgba(0, 0, 0, 0.04);
}

.page-number {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  color: #8b7355;
  text-align: center;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.page-poem-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: #3d2b1f;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.page-poem-text {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 2;
  color: #4a3728;
  font-style: italic;
}

.page-poem-text--center {
  text-align: center;
}

.page-ornament {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Purchase area */
.book-purchase-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-available-text {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.purchase-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-purchase {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-dark);
  box-shadow: 0 4px 24px rgba(201, 169, 110, 0.35);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 110, 0.4);
}

.btn-secondary:hover {
  background: rgba(201, 169, 110, 0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: #080b10;
  padding-top: 0;
  overflow: hidden;
}

.footer-bg-art {
  position: relative;
  height: 120px;
  margin-top: -1px;
  background: var(--bg-mid);
}

.footer-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 3rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.08);
  transform: translateY(-2px);
}

.footer-nav-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-nav-list a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-nav-list a:hover {
  color: var(--gold);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--gold);
}

.newsletter-wrap {
  margin-top: 1.5rem;
}

.newsletter-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.7rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 260px;
}

.newsletter-input {
  flex: 1;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-right: none;
  border-radius: 2px 0 0 2px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(158, 168, 184, 0.5);
}

.newsletter-input:focus {
  border-color: rgba(201, 169, 110, 0.5);
}

.newsletter-btn {
  padding: 0.65rem 1rem;
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  border-radius: 0 2px 2px 0;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-btn:hover {
  background: var(--gold-light);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(201, 169, 110, 0.1);
  padding: 1.5rem 2rem;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom-inner p {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(158, 168, 184, 0.5);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  color: rgba(158, 168, 184, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--gold);
}

.footer-bottom-links span {
  color: rgba(201, 169, 110, 0.3);
}

.footer-credit {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(201, 169, 110, 0.4) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .navbar {
    padding: 1rem 2rem;
  }

  .navbar.scrolled {
    padding: 0.8rem 2rem;
  }

  .nav-links {
    display: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2rem 1.5rem;
  }

  .about-photo-wrap {
    order: -1;
  }

  .book-inner {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 0 1.5rem;
  }

  .book-showcase {
    order: -1;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .line-1 {
    font-size: 4rem;
  }

  .line-2 {
    font-size: 4.5rem;
  }

  .about-photo-frame {
    width: 260px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .book-3d {
    width: 180px;
    height: 240px;
  }

  .book-front {
    width: 180px;
    height: 240px;
  }

  .book-back {
    width: 180px;
    height: 240px;
  }

  .book-spine {
    height: 240px;
  }
}

/* ============================================================
   NEW STYLES (Author Photo, CSS Book, Hindi Fonts, Social Links)
   ============================================================ */

/* -- Author Real Photo -- */
.author-real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* -- About Social Links -- */
.about-social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.about-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.about-social-btn:hover {
  background: var(--gold);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* -- Hindi Typography -- */
.hindi-title {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #3d2b1f;
  margin-bottom: 1rem;
}

.hindi-poem {
  font-family: 'Hind', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #4a3728;
}

.page-poem-sig {
  font-family: 'Hind', sans-serif;
  font-size: 0.8rem;
  color: #8b7355;
  margin-top: 1rem;
  text-align: right;
}

/* -- CSS Book Cover -- */
.book-css-cover {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #112a20, #0a1912);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  position: relative;
}

.book-css-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.08"/></svg>');
  pointer-events: none;
}

.book-css-cover-inner {
  border: 1px solid rgba(201, 169, 110, 0.3);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
  position: relative;
  z-index: 1;
}

.book-css-title {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 1.8rem;
  color: var(--gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 1rem;
  text-align: center;
}

.book-css-author {
  font-family: 'Hind', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
}

.book-css-floral {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Screen Glow (Sakura Pink) ── */
.screen-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  border: 1px solid rgba(255, 183, 197, 0.15);
  box-shadow: 
    inset 0 0 20px rgba(255, 183, 197, 0.4),
    inset 0 0 40px rgba(255, 105, 180, 0.15);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  animation: sakuraEndlessGlow 6s ease-in-out infinite alternate;
}

@keyframes sakuraEndlessGlow {
  0% {
    box-shadow: 
      inset 0 0 15px rgba(255, 183, 197, 0.35),
      inset 0 0 30px rgba(255, 105, 180, 0.1),
      inset 0 0 50px rgba(255, 183, 197, 0.05);
    border-color: rgba(255, 183, 197, 0.1);
  }
  50% {
    box-shadow: 
      inset 0 0 25px rgba(255, 183, 197, 0.5),
      inset 0 0 45px rgba(255, 105, 180, 0.25),
      inset 0 0 70px rgba(255, 183, 197, 0.15);
    border-color: rgba(255, 183, 197, 0.25);
  }
  100% {
    box-shadow: 
      inset 0 0 35px rgba(255, 183, 197, 0.6),
      inset 0 0 60px rgba(255, 105, 180, 0.35),
      inset 0 0 90px rgba(255, 183, 197, 0.2);
    border-color: rgba(255, 183, 197, 0.4);
  }
}