/* ==========================================
   Social Links Profile — style.css
   Author: Swapnil Agrahari
   Challenge: Frontend Mentor
   ========================================== */

/* ---------- Font ---------- */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-VariableFont_slnt,wght.ttf") format("truetype");
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  color: white;
  user-select: none; 
}

/* ---------- Base ---------- */
body {
  background-color: hsl(0, 0%, 8%);
}

/* ---------- Layout ---------- */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  padding: 20px;
}

/* ---------- Card ---------- */
#inner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: hsl(0, 0%, 12%);
  padding: 20px 25px;
  border-radius: 10px;
  width: 350px;
  gap: 5px;
}

/* ---------- Personal Info ---------- */
#personal-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

#personal-info img {
  width: 140px;
  border-radius: 50%;
  margin: 15px 15px 5px;
}

#personal-info h1 {
  font-size: 1.25rem;
  font-weight: 700;
}

#personal-info h2 {
  font-size: 0.875rem;
  color: hsl(75, 94%, 57%);
  font-weight: 600;
}

#personal-info p {
  margin-top: 10px;
  font-size: 0.75rem;
  color: hsl(0, 0%, 72%);
  font-weight: 400;
  line-height: 1.5;
}

/* ---------- Social Links ---------- */
#social-links {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
}

#social-links a {
  text-decoration: none;
  width: 100%;
}

.social {
  background-color: hsl(0, 0%, 20%);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social:hover {
  background-color: hsl(75, 94%, 57%);
  color: hsl(0, 0%, 8%);
}

.social:hover * {
  color: hsl(0, 0%, 8%);
}

/* ---------- Attribution ---------- */
.attribution {
  font-size: 0.6875rem;
  text-align: center;
  width: 100%;
  position: fixed;
  bottom: 10px;
  left: 0;
  color: hsl(0, 0%, 72%);
}

.attribution a {
  color: hsl(228, 45%, 44%);
  text-decoration: none;
}

.attribution a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 390px) {
  #inner-box {
    width: 90%;
  }
}
