* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background: #212121;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-wrapper {
  position: relative;
  width: 100%;
  max-width: 350px;
}

.card {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: 0.5s;
  background: #000;
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: transform 0.9s;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: opacity 0.5s;
}

.card:hover .card-image {
  transform: translateY(-100px);
}

.card:hover .card-image img {
  opacity: 0.4;
}

.social-icons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  z-index: 3;
}

.social-icons li {
  list-style: none;
}

.social-icons li a {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 6px;
  background: #fff;
  color: #333;
  font-size: 23px;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
  transform: translateY(200px);
  opacity: 0;
  transition: all 0.4s ease;
}

.card:hover .social-icons li a {
  transform: translateY(0);
  opacity: 1;
}

.social-icons li:nth-child(1) a { transition-delay: 0.1s; }
.social-icons li:nth-child(2) a { transition-delay: 0.2s; }
.social-icons li:nth-child(3) a { transition-delay: 0.3s; }
.social-icons li:nth-child(4) a { transition-delay: 0.4s; }
.social-icons li:nth-child(5) a { transition-delay: 0.5s; }

.social-icons li a:hover {
  background: #000;
  color: #fff;
}

.social-icons li a .fab {
  transition: transform 0.8s;
}

.social-icons li a:hover .fab {
  transform: rotateY(360deg);
}

.details {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #ffffff;
  text-align: center;
  padding: 20px 10px;
  z-index: 1;
}

.details h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 5px;
}

.job-title {
  font-size: 1rem;
  color: #666;
}

@media (max-width: 767px) {
  .card-wrapper {
    width: 95%;
  }
}
