.logo-book {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  text-decoration: none;
  color: #ffffff;
  user-select: none;
}

.book {
  position: relative;
  width: 42px;
  height: 42px;
  perspective: 800px;
}

.left-page,
.right-page {
  position: absolute;
  width: 50%;
  height: 100%;
  border: 2px solid #1e3a8a; /* Deep blue outline */
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.left-page {
  left: 0;
  z-index: 1;
  background: #1d4ed8; /* Blue */
}

.right-page {
  right: 0;
  background: #2563eb; /* Lighter blue */
  overflow: hidden;
}

.flip-page {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #3b82f6;
  transform-origin: left;
  transform: rotateY(0deg);
  animation: none;
}

.logo-book:hover .flip-page {
  animation: flipLoop 1s linear infinite;
}

@keyframes flipLoop {
  0%   { transform: rotateY(0deg); }
  50%  { transform: rotateY(-160deg); }
  100% { transform: rotateY(0deg); }
}

.logo-text {
  line-height: 1;
  color: #fafafa;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
