/* Global Rule */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --landing-background-color: rgb(234 226 213);
  --orange-color: rgb(255 81 0);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", serif;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  padding: 0 15px;
  margin: 0 auto;
}

/* Small Screen */
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}

/* Medium Screen */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

/* Large Screen */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
/* Global Rule */

/* Start Header */
.header {
  position: absolute;
  width: 100%;
  left: 0;
  margin-top: 20px;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .container .logo {
  cursor: pointer;
  width: 70px;
}

@media (max-width: 991px) {
  .header .container .logo {
    width: 50px;
  }
}

.header .container .logo img {
  max-width: 100%;
}

.header .container > i {
  color: white;
  font-size: 20px;
  display: none;
}

@media (max-width: 767px) {
  .header .container > i {
    display: block;
    cursor: pointer;
  }
}

.header .container .navbar ul {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header .container .navbar ul li:first-of-type {
  display: none;
}

.header .container .navbar ul li.image {
  display: none;
}

@media (max-width: 767px) {
  .header .container .navbar {
    opacity: 0;
    display: none;
    visibility: hidden;
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .header .container .navbar.show {
    opacity: 1;
    display: block;
    visibility: visible;
  }

  .header .container .navbar ul {
    flex-direction: column;
    max-width: 85%;
    background-color: white;
    min-height: 100vh;
    padding-top: 100px;
    gap: 0;
    position: relative;
  }

  @keyframes open-slide-sidebar {
    0% {
      opacity: 0;
      left: -100%;
    }
    100% {
      opacity: 1;
      left: 0;
    }
  }

  .header .container .navbar ul.show {
    animation: open-slide-sidebar 1s forwards;
  }

  .header .container .navbar ul li:first-of-type {
    display: block;
    position: absolute;
    color: black;
    right: 20px;
    top: 20px;
    font-size: 40px;
  }

  .header .container .navbar ul li.image {
    display: block;
  }

  .header .container .navbar ul li.image img {
    width: 40px;
    max-width: 100%;
    position: absolute;
    top: 20px;
    left: 10px;
  }

  .header .container .navbar ul li:last-of-type a {
    position: absolute;
    z-index: 10;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    background-color: var(--orange-color);
    width: 80%;
  }
}

.header .container .navbar ul li a {
  display: block;
  padding: 15px;
  color: #777;
  font-weight: 600;
  transition: 0.3s;
  font-size: 18px;
}

@media (max-width: 991px) {
  .header .container .navbar ul li a {
    color: white;
  }
}

@media (max-width: 767px) {
  .header .container .navbar ul li:not(:first-child) {
    width: 100%;
  }

  .header .container .navbar ul li a {
    color: black;
    padding: 30px 10px;
  }
}

.header .container .navbar ul li a:hover {
  color: var(--orange-color);
}

@keyframes click {
  0%,
  100% {
    scale: 1;
  }

  80% {
    scale: 0.9;
  }
}

header.header .container .navbar ul li a:active {
  animation: click 0.5s forwards;
}

header.header .container .navbar ul li:last-of-type {
  background-color: orangered;
  border-radius: 5px;
  transition: 0.3s;
}

header.header .container .navbar ul li:hover:last-of-type {
  background-color: rgb(248, 96, 40);
}

header.header .container .navbar ul li:last-of-type a {
  color: white;
  padding: 10px;
}
/* End Header */

/* Start Landing */
.landing {
  height: 100vh;
  background-image: url(../assest/landing.png);
  background-size: cover;
  background-color: #eae2d5;
  background-position: center top;
}

@media (max-width: 991px) {
  .landing {
    background-position: 700px;
  }

  .landing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
  }
}

@media (max-width: 767px) {
  .landing {
    background-position: 600px;
  }
}

.landing .container {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 991px) {
  .landing .container {
    text-align: center;
  }
}

.landing .container h1 {
  font-size: 50px;
}

@media (max-width: 991px) {
  .landing .container h1 {
    color: white;
  }
}

.landing .container p {
  margin-top: 20px;
  font-size: 25px;
  max-width: 450px;
  line-height: 1.6;
  color: #686666;
}

@media (max-width: 991px) {
  .landing .container p {
    color: white;
    margin: 20px auto 0;
  }
}

.landing .container .btns {
  max-width: 450px;
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 30px;
}

@media (max-width: 991px) {
  .landing .container .btns {
    max-width: 100%;
    justify-content: center;
  }
}

.landing .container .btns a {
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  outline: none;
  border: none;
  transition: box-shadow 0.3s ease, transform 1s ease;
}

.landing .container .btns a:hover {
  box-shadow: 0 0 10px rgba(128, 128, 128, 0.6);
}

.landing .container .btns a:active {
  transform: translateY(-10px);
}

.landing .container .btns a:first-of-type {
  background-color: orangered;
  color: white;
}

.landing .container .btns a:last-of-type {
  background-color: white;
  color: orangered;
}
/* End Landing */

/* Start Books Section */
.all-books {
  padding: 50px 0 100px;
}

.trending:first-of-type {
  margin-bottom: 80px;
}

.trending .trend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.trending .trend-header h3 {
  font-size: 40px;
  font-weight: bold;
  color: var(--orange-color);
}

.trending .trend-header a {
  font-size: 20px;
  color: var(--orange-color);
  cursor: pointer;
  transition: color 0.3s;
}

.trending .trend-header a:hover {
  color: #0056b3;
}

/* Book Row Styling */
.books-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.book {
  text-align: center;
}

.book .image {
  padding: 25px;
  background-color: var(--landing-background-color);
}

.book img {
  max-width: 100%;
  max-height: 300px;
  border: 3px solid var(--orange-color);
  background-color: var(--landing-background-color);
}

.book .info {
  padding: 20px;
  background-color: rgba(197, 197, 197, 0.1);
}

.book h5 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.book p {
  font-size: 16px;
  color: #777;
  margin-bottom: 8px;
}

.book .status {
  display: block;
  font-size: 14px;
  color: #f00;
  margin-bottom: 8px;
  cursor: pointer;
}

.book .rating {
  display: block;
  font-size: 14px;
  color: #007bff;
}

.book .info > button {
  all: unset;
  display: block;
  margin: 15px auto 5px;
  background-color: var(--orange-color);
  color: white;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}
/* End Books Section */

/* start Contact Section */
.contact-section {
  padding: 100px 0;
}

.contact-section .container {
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .contact-section .contact-header {
    text-align: center;
  }
}

.contact-section .contact-header h2 {
  font-size: 45px;
  color: var(--orange-color);
  font-weight: bold;
  margin-bottom: 20px;
}

.contact-section .contact-header p {
  font-size: 18px;
  color: #555;
  margin-bottom: 50px;
  line-height: 1.6;
}

.contact-section .contact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-section .contact-form {
  flex: 1;
  max-width: 600px;
}
.contact-section .contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-section .form-group {
  display: flex;
  flex-direction: column;
}

.contact-section .form-group label {
  font-size: 18px;
  font-weight: bold;
  color: var(--orange-color);
  margin-bottom: 10px;
}

.contact-section .form-group textarea {
  resize: none;
}

.contact-section .form-group input,
.contact-section .form-group textarea {
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}
.contact-section .form-group input:focus,
.contact-section .form-group textarea:focus {
  border-color: var(--orange-color);
}
.contact-section .submit-btn {
  padding: 12px 30px;
  background-color: var(--orange-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.contact-section .submit-btn:hover {
  background-color: #ff7f00;
  transform: scale(1.05);
}
.contact-section .contact-info {
  flex: 1;
  max-width: 500px;
}
.contact-section .info-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.contact-section .info-box i {
  font-size: 24px;
  color: var(--orange-color);
}
.contact-section .info-box p {
  font-size: 18px;
  color: #333;
}
.contact-section .social-icons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}
.contact-section .social-icons a {
  font-size: 24px;
  color: var(--orange-color);
  transition: color 0.3s ease, transform 0.2s ease;
}

.contact-section .social-icons a:hover {
  color: #ff7f00;
  transform: scale(1.1);
}
/* End Contact Section */

/* Start Review */
.review {
  padding: 100px 0;
  background-color: var(--landing-background-color);
}

.review .container > h2 {
  font-size: 45px;
  color: var(--orange-color);
  font-weight: bold;
  margin-bottom: 20px;
}

.review .container .boxes-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 50px;
}

.review .container .box .feedback {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  opacity: 1;
  transition: 1s ease;
}

.review .container .box .feedback::before {
  content: "";
  position: absolute;
  bottom: -57px;
  left: 25px;
  border-width: 30px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

.review .container .box .feedback p {
  line-height: 1.6;
  color: #777;
}

.review .container .box .feedback .rate-icon {
  margin-top: 20px;
  color: goldenrod;
}

.review .container .box .person {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 20px;
  transition: 1s ease;
}

.review .container .box .person .image {
  box-shadow: 0 0 10px black;
  border-radius: 50%;
  width: 70px;
}

.review .container .box .person .image > img {
  max-width: 100%;
  border-radius: 50%;
  border: 2px solid black;
  outline: 5px solid white;
}

.review .container .box .person .information p {
  margin-top: 20px;
  color: var(--yellow-color);
}
/* End Review */

/* Start Footer */
.footer {
  padding: 70px 0 0;
  background-color: #191919;
  color: white;
}

.footer .cols-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

@media (max-width: 767px) {
  .footer .cols-container .col-one {
    text-align: center;
  }
}

.footer .cols-container .col-one h3 {
  font-size: 40px;
}

.footer .cols-container .col-one .icons {
  margin: 20px 0;
  display: flex;
  gap: 10px;
}

@media (max-width: 767px) {
  .footer .cols-container .col-one .icons {
    width: 100%;
    justify-content: center;
  }
}

.footer .cols-container .col-one .icons i {
  padding: 20px;
  background-color: #313131;
  color: #b9b9b9;
  cursor: pointer;
  transition: 0.3s;
}

.footer .cols-container .col-one .icons i.fa-facebook-f:hover {
  background-color: #1877f2;
}

.footer .cols-container .col-one .icons i.fa-twitter:hover {
  background-color: #1da1f2;
}

.footer .cols-container .col-one .icons i.fa-youtube:hover {
  background-color: #ff0000;
}

.footer .cols-container .col-one p {
  color: #b9b9b9;
  line-height: 2;
  font-size: 16px;
}

.footer .cols-container .col-two ul li:not(:last-child) {
  border-bottom: 1px solid #b9b9b9;
}

.footer .cols-container .col-two ul li a {
  display: block;
  padding: 15px 0;
  color: #b9b9b9;
  transition: 0.3s;
}

@media (max-width: 767px) {
  .footer .cols-container .col-two ul li a {
    text-align: center;
  }
}

.footer .cols-container .col-two ul li a:hover {
  color: white;
  margin-left: 10px;
}

.footer .cols-container .col-two ul li a i {
  color: var(--main-color);
  margin-right: 10px;
  font-size: 14px;
}

.footer .cols-container .col-three {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.footer .cols-container .col-three .info {
  display: flex;
  align-items: center;
  line-height: 1.6;
  color: #b9b9b9;
}

@media (max-width: 767px) {
  .footer .cols-container .col-three .info {
    flex-direction: column;
  }
}

.footer .cols-container .col-three .info i {
  color: var(--main-color);
  font-size: 25px;
  margin-right: 10px;
}

@media (max-width: 767px) {
  .footer .cols-container .col-three .info i {
    margin-bottom: 20px;
  }
}

.footer .foot {
  text-align: center;
  margin-top: 50px;
  padding: 30px 0;
  border-top: 1px solid #b9b9b9;
}
/* End Footer */
