/* Circle shape fixes for both mobile and web versions */
/* Profile rainbow ring fix - applies to all screen sizes */
.rainbow-ring {
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  opacity: 1 !important;
  animation: mustard-spin 8s linear infinite !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background: conic-gradient(from 0deg, #DAA520 0%, #B8860B 12.5%, #000000 25%, #B8860B 37.5%, #DAA520 50%, #B8860B 62.5%, #000000 75%, #B8860B 87.5%, #DAA520 100%) !important;
  border: 3px solid transparent !important;
}

.rainbow-ring::before {
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  z-index: 1 !important;
}

/* Profile image wrapper fix - applies to all screen sizes */
.profile-image-wrapper {
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 2 !important;
}

.profile-image {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  z-index: 3 !important;
  display: block !important;
}

/* Web version specific adjustments */
@media screen and (min-width: 769px) {
  .rainbow-ring {
    width: calc(100% + 24px) !important;
    height: calc(100% + 24px) !important;
    top: -12px !important;
    left: -12px !important;
  }
}

/* Mobile version specific adjustments */
@media screen and (max-width: 768px) {
  .rainbow-ring {
    width: calc(100% + 20px) !important;
    height: calc(100% + 20px) !important;
    top: -10px !important;
    left: -10px !important;
  }
  
  .rainbow-ring::before {
    top: 2px !important;
    left: 2px !important;
    right: 2px !important;
    bottom: 2px !important;
  }
}

@media screen and (max-width: 480px) {
  .rainbow-ring {
    width: calc(100% + 16px) !important;
    height: calc(100% + 16px) !important;
    top: -8px !important;
    left: -8px !important;
  }
}

/* Timeline nodes - applies to all screen sizes */
.about-timeline-node,
.about-timeline-node-inner,
.about-timeline-node-pulse,
.timeline-node,
.timeline-node-inner,
.timeline-node-pulse {
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

/* Any other circular elements - applies to all screen sizes */
.w-16.h-16.border-2,
.w-14.h-14.border,
.w-12.h-12.border {
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

/* Floating elements circles - applies to all screen sizes */
.absolute .w-16,
.absolute .w-14,
.absolute .w-12 {
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

@keyframes mustard-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}