@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
    padding-top: 70px; /* offset for fixed navbar */
    margin: 0;
    background: #fff;
    font-family: 'Inter', Arial, sans-serif;
}
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center; /* Center all content horizontally */
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  padding: 1.1rem 5vw;
  z-index: 2000;
  box-sizing: border-box;
  min-height: 70px;
  box-shadow: 0 4px 24px rgba(6,193,103,0.07), 0 1.5px 6px rgba(0,0,0,0.04);
  border-radius: 0 0 1.2rem 1.2rem;
}
.navbar-logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #06C167;
  letter-spacing: 1.5px;
  margin-right: 2.5rem;
  background: linear-gradient(90deg, #06C167 60%, #0fd850 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-hamburger {
  position: absolute;
  right: 2vw;
  top: 50%;
  transform: translateY(-50%);
}
.navbar-links {
  list-style: none;
  display: flex;
  gap: 2.8rem;
  margin: 0;
  padding: 0;
  align-items: center;
  background: rgba(255,255,255,0.7);
  border-radius: 2rem;
  box-shadow: 0 2px 12px rgba(6,193,103,0.07);
  padding: 0.3rem 2.2rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.navbar-links li {
  display: inline-block;
}
.navbar-links a {
  text-decoration: none;
  color: #222;
  font-size: 1.13rem;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
  padding: 0.6rem 1.1rem;
  border-radius: 1.2rem;
  letter-spacing: 0.2px;
}
.navbar-links a:hover {
  color: #fff;
  background: #06C167;
  box-shadow: 0 2px 8px rgba(6,193,103,0.13);
}
.landing-container {
    display: flex;
    height: calc(100vh - 70px); /* Adjust for new navbar height */
    width: 100vw;
    margin-top: 0;
    background: transparent;
    justify-content: center;
    align-items: center;
    gap: 6vw; /* Add a gap between text and image */
}
.landing-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Move text to the left */
    padding-left: 13vw; /* Slightly less left padding */
    padding-right: 2vw;
    min-height: 0;
}
.landing-text h1 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 4vw;
    font-weight: 700;
    color: #222;
    margin: 0 0 2rem 0;
    line-height: 1.1;
}
.landing-download-btn {
    background: #06C167;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(6,193,103,0.08);
    transition: background 0.2s;
    display: inline-block;
    align-self: flex-start; /* Align button with text */
}
.landing-download-btn:hover {
    background: #04994e;
}
.landing-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    background: transparent;
    margin-right: 0;
    padding-right: 6vw; /* Less space on right */
    padding-left: 2vw;
}
.landing-image img {
    width: 32vw;
    height: 64vh;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    display: block;
}
.how-it-works-section {
    width: 100vw;
    padding: 5rem 0 4rem 0;
    background: #f7f8fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.how-it-works-section h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    letter-spacing: -1px;
}
.how-it-works-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 3vw;
  margin-top: 3rem;
  width: 100%;
  max-width: 1400px;
  box-sizing: border-box;
}
.how-it-works-info {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  max-width: 600px;
  margin-left: 0;
}
.how-block {
  background: #fff;
  border-radius: 1.7rem;
  box-shadow: 0 4px 24px rgba(6,193,103,0.07), 0 1.5px 6px rgba(0,0,0,0.04);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  margin-bottom: 0.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1.5px solid #e6f9f0;
  min-width: 320px;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.how-block:hover {
  box-shadow: 0 8px 32px rgba(6,193,103,0.13), 0 2px 8px rgba(0,0,0,0.07);
  transform: translateY(-4px) scale(1.02);
}
.how-block h3 {
  margin: 0 0 0.7rem 0;
  font-size: 1.5rem;
  color: #06C167;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.how-block p {
  margin: 0;
  color: #333;
  font-size: 1.15rem;
  line-height: 1.6;
}
.how-it-works-video {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 480px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.how-it-works-video video {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(6,193,103,0.07), 0 1.5px 6px rgba(0,0,0,0.04);
  background: #e6f9f0;
  object-fit: cover;
}
/* --- Book Audio Summaries Section --- */
.book-audio-section {
  width: 100%;
  background: none;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-audio-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2.2rem;
  text-align: center;
}

.book-cards-row {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.book-card {
  position: relative;
  background: none;
  border-radius: 1rem;
  padding: 0;
  box-shadow: none;
  flex: 0 0 300px;
  margin: 0;
  transition: box-shadow 0.35s cubic-bezier(.4,2,.6,1), transform 0.35s cubic-bezier(.4,2,.6,1);
}

.book-card:hover {
  box-shadow: 0 0 0 4px #06C16733, 0 8px 24px rgba(6,193,103,0.10);
  transform: translateY(-6px) scale(1.01);
  z-index: 3;
}

.book-card img {
  width: 300px;
  height: 450px;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: box-shadow 0.35s cubic-bezier(.4,2,.6,1), transform 0.35s cubic-bezier(.4,2,.6,1);
}

.book-card:hover img {
  box-shadow: 0 0 0 4px #06C16733, 0 8px 24px rgba(6,193,103,0.10);
  transform: scale(1.01);
}

.book-card .play-btn {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(6,193,103,0.9);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.book-card .play-btn:hover {
  background: #06C167;
  transform: translateX(-50%) scale(1.1);
}

.book-card .play-btn svg {
  width: 2.4rem;
  height: 2.4rem;
}

@media (max-width: 1200px) {
  .how-it-works-content {
    max-width: 100vw;
    gap: 2vw;
    justify-content: center;
    align-items: center;
  }
  .how-it-works-info {
    max-width: 420px;
    align-items: center;
    margin-left: 0;
  }
  .how-it-works-video {
    min-width: 320px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .book-cards-row {
    max-width: 98vw;
    gap: 1.2rem;
  }
  .book-card {
    flex: 0 0 240px;
  }
  .book-card img {
    width: 240px;
    height: 360px;
  }
}

@media (max-width: 1024px) {
  .navbar {
    min-height: 70px;
    padding: 1rem 4vw;
  }
  .landing-container {
    height: calc(100vh - 70px);
    gap: 2vw; /* Adjust gap for tablet */
  }
  .landing-text {
    padding-left: 6vw;
    padding-right: 2vw;
    align-items: flex-start;
  }
  .landing-image {
    padding-right: 0;
    padding-left: 0;
    margin-right: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .book-cards-row {
    gap: 1.2rem;
    max-width: 98vw;
  }
  .book-card {
    flex: 0 0 200px;
  }
  .book-card img {
    width: 200px;
    height: 300px;
  }
  .book-card .play-btn {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(6,193,103,0.07);
  }
  .navbar-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100vw;
    padding: 1.5rem 0 1.5rem 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    display: none;
    z-index: 2050;
    border-radius: 0 0 1.2rem 1.2rem;
  }
  .navbar-links.open {
    display: flex;
  }
  .navbar-links li {
    width: 100%;
    margin-bottom: 1.2rem;
  }
  .navbar-links a {
    font-size: 1.1rem;
    color: #222;
    width: 100%;
    display: block;
    padding: 0.5rem 0;
    border-radius: 1.2rem;
  }
  .landing-container {
    flex-direction: row;
    height: calc(100vh - 70px);
    min-height: unset;
    align-items: stretch;
  }
  .landing-image {
    order: 2;
    justify-content: flex-end;
    margin-right: 170px;
    width: auto;
    margin-top: 0;
  }
  .landing-image img {
    width: 32vw;
    height: 64vh;
    max-width: unset;
    margin: 0;
    display: block;
  }
  .landing-text {
    order: 1;
    align-items: flex-start;
    padding: 0 0 0 6vw;
    text-align: left;
    margin-top: 0;
  }
  .landing-text h1 {
    font-size: 4vw;
    margin-bottom: 2rem;
  }
  .landing-download-btn {
    display: inline-block;
    font-size: 1.3rem;
    padding: 1rem 2.5rem;
    margin-top: 1rem;
  }
}

@media (max-width: 600px) {
  .how-it-works-section {
    padding: 2.5rem 0 2rem 0;
  }
  .how-it-works-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  .how-it-works-content {
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.2rem;
    padding: 0 0.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .how-it-works-info {
    gap: 1.2rem;
    max-width: 100vw;
    width: 100%;
    align-items: center;
    margin-left: 0;
  }
  .how-block {
    padding: 0.7rem 0.5rem 0.7rem 0.5rem;
    font-size: 0.92rem;
    min-width: 0;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1.5px 5px rgba(6,193,103,0.06), 0 0.5px 2px rgba(0,0,0,0.02);
  }
  .how-block h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    text-align: center;
  }
  .how-block p {
    font-size: 0.92rem;
    text-align: center;
  }
  .how-it-works-video {
    width: 100%;
    max-width: 98vw;
    margin: 0.7rem auto 0 auto;
    justify-content: center;
    min-width: 0;
  }
  .how-it-works-video video {
    max-width: 98vw;
    min-width: 0;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(6,193,103,0.07), 0 1px 3px rgba(0,0,0,0.03);
  }
  .book-audio-section {
    padding: 1.5rem 0 1.5rem 0;
  }
  .book-audio-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
  }
  .book-cards-row {
    flex-direction: column;
    gap: 2.2rem;
    align-items: center;
    padding: 0 0.5rem;
    max-width: 100vw;
  }
  .book-card {
    flex: 0 0 120px;
    min-width: 120px;
    max-width: 160px;
    width: 80vw;
    margin: 0 auto;
    padding: 0;
    border-radius: 0.7rem;
  }
  .book-card img {
    width: 120px;
    height: 180px;
    border-radius: 0.7rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  }
  .book-card .play-btn {
    width: 38px;
    height: 38px;
    bottom: 10px;
  }

  /* Section 1: Restore original mobile layout */
  .landing-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    align-items: center;
    gap: 0;
    margin-top: 0;
    width: 100vw;
    justify-content: flex-start;
  }
  .landing-image {
    order: 1;
    margin-top: 1.2rem;
    justify-content: center;
    margin-right: 0;
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
  }
  .landing-image img {
    width: 90vw;
    height: auto;
    max-width: 420px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
  }
  .landing-text {
    order: 2;
    align-items: center;
    padding: 0 4vw;
    text-align: center;
    margin-top: 0;
    width: 100vw;
  }
  .landing-text h1 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    width: 100%;
  }
  .landing-download-btn {
    display: block;
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    margin: 1.7rem auto 0 auto;
    width: 90%;
    max-width: 320px;
    align-self: center;
    text-align: center;
  }

  /* Section 3: Remove 3D hover effect for book cards on mobile */
  .book-card:hover {
    box-shadow: 0 0 0 4px #06C16733, 0 4px 12px rgba(6,193,103,0.10);
    transform: none;
    z-index: 3;
  }
  .book-card:hover img {
    box-shadow: 0 0 0 4px #06C16733, 0 4px 12px rgba(6,193,103,0.10);
    transform: none;
  }
}

@media (max-width: 400px) {
  .book-card {
    min-width: 150px;
    max-width: 180px;
    width: 96vw;
  }
  .book-card img {
    width: 150px;
    height: 210px;
  }
  .book-card .play-btn {
    width: 38px;
    height: 38px;
    bottom: 10px;
  }
}
