/* Hero Section */
.lit-hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: visible; /* 👈 pehle hidden tha, ab visible */
}

.lit-hero .bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.lit-hero .overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lit-hero-content {
  position: absolute;
  z-index: 1;
  animation: fadeInUp 1.5s ease;
}

.lit-hero-content h1 {
  font-size: 3.5rem;
  color: white;
  text-shadow: 0 0 20px rgba(228,8,8,0.7);
}

.lit-hero-content p {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-top: 10px;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Navbar Fix */
header, .navbar, .nav-menu, .nav-bg {
  position: relative;
  z-index: 99999 !important; /* 👈 Always on top */
}

/* Literature Section */
.lit-section {
  padding: 70px 20px;
  background: #0d0d0d;
  color: white;
}

.lit-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 50px;
  color: #e40808;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 15px rgba(228,8,8,0.6);
}

.lit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.lit-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 25px;
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.lit-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0,0,0,0.7);
}

.lit-card .category {
  position: absolute;
  top: 12px; right: 12px;
  background: #e40808;
  color: white;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 12px;
}

.lit-card h3 {
  margin-top: 10px;
  color: #e40808;
}

.lit-card p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd;
}

.lit-card .author {
  display: block;
  margin-top: 12px;
  font-style: italic;
  font-size: 0.9rem;
  color: #aaa;
}

/* Artwork Card */
.art-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }
  .logo-section {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-bottom: 15px;
  }

  .navbar {
    position: fixed;
    top:100%;
    left: 0;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(1000px);
    z-index: 9999;
    padding: 0.5rem 4%;
    display: none;
    justify-content: space-between;
  }

  .nav-menu {
    position: fixed;
    top: 120px;
    left: -100%;
    width: 80%;
    max-width: 300px;
    background: #fff;
    flex-direction: column;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
    padding: 20px 0;
    z-index: 10000;
  }
  
  .nav-menu.active {
    left: 0;
  }
  .navbar.active {
    display: block;
  }
  .navbar a {
    display: block;
    margin: 1.5rem 0;
    color: black;
  }
  .nav-bg {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    height: 435px;
    background: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 9998;
    display: none;
  }
  .nav-bg.active {
    display: block;
  }
  
}

/* Modal styling */
.modal-backdrop{
  position: fixed; inset:0;
  background: rgba(0,0,0,.6);
  display: none;
  z-index: 999;
}

.lit-modal{
  position: fixed;
  top:50%; left:50%;
  transform: translate(-50%,-50%);
  background: rgba(20,20,20,0.95);
  color: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  width: min(92vw,700px);
  max-height: 82vh;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

.lit-modal button.close-lit{
  background: var(--primary,#e40808);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
}

/* Share button */
.share-btn{
  background: var(--primary,#e40808);
  border: none;
  color:#fff;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .9rem;
  display: inline-flex;
  align-items:center;
  gap:6px;
  font-weight:600;
  position:absolute;
  bottom:12px; right:12px;
}
.lit-card{ position:relative; }

.modal-open {
  overflow: hidden;
  height: 100vh; /* prevent mobile scroll issues */
}


.lit-modal .modal-bottombar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  gap: 10px;
}

.lit-modal .modal-bottombar .close-lit,
.lit-modal .modal-bottombar .share-btn {
  background: var(--primary, #e40808); /* use your brand colour */
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  flex: 1; /* optional: equal width */
  text-align: center;
}

