.card{
  width: 280px;
  height: 280px;
  background: white;
  border-radius: 32px;
  padding: 3px;
  position: relative;
  box-shadow: rgba(96, 75, 74, 0.188) 0px 70px 30px -50px;
  transition: all 0.5s ease-in-out;
}

.card .mail {
  position: absolute;
  right: 2rem;
  top: 1.4rem;
  background: transparent;
  border: none;
}
  
.card .mail svg {
  stroke: #9ca3db; /* Soft blue to match your gradient theme */
  stroke-width: 3px;
}

.card .mail svg:hover {
  stroke: #6b46c1; /* Purple accent */
}

.card .profile-pic {
  position: absolute;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  top: 3px;
  left: 3px;
  border-radius: 29px;
  z-index: 1;
  border: 0px solid #9ca3db; /* Updated to match theme */
  overflow: hidden;
  transition: all 0.5s ease-in-out 0.2s, z-index 0.5s ease-in-out 0.2s;
}

.card .profile-pic img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-position: 0px 0px;
  transition: all 0.5s ease-in-out 0s;
}

.card .bottom {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  background: linear-gradient(to right, #ecae01d5, rgba(73, 68, 68, 0.747)); /* Matches your bg gradient */
  top: 80%;
  border-radius: 29px;
  z-index: 2;
  box-shadow: rgba(96, 75, 74, 0.188) 0px 5px 5px 0px inset;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
}

.card .bottom .contentt {
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 160px;
}

.card .bottom .contentt .namee {
  display: block;
  font-size: 1.2rem;
  color: white;
  font-weight: bold;
}

.card .bottom .contentt .about-me {
  display: block;
  font-size: 0.9rem;
  color: white;
  margin-top: 1rem;
}

  
.card .bottom .bottom-bottom {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card .bottom .bottom-bottom .social-links-container {
  display: flex;
  gap: 1rem;
}

.card .bottom .bottom-bottom .social-links-container svg {
  height: 20px;
  fill: white;
  filter: drop-shadow(0 5px 5px rgba(165, 132, 130, 0.133));
}

.card .bottom .bottom-bottom .social-links-container svg:hover {
  fill: #6b46c1; /* Purple hover effect */
  transform: scale(1.2);
}

.card .bottom .bottom-bottom .button {
  background: white;
  color: #ee840b;
  border: none;
  border-radius: 20px;
  font-size: 0.6rem;
  padding: 0.4rem 0.6rem;
  box-shadow: rgba(165, 132, 130, 0.133) 0px 5px 5px 0px;
}

.card .bottom .bottom-bottom .button:hover {
  background: #ee840b;
  color: white;
}

.card:hover {
  border-top-left-radius: 55px;
}

.card:hover .bottom {
  top: 20%;
  border-radius: 80px 29px 29px 29px;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s;
}

.card:hover .profile-pic {
  width: 100px;
  height: 100px;
  aspect-ratio: 1;
  top: 10px;
  left: 10px;
  border-radius: 50%;
  z-index: 3;
  border: 7px solid #9b9da0; /* Matches blue in the gradient */
  box-shadow: rgba(96, 75, 74, 0.188) 0px 5px 5px 0px;
  transition: all 0.5s ease-in-out, z-index 0.5s ease-in-out 0.1s;
}

.card:hover .profile-pic:hover {
  transform: scale(1.3);
  border-radius: 0px;
}

.card:hover .profile-pic img {
  transform: scale(2.5);
  object-position: 0px 25px;
  transition: all 0.5s ease-in-out 0.5s;
}
  

/* animation for cards */

.container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
  
.container .glass {
  position: relative;
  width: 180px;
  height: 200px;
  background: linear-gradient(#fff2, transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  border-radius: 10px;
  margin: 0 -45px;
  backdrop-filter: blur(40px);
  transform: rotate(calc(var(--r) * 1deg));
}

.container:hover .glass {
  transform: rotate(0deg);
  margin: 0 10px;
}

.container .glass::before {
  content: attr(data-text);
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #e1e5f8;
}
.container .glass svg {
  font-size: 2.5em;
  fill: #d7dce2;
}



/* containers pehly 2 */

.flex-container {
  display: flex;
  justify-content:space-evenly;
  align-items: center;
  height: 200px;
  margin: 20px;

}

.left-container {
  flex: 1;
}

.right-container {
  flex: 1;
}
  
.info-section {
  padding: 20px;
  border-radius: 10px;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
  transition: 0.5s;
  display:flexbox;
  text-align: center;
  margin: 20px 0;
}




/* SKILL PORTION ANIMATION. */

.containeeer{
  display: grid; /* Use grid layout for precise control */
  grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
  gap: 20px; /* Spacing between cards */
  justify-items: center; /* Center the cards */
  padding: 20px;
}


.containeeer_2 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  justify-items: center;
  padding: 10px;
}

.heading {
  font-size: 24px;
  margin-bottom: 20px;
}

.knowledge-item {
  display: flex;
  align-items: center;
  justify-content: start;
  margin-bottom: 20px;
  border-bottom: 1px solid #f18e0cbd;
  padding: 10px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
}

/* Hover Effect */
.knowledge-item:hover {
  transform: scale(1.05); /* Expands slightly */
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.842); /* Adds glow effect */
  border-color: rgba(218, 130, 15, 0.5); /* Optional: adds a border color change */
}

/* Icon Styling */
.icon {
  width: 60px;
  margin-right: 20px;
  transition: transform 0.3s ease;
}

/* Icon grows slightly on hover */
.knowledge-item:hover .icon {
  transform: scale(1.25);
}

/* Details Section */
.details {
  text-align: left;
}

.details h3 {
  margin: 0 0 10px;
}

.details p {
  margin: 0;
  font-size: 14px;
  color: #ffffff;
}
