.type-rotator {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .85em;
  margin-top: .5rem;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(96, 165, 250, .15), rgba(6, 182, 212, .10));
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--primary-deep);
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
}

.type-rotator::before {
  content: '>';
  margin-right: .5rem;
  color: var(--accent);
  font-weight: 700;
}

.type-rotator .cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--primary);
  margin-left: 2px;
  animation: blink-c .9s steps(1) infinite;
}

@keyframes blink-c {
  50% {
    opacity: 0;
  }
}


.spotlight-halo {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  background: radial-gradient(circle,
      rgba(96, 165, 250, .18) 0%,
      rgba(96, 165, 250, .08) 30%,
      transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity .4s ease;
  mix-blend-mode: multiply;
  opacity: 0;
}

[data-theme="dark"] .spotlight-halo {
  mix-blend-mode: screen;
  opacity: 1;
}

.spotlight-halo.on {
  opacity: 1;
}

@media (max-width: 900px) {
  .spotlight-halo {
    display: none;
  }
}


.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: radial-gradient(circle, rgba(59, 130, 246, .5), rgba(59, 130, 246, 0) 70%);
  pointer-events: none;
  animation: rip-anim .7s ease-out forwards;
}

@keyframes rip-anim {
  to {
    transform: scale(3.5);
    opacity: 0;
  }
}


.skill-globe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 320px;
  margin: 0 auto;
}

.skill-globe-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.skill-globe-wrap.dragging canvas {
  cursor: grabbing;
}

.skill-globe-tooltip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  padding: .35rem .8rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--primary-deep);
  pointer-events: none;
  white-space: nowrap;
  opacity: .8;
}


.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: white;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .85rem;
  box-shadow: 0 20px 50px rgba(30, 64, 175, .35);
  z-index: 9990;
  opacity: 0;
  transition: all .5s cubic-bezier(.22, .61, .36, 1);
  display: flex;
  align-items: center;
  gap: .6rem;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast i {
  font-size: 1rem;
}


.section {
  position: relative;
}

.section-spotlight {
  position: absolute;
  pointer-events: none;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, .10), transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 0;
}

.section:hover .section-spotlight {
  opacity: 1;
}


.contact-form .field input:focus,
.contact-form .field textarea:focus {
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .15);
}