/* ============================================
   SOCIAL SECTION TITLE
   ============================================ */
.social-section-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 16px;
  background: linear-gradient(
    90deg,
    var(--text-secondary) 0%,
    var(--accent) 25%,
    var(--text-secondary) 50%,
    var(--accent) 75%,
    var(--text-secondary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer-text 3s ease-in-out infinite;
}

@keyframes shimmer-text {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ============================================
   SOCIAL ICONS ROW
   ============================================ */
.social-icons-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 12px;
  row-gap: 40px;
  justify-items: center;
  max-width: 320px;
  margin: 0 auto;
}

.social-section {
  flex-shrink: 0;
}

/* Icon button base */
.social-icon-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease,
              background-color 250ms ease,
              border-color 250ms ease,
              box-shadow 250ms ease;
  -webkit-tap-highlight-color: transparent;
}

.social-icon-btn i {
  font-size: 20px;
  line-height: 1;
  transition: transform 250ms ease;
}

.social-icon-btn:hover i {
  transform: scale(1.1);
}

.social-icon-btn:hover {
  transform: translateY(-3px);
}

.social-icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ============================================
   TOOLTIP — Brand Toolbox Style
   ============================================ */
.social-icon-btn .tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px) scale(0.92);
  padding: 4px 10px 4px 8px;
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px var(--shadow);
  z-index: 10;
}

/* Tooltip arrow */
.social-icon-btn .tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  margin-left: -5px;
  width: 10px;
  height: 10px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
  z-index: -1;
}

.social-icon-btn:hover .tooltip,
.social-icon-btn:focus-visible .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Row 2 (6-10) — tooltip upar dikhao taki Row 1 se overlap na ho */
.social-icon-btn:nth-child(n+6) .tooltip {
  top: auto;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(-4px) scale(0.92);
}
.social-icon-btn:nth-child(n+6) .tooltip::before {
  top: auto;
  bottom: -5px;
  border-left: none;
  border-top: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.social-icon-btn:nth-child(n+6):hover .tooltip,
.social-icon-btn:nth-child(n+6):focus-visible .tooltip {
  transform: translateX(-50%) translateY(0) scale(1);
}
.social-icon-btn:nth-child(n+6).touch-tooltip-visible .tooltip {
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ============================================
   BRAND COLORS — Default (icon shows brand color)
   ============================================ */
.social-icon-btn[data-brand="github"] i { color: var(--brand-github); }
.social-icon-btn[data-brand="linkedin"] i { color: #0077B5; }
.social-icon-btn[data-brand="portfolio"] i { color: #DC2626; }
.social-icon-btn[data-brand="instagram"] i { color: #E4405F; }
.social-icon-btn[data-brand="twitter"] i { color: var(--brand-twitter); }
.social-icon-btn[data-brand="threads"] i { color: var(--brand-threads); }
.social-icon-btn[data-brand="snapchat"] i { color: #E6B800; }
.social-icon-btn[data-brand="resume"] i { color: #DC2626; }
.social-icon-btn[data-brand="whatsapp"] i { color: #25D366; }
/* .social-icon-btn[data-brand="email"] i removed — no email icon in DOM */
.social-icon-btn[data-brand="facebook"] i { color: #1877F2; }


/* ============================================
   BRAND COLOR FILLS — Hover (bg fills, icon goes white)
   ============================================ */
.social-icon-btn[data-brand="github"]:hover {
  background: #24292e;
  border-color: #24292e;
  box-shadow: 0 4px 12px rgba(36, 41, 46, 0.3);
}
.social-icon-btn[data-brand="github"]:hover i { color: #ffffff; }

.social-icon-btn[data-brand="linkedin"]:hover {
  background: #0077B5;
  border-color: #0077B5;
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}
.social-icon-btn[data-brand="linkedin"]:hover i { color: #ffffff; }

.social-icon-btn[data-brand="portfolio"]:hover {
  background: #DC2626;
  border-color: #DC2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.social-icon-btn[data-brand="portfolio"]:hover i { color: #ffffff; }

.social-icon-btn[data-brand="instagram"]:hover {
  background: #E4405F;
  border-color: #E4405F;
  box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
}
.social-icon-btn[data-brand="instagram"]:hover i { color: #ffffff; }

.social-icon-btn[data-brand="twitter"]:hover {
  background: #000000;
  border-color: #555555;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.social-icon-btn[data-brand="twitter"]:hover i { color: #ffffff; }

.social-icon-btn[data-brand="threads"]:hover {
  background: #000000;
  border-color: #555555;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.social-icon-btn[data-brand="threads"]:hover i { color: #ffffff; }

.social-icon-btn[data-brand="snapchat"]:hover {
  background: #FFFC00;
  border-color: #FFFC00;
  box-shadow: 0 4px 12px rgba(255, 252, 0, 0.3);
}
.social-icon-btn[data-brand="snapchat"]:hover i {
  color: #000000;
}

.social-icon-btn[data-brand="resume"]:hover {
  background: #DC2626;
  border-color: #DC2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.social-icon-btn[data-brand="resume"]:hover i { color: #ffffff; }

.social-icon-btn[data-brand="whatsapp"]:hover {
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.social-icon-btn[data-brand="whatsapp"]:hover i { color: #ffffff; }

/* .social-icon-btn[data-brand="email"]:hover removed — no email icon in DOM */

.social-icon-btn[data-brand="facebook"]:hover {
  background: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-icon-btn[data-brand="facebook"]:hover i { color: #ffffff; }


/* ============================================
   HIRE ME CTA
   ============================================ */
.hire-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: transform 250ms ease,
              box-shadow 250ms ease,
              background-color 250ms ease;
  -webkit-tap-highlight-color: transparent;
}

.hire-cta:active {
  transform: scale(0.98);
}

.hire-cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--accent);
}

.hire-cta i {
  font-size: 20px;
  line-height: 1;
  transition: transform 250ms ease;
}

.hire-cta:hover i {
  transform: translateX(3px) rotate(-5deg);
}

/* ============================================
   THEME TOGGLE BUTTON
   Fixed top-right, matches social icon style
   ============================================ */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  background: color-mix(in srgb, var(--bg-card) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 250ms ease,
              border-color 250ms ease,
              box-shadow 250ms ease;
  box-shadow: 0 2px 12px var(--shadow);
}

.theme-toggle i {
  font-size: 20px;
  line-height: 1;
}

.theme-toggle:hover {
  transform: scale(1.1) translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--shadow);
}

.theme-toggle:active {
  transform: scale(0.92);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: auto;
  padding-top: 20px;
  padding-bottom: 12px;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

.footer .brand {
  color: var(--accent);
  font-weight: 500;
}

.footer .star {
  color: var(--text-secondary);
  opacity: 0.5;
}
