General Styles and Reset html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Libertinus Serif", serif;
}
.row {
  width: 100%;
  max-width: 1300px;
  margin: auto;
  padding: 0 15px;
}

/* Header Styles */
header {
  background-color: rgba(103, 92, 61, 0.559);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  margin: auto;
  padding: 0px 15px;
}
.logo-btn-style {
  background-color: transparent;
  border: none;
}
.logo-btn-style:active {
  box-shadow: 2px 0px 13px 1px white;
  border: none;
  border-radius: 50%;
}
.nav-link.active {
  border-bottom: 3px solid rgb(154, 107, 37);
}
.logoDiv {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logoDiv img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  transition: border 0.3s;
}
.logoDiv img:hover {
  border: 1.5px solid #000;
}
.logoDiv h3 {
  color: white;
  font-family: "Merienda", cursive;
  font-size: 1.5rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
}
.menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.menu-btn {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s;
  font-family: "Libertinus Serif", serif;
  padding: 5px 10px;
  background-color: transparent;
  border: none;
}
.menu-btn:hover {
  color: rgb(141, 24, 34);
  cursor: pointer;
}
.menu-btn:active {
  transform: translateY(-1.3px);
}

.contact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact input {
  border: 2px solid rgb(202, 77, 125);
  padding: 10px;
  width: 250px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.8);
}
.createBtn button {
  color: aliceblue;
  padding: 12px 20px;
  background-color: rgb(118, 71, 165);
  border-radius: 7px;
  border: none;
  box-shadow: 1px 2px 0 0 #0c0d0d;
  transition: all 0.3s;
  cursor: pointer;
}
.createBtn button:hover {
  background-color: rgb(90, 50, 130);
}
.createBtn button:active {
  color: rgb(176, 154, 64);
  background-color: rgb(70, 9, 67);
  box-shadow: none;
  transform: translateY(2px);
}

/* Hamburger Menu for Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease-in-out;
}

/* Main Content Styles */
.bio {
  padding: 20px 20px;
}
.bio-text {
  text-align: center;
  padding: 10px;
  font-family: "Merienda", cursive;
  font-size: 1.5rem;
  color: white;
  background-color: rgba(103, 92, 61, 0.559);
  border-radius: 8px;
  line-height: 1.5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.books-content {
  text-align: center;
  color: rgb(79, 90, 82);
}

.bookList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px 15px;
  justify-items: center;
}
.allCards-style {
  height: 350px;
  width: 100%;
  max-width: 225px;
  position: relative;
  transition: transform 1s;
  transform-style: preserve-3d;
}
.allCards-style:hover {
  transform: rotateY(180deg);
  cursor: pointer;
}
.book-front,
.book-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  top: 0;
  left: 0;
}
.book-front {
  overflow: hidden;
  border: 1px solid rgb(149, 164, 91);
  border-radius: 9px 5px 9px 9px;
}
.book-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-back {
  transform: rotateY(180deg);
  color: rgb(92, 87, 87);
  background-color: #fbffe3;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Footer */
footer {
  background-color: #ffffff;
  color: white;
  text-align: center;
  padding: 20px;
  border-top: 1.5px solid #a19a9a;
}
.footer-design {
  color: #625a5a;
}
.footer-design a {
  color: #625a5a;
  text-decoration: none;
}
.footer-fixed {
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* Responsive Design */
/* Medium devices (Tablets: 768px and up) */
@media (min-width: 768px) {
  .menu ul {
    flex-direction: row;
  }
  .contact {
    width: auto;
    margin-top: 0;
  }
  .contact input {
    width: 250px;
  }
}

/* Large devices (Desktops: 992px and up) */
@media (min-width: 992px) {
  .bookList {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Small devices (Mobile: up to 767px) */
@media (max-width: 767px) {
  .bio-text {
    font-size: 1.2rem;
  }
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 15px;
  }
  .menu-toggle {
    display: flex;
  }
  .menu {
    flex-direction: column;
    width: 100%;
    display: none;
    gap: 15px;
    text-align: center;
  }
  .menu.active {
    display: flex;
  }
  .menu ul {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }
  .menu ul li a {
    display: block;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
  }
  .contact {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  .contact input {
    width: 100%;
  }
  .createBtn {
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }
  .createBtn button {
    width: 100%;
  }
}

.common-div-style {
  padding-bottom: 20px;
}
.blog-details {
  margin-top: 70px;
  height: 60.5vh;
}

.about-me-container {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  background-color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-me-heading {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  color: #111827;
  margin-bottom: 1.5rem;
}

.about-me-paragraph {
  font-size: 1.25rem;
  color: #4b5563;
}

.highlight {
  font-weight: 700;
  color: #111827;
}
