:root {
  /* soft gradient palette */
  --c1: #c8b3ee;  /* lavender */
  --c2: #9bc6b0;  /* mint */
  --c3: #f9e2ae;  /* peach */
  --c4: #f5c6aa;  /* light coral */
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 2rem;
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #fafafa;
  text-align: center;
  line-height: 1.5;
}

/* Animated Box */
div {
  width: 200px;
  height: 200px;
  margin: 2rem auto;
  background: var(--c1);
  outline: none;
  will-change: transform, border-radius, background;
  animation: squareToCircle 2s cubic-bezier(1, .015, .295, 1.225) 1s infinite alternate both;
  
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@keyframes squareToCircle {
  0% {
    border-radius: 0;
    background: var(--c1);
    transform: rotate(0deg);
  }
  25% {
    border-radius: 50% 0 0 0;
    background: var(--c2);
    transform: rotate(45deg);
  }
  50% {
    border-radius: 50% 50% 0 0;
    background: var(--c3);
    transform: rotate(90deg);
  }
  75% {
    border-radius: 50% 50% 50% 0;
    background: var(--c4);
    transform: rotate(135deg);
  }
  100% {
    border-radius: 50%;
    background: var(--c2);
    transform: rotate(180deg);
  }
}

/* Footer */
footer {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: #666;
}
