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

body {
  background: linear-gradient(135deg, #6b2d5c, #9d4edd);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  height: 100vh;
  max-height: 900px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

img {
  height: 200px;
  width: 200px;
  border-radius: 50%;
  object-fit: cover; /* Keeps image fully visible */
  transition: all 0.5s ease; /* Smooth transition for all effects */
  border: 4px solid #e0e0e0; /* Professional light gray border */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
  position: relative;
  top: 30px;
  left: 30px;
  z-index: 1; /* Ensures image stays above card elements */
  margin-left: 20px;
}

img:hover {
  transform: scale(1.15) rotate(5deg); /* Playful scale and tilt */
  border-color: #9d4edd; /* Vibrant purple for professionalism */
  box-shadow: 0 10px 25px rgba(157, 78, 221, 0.4); /* Glowing purple shadow */
  filter: brightness(1.1) contrast(1.1); /* Slight enhancement */
}

.border {
  height: 420px;
  width: 320px;
  background: transparent;
  border-radius: 20px;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.border:hover {
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-10px);
}

.card {
  height: 400px;
  width: 300px;
  background: #ffffff;
  border-radius: 20px;
  transition: all 0.6s ease;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.card:hover {
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
  transform: scale(1.05);
}

.card0 {
  background: url("./myself.svg") center center no-repeat;
  background-size: 350px;
  transition: background-size 0.8s ease, filter 0.5s ease;
}

.card0:hover {
  background-size: 500px;
  filter: brightness(1.1) saturate(1.2);
}

.card0:hover h2 {
  opacity: 1;
  transform: translateY(-10px);
}

.card0:hover .fab {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #333;
  font-size: 28px;
  margin: 60px 0 0 50px;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);

}

.fab {
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(20px);
}

.icons {
  position: absolute;
  left: 35px;
  fill: #333;
  color: #333;
  height: 60px;
  bottom: 20px;
  width: 200px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 15px;
}

.icons a {
  color: #333;
  font-size: 24px;
  transition: all 0.3s ease;
}

.icons a:hover {
  color: #9d4edd;
  transform: scale(1.2);
}

a {
  color: #333;
  text-decoration: none;
}

/* Tablet Responsiveness */
@media only screen and (min-width: 600px) and (max-width: 1024px) {
  .container {
    max-height: 700px;
    max-width: 900px;
  }
  .border {
    height: 350px;
    width: 260px;
  }
  .card {
    height: 330px;
    width: 240px;
  }
  .card0 {
    background-size: 300px;
  }
  .card0:hover {
    background-size: 450px;
  }
  h2 {
    font-size: 24px;
    margin: 100px 0 0 15px;
  }
  .icons {
    width: 180px;
    bottom: 15px;
  }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .container {
    flex-direction: column;
    max-width: 100%;
    height: auto;
    padding: 20px;
  }
  .border {
    height: 340px;
    width: 250px;
  }
  .card {
    height: 320px;
    width: 230px;
  }
  .card0 {
    background-size: 280px;
  }
  .card0:hover {
    background-size: 400px;
  }
  h2 {
    font-size: 22px;
    margin: 80px 0 0 15px;
  }
  .icons {
    width: 160px;
    bottom: 10px;
  }
}