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

:root {
  --primary: #e85d04;
  --primary-dark: #d00000;
  --secondary: #370617;
  --accent: #f48c06;
  --bg: #faf7f2;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-light: #555;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.14);
  --radius: 16px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hind Siliguri', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Noto Serif Bengali', serif;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  overflow: visible;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--secondary);
  position: relative;
  z-index: 10;
}

.logo-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.logo-img {
  height: 220px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-top: 100px;
  margin-bottom: -30px;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text {
  font-size: 1.7rem;
  font-weight: 700;
  font-family: 'Noto Serif Bengali', serif;
  letter-spacing: 0.5px;
}

.logo-tagline {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 2px;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.2rem;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--secondary);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), 
                url("../images/hero-bg.png") center 40% / cover no-repeat;
  color: white;
  padding: 200px 0 250px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(244, 140, 6, 0.15) 0%, transparent 60%);
  animation: pulse 12s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 18px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(244, 140, 6, 0.4);
}

.btn-primary:hover {
  background: #ff9e0d;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(244, 140, 6, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-amazon {
  background: #ff9900;
  color: #111;
  flex: 0 0 auto;
  padding: 7px 16px;
  font-size: 0.82rem;
  border-radius: 8px;
  min-width: 100px;
}

.btn-amazon:hover {
  background: #e68a00;
  transform: translateY(-1px);
}

.btn-flipkart {
  background: #2874f0;
  color: white;
  flex: 0 0 auto;
  padding: 7px 16px;
  font-size: 0.82rem;
  border-radius: 8px;
  min-width: 100px;
}

.btn-flipkart:hover {
  background: #1a5dc8;
  transform: translateY(-1px);
}

/* ===== Books Section ===== */
.books-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--secondary);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.books-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ===== Book Card (Horizontal) ===== */
.book-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  transition: var(--transition);
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.book-card:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.book-cover {
  position: relative;
  flex: 0 0 240px;
  width: 240px;
  min-height: 280px;
  overflow: hidden;
  background: #f0ebe3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  cursor: pointer;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.03);
}

.book-info {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.book-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.35;
  font-family: 'Noto Serif Bengali', serif;
}

.book-desc {
  font-size: 0.98rem;
  color: #444;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Product Details ===== */
.product-details {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #f8f5f0;
  border-radius: 10px;
  border: 1px solid #ebe4d8;
}

.details-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  font-family: 'Hind Siliguri', sans-serif;
}

.detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  padding: 3px 0;
}

.detail-label {
  color: #555;
  font-weight: 600;
  min-width: 120px;
}

.detail-label::after {
  content: " :";
}

.detail-value {
  color: #333;
}

.book-buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* ===== About ===== */
.about-section {
  padding: 70px 0;
  background: linear-gradient(180deg, #fff 0%, #faf7f2 100%);
}

.about-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ===== Contact ===== */
.contact-section {
  padding: 70px 0;
  text-align: center;
}

.contact-text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
/* ===== Social Links ===== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: white;
  transition: var(--transition);
  min-width: 130px;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.social-whatsapp {
  background: #25D366;
}

.social-whatsapp:hover {
  background: #1da851;
}

.social-facebook {
  background: #1877F2;
}

.social-facebook:hover {
  background: #0d65d9;
}

.social-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-instagram:hover {
  opacity: 0.9;
}

.social-email {
  background: var(--primary);
}

.social-email:hover {
  background: var(--primary-dark);
}

@media (max-width: 480px) {
  .social-links {
    flex-direction: column;
    align-items: center;
  }

  .social-btn {
    width: 100%;
    max-width: 260px;
  }
}
/* ===== Footer ===== */
.footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.85);
  padding: 30px 0;
  text-align: center;
}

.footer-note {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 6px;
}

/* ===== Image count badge ===== */
.image-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-top: 14px;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 2.4rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  line-height: 1;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

/* ============================================
   RESPONSIVE — Tablet & Mobile
   ============================================ */

/* Tablet — book cards stack */
@media (max-width: 900px) {
  .book-card {
    flex-direction: column;
  }

  .book-cover {
    flex: none;
    width: 100%;
    min-height: 220px;
    max-height: 320px;
    padding: 16px;
  }

  .book-cover img {
    max-height: 280px;
  }

  .book-info {
    padding: 20px 22px;
  }

  .book-desc {
    -webkit-line-clamp: 5;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .header .container {
    height: 70px;
  }

  /* লোগো বড় রাখা */
  .logo-img {
    height: 180px;
    margin-top: 85px;
    margin-bottom: -25px;
  }

  .logo {
    gap: 8px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .logo-tagline {
    font-size: 0.65rem;
    max-width: 130px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  .nav.active {
    display: flex;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: block;
  }

  /* হিরো: শুধু ড্রাগন + লেখা মুছে দেওয়া */
  .hero {
    padding: 160px 0 100px;
    background-position: center 25%;
    background-size: cover, cover;
  }

  .hero-content h1,
  .hero-content p {
    display: none; /* মোবাইলে হিরো লেখা লুকানো */
  }

  .hero-content .btn {
    margin-top: 0;
  }

  .books-section {
    padding: 50px 0;
  }

  .section-subtitle {
    margin-bottom: 32px;
    font-size: 1rem;
  }

  .books-grid {
    gap: 22px;
  }

  .book-title {
    font-size: 1.25rem;
  }

  .book-desc {
    font-size: 0.94rem;
    -webkit-line-clamp: 4;
  }

  .about-section,
  .contact-section {
    padding: 50px 0;
  }

  .about-text p {
    font-size: 1rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .logo-img {
    height: 150px;
    margin-top: 70px;
    margin-bottom: -20px;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .logo-tagline {
    font-size: 0.58rem;
    max-width: 110px;
  }

  .hero {
    padding: 80px 0 100px;
    background-position: center center, 12% center;
  }

  .book-cover {
    min-height: 200px;
    max-height: 280px;
    padding: 12px;
  }

  .book-cover img {
    max-height: 250px;
  }

  .book-info {
    padding: 16px 16px 18px;
  }

  .book-title {
    font-size: 1.15rem;
  }

  .book-desc {
    font-size: 0.9rem;
    margin-bottom: 16px;
    -webkit-line-clamp: 4;
  }

  .book-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .btn-amazon,
  .btn-flipkart {
    width: 100%;
    min-width: 0;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .contact-text {
    font-size: 1rem;
  }
}

/* Lightbox mobile */
@media (max-width: 600px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .lightbox-content img {
    max-height: 75vh;
  }
}