/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /* Primary Color: #373c4f converted to HSL */
  --primary-color: hsl(228, 20%, 26%); /* #373c4f */

  /* Lighter Variations of the Primary Color */
  --primary-color-light: hsl(228, 15%, 35%); /* Slightly lighter */
  --primary-color-lighter: hsl(228, 15%, 50%); /* Even lighter */

  /* Gradient using Primary Color and its lighter shade */
  --gradient-color: linear-gradient(
    180deg,
    var(--primary-color-light),
    hsl(228, 25%, 20%)
  );

  /* Text and Background Colors */
  --title-color: hsl(228, 15%, 20%); /* Darker for titles */
  --text-color: hsl(228, 10%, 50%);  /* Neutral text color */
  --white-color: #fff;                 /* Remains white for contrast */
  --body-color: hsl(228, 10%, 95%);    /* Light background */

  /*========== Font and Typography ==========*/
  --body-font: "Poppins", sans-serif;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
  --smaller-font-size: 0.75rem;
}

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

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== PROFILE CARD ===============*/
.profile-container {
  min-height: 100vh;
  margin-inline: 1.5rem;
  display: grid;
  place-items: center;
  margin-top: 5rem;
    border-radius: 10px;
    padding: 50px;
    width: 100% !important;
    place-self: center;
}

.profile-card {
  position: relative;
  width: 290px;
  background: var(--gradient-color);
  border-radius: 1rem 1rem 11rem 11rem;
  padding: 2.5rem 1.5rem 3.5rem;
  text-align: center;
  box-shadow: 0 8px 32px hsla(228, 20%, 20%, 0.15); /* Updated to match primary color */
}

.profile-card__img {
  width: 90px;
}

.profile-card__border {
  width: 124px;
  height: 124px;
  background-color: var(--primary-color-light); /* Updated variable name */
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
}

.profile-card__image-container {
  width: 104px;
  height: 104px;
  background-color: var(--primary-color-lighter); /* Updated variable name */
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.profile-card__name, .profile-card__profession {
  color: var(--white-color);
}

.profile-card__name {
  font-size: var(--h2-font-size);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-card__profession {
  font-size: var(--smaller-font-size);
  font-weight: 500;
}

/*=============== PROFILE INFO ===============*/
.profile-info {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  background-color: var(--white-color);
  padding: 2.5rem 1.5rem 3.3rem;
  border-radius: 1rem 1rem 11rem 11rem;
  clip-path: circle(16px at 250px 40px);
  transition: clip-path 0.4s ease-in-out;
}

.profile-info__icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary-color); /* Updated variable name */
  display: inline-flex;
  padding: 0.25rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.profile-info__img {
  width: 45px;
}

.profile-info__border {
  width: 64px;
  height: 64px;
  background-color: var(--primary-color-light); /* Updated variable name */
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  transform: translateX(-3rem);
  transition: transform 0.8s;
}

.profile-info__image-container {
  width: 52px;
  height: 52px;
  background-color: var(--primary-color-lighter); /* Updated variable name */
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.profile-info__data {
  display: grid;
  row-gap: 0.25rem;
  margin-bottom: 1.5rem;
  transform: translateX(-4rem);
  transition: transform 1s;
}

.profile-info__name {
  font-size: var(--normal-font-size);
  color: var(--title-color);
}

.profile-info__profession, .profile-info__location {
  font-size: var(--smaller-font-size);
}

.profile-info__social {
  display: flex;
  justify-content: center;
  column-gap: 1rem;
  transform: translateX(-5rem);
  transition: transform 1.2s;
}

.profile-info__social-link {
  width: 32px;
  height: 32px;
  background-color: var(--primary-color-light); /* Updated variable name */
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.3s;
}

.profile-info__social-link:hover {
  transform: translateY(-0.25rem);
}

.profile-info__social-icon {
  display: inline-flex;
  background: var(--gradient-color);
  padding: 0.25rem;
  border-radius: 50%;
  color: var(--white-color);
  font-size: 1rem;
}

/* Profile info animation */
.profile-info:hover {
  clip-path: circle(75%);
}

.profile-info:hover .profile-info__icon {
  opacity: 0;
}

.profile-info:hover .profile-info__border, 
.profile-info:hover .profile-info__data, 
.profile-info:hover .profile-info__social {
  transform: translateX(0);
}
.profile-card__border {
  width: 124px;
  height: 124px;
  background-color: var(--primary-color-light); /* Updated */
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
}

.profile-card__image-container {
  width: 104px;
  height: 104px;
  background-color: var(--primary-color-lighter); /* Updated */
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.profile-info__border {
  width: 64px;
  height: 64px;
  background-color: var(--primary-color-light); /* Updated */
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  transform: translateX(-3rem);
  transition: transform 0.8s;
}

.profile-info__image-container {
  width: 52px;
  height: 52px;
  background-color: var(--primary-color-lighter); /* Updated */
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.profile-info__icon {
  color: var(--primary-color); /* Updated */
}

.profile-info__social-link {
  background-color: var(--primary-color-light); /* Updated */
}
/* Responsive Styles */
@media screen and (max-width: 1200px) {
  .profile-container{
    display: flex;
    flex-direction: column;
  }
  .chain-flex{
    flex-direction: column;
  }
}