* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body {
    font-family: Arial, sans-serif;
    background-color: whitesmoke;
}

.navbar {
    width: 100%;
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5%;
    background-color: #1a252f;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 25px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.nav-links a:hover {
    color: grey;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
}


@media (max-width: 768px) {

    .menu-icon {
        display: block;
        color: white;
        font-size: 30px;
        cursor: pointer;
    }

    .nav-links {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;
        align-items: center;

        gap: 0;

        background-color:  #1a252f;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 20px;
    }

    #menu-toggle:checked ~ .nav-links {
        display: flex;
    }
}
.hero{
  height: 550px;
  background-image: url(jaymantri-bookshelf-413705_1920.jpg);
  background-size: cover;
  background-position: center;
  

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: seashell;
  text-align: center;
  font-size: 50px;
}


.cta-btn {
    background-color: #3498db;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #2980b9;
}

/* --- Category Layouts --- */
.category-section {
    padding: 60px 10%;
}

/* Alternating background colors for sections */
#scifi {
    background-color: #edf2f7;
}

.section-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.section-subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* --- Card Grid (Flexbox Architecture) --- */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

/* --- Individual Book Cards --- */
.book-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    flex: 1 1 calc(33.333% - 25px); 
    min-width: 280px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.book-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.book-badge {
    align-self: flex-start;
    background-color: #e1f5fe;
    color: #0288d1;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.book-card h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 5px;
}

.author {
    font-style: italic;
    color: #e67e22;
    font-weight: 500;
    margin-bottom: 15px;
}

.description {
    color: #636e72;
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1; 
}

.download-link {
    display: inline-block;
    text-align: center;
    background-color: #2ecc71;
    color: #ffffff;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.download-link:hover {
    background-color: #27ae60;
}

/* --- Footer --- */
footer {
    background-color: #1a252f;
    color: #7f8c8d;
    text-align: center;
    padding: 30px;
    font-size: 14px;
    margin-top: 40px;
}
.header{
    justify-content: space-between;
   align-items: center;
   background-color: #1a252f;
   padding: 10px 10px;
   color: white;
   text-align: center;
}
.info-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  width: 250px;
}
.info-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: gray;
}
.info-card a {
  text-decoration: none;
  color: #333;
}
.info-card a:hover {
  color: black;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 30px 20px;
  background-color: #ffffff;
}
.container {
  display: flex;
  align-items: center;
  gap: 20px;           
}  


.text-content {
  flex: 1;
  width:200px;
  height: 250px;   
  margin-right: 50px;  
  font-style: arial;   
  padding: 20px 10px;
  line-height: 1.4;
}
.book img {
  max-width: 50%;     
  height: auto;    
  margin-left: 200px; 
  margin-top: 100px;   
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
  background: whitesmoke;
}
.header{
    justify-content: space-between;
   align-items: center;
   background: linear-gradient( #1a252f);
   padding: 10px 20px;
   color: white;
   text-align: center;
}
.info-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  width: 250px;
}
.info-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: black;
}
.info-card a {
  text-decoration: none;
  color: #333;
}
.info-card a:hover {
  color: gray;
}

/* Contact Form */
.contact-form {
  padding: 50px 20px;
  text-align: center;
}
.contact-form h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}
form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
input, textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}
button {
  background: #1a252f;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover {
  background: grey;
}
/* Footer */
footer {
  background: #111827;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
}