:root {
  --primary-color: #e0b973;
  --primary-dark: #c9a45e;
  --bg-dark: #1a1a1a;
  --bg-light: #2c2c2c;
  --text-light: #f4f1ed;
  --text-muted: #ccc;
  --section-bg: rgba(255, 255, 255, 0.06);
  --overlay-dark: rgba(0, 0, 0, 0.7);
  --overlay-light: rgba(0, 0, 0, 0.45);
  --transition: all 0.3s ease;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text-light);
  background: linear-gradient(to right, var(--bg-dark), var(--bg-light));
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

canvas#backgroundCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
}

.overlay {
  background: var(--overlay-dark);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  transition: var(--transition);
}

/* Make overlay less dark over hero */
.hero + .overlay {
  background: var(--overlay-light);
}

/* Header Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  z-index: 100;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.3);
}

.header.scrolled {
  background-color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  padding: 1rem 2rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--primary-color);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(224, 185, 115, 0.7);
  transition: var(--transition);
}

.hero img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(224, 185, 115, 0.9);
}

.hero h1 {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  margin: 0;
  animation: fadeInUp 1.2s ease forwards;
  line-height: 1.2;
}

.highlight {
  color: var(--primary-color);
}

.tagline {
  font-size: 1.3rem;
  opacity: 0.9;
  margin: 1.5rem 0;
  animation: fadeInUp 1.6s ease forwards;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  animation: fadeInUp 2s ease forwards;
}

.social-links a {
  color: var(--text-light);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 10;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

/* Main Content Sections */
.main-content {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.section {
  padding: 3rem 2rem;
  max-width: 950px;
  margin: 2rem auto;
  background-color: var(--section-bg);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  cursor: default;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Hover effect to brighten tiles */
.section:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px 6px rgba(224, 185, 115, 0.8);
  background-color: rgba(255, 255, 255, 0.1);
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(224, 185, 115, 0.1), transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.section:hover::before {
  opacity: 1;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  padding: 0.7rem 0;
  font-size: 1.05rem;
  position: relative;
  padding-left: 1.8rem;
}

ul li::before {
  content: '•';
  color: var(--primary-color);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: 0.85rem;
  line-height: 1;
}

ul li a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

ul li a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Quote Carousel */
.quote-carousel {
  font-style: italic;
  text-align: center;
  font-size: 1.4rem;
  padding: 2.5rem;
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--primary-color);
  border-radius: 10px;
  position: relative;
  margin: 2rem 0;
}

.quote-carousel::before,
.quote-carousel::after {
  content: '"';
  font-size: 3rem;
  color: rgba(224, 185, 115, 0.3);
  position: absolute;
}

.quote-carousel::before {
  top: 10px;
  left: 20px;
}

.quote-carousel::after {
  bottom: 10px;
  right: 20px;
}

/* Books Section */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* More books section styling */
.more-books {
  grid-column: 1 / -1; /* Takes full width */
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 2rem;
  margin-top: 1.5rem;
}

.more-books h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  border-bottom: 2px solid rgba(224, 185, 115, 0.3);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
/* Remove native bullets */
.more-books ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Flex for horizontal alignment */
.more-books li {
  display: flex;
  align-items: flex-start; /* align dot with top of text */
  margin: 0.4rem 0;
  line-height: 1.6;
}

/* Custom dot */
.more-books li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0b973; /* gold */
  margin-right: 0.6rem;
  margin-top: 0.5rem;   /* aligns with first text line */
  flex-shrink: 0;      /* prevent shrinking */
  box-shadow: 0 0 6px rgba(224,185,115,.35);
}

/* Adjust book cards to show 3 in a row */
@media (min-width: 900px) {
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* For medium screens, show 2 books per row */
@media (max-width: 899px) and (min-width: 600px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* For mobile, single column */
@media (max-width: 599px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
}


.book-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.book-cover {
  height: 300px;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.book-info {
  padding: 1.2rem;
}

.book-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.book-year {
  font-size: 0.9rem;
  color: var(--text-muted);
}
/* Gallery Section */
.gallery-section {
  padding: 3rem 2rem;
  max-width: 950px;
  margin: 2rem auto;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.gallery-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
  color: var(--primary-color);
}

.gallery-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.gallery-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.gallery-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 400px;
  overflow: hidden;
}

.gallery-slide {
  position: absolute;
  width: 60%;
  height: 100%;
  transition: all 0.5s ease;
  opacity: 0;
  z-index: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slide.prev {
  left: 5%;
  transform: translateX(-50%) scale(0.8);
  opacity: 0.6;
  z-index: 0;
}

.gallery-slide.current {
  left: 50%;
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 2;
}

.gallery-slide.next {
  left: 95%;
  transform: translateX(-50%) scale(0.8);
  opacity: 0.6;
  z-index: 0;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 3;
  padding: 0 1rem;
}

.gallery-btn {
  background-color: rgba(224, 185, 115, 0.7);
  color: #1a1a1a;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.gallery-btn:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-slide {
    width: 80%;
  }
  
  .gallery-slide.prev {
    left: 10%;
  }
  
  .gallery-slide.next {
    left: 90%;
  }
  
  .gallery-slider {
    height: 300px;
  }
}
/* Contact Section */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* always 3 columns on desktop */
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* ✅ Mobile & Tablet */
@media (max-width: 900px) {
  .contact-info {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
  }
}

@media (max-width: 600px) {
  .contact-info {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 2.5rem;
  font-size: 0.95rem;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  margin-top: 3rem;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }
  .nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: 99;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .tagline {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 2rem 1.5rem;
    margin: 1.5rem auto;
  }
  
  .section h2 {
    font-size: 1.8rem;
  }
  
  .quote-carousel {
    font-size: 1.2rem;
    padding: 1.5rem;
  }
  
  .books-grid {
    grid-template-columns: 1fr;
  }
}
/* Switch Container */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider Background */
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #444;
  border-radius: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  transition: background 0.3s;
}

/* Labels inside */
.slider .label {
  z-index: 1;
  pointer-events: none;
}
/* Place Hindi on the left */
.slider .label.hindi {
  position: absolute;
  left: 10px;
}

/* Place English on the right */
.slider .label.english {
  position: absolute;
  right: 10px;
}

/* Knob */
.slider::before {
  content: "";
  position: absolute;
  height: 28px;
  width: 28px;
  left: 4px;
  bottom: 3px;
  background-color: #e0b973;
  border-radius: 50%;
  transition: transform 0.3s;
}

/* When checked */
.switch input:checked + .slider::before {
  transform: translateX(26px);
}
/* Hamburger base */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
}

.mobile-menu-btn .bar {
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* Animation when active */
.mobile-menu-btn.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Only visible on mobile */
@media (max-width: 768px) {
  .mobile-menu-btn {
   display: flex;
    position: relative;
    right: 18px; 
  }
}

