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

@import url('https://fonts.googleapis.com/css2?family=Edu+AU+VIC+WA+NT+Arrows:wght@400..700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Quicksand:wght@300..700&display=swap');

/* =====================================
    Variables
========================================= */
  
:root {
  --primary-bg-color: #fbf3e6;
  --secondary-bg-color: #ffffff;
  --btn-color: #aa976f;
  --btn-color-hover: #a99e88;
  --transition: all 0.3s ease-in-out;
  --spacing: 0.25rem;
  --radius: 0.5rem;
  --ff-color-1: rgb(35, 35, 35);
  --ff-color-2: rgba(58, 57, 57, 0.925);
}

/* =====================================
    Global Styles
========================================= */
html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: black;
}
.primary-btn {
  width: 150px;
  padding: 0.85rem;
  border: none;
  border-radius: 10000px;
  background-color: var(--btn-color);
  margin: 20px;
  margin-bottom: 10px;
  color: #ffffff;
  border: 2px solid var(--btn-color);
  transition: var(--transition);
}
.primary-btn:hover {
  background-color: var(--secondary-bg-color);
  color: var(--btn-color);
}
.secondary-btn {
  width: 150px;
  padding: 0.85rem;
  border: none;
  border-radius: 10000px;
  background-color: var(--secondary-bg-color);
  margin: 20px;
  margin-bottom: 10px;
  color: var(--btn-color);
  border: 2px solid var(--btn-color);
  transition: var(--transition);
}
.secondary-btn:hover {
  background-color: var(--btn-color);
  color: #ffffff;
}

img {
  object-fit: cover;
  max-width: 100%;
  max-height: 100%;
  border-radius: 5px;
}
i {
  object-fit: cover;
}
p {
  font-family: 'Quicksand', sans-serif;
}
h1,
h2,
h3,
h4 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  font-style: normal;
}
/* =====================================
    NavBar
========================================= */

.nav-cont {
  position: fixed;
  z-index: 2;
  display: flex;
  background-color: #ffffffae;
  width: 100%;
  justify-content: space-around;
  padding: 10px 0px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}
.logo {
  align-self: center;
  color: var(--btn-color);
}
.nav-items ul {
  display: flex;
  gap: 20px;
  padding: 10px;
  list-style-type: none;
}

li a {
  border-bottom: 2px solid var(--secondary-bg-color);
  cursor: pointer;
}
li a:hover {
  color: var(--btn-color);
  border-bottom: 2px solid var(--btn-color);
}

@media screen and (max-width: 735px) {
  .nav-cont {
    position: static;
    flex-direction: column;
    gap: 20px;
  }
  .nav-items ul {
    flex-direction: column;
    align-items: center;
  }
}

/* =====================================
    Hero Section
========================================= */

header {
  background-color: var(--primary-bg-color);
  display: flex;
  align-items: center;
  height: 100vh;
  padding: 100px;
  position: relative;
}
.h-img-cont {
  width: 400px;
}
.hero-content h1 {
  letter-spacing: var(--spacing);
  color: var(--ff-color-1);
  margin-bottom: 1rem;
  font-family: 'Edu AU VIC WA NT Arrows', cursive;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}
.hero-content p {
  font-size: 1rem;
  color: var(--ff-color-2);
  margin-bottom: 1rem;
  font-family: 'Quicksand', sans-serif;
}
.cont-1 {
  translate: 75px;
}
.cont-2 {
  translate: 75px -160px;
}

@media screen and (max-width: 1200px) {
  h1 {
    font-size: 3.5rem;
  }
  .cont-2 {
    display: none;
  }
  .cont-1{
    height: 300px;
  }
}
@media screen and (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  .cont-2 {
    display: none;
  }
  header {
    flex-direction: column;
    padding: 50px;
  }
  .h-img-cont {
    width: 200px;
  }
  .cont-1 {
    translate: 0px;
  }
  .hero-content .primary-btn,
  .secondary-btn {
    margin: 10px;
    margin-left: 0px;
  }
}

