* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  color: #000;
  background: #ffe4b5;
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* -------------------- */
/* ✉️ Popup / Newsletter */
/* -------------------- */

.newsletter {
  display: flex;
  justify-content: center;
  width: 170px;
  margin: 0 auto;
}

#popup img.newsletter {
  display: block;
  max-width: 100%;
  height: auto;
}

.close {
  width: 20px;
  height: auto;
}

.bell {
  width: 50px;
  height: auto;
}

.subscribe-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 126, 95, 0.4);
}

.subscribe-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 126, 95, 0.5);
}

/* Popup Container */
#popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 320px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

#popup.active {
  display: block;
}

#popup img {
  max-width: 150px;
}

#popup .align-text {
  margin: 20px 0 10px;
  color: #000;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

.input-field {
  width: 100%;
  margin-top: 20px;
}

.input-field input[type="email"] {
  width: 100%;
  padding: 15px;
  color: #000;
  background-color: #fff;
  border: 1px solid #060000;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}

.input-field .submit-btn {
  width: 100%;
  padding: 15px 20px;
  color: #000;
  background-color: rgb(232, 232, 13);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.input-field .submit-btn:hover {
  background-color: #a8a1a1;
}

/* -------------------- */
/* 🧭 Navbar */
/* -------------------- */

.navbar {
  position: sticky;
  width: 100%;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #333;
  padding: 15px 30px;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
}

.site-name {
  margin-left: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

.navbar-list {
  display: flex;
  list-style: none;
  gap: 25px;
}

.navbar-list a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-list a:hover {
  color: #ff7e5f;
}

/* -------------------- */
/* 🎨 Buttons */
/* -------------------- */

.btn {
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 126, 95, 0.4);
}

/* -------------------- */
/* 🌟 Hero Section */
/* -------------------- */

.hero-section {
  position: relative;
  height: 100vh; /* full screen height */
  background: url('bg.png') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay */
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-overlay h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.hero-overlay h1 span {
  color: #ffb347; /* orange highlight */
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.hero-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 126, 95, 0.4);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2.2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }
}

/* -------------------- */
/* 📚 Featured Section */
/* -------------------- */

.featured-section {
  padding: 80px 20px;
  text-align: center;
  background: #ffb347;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: #000;
  animation: fadeInUp 0.8s ease-out;
}

.featured-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* -------------------- */
/* 📦 Flip Cards */
/* -------------------- */

.featured-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.flip-card {
  background: transparent;
  width: 280px;
  height: 200px;
  perspective: 1000px;
  transition: transform 0.3s ease;
  flex: 1 1 280px;
  max-width: 280px;
}

.flip-card:hover {
  transform: translateY(-5px);
}

.flip-card-front,
.flip-card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 15px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.flip-card-front {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.flip-card-back {
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  color: #fff;
  transform: rotateY(180deg);
}

.flip-card:hover .flip-card-front {
  transform: rotateY(180deg);
}

.flip-card:hover .flip-card-back {
  transform: rotateY(0);
}

.flip-card .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 10px;
  text-align: center;
}

.icon {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* -------------------- */
/* 📬 Feedback Form */
/* -------------------- */

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 320px;
  margin: 0 auto;
}

.feedback-form input,
.feedback-form textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.submit-btn {
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* -------------------- */
/* ⚫ Footer */
/* -------------------- */

.footer {
  background: #000;
  color: #fff;
  padding: 40px 20px 20px;
  text-align: center;
  font-family: 'Times New Roman', serif;
  border-top: 2px solid #fded36;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-contact,
.footer-links,
.footer-social {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 10px 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff7e5f;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  color: #fff;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.footer a {
  color: #f06;
  text-decoration: none;
}

.footer-dev {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* -------------------- */
/* 📖 Book Suggestions */
/* -------------------- */

#book-suggestions {
  background-color: #ffb347 !important;
  color: #000;
  padding: 60px 20px;
  text-align: center;
  border-top: 5px solid #ff7e5f;
  border-radius: 12px 12px 0 0;
  position: relative;
  z-index: 2;
}

.suggestion-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto 40px;
}

.form-group {
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ff7e5f;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff7e5f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 126, 95, 0.3);
}

#suggestions-list {
  margin-top: 40px;
  max-width: 800px;
  margin: 0 auto;
}

#suggestions-list h3 {
  color: #000;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

/* -------------------- */
/* 📱 Responsive Design */
/* -------------------- */

@media (max-width: 1024px) {
  .navbar .container {
    flex-direction: column;
    gap: 10px;
  }

  .featured-cards {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 15px;
  }

  .navbar-list {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    display: none;
  }

  .navbar.active .navbar-list {
    display: flex;
  }

  .site-name {
    font-size: 1.2rem;
    margin-left: 8px;
  }

  .featured-section {
    padding: 40px 15px;
    margin: 10px;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .featured-cards {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .flip-card {
    width: 100%;
    max-width: 320px;
    height: 180px;
  }

  .flip-card .inner {
    padding: 5px;
  }

  .icon {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
  }

  .footer-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  #popup {
    width: 95%;
    max-width: 400px;
    padding: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  #popup .align-text {
    font-size: 20px;
  }

  .input-field input[type="email"],
  .input-field input[type="text"],
  .input-field select,
  .input-field .submit-btn {
    font-size: 14px;
    padding: 10px;
  }

  .subscribe-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .subscribe-btn .bell {
    font-size: 18px;
  }

  #book-suggestions {
    padding: 40px 15px;
  }

  #suggestions-list {
    padding: 0 10px;
  }

  .feedback-form {
    width: 100%;
    max-width: 300px;
  }
}

/* -------------------- */
/* 🌙 Dark Mode */
/* -------------------- */

@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #ffb347 0%, #ff7e5f 100%);
    color: #000;
  }

  .navbar {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
  }

  .navbar-list a {
    color: #000;
  }

  .flip-card-front {
    background: rgba(0, 0, 0, 0.1);
  }
}

/* -------------------- */
/* ✨ Animations */
/* -------------------- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
