/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Body ---------- */
body {
  font-family: 'Merriweather', serif;
  background-color: #0c1829;
  color: #fff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

/* ---------- Header ---------- */

/* Navbar + Search */

/* Logo */

/* Self-Help Section */
.Technology-section {
  padding: 6rem 5% 60px; /* fixed navbar space */
}

.Technology-section h2 {
  font-size: 5rem;
  margin-bottom: 30px;
  color: #fff;
  text-align: center;
}

/* Grid Layout */
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ========================================================
   ULTRA-CREATIVE 3D BOOK SHOWCASE
   ======================================================== */
.book-card {
  margin-left: auto;
  margin-right: auto;
  background: transparent;
  text-align: center;
  width: 210px;
  perspective: 1200px;
  margin-bottom: 30px;
  animation: levitate 6s infinite ease-in-out;
}

.book-card:nth-child(even) { animation-delay: 1.2s; }
.book-card:nth-child(3n) { animation-delay: 2.5s; }
.book-card:nth-child(5n) { animation-delay: 3.7s; }

@keyframes levitate {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

.book-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
}

/* The Book Cover - 3D Hinge */
.book-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  transform-origin: left center;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 
    0 15px 30px rgba(0,0,0,0.5), 
    inset 4px 0 10px rgba(255,255,255,0.15);
  border-left: 2px solid rgba(0, 0, 0, 0.8);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s ease;
  margin-bottom: 25px;
  position: relative;
  z-index: 5;
}

/* 3D Pages and Swing on Hover */
.book-card:hover img {
  transform: scale(1.05) translateX(5px);
  box-shadow: 
    1px 0px 0 #fff,
    2px 0px 0 #f8fafc,
    3px 0px 0 #f1f5f9,
    4px 0px 0 #e2e8f0,
    5px 0px 0 #cbd5e1,
    6px 0px 0 #94a3b8,
    7px 0px 0 #64748b,
    -10px 20px 40px rgba(0,0,0,0.7);
  border-radius: 4px 8px 8px 4px;
}

/* Dynamic Typography */
.book-card h3 {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 6px;
  transition: transform 0.4s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.book-card:hover h3 {
  color: #f4d03f;
  transform: translateY(-8px);
  text-shadow: 0 5px 15px rgba(244, 208, 63, 0.4);
}

.book-card p {
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
  transition: transform 0.4s ease, color 0.3s ease;
}

.book-card:hover p {
  transform: translateY(-8px);
  color: #e2e8f0;
}

.book-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.book-card:hover h3 {
  color: #f4d03f;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 50px;
}

.page {
  background-color: #1a2942;
  color: #ccc;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.page:hover {
  background-color: #243a5a;
  color: #fff;
}

.page.active {
  background-color: #f4d03f;
  color: #0c1829;
  font-weight: bold;
}

/* Footer */
footer {
  background: #0f1b2d;
  padding: 3rem 5%;
  color: #ccc;
  margin-top: 2rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-links {
  flex: 1;
  min-width: 150px;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #f4d03f;
}

/* Responsive */
@media (max-width: 1024px) {
  .books-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .books-grid { grid-template-columns: 1fr; }
}




/* ========================================================
   ULTRA-PREMIUM LUXURY UPGRADES (5 LAKH AESTHETIC)
   ======================================================== */

/* 1. Cinematic Film Grain Overlay */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. Shimmering Gold Gradient Typography */
h1, h2, .logo span, .fiction-section h2, .genre-slider h2, .about-container h1, .contact-section h1 {
  background: linear-gradient(135deg, #f4d03f 0%, #ffe993 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: goldShimmer 6s linear infinite;
  text-shadow: 0 4px 20px rgba(244, 208, 63, 0.15);
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 3. Luxury Buttons & Glass Deep Glow */
.btn-primary, button[type="submit"], .page {
  background: linear-gradient(135deg, #f4d03f 0%, #e0bb30 100%) !important;
  color: #0a1220 !important;
  box-shadow: 0 4px 15px rgba(244, 208, 63, 0.2), inset 0 2px 4px rgba(255,255,255,0.4) !important;
  border: none !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover, button[type="submit"]:hover, .page:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 30px rgba(244, 208, 63, 0.4), inset 0 2px 4px rgba(255,255,255,0.6) !important;
}

/* 4. Custom Cursor CSS */
body {
  cursor: none;
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .custom-cursor { display: none !important; }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: #f4d03f;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  box-shadow: 0 0 10px rgba(244, 208, 63, 0.6);
  mix-blend-mode: screen;
}

.custom-cursor.hover {
  width: 45px;
  height: 45px;
  background-color: rgba(244, 208, 63, 0.15);
  border: 1px solid #f4d03f;
  box-shadow: 0 0 20px rgba(244, 208, 63, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}




/* Mobile Typography & Layout Fixes */
@media (max-width: 600px) {
  section h2 {
    font-size: 2.5rem !important;
  }
}
