/* ===============================
   RESET & BASE
   =============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  background: #111;
  overflow-x: hidden;
  cursor: none; /* hide default cursor */
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* ===============================
   HERO SECTIONS
   =============================== */
.hero,
.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero {
  height: 100vh;
}

.about-hero {
  height: 50vh;
  background: linear-gradient(135deg, #1a1a1a, #222);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(30,30,30,0.6));
  z-index: 1;
}

.hero-content,
.about-hero .hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero h1 { font-size: 4rem; margin-bottom: 1rem; text-shadow: 0 0 15px #ff6f61; }
.hero .tagline,
.about-hero .tagline { font-size: 1.5rem; text-shadow: 0 0 10px #ff6f61; }
.about-hero h1 { font-size: 3.5rem; text-shadow: 0 0 15px #ff6f61; }

.hero .hero-cover {
  width: 220px;
  margin-top: 2rem;
  animation: float 4s ease-in-out infinite;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(255,111,97,0.5);
}

@keyframes float {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* ===============================
   BUTTONS
   =============================== */
.btn {
  display: inline-block;
  background: #ff6f61;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 15px #ff6f61;
  transition: 0.3s ease;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px #ff6f61;
}

/* ===============================
   AUTHOR SECTIONS
   =============================== */
.author-intro,
.author-bio {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 5rem 2rem;
  gap: 2rem;
}

.author-intro { background: #1a1a1a; }
.author-bio { background: #111; }

.author-shape,
.author-bio-shape {
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #ff6f61, #ffd700);
  clip-path: polygon(0% 0%, 100% 0%, 70% 100%, 0% 100%);
  z-index: 0;
  opacity: 0.4;
  top: -50px; left: -50px;
}

.author-bio-shape { opacity: 0.3; top: -40px; left: -40px; }

.author-photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 25px #ff6f61; z-index: 1; }
.author-photo-large { width: 250px; height: 250px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 25px #ff6f61; z-index: 1; }

.author-text,
.bio-text { max-width: 700px; z-index: 2; }

.author-text h2,
.bio-text h2 { font-size: 2.5rem; margin-bottom: 1rem; text-shadow: 0 0 10px #ff6f61; }
.author-text p,
.bio-text p { font-size: 1.1rem; margin-bottom: 1.5rem; line-height: 1.6; }

.signup-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ff6f61; /* your accent color */
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.signup-btn:hover {
  background-color: #e65b50; /* slightly darker on hover */
}

@font-face {
    font-display: block;
    font-family: Roboto;
    src: url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/7529907e9eaf8ebb5220c5f9850e3811.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/25c678feafdc175a70922a116c9be3e7.woff) format("woff")
  }

  @font-face {
    font-display: fallback;
    font-family: Roboto;
    font-weight: 600;
    src: url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/6e9caeeafb1f3491be3e32744bc30440.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/71501f0d8d5aa95960f6475d5487d4c2.woff) format("woff")
  }

  @font-face {
    font-display: fallback;
    font-family: Roboto;
    font-weight: 700;
    src: url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/3ef7cf158f310cf752d5ad08cd0e7e60.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/ece3a1d82f18b60bcce0211725c476aa.woff) format("woff")
  }

  #sib-container input:-ms-input-placeholder {
    text-align: left;
    font-family: "Trebuchet MS", sans-serif;
    color: #c0ccda;
  }

  #sib-container input::placeholder {
    text-align: left;
    font-family: "Trebuchet MS", sans-serif;
    color: #c0ccda;
  }

  #sib-container textarea::placeholder {
    text-align: left;
    font-family: "Trebuchet MS", sans-serif;
    color: #c0ccda;
  }

  #sib-container a {
    text-decoration: underline;
    color: #ff6f61;
  }

  input[type="email"], 
input[type="text"] {
  color: #111 !important;
  background-color: #fff !important;
}


input::placeholder {
  color: #888; /* lighter gray for placeholder text */
}


/* ===============================
   BOOK GRID & PARTICLES
   =============================== */
.books,
.featured-books { position: relative; padding: 5rem 2rem; text-align: center; background: #111; }

.books h2,
.featured-books h2 { font-size: 3rem; margin-bottom: 3rem; text-shadow: 0 0 15px #ff6f61; }

.book-grid,
.book-grid-mini { display: grid; gap: 2rem; justify-items: center; }

.book-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.book-grid-mini { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }

.book-card {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 16px;
  transform: rotate(calc(-2deg + 4deg * var(--i)));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 20px rgba(255,111,97,0.3);
}

.book-card:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 15px 30px rgba(255,111,97,0.6);
}

.book-card img { width: 100%; border-radius: 12px; margin-bottom: 0.5rem; }

.book-particles,
.hero .particles,
.about-hero .particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.book-particles .particle { width: 5px; height: 5px; border-radius: 50%; background: #ff6f61; opacity: 0.8; animation: floatBookParticles linear infinite; position: absolute; }

@keyframes floatBookParticles {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  100% { transform: translateY(-300px) translateX(100px); opacity: 0; }
}

.hero .particles .particle,
.about-hero .particles .particle {
  position: absolute;
  width: 4px; height: 4px; border-radius: 50%;
  background: #ffd700;
  opacity: 0.8;
}

.hero .particles .particle { animation: floatIndex 8s linear infinite; }
.about-hero .particles .particle { animation: floatFade 8s linear infinite; }

@keyframes floatIndex {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  100% { transform: translateY(-200px) translateX(50px); opacity: 0; }
}

@keyframes floatFade {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  100% { transform: translateY(-200px) translateX(50px); opacity: 0; }
}


/* ===============================
   SOCIAL LINKS
   =============================== */
.social-links {
  text-align: center;
  padding: 3rem 2rem;
  background: #1a1a1a;
}

.social-links a {
  color: #ff6f61;
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: bold;
  transition: 0.3s;
}

.social-links a:hover {
  text-shadow: 0 0 15px #ff6f61;
}

/* ===============================
   CONTACT FORM
   =============================== */
.contact-section {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: #0f0f0f;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ===============================
   CONTACT DIVIDER / SPACING
   =============================== */
.contact-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem; /* adds spacing above and below */
  border-top: 2px solid rgba(255, 111, 97, 0.4); /* subtle top border */
  border-bottom: 2px solid rgba(255, 111, 97, 0.2); /* optional bottom border */
  background: #111; /* same as page bg to keep design consistent */
}

.contact-divider .contact-buttons {
  margin: 0; /* ensure centered alignment */
}


.contact-section label { font-weight: 600; font-size: 0.95rem; color: #ddd; text-align: left; }
.contact-section input,
.contact-section textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #222;
  background: #121212;
  color: #fff;
  font-size: 1rem;
}

.contact-section button {
  background: #ff6f61;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.contact-section button:hover { background: #ff4c3b; }

.contact-buttons { display:flex; justify-content:center; gap:20px; margin:20px 0; }
.contact-buttons .btn { padding: 10px 16px; border-radius:10px; background:#ff6f61; color:#fff; font-weight:700; text-decoration:none; text-align:center; }
.contact-buttons .btn:hover { background:#ff4c3b; }

/* ===============================
   FOOTER
   =============================== */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  background: #000;
  color: #fff;
}

.footer a { color: #ff6f61; text-decoration: none; transition: 0.3s; }
.footer a:hover { text-shadow: 0 0 15px #ff6f61; }

/* ===============================
   CUSTOM CURSOR + TRAIL
   =============================== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  background: #ff6f61;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 15px #ff6f61, 0 0 30px #ff6f61;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.cursor-trail-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
}

.cursor-trail {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd700;
  opacity: 0.8;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #ffd700, 0 0 20px #ff6f61;
  animation: fadeTrail 0.6s forwards;
}

@keyframes fadeTrail { to { opacity:0; transform:translate(-50%,-50%) scale(0); } }

/* ===============================
TESTIMONIAL SECTION
=============================== */
.testimonial-section {
  background: #111;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonial-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 12px #ff6f61;
  color: #fff;
}

.testimonial-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-slider-viewport {
  overflow: hidden;
  width: 100%;
}

.testimonial-slider {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.testimonial {
  max-width: 100%;
  flex: 0 0 100%;
  padding: 3.3rem;
  background: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(255, 111, 97, 0.3);
  margin: 0 0.5rem;
  text-align: center;
  box-sizing: border-box;
}

.testimonial p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  color: #eee;
  text-align: center;
}

.testimonial h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffd700;
  text-shadow: 0 0 6px #ff6f61;
}

/* Slider Controls */
.slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

.slider-btn {
  background: #ff6f61;
  border: none;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 15px #ff6f61;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px #ff6f61;
}

body, button, a, input, textarea {
  cursor: none !important;
}

/* ===============================
   MOBILE RESPONSIVE SNIPPET
   =============================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .hero .tagline, .about-hero .tagline { font-size: 1.3rem; }
  .about-hero h1 { font-size: 2.5rem; }
  .hero .hero-cover { width: 180px; }

  .author-intro, .author-bio {
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
    gap: 1.5rem;
  }

  .author-shape, .author-bio-shape { width: 200px; height: 200px; top: -30px; left: -30px; }
  .author-photo { width: 180px; height: 180px; }
  .author-photo-large { width: 200px; height: 200px; }
  .author-text, .bio-text { max-width: 100%; text-align: center; }

  .book-grid, .book-grid-mini { gap: 1rem; }
  .book-card { transform: rotate(0deg); }

  .testimonial-section { padding: 3rem 1rem; }
  .testimonial { padding: 2rem; margin: 0 0.25rem; }
  .testimonial-section h2 { font-size: 2rem; }
  .testimonial p { font-size: 0.95rem; }
  .testimonial h3 { font-size: 0.95rem; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero .tagline, .about-hero .tagline { font-size: 1.1rem; }
  .about-hero h1 { font-size: 2rem; }
  .hero .hero-cover { width: 140px; }

  .author-intro, .author-bio { padding: 2rem 1rem; gap: 1rem; }
  .author-photo, .author-photo-large { width: 150px; height: 150px; }
  .author-shape, .author-bio-shape { width: 150px; height: 150px; top: -20px; left: -20px; }

  .book-grid, .book-grid-mini { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.8rem; }

  .testimonial-section h2 { font-size: 1.8rem; }
  .testimonial { padding: 1.5rem; margin: 0 0.2rem; }
  .testimonial p { font-size: 0.9rem; }
  .testimonial h3 { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero .tagline, .about-hero .tagline { font-size: 1rem; }
  .about-hero h1 { font-size: 1.6rem; }
  .hero .hero-cover { width: 120px; }

  .author-intro, .author-bio { padding: 1.5rem 1rem; }
  .author-photo, .author-photo-large { width: 120px; height: 120px; }
  .author-shape, .author-bio-shape { width: 120px; height: 120px; top: -15px; left: -15px; }

  .book-grid, .book-grid-mini { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.5rem; }

  .testimonial-section { padding: 2rem 0.5rem; }
  .testimonial-section h2 { font-size: 1.5rem; }
  .testimonial { padding: 1rem; margin: 0 0.1rem; }
  .testimonial p { font-size: 0.85rem; }
  .testimonial h3 { font-size: 0.8rem; }

  body, button, a, input, textarea {
    cursor: auto !important;
  }

  .cursor, .cursor-trail-container, .cursor-trail {
    display: none !important;
  }
}
