
/* Shared Darkiee tokens + selection/focus/scrollbar live in /assets/css/tokens.css */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  transition: all .2s linear;
}
html{
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
section{
  padding: 2rem 9%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  transition: background 0.3s ease, color 0.3s ease;
}

#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--g-brand);
  z-index: 9999; border-radius: 0 2px 2px 0; pointer-events: none;
}

/* navbar starts */
header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 10%;
  height: 6.5rem;
  background: var(--c-nav);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled { box-shadow: var(--c-shadow-sm); }
header .logo{
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--c-text);
}
header .logo i {
  font-size: 2.2rem;
  color: var(--brand-orange-light);
}
header .logo:hover { color: var(--c-accent); }
header .navbar ul{
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .navbar li{
  margin-left: 2.5rem;
}
header .navbar ul li a{
  font-size: 1.57rem;
  color: var(--c-text);
  font-weight: 600;
  letter-spacing: 0.04rem;
  /* constant padding + transparent underline so hover/active never shifts layout */
  padding: .5rem 0;
  border-bottom: .2rem solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
header .navbar ul li a.active,
header .navbar ul li a:hover{
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.nav-right { display: flex; align-items: center; gap: 1rem; }

#theme-toggle {
  background: transparent; border: 1.5px solid var(--c-border);
  border-radius: 50%; width: 3.6rem; height: 3.6rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--c-text); font-size: 1.4rem;
  flex-shrink: 0; transition: all 0.3s ease;
}
#theme-toggle:hover {
  background: var(--c-accent-glow); border-color: var(--c-accent);
  color: var(--c-accent); transform: rotate(20deg) scale(1.05);
}
/* navbar ends */

/* hamburger icon starts */
#menu{
  font-size: 3rem;
  cursor: pointer;
  color: var(--c-text);
  display: none;
  margin-left: 0;
}
@media(max-width:768px){
  #menu{
      display: block;
  }
  header .navbar{
    position: fixed;
    top: 6.5rem; right: -120%;
    width: min(80vw, 30rem);
    height: calc(100vh - 6.5rem);
    height: calc(100dvh - 6.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: left;
    align-items: flex-start;
    background-color: #0a1020;
    z-index: 999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  [data-theme="light"] header .navbar { background-color: #f8fafc; }
  header .navbar ul{
    flex-flow: column;
    padding: 1rem;
    width: 100%;
  }
  header .navbar ul li{
    text-align: center;
    width: 100%;
    margin: .6rem 0;
    border-radius: .5rem;
  }
  header .navbar ul li a{
    display: block;
    padding: 1rem 1.4rem;
    text-align: left;
    color: var(--c-text);
    font-size: 2rem;
    border-left: .4rem solid transparent;
    border-bottom: none;
  }
  header .navbar ul li a.active,
  header .navbar ul li a:hover{
    padding: 1rem 1.4rem;
    border-radius: .5rem;
    border-left: .4rem solid var(--c-accent);
    border-bottom: none;
    background-color: rgba(255,141,40,0.08);
  }
  .fa-times{
    transform: rotate(180deg);
  }
  header .navbar.nav-toggle{
    right: 0;
  }
}
/* hamburger icon ends */

/* shared heading */
.heading{
  font-size: 3.2rem;
  color: var(--c-text);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}
.heading span{
  color: var(--c-accent);
}

/* book hero starts */
.book-hero{
  margin-top: 6.5rem;
  padding-top: 6rem;
  padding-bottom: 5rem;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(247,127,3,0.10), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(139,92,246,0.12), transparent 55%),
    var(--c-bg);
}
.book-hero-inner{
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 5rem;
}
.book-cover{
  flex-shrink: 0;
  position: relative;
}
.book-cover::before{
  content: '';
  position: absolute;
  inset: -1.6rem;
  background: var(--g-brand-diag);
  opacity: 0.25;
  filter: blur(28px);
  border-radius: 2rem;
  z-index: 0;
}
.book-cover img{
  position: relative;
  z-index: 1;
  display: block;
  width: 30rem;
  max-width: 100%;
  height: auto;
  border-radius: .6rem;
  box-shadow: var(--c-shadow-md);
}
.book-info{
  flex: 1;
}
.book-tagline{
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--g-brand);
  padding: .5rem 1.4rem;
  border-radius: 9999px;
  margin-bottom: 1.8rem;
}
.book-info h1{
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-text);
}
.book-subtitle{
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--c-accent);
  margin: 1rem 0 1.6rem;
}
.book-formats{
  font-size: 1.4rem;
  color: var(--c-muted);
  margin-bottom: 2.8rem;
}
.book-formats i{
  color: var(--c-accent);
  margin-right: .5rem;
}
.book-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.book-btn{
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 3rem;
  border-radius: 9999px;
  font-size: 1.6rem;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s ease;
}
.book-btn i{
  font-size: 1.7rem;
}
.book-btn.primary{
  background: var(--g-brand-diag);
  color: #fff;
  box-shadow: 0 8px 25px rgba(247, 127, 3, 0.3);
}
.book-btn.primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(247, 127, 3, 0.4);
  background: linear-gradient(135deg, #8b5cf6, #ff8d28);
}
.book-btn.secondary{
  background: transparent;
  color: var(--c-text);
  border: 2px solid var(--c-border-strong);
}
.book-btn.secondary:hover{
  transform: translateY(-3px);
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-glow);
}
.book-btn.coming-soon{
  background: var(--c-accent-glow);
  color: var(--c-text);
  border: 2px dashed var(--c-accent);
  cursor: default;
}
.book-btn.coming-soon i{
  color: var(--c-accent);
}
/* book hero ends */

