/* Typewriter Effect */
.typewriter {
  display: inline-block;
  border-right: 2px solid var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 4s steps(40, end), blink .8s infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Fade-in */
.fade-text {
  opacity: 0;
  animation: fadeIn 3s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Swirling line */
.swirl {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.swirl svg {
  width: 100%;
  height: 100%;
  stroke: var(--primary-color);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: swirlAnim 6s linear infinite;
}

@keyframes swirlAnim {
  0% { stroke-dashoffset: 600; transform: rotate(0deg); }
  100% { stroke-dashoffset: 0; transform: rotate(360deg); }
}
