/* ============ Reset ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* Category Bar */
.category-bar {
  background: #f8f8f8;
  color: #333;
  border-top: 1px solid #e5e5e5;
}

.category-bar ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 10px 0;
  gap: 25px;
}

.category-bar a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s;
}

.category-bar a:hover {
  color: #2c3e50;
  font-weight: 600;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Library Header */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e2e2e2;
  color: #1f1f1f;
  padding: 15px 10%;
  flex-wrap: wrap;
}

/* Hero Section */
.hero2 {
  background: url("./img/librarybg.jpeg") center/cover no-repeat;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-text h2 {
  font-size: 2.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 25px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

/* Section Headings */
section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 15px;
  color: #222;
  position: relative;
}

section h2::after {
  content: "";
  width: 80px;
  height: 3px;
  background: #193153;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* About Section */
.about {
  padding: 50px 20px;
  background: #fdfdfd;
  text-align: center;
}

.about p {
  max-width: 900px;
  margin: 15px auto;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
}

/* Gallery */
.gallery {
  padding: 50px 20px;
  text-align: center;
  background: #fff;
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-top: 25px;
}

.grid-gallery img,
.more-overlay {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-gallery img:hover,
.more-overlay:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.more-overlay {
  position: relative;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 600;
  border-radius: 12px;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img {
  width: 85%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.close {
  position: absolute;
  top: 25px;
  right: 40px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Lightbox Navigation */
.nav-btn {
  position: absolute;
  top: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
  padding: 10px 15px;
  border-radius: 50%;
  transition: background 0.3s;
}

#prevBtn {
  left: 30px;
}

#nextBtn {
  right: 30px;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* About Us */
.about-us {
  padding: 50px 20px;
  background: #fafafa;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Team */
.team-section {
  padding: 50px 20px;
  background: #fff;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.team-card {
  background: #fdfdfd;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Contact */
.contact {
  background: #f8f8f8;
  padding: 50px 20px;
  text-align: center;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}

.contact-box input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: 0.3s;
}

.contact-box input:focus {
  border-color: #193153;
  outline: none;
}

.contact-box button {
  padding: 12px;
  border: none;
  background: #2c3e50;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.contact-box button:hover {
  background: #193153;
}

/* Location */
.location {
  padding: 50px 20px;
  text-align: center;
}

.location-box {
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  padding: 15px;
  border-radius: 10px;
  background: white;
}

.location-box p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #333;
}

/* Footer */
.new-footer {
  background: linear-gradient(135deg, #8c2f70, #d94f9c);
  color: #fff;
  padding: 60px 8% 30px;
  font-family: "Poppins", sans-serif;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 30px;
}

.footer-brand img {
  width: 60px;
  margin-bottom: 10px;
}
.footer-brand h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffd54f;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #fce4ec;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #ffd54f;
  position: relative;
}
.footer-links ul,
.footer-contact ul {
  list-style: none;
}
.footer-links li,
.footer-contact li {
  margin: 8px 0;
}
.footer-links a {
  text-decoration: none;
  color: #fce4ec;
  transition: 0.3s;
}
.footer-links a:hover {
  color: #ffd54f;
  padding-left: 5px;
}

.footer-contact li {
  font-size: 14px;
  color: #fce4ec;
}

.footer-social {
  margin-top: 12px;
}
.footer-social a {
  display: inline-block;
  margin-right: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px;
  border-radius: 50%;
  font-size: 15px;
  transition: 0.3s;
}
.footer-social a:hover {
  background: #ffd54f;
  color: #8c2f70;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #fce4ec;
}

.footer-bottom span {
  color: #ffd54f;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
  .new-footer {
    padding: 40px 5% 20px;
  }
  .footer-brand img {
    width: 50px;
  }
  .footer-brand h2 {
    font-size: 20px;
  }
  .footer-links h4,
  .footer-contact h4 {
    font-size: 16px;
  }
  .footer-bottom {
    font-size: 12px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-text h2 {
    font-size: 1.6rem;
  }

  .grid-gallery img {
    height: 180px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav-links p {
    font-size: 0.9rem;
  }
}

/* Responsive Navbar */
@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    display: none;
    width: 100%;
    background: rgba(44, 62, 80, 0.95);
    position: absolute;
    top: 60px;
    left: 0;
    padding: 10px 0;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links a {
    padding: 10px 20px;
  }
}
