/* ============================================
   RESPONSIVE — Tablet & Desktop
   ============================================ */
@media (min-width: 481px) {
  .page-wrapper {
    padding-top: 56px;
  }
  .profile-image-wrapper {
    width: 140px;
    height: 140px;
  }
  .profile-image {
    width: 140px;
    height: 140px;
  }
  .social-icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
  .social-icon-btn i {
    font-size: 22px;
  }
  .social-icons-row {
    column-gap: 14px;
    row-gap: 40px;
  }
}

@media (min-width: 769px) {
  .page-wrapper {
    max-width: 700px;
    padding: 48px 32px 32px;
  }

  /* ——— Hero: side-by-side layout ——— */
  .hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
  }

  .hero-section .text-center {
    text-align: left;
  }

  .hero-section .flex.justify-center {
    justify-content: flex-start;
  }

  /* Avatar column — Square on desktop */
  .profile-image-wrapper {
    width: 180px;
    height: 180px;
    margin: 0;
    flex-shrink: 0;
  }

  .profile-image-wrapper::before {
    /* Ring BEHIND image — 3px extends outside wrapper */
    /* Image covers center (same border-radius), only outer ring shows */
    inset: -3px;
    border-radius: 12px;
    background: conic-gradient(
      from var(--gradient-angle, 0deg),
      #E11D48, #F59E0B, #EC4899, #E11D48, #8B5CF6, #F59E0B, #E11D48
    );
    animation: spin-gradient 3.5s linear infinite;
    transform: none;
    mask: none;
    -webkit-mask: none;
  }

  /* Hover: speed up colors, ring expands slightly outward */
  .profile-image-wrapper:hover::before {
    animation-duration: 1.5s;
    filter: brightness(1.3) saturate(1.2);
    inset: -5px;
    transform: none;
  }

  .profile-image-wrapper::after {
    border-radius: 12px;
  }

  .profile-image {
    width: 180px;
    height: 180px;
    border-radius: 12px;
  }

  /* Content column */
  .hero-content {
    flex: 1;
    min-width: 0;
  }

  .name {
    font-size: 2.5rem;
    margin-top: 0;
  }

  .tagline {
    font-size: 1rem;
  }

  .typed-wrapper {
    font-size: 0.9375rem;
    padding: 8px 18px;
  }

  /* ——— Ambient glow reposition ——— */
  .ambient-glow {
    width: 800px;
    height: 800px;
    top: -300px;
  }

  /* ——— Divider ——— */
  .divider {
    margin: 40px 0;
  }

  /* ——— Social section ——— */
  .social-icons-row {
    max-width: 400px;
    column-gap: 16px;
  }

  .social-icon-btn {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .social-icon-btn i {
    font-size: 24px;
  }

  .hire-cta {
    padding: 16px 28px;
    font-size: 1rem;
  }

  .hire-cta i {
    font-size: 22px;
  }

  /* Tooltip — desktop */
  .social-icon-btn .tooltip {
    font-size: 0.6875rem;
    padding: 4px 10px 4px 8px;
  }

  /* Footer */
  .footer {
    font-size: 0.8125rem;
    padding-top: 24px;
    padding-bottom: 16px;
  }
}

@media (min-width: 1024px) {
  .page-wrapper {
    max-width: 850px;
    padding: 56px 40px 32px;
  }

  .hero-section {
    gap: 56px;
  }

  .profile-image-wrapper {
    width: 200px;
    height: 200px;
  }

  .profile-image-wrapper::before {
    /* Ring BEHIND image — 4px extends outside wrapper */
    inset: -4px;
    border-radius: 14px;
    background: conic-gradient(
      from var(--gradient-angle, 0deg),
      #E11D48, #F59E0B, #EC4899, #E11D48, #8B5CF6, #F59E0B, #E11D48
    );
    animation: spin-gradient 3.5s linear infinite;
    transform: none;
    mask: none;
    -webkit-mask: none;
  }

  /* Hover: speed up colors, ring expands slightly outward */
  .profile-image-wrapper:hover::before {
    animation-duration: 1.5s;
    filter: brightness(1.3) saturate(1.2);
    inset: -5px;
    transform: none;
  }

  .profile-image-wrapper::after {
    border-radius: 14px;
  }

  .profile-image {
    width: 200px;
    height: 200px;
    border-radius: 14px;
  }

  .name {
    font-size: 2.75rem;
  }

  .tagline {
    font-size: 1.0625rem;
  }

  .typed-wrapper {
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 10px;
  }

  .ambient-glow {
    width: 1000px;
    height: 1000px;
    top: -400px;
  }

  .social-icons-row {
    max-width: 460px;
    column-gap: 18px;
  }

  .social-icon-btn {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .social-icon-btn i {
    font-size: 26px;
  }

  .social-icon-btn:hover {
    transform: translateY(-4px) scale(1.1);
  }

  .hire-cta {
    padding: 18px 32px;
    font-size: 1.0625rem;
    border-radius: 16px;
  }

  .divider {
    margin: 48px 0;
  }

  .footer {
    font-size: 0.875rem;
    padding-top: 28px;
  }
}

/* ============================================
   THEME TOGGLE — Responsive
   ============================================ */
@media (max-width: 480px) {
  .theme-toggle {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .theme-toggle i {
    font-size: 18px;
  }
}

/* ============================================
   RESPONSIVE — Extra Small Mobile
   ============================================ */
@media (max-width: 360px) {
  .page-wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }
  .social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .social-icon-btn i {
    font-size: 18px;
  }
  .social-icons-row {
    column-gap: 10px;
    row-gap: 36px;
  }
  .name {
    font-size: 1.625rem;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .profile-image-wrapper::before {
    animation: none;
    opacity: 0.55;
  }
  .profile-image-wrapper::after {
    animation: none;
  }
  .profile-image:hover {
    transform: none;
  }
  .social-icon-btn:hover {
    transform: none;
  }
  .social-icon-btn:hover i {
    transform: none;
  }
  .hire-cta:hover {
    transform: none;
  }
  .tooltip {
    display: none;
  }
}