/* blurb section starts */
.book-blurb{
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.book-blurb-inner{
  max-width: 820px;
  margin: 0 auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 2rem;
  padding: 4rem 3.5rem;
  box-shadow: var(--c-shadow-sm);
  position: relative;
  overflow: hidden;
}
.book-blurb-inner::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--g-brand);
}
.book-blurb p{
  font-size: 1.6rem;
  line-height: 1.9;
  color: var(--c-muted);
}
.book-blurb p strong,
.book-blurb p em{
  color: var(--c-text);
}
.book-blurb h3{
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 2.8rem 0 1.6rem;
}
.book-learn-list{
  list-style: none;
}
.book-learn-list li{
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--c-muted);
  padding: .8rem 0;
}
.book-learn-list li i{
  color: var(--c-accent);
  font-size: 1.6rem;
  margin-top: .4rem;
  min-width: 2rem;
  text-align: center;
}
/* blurb section ends */

/* audience section starts */
.book-audience{
  padding-top: 3rem;
  padding-bottom: 5rem;
}
.audience-lead{
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--c-muted);
}
.audience-grid{
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
  gap: 2.4rem;
}
.audience-item{
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 1.6rem;
  padding: 2.8rem 2.4rem;
  text-align: center;
  box-shadow: var(--c-shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.audience-item:hover{
  box-shadow: var(--c-shadow-md);
  transform: translateY(-4px);
  border-color: rgba(255,141,40,0.5);
}
.audience-item i{
  font-size: 3rem;
  background: var(--g-brand-diag);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.4rem;
}
.audience-item h3{
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 1rem;
}
.audience-item p{
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--c-muted);
}
/* audience section ends */

/* author section starts */
.book-author{
  padding-top: 3rem;
  padding-bottom: 6rem;
}
.author-card{
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 2rem;
  padding: 3.5rem;
  box-shadow: var(--c-shadow-sm);
}
.author-card img{
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid transparent;
  background: var(--g-brand-diag) border-box;
  box-shadow: var(--c-shadow-md);
}
.author-bio p{
  font-size: 1.5rem;
  line-height: 1.9;
  color: var(--c-muted);
}
.author-bio p em{
  color: var(--c-text);
}
.author-links{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  margin-top: 1.6rem;
}
.author-link{
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-accent);
}
.author-link:hover i{
  transform: translateX(5px);
}
/* author section ends */

