:root {
  /* --- Colors --- */
  --color-green: hsl(75, 94%, 57%);
  --color-green-glow: hsla(75, 94%, 57%, 0.4);
  --color-white: hsl(0, 0%, 100%);

  /* Grey Scale */
  --color-grey-700: hsl(0, 0%, 20%);
  --color-grey-800: hsl(0, 0%, 12%);
  --color-grey-900: hsl(0, 0%, 8%);

  /* --- Typography --- */
  --font-family: "Inter", sans-serif;

  /* Font Sizes */
  --fs-title: 1.5rem; /* 24px */
  --fs-body: 0.875rem; /* 14px */

  /* Font Weights */
  --fw-regular: 400;
  --fw-semi-bold: 600;
  --fw-bold: 700;

  /* --- Layout & Spacing --- */
  --card-width: 24rem; /* 384px */
  --space-050: 0.25rem; /* 4px */
  --space-100: 0.5rem; /* 8px */
  --space-150: 0.75rem; /* 12px */
  --space-200: 1rem; /* 16px */
  --space-300: 1.5rem; /* 24px */
  --space-400: 2.5rem; /* 40px */
  --space-500: 2.8125rem; /* 45px */

  /* --- Border Radius --- */
  --radius-lg: 0.75rem; /* 12px */
  --radius-sm: 0.5rem; /* 8px */

  /* --- Effects --- */
  --shadow-button: 0 4px 12px rgba(0, 0, 0, 0.3);

  /* --- Transitions --- */
  --transition-fast: 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  background-color: var(--color-grey-900);
  color: var(--color-white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-300);
}

.wrapper {
  width: 100%;
  max-width: var(--card-width);
}

.card {
  background-color: var(--color-grey-800);
  padding: var(--space-400);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
  cursor: default;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--color-green-glow);
}

.profile-img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  margin-block-end: var(--space-300);
  object-fit: cover;
  transition: outline var(--transition-fast), transform var(--transition-fast);
  outline: 0 solid var(--color-green);
}

.profile-img:hover {
  transform: scale(1.05);
  outline: 4px solid var(--color-green);
  outline-offset: 4px;
  cursor: pointer;
}

.profile-img:active {
  transform: scale(0.95);
  outline-width: 2px;
  filter: brightness(0.8);
}

.user-name {
  font-size: var(--fs-title);
  font-weight: var(--fw-semi-bold);
  margin-block-end: var(--space-100);
}

.location {
  font-weight: var(--fw-bold);
  color: var(--color-green);
  display: block;
  margin-block-end: var(--space-300);
}

.description {
  font-weight: var(--fw-regular);
  line-height: 1.5;
  margin-block-end: var(--space-300);
  color: var(--color-white);
  opacity: 0.9;
}

.social-nav {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
}

.social-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--space-500);
  background-color: var(--color-grey-700);
  color: var(--color-white);
  text-decoration: none;
  font-weight: var(--fw-bold);
  padding-inline: var(--space-200);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.social-nav a:hover,
.social-nav a:focus-visible {
  background-color: var(--color-green);
  color: var(--color-grey-900);
  transform: translateY(-4px);
  box-shadow: var(--shadow-button);
}

.social-nav a:active {
  transform: translateY(0) scale(0.96);
  filter: brightness(0.9);
}

/* 1. Define the animation: Settle into position */
@keyframes subtleSettle {
  0% {
    transform: translateY(0); /* Bot sees it here first! */
  }
  50% {
    transform: translateY(-10px); /* Lifts up slightly */
  }
  100% {
    transform: translateY(0); /* Settles back to perfect position */
  }
}

/* 2. Apply it to the list items */
.social-nav li {
  opacity: 1;
  transform: translateY(0);
  animation: subtleSettle 1.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

/* 3. Stagger the timing for each link */
.social-nav li:nth-child(1) {
  animation-delay: 0.5s;
}
.social-nav li:nth-child(2) {
  animation-delay: 0.7s;
}
.social-nav li:nth-child(3) {
  animation-delay: 0.9s;
}
.social-nav li:nth-child(4) {
  animation-delay: 1.1s;
}
.social-nav li:nth-child(5) {
  animation-delay: 1.3s;
}

/* --- Accessibility: Global Reduced Motion --- */
/* --- Accessibility: Global Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }

  /* This ensures the 'ripple' or any hover lift doesn't trigger */
  *:hover,
  *:active,
  *:focus {
    transform: none;
  }
}