/* =====================================
    Section 1
========================================= */
.section-1 {
  background-color: var(--secondary-bg-color);
}
.sec-1-cont {
  display: flex;
  margin: auto;
  background-color: var(--secondary-bg-color);
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  justify-content: space-evenly;
  flex-wrap: nowrap;
}

.sec-1-box {
  min-width: 250px;
  background-color: var(--secondary-bg-color);
  padding: 20px;
  text-align: center;
  align-items: center;
}

.l-cont {
  font-size: 2rem;
  color: var(--btn-color);
  margin-bottom: 10px;
}

.sec-1-title {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 20px;
}

.sec-1-content {
  margin-top: 10px;
  font-size: 0.825rem;
  color: var(--ff-color-2);
}

.divider {
  height: 100px;
  background-color: var(--btn-color);
  width: 2px;
  align-self: center;
  border-radius: 50px;
}
@media screen and (max-width: 935px) {
  .sec-1-cont {
    flex-wrap: wrap;
  }
  .divider {
    display: none;
  }
}

/* =====================================
    Science Book Section
========================================= */

.sc-books-section {
  padding: 40px 20px;
  background-color: var(--primary-bg-color);
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}

.section-subtitle {
  font-size: 1rem;
  margin-bottom: 40px;
}

.sc-books-cont {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.sc-book-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 300px;
  text-align: left;
  transition: var(--transition);
}

.sc-book-card:hover {
  transform: scale(1.05);
}

.img-cont {
  height: 200px;
  width: 60%;
  margin: auto;
  margin-bottom: 30px;
}

.book-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--ff-color-1);
}

.book-author {
  font-style: italic;
  color: var(--ff-color-1);
  margin-bottom: 20px;
}

.book-summary {
  font-size: 0.95rem;
  color: var(--ff-color-2);
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .books-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .book-card {
    max-width: 45%;
  }
}

/* =====================================
    Science Book Section
========================================= */

.fr-books-section {
  padding: 40px 20px;
  background-color: var(--secondary-bg-color);
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}

.section-subtitle {
  font-size: 1rem;
  margin-bottom: 40px;
}

.fr-books-cont {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.fr-book-card {
  background-color: var(--primary-bg-color);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 300px;
  text-align: left;
  transition: var(--transition);
}

.fr-book-card:hover {
  transform: scale(1.05);
}

.img-cont {
  height: 200px;
  width: 60%;
  margin: auto;
  margin-bottom: 30px;
}

.book-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--ff-color-1);
}

.book-author {
  font-style: italic;
  color: var(--ff-color-1);
  margin-bottom: 20px;
}

.book-summary {
  font-size: 0.95rem;
  color: var(--ff-color-2);
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .books-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .book-card {
    max-width: 45%;
  }
}

/* =====================================
    Science Book Section
========================================= */

.about-section {
  padding: 60px 20px;
  background-color: var(--primary-bg-color);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.about-content {
  width: 50%;
  min-width: 280px;
}

.about-content h2 {
  font-size: 2rem;
  color: var(--ff-color-1);
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1rem;
  color: var(--ff-color-2);
  line-height: 1.6;
  margin-bottom: 15px;
}

@media (max-width: 925px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    margin: 0 auto;
  }

  .about-content h2 {
    font-size: 1.6rem;
  }

  .about-content p {
    font-size: 0.95rem;
  }
}

/* =====================================
    Science Book Section
========================================= */
.footer {
  background-color: #1e293b;
  color: #f1f5f9;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-cont {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
}

.footer-about h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-contact h4,
.footer-social h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-bg-color);
}

.footer-contact p,
.footer-about p {
  margin-bottom: 8px;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-link {
  color: #f1f5f9;
  text-decoration: none;
  transition: var(--transition);
}
.social-icons i {
  text-align: center;
  color: var(--secondary-bg-color);
}

.social-icons i:hover {
  color: var(--btn-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #334155;
  padding-top: 15px;
  color: #94a3b8;
}
