@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f0f0f;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-card {
  width: 300px;
  height: 420px;
  perspective: 1000px;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.portfolio-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.card-front {
  background: linear-gradient(135deg, #1f1c2c, #928dab);
}

.card-back {
  background: linear-gradient(135deg, #000428, #004e92);
  transform: rotateY(180deg);
  text-align: center;
  overflow-y: auto;
}

.profile-pic {
  width: 140px;
  height: 200px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(45deg, #ff0066, #00f0ff, #6600ff);
  background-size: 600% 600%;
  animation: spin-border 6s linear infinite;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #0f0f0f;
}

.card-front h2 {
  margin-top: 15px;
  font-size: 22px;
  font-weight: 600;
}

.card-front p {
  font-size: 14px;
  color: #ccc;
  margin-top: 5px;
}

.hint {
  margin-top: 15px;
  font-size: 12px;
  color: #88ffff;
  opacity: 0.8;
}

.card-back h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.card-back p {
  font-size: 14px;
  margin-top: 15px;
  color: #dcdcdc;
}

.icons {
  display: flex;
  gap: 20px;
}

.icons a {
  font-size: 24px;
  color: #00f0ff;
  transition: transform 0.3s, color 0.3s;
}

.icons a:hover {
  transform: scale(1.3);
  color: #ffffff;
}

/* Skills Section */
.skills {
  margin-top: 15px;
  text-align: left;
  width: 100%;
  padding-left: 30px;
}

.skills h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #00f0ff;
}

.skills ul {
  list-style-type: disc;
  padding-left: 20px;
  font-size: 14px;
  color: #ccc;
}

.skills li {
  margin-bottom: 4px;
}

/* Animation */
@keyframes spin-border {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
