:root {
  --bg: #fefaf5;
  --text: #353535;
  --muted: #777;
  --accent1: #ff9e9e;
  --accent2: #ffd66b;
  --accent3: #a3e4db;
  --accent4: #b28dff;
  --nav-h: 70px;
  --maxw: 1200px;
  --radius: 18px;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
}   

/* RESET + BASE */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;

}

.home::before {
  content: "";
  position: fixed;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;

  /*background-image:
    linear-gradient(rgba(254,250,245,0.85), rgba(254,250,245,0.85)),
    url("../assets/Whisk_33fd012aca79a159ed4431a84dda6ec4dr.png");
*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: -1;

  animation: floatBackground 20s ease-in-out infinite;
}


@keyframes floatBackground {
  0% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-70px) scale(1.02);
  }

  100% {
    transform: translateY(0px) scale(1);
  }
}

/* HEADER */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
  max-width: var(--maxw);
  width: 100%;
  padding: 0 50px;
  display: flex;
  align-items: center;
  gap: 0px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: navy;
  margin-right: auto;
}

.nav-list {
  display: flex;
  gap: 10px;
  align-items: right;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 22px 0 18px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  transition: all 0.25s ease;
}

/* HOME */
.nav-item:nth-child(1) {
  background: #b28dff; /* calm story blue */
}

/* ABOUT */
.nav-item:nth-child(2) {
  background: #6fbb79;
}

/* MEET */
.nav-item:nth-child(3) {
  background: #5ccaeb;
}

/* ACTIVITIES */
.nav-item:nth-child(4) {
  background: #da667f;
}

/* PARENTS */
.nav-item:nth-child(5) {
  background: #fbb515;
  color: #333; /* better contrast on yellow */
}

/* EVENTS */
.nav-item:nth-child(6) {
  background: #b28dff;
}

.nav-item:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
}

/* HERO SECTION */
.hero {

display: flex;
align-items: center;
justify-content: center;
gap: 100px;
flex-wrap: wrap;

/* ADD THESE */
min-height: 100vh;
padding-top: calc(var(--nav-h) + 40px);
padding-bottom: 60px;

}

/* BOOK SHELF */
.book-shelf {

order: 2;

display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 30px;

position: relative;
width: 380px;

transform: none;

}

.shelf-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  padding-bottom: 8px;
}
.shelf-row::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 6px;
  background: linear-gradient(to bottom, #e1cfa6 0%, #bda37c 100%);
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.book-card {
  width: 110px;
  height: 160px;
  perspective: 800px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-card img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 2px solid #fff;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.book-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  z-index: 2;
}
.bottom-row {
  justify-content: center;
}

/* FLOATING ANIMATION */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.book-card img {
  animation: float 6s ease-in-out infinite;
}

/* CENTER FEATURE */
.center-feature {
  text-align: center;
  padding: 18px;
}
.center-feature h1 {
  font-size: 2.4rem;
  margin: 24px 0 10px;
  color: #333;
}
.center-feature p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 26px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cover {
  width: 320px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.cover:hover {
  transform: translateY(-6px);
}

.cta-row {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s ease;
}
.btn-primary {
  background: #40E0D0;
  color: white;
}
.btn-primary:hover {
  background: var(--accent2);
}
.btn-ghost {
  background: transparent;
  border: 2px solid #40E0D0;
  color: #333;
}
.btn-ghost:hover {
  background: var(--accent2);
  color: #333;
}

/* SOCIAL ICONS */
.social-icons {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.social-icons img {
  width: 55px;
  height: 55px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.social-icons img:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}

/* RIGHT CHARACTER */
.right-stage {

position: fixed;
bottom: 0;
left: 0;

width: 100%;
height: 200px;
pointer-events: none;
z-index: 999;
}
#character {

position: absolute;
bottom: 20px;
left: -300px;
width: 350px;

transform: scaleX(1);

}




/* FOOTER */
footer {
  margin-top: 0px;
  padding: 40px 20px;
  background: linear-gradient(180deg, #fff, #fafafa);
  border-top: 1px solid rgba(0,0,0,0.04);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-inner a {
  color: var(--accent1);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-inner a:hover {
  color: var(--accent2);
}


/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  #character {
    width: 150px;
  }
}
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 40px;
  }
  .book-shelf {
    order: 2;
  }
  .center-feature {
    order: 1;
  }
  .right-stage {
    display: none;
  }
  header {
    position: sticky;
    top: 0;
  }
}

/*--------------------------------------------------*/
                 /* NEWSLETTER */
.newsletter {
  background: linear-gradient(180deg, #fff, #fef9f5);
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}


.newsletter-inner {
  transform: translateX(-20%);
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  font-size: 1.9rem;
  color: var(--accent1);
  margin-bottom: 14px;
}

.newsletter p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 14px 18px;
  border-radius: 8px;
  border: 2px solid var(--accent3);
  font-size: 1rem;
  width: 60%;
  min-width: 240px;
  outline: none;
  transition: 0.3s ease;
}

.newsletter-form input:focus {
  border-color: var(--accent1);
}

.newsletter-form button {
  background: var(--accent1);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 14px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.newsletter-form button:hover {
  background: #e57e6b;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .newsletter h2 {
    font-size: 1.6rem;
  }
  .newsletter-form input {
    width: 100%;
  }
}
/*--------------------------------------------------*/


/*---------- BRANDING -------------*/


.third-title /*Color for main titles*/ {
  color: #b28dff;
  font-weight: 700;
}
.main-title /*Color for main titles*/ {
  color: #6fbb79;
  font-weight: 700;
}
.second-title /*Color for secondary titles*/ {
  color: #40E0D0;
  font-weight: 700;
}

.brand-name /*Mitti-Me*/ {
  color: navy;
  font-weight: 700;
}
.character-whizz {
  color: #5ccaeb;
  font-weight: 700;
}
.character-tak {
  color: #fbb515;
  font-weight: 700;
}
/* BOOK SHELF TITLE + BUTTON */
.shelf-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 0px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.05);
  animation: fadeIn 1s ease-out;
}

.shelf-button {
  display: inline-block;
  margin-bottom: 25px;
  background: #40E0D0;
  color: #333;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.shelf-button:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

/* subtle fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/*--------------------------------------------------*/

/*--------------------------------------------------*/
/* REUSABLE FADE-IN ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease-out forwards;
}

/* optional delay variations for staggering */
.fade-in.delay-1 { animation-delay: 0.3s; }
.fade-in.delay-2 { animation-delay: 0.6s; }
.fade-in.delay-3 { animation-delay: 0.9s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/*--------------------------------------------------*/




