/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Fonts */
  body {
    font-family: 'Hind', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fffdf8;
  }
  
  /* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffe0e0;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #b30059;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-item {
  color: #800040;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-item:hover {
  color: #ff3399;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  
  .nav-links {
    display: none; /* Hide the nav items on mobile */
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex; /* Show the nav items when the 'active' class is added */
  }

  .nav-item {
    color: #800040;
    text-decoration: none;
    font-weight: bold;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
  }

  .nav-item:hover {
    color: #ff3399;
  }

  /* Hamburger icon */
  .hamburger {
    display: block;
    cursor: pointer;
  }

  .hamburger div {
    width: 25px;
    height: 3px;
    background-color: #800040;
    margin: 5px 0;
    transition: 0.4s;
  }

  .hamburger.active div:nth-child(1) {
    transform: rotate(-45deg);
    position: relative;
    top: 8px;
  }

  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active div:nth-child(3) {
    transform: rotate(45deg);
    position: relative;
    top: -8px;
  }
}

  
  /* Hero Section */
  .hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ffd6e7, #ffe0e0);
    animation: fadeIn 2s ease-in;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  
  .btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: #b30059;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s;
  }
  
  .btn:hover {
    background: #ff3399;
  }
  
  /* Featured Section */
  .featured {
    padding: 4rem 2rem;
    background: #fff;
  }
  
  .featured h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #b30059;
    font-size: 2rem;
  }
  
  .poem-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  
  .poem-card {
    background: #ffe6f2;
    padding: 1.5rem;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }
  
  .poem-card:hover {
    transform: translateY(-10px);
  }
  
  .read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #800040;
    font-weight: bold;
    text-decoration: none;
  }
  
  /* Footer */
  .footer {
    text-align: center;
    padding: 2rem;
    background: #ffe0e0;
    font-size: 0.9rem;
    color: #800040;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .poem-cards {
      flex-direction: column;
      align-items: center;
    }
  }
  

  /* Poems Collection Section */
.collection {
  padding: 4rem 2rem;
  background: #fff;
}

.collection h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #b30059;
  font-size: 2rem;
}

.poem-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.poem-item {
  background: #ffe6f2;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.poem-item:hover {
  transform: translateY(-10px);
}

.poem-item h3 {
  color: #800040;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.poem-item p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.read-more {
  display: inline-block;
  color: #b30059;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.read-more:hover {
  color: #ff3399;
}

