/* Base layout - warm, gentle */
body {
  font-family: Georgia, "Times New Roman", serif;
  max-width: 620px;
  margin: 0 auto;
  padding: 2rem;
  background: #f5f0e8;
  min-height: 100vh;
  color: #3d3630;
}

.page-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #5c5248;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.demo-section {
  margin-bottom: 3rem;
  padding: 1.5rem;
  border: 1px solid #d4c8b8;
  border-radius: 12px;
  background: #fdfbf7;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.demo-section:hover {
  border-color: #c4b8a8;
  box-shadow: 0 4px 20px rgba(92, 82, 72, 0.08);
}

.demo-section h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #6b5d52;
  font-weight: 600;
}

.section-desc {
  color: #7a6f64;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}


.rollover-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  background: #b8724b;
  color: #fdfbf7;
  cursor: pointer;
  box-shadow: 0 4px 0 #8b5a38;
  font-family: inherit;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
  background 0.3s, box-shadow 0.25s;
}

.rollover-btn:hover {
  transform: scale(1.25) rotate(-3deg);
  background: #7d8b6f;
  box-shadow: 0 6px 0 #5c684c, 0 8px 20px rgba(93, 107, 79, 0.25);
}


.rollover-link {
  position: relative;
  color: #8b5a38;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, color 0.3s;
}

.rollover-link:hover {
  color: #6b7b5c;
}

.rollover-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 3px;
  width: 0;
  background: #7d8b6f;
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rollover-link:hover::after {
  width: 100%;
}


.img-hover {
  display: inline-block;
  overflow: hidden;
  border-radius: 8px;
  line-height: 0;
  padding: 6px;
  background: #ebe6dc;
}


.img-hover img {
  display: block;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.5s, box-shadow 0.5s;
}

.img-hover:hover img {
  transform: scale(1.25) rotate(5deg);

}

.section-text-demo .text-effect {
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #6b5d52;
}

.section-text-demo:hover .text-effect {
  opacity: 1;
  transform: translateY(0) scale(1.1);
  animation: textWobble 0.6s ease;
}

@keyframes textWobble {
  0%, 100% { transform: translateY(0) scale(1.1) rotate(0deg); }
  25% { transform: translateY(0) scale(1.15) rotate(-3deg); }
  50% { transform: translateY(0) scale(1.15) rotate(3deg); }
  75% { transform: translateY(0) scale(1.12) rotate(-1deg); }
}

.anim-dots {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.anim-dots .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #b8724b;
  animation: dotBounce 0.6s ease-in-out infinite;
}

.anim-dots .dot:nth-child(1) { animation-delay: 0s; }
.anim-dots .dot:nth-child(2) { animation-delay: 0.15s; }
.anim-dots .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotBounce {
  0%, 100% {
    transform: translateY(0) scale(0.8);
    opacity: 1;
  }
  50% {
    transform: translateY(-24px) scale(1.3);
    opacity: 0.6;
  }
}
