/* ============================================
   REGISTER GRADIENT ANGLE — Animatable @property
   ============================================ */
@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ============================================
   PROFILE IMAGE — Multi-Color Ring & Glow
   ============================================ */
.profile-image-wrapper {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto;
}

/* ——— Rotating Multi-Color Border Ring ——— */
.profile-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from var(--gradient-angle, 0deg),
    #E11D48,  /* rose */
    #F59E0B,  /* amber */
    #EC4899,  /* pink */
    #E11D48,  /* rose */
    #8B5CF6,  /* violet */
    #F59E0B,  /* amber */
    #E11D48   /* rose */
  );
  animation: spin-ring 3.5s linear infinite;
  z-index: 0;
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 2px));
}

/* ——— Soft Outer Glow ——— */
.profile-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.1) 0%, rgba(245, 158, 11, 0.05) 40%, transparent 70%);
  filter: blur(16px);
  z-index: -1;
  opacity: 0.6;
  animation: breathe-glow 3s ease-in-out infinite;
}

@keyframes spin-ring {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile: transform-rotate works for circles */
/* Desktop (769px+): uses spin-gradient instead — animates gradient angle, not transform */
@keyframes spin-gradient {
  0%   { --gradient-angle: 0deg;   }
  100% { --gradient-angle: 360deg; }
}

@keyframes breathe-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.12); }
}

/* ——— The Image ——— */
.profile-image {
  position: relative;
  width: 128px;
  height: 128px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  z-index: 1;
  border: 2px solid var(--bg-primary);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Image fallback */
.profile-image-fallback {
  display: none;
}

/* ============================================
   PROFILE IMAGE — HOVER
   ============================================ */
.profile-image-wrapper:hover::before {
  animation-duration: 1.5s;
  filter: brightness(1.3) saturate(1.2);
  inset: -5px;
}

.profile-image-wrapper:hover::after {
  opacity: 1;
  transform: scale(1.25);
  filter: blur(20px);
}

.profile-image-wrapper:hover .profile-image {
  transform: scale(1.1);
  box-shadow: 0 8px 32px var(--shadow);
}

/* ============================================
   PROFILE IMAGE — REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .profile-image-wrapper::before {
    animation: none;
    inset: -3px;
    opacity: 0.55;
    filter: none;
  }
  .profile-image-wrapper::after {
    animation: none;
    opacity: 0.3;
  }
  .profile-image-wrapper:hover .profile-image {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.15);
  }
  .profile-image-wrapper:hover::before {
    inset: -3px;
    filter: none;
    animation: none;
  }
  .profile-image-wrapper:hover::after {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.tagline {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tagline .highlight {
  color: var(--accent);
  font-weight: 500;
  display: inline-block;
}

/* ============================================
   TYPED WRAPPER
   ============================================ */
.typed-wrapper {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--accent);
  min-height: 1.8em;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.typed-prefix {
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.7;
}

#typed-output {
  display: inline;
}

.typed-cursor {
  font-size: 0.875rem;
  color: var(--accent);
  opacity: 0.8;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), var(--accent), var(--accent-dim), transparent);
  transform-origin: left center;
  margin: 32px 0;
}