/* back button */
.morebtn{
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}
.morebtn .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1.6rem 3rem;
  border-radius: .5em;
  transition: 0.5s;
  color: #fff;
  background: var(--g-brand-diag);
  box-shadow: 0 5px 15px rgba(247, 127, 3, 0.35);
  text-align: center;
}
.morebtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: 'Nunito', sans-serif;
}
.morebtn .btn i {
  font-size: 1.5rem;
  transition: 0.3s;
}
.morebtn .btn:hover{
  background: linear-gradient(135deg, #8b5cf6, #ff8d28);
}
.morebtn .btn:hover i {
  transform: translateX(-8px);
}

/* footer section starts */
.footer{
  min-height: auto;
  padding-top: 2rem;
  background: var(--c-footer-bg);
}
.footer .box-container{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.footer .box-container .box{
  flex: 1 1 25rem;
  margin: 2rem;
}
.footer .box-container .box h3{
  font-size: 2.5rem;
  color: #fff;
  padding-bottom: 1rem;
  font-weight: normal;
}
.footer .box-container .box p{
  font-size: 1.5rem;
  color: #ccc;
  padding: .7rem 0;
}
.footer .box-container .box p i{
  padding-right: 1rem;
  color: var(--c-accent);
}
.footer .box-container .box a{
  font-size: 1.5rem;
  color: #eee;
  padding: .3rem 0;
  display: block;
}
.footer .box-container .box a:hover{
  color: var(--brand-orange-light);
}
.footer .box-container .box .share{
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
  list-style: none;
}
.footer .box-container .box .share a{
  height: 4rem;
  width: 4rem;
  padding: 1rem;
  text-align: center;
  border-radius: 5rem;
  font-size: 1.7rem;
  margin-right: 1rem;
  transition: .2s;
  background: rgb(230, 230, 230);
  color: #02094b;
  border: none;
}
.footer .box-container .box .share a:hover{
  background: transparent;
  transform: scale(0.98);
  border: .1rem solid rgb(180, 178, 178);
  color: var(--c-accent);
}
.footer .credit{
  padding: 1rem 0 0 0;
  text-align: center;
  font-size: 1.5rem;
  font-family: 'Nunito',sans-serif;
  font-weight: 600;
  color: #fff;
  border-top: .1rem solid #fff3;
}
.footer .credit a{
  color: var(--c-accent);
}
.footer .fa-heart{
    color: #E90606;
    margin: 0 .3rem;
    font-size: 1.5rem;
    animation: pound .35s infinite alternate;
}
@keyframes pound{
  to{
    transform: scale(1.1);
  }
}
/* footer section ends */

/* scroll top starts */
#scroll-top{
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: var(--g-brand-diag);
  color: #ffffff;
  border-radius: 5rem;
  transition: 1s linear;
  z-index: 1000;
}
#scroll-top.active{
  top: calc(100% - 12rem);
}
/* scroll top ends */

/* media queries */
@media(max-width:850px){
  .book-hero-inner{
    flex-direction: column;
    text-align: center;
    gap: 4rem;
  }
  .book-buttons{
    justify-content: center;
  }
  .book-info h1{
    font-size: 3.6rem;
  }
  .author-card{
    flex-direction: column;
    text-align: center;
    padding: 3rem 2.4rem;
  }
  .author-card img{
    width: 14rem;
    height: 14rem;
  }
}
@media(max-width:450px){
  html{
    font-size: 55%;
  }
  section{
    padding: 2rem;
  }
  .book-cover img{
    width: 24rem;
  }
  .book-blurb-inner{
    padding: 3rem 2.2rem;
  }
  .book-btn{
    width: 100%;
    justify-content: center;
  }
  .footer .box-container .box{
    margin: 2rem;
  }
}