/* Poem Section */
.poem {
  background: linear-gradient(135deg, #ffe6f0, #fff);
  padding: 5rem 2rem;
  font-family: 'Playfair Display', serif;
}

.poem .container {
  max-width: 750px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.poem-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #99004d;
  font-weight: 700;
}

.poem-author {
  font-size: 1.3rem;
  color: #660033;
  margin-bottom: 2rem;
  font-style: italic;
  opacity: 0.8;
}

.poem-content {
  text-align: center;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 2.2;
  color: #33001a;
  padding: 1rem 0;
}

.poem-content p {
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.poem-content p::before {
  content: "“";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 2rem;
  color: #ff66a3;
  line-height: 1;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background: #e60073;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s;
}

.btn:hover {
  background: #ff3399;
  transform: translateY(-5px);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  background: #fff0f5;
  font-size: 1rem;
  color: #660033;
  font-family: 'Hind', sans-serif;
}



/* Poem Detail Page */
.poem-detail {
  padding: 4rem 2rem;
  background: #fff;
}

.poem-header {
  text-align: center;
  margin-bottom: 2rem;
}

.poem-header h1 {
  font-size: 2.5rem;
  color: #b30059;
}

.poem-meta {
  font-size: 1rem;
  color: #800040;
  margin-top: 1rem;
}

.poem-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 1.5rem;
}

.poem-content {
  font-size: 1.2rem;
  color: #333;
  line-height: 1.8;
  margin-top: 3rem;
}

.poem-journey {
  margin-top: 3rem;
}

.poem-journey h2 {
  font-size: 2rem;
  color: #b30059;
}

.poet-info {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.poet-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-right: 2rem;
}

.bio-text {
  max-width: 600px;
  font-size: 1rem;
  color: #333;
}

.poetry-collection {
  margin-top: 4rem;
}

.poetry-collection h2 {
  font-size: 2rem;
  color: #b30059;
  text-align: center;
}

.poetry-collection ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.poetry-collection li {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.share-feedback {
  text-align: center;
  margin-top: 4rem;
}

.share-btn {
  background-color: #b30059;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 30px;
  margin-right: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.share-btn:hover {
  background-color: #ff3399;
}

/* About Poet Section */
.about-poet {
  display: flex;
  justify-content: space-between;
  padding: 3rem 2rem;
  background: #fff;
}

.poet-image img {
  max-width: 300px;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.poet-details {
  max-width: 700px;
  line-height: 1.8;
  color: #333;
}

.poet-details h2 {
  font-size: 2.5rem;
  color: #b30059;
  margin-bottom: 1rem;
}

.poet-details h3 {
  font-size: 1.8rem;
  margin-top: 1.5rem;
  color: #b30059;
}

.poet-details p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.poet-details ul {
  list-style-type: disc;
  padding-left: 20px;
}

.poet-details ul li {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

/* Navbar - Active Link */
.nav-item.active {
  color: #ff3399;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  background: #ffe0e0;
  font-size: 0.9rem;
  color: #800040;
}

/* Contact Section */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form label {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: block;
  color: #800040;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 1rem;
  background: #b30059;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  border: none;
  font-size: 1.1rem;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #ff3399;
}


/* Notification Section */
.notification {
  background-color: #ff3399;
  color: #fff;
  text-align: center;
  padding: 1rem 0.5rem;
  font-weight: bold;
  position: fixed;
  top: 85px; /* Slightly below the top */
  right: 20px; /* Positioned at the top-right corner */
  z-index: 9999; /* Ensure it's above other content */
  border-radius: 8px; /* Rounded corners for the pop-up effect */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Shadow for 3D effect */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  
  max-width: 400px; /* Limit the width */
  width: 100%;
  opacity: 1;
  transform: translateY(0); /* Make it appear smoothly */
  animation: popUp 0.5s ease-in-out;
}

.notification-link {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.3s;
}

.notification-link:hover {
  color: #ff66b2;
}

.close-btn {
  background: none;
  color: #fff;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-weight: bold;
  transition: color 0.3s;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
}

.close-btn:hover {
  color: #ff66b2;
  background-color: rgba(255, 255, 255, 0.2); /* Subtle background change on hover */
}

@keyframes popUp {
  from {
      opacity: 0;
      transform: translateY(-80px); /* Initially off-screen */
  }
  to {
      opacity: 1;
      transform: translateY(0); /* Normal position */
  }
}


/* Post Section */
.post-section {
  padding: 4rem 2rem;
  background: #fff;
}

.post-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #b30059;
  font-size: 2rem;
}

.posts {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.post-card {
  background: #ffe6f2;
  padding: 1.5rem;
  border-radius: 15px;
  width: 300px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.post-card:hover {
  transform: translateY(-10px);
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: #800040;
  font-weight: bold;
  text-decoration: none;
}

/* Recently Posted Section */
.recently-posted {
  padding: 4rem 2rem;
  background: #fff;
}

.recently-posted h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #b30059;
  font-size: 2rem;
}

.recent-posts {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.recent-post {
  background: #ffe6f2;
  padding: 1.5rem;
  border-radius: 15px;
  width: 300px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.recent-post:hover {
  transform: translateY(-10px);
}



/* General Responsive */
@media (max-width: 768px) {
  /* Navbar already handled well! */
  
  /* Hero Section */
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Featured Poems */
  .poem-cards {
    flex-direction: column;
    align-items: center;
  }

  .poem-card {
    width: 100%;
    max-width: 350px;
  }

  /* Collection Section */
  .poem-table {
    grid-template-columns: 1fr;
  }

  .poem-item {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  /* Poem Section */
  .poem .container {
    padding: 2rem 1rem;
  }

  .poem-title {
    font-size: 2rem;
  }

  .poem-author {
    font-size: 1.1rem;
  }

  .poem-content {
    font-size: 1.2rem;
  }

  /* About Poet Section */
  .about-poet {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .poet-image img {
    margin-bottom: 1.5rem;
  }

  .poet-details {
    max-width: 100%;
  }

  /* Post Sections */
  .posts,
  .recent-posts {
    flex-direction: column;
    align-items: center;
  }

  .post-card,
  .recent-post {
    width: 100%;
    max-width: 350px;
  }

  /* Notification */
  .notification {
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .poem-title {
    font-size: 1.8rem;
  }

  .poem-content {
    font-size: 1.1rem;
  }

  .post-card,
  .recent-post,
  .poem-card {
    padding: 1rem;
  }
}
