/* Background gradient animation */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #ff4e50);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #fff;
}

@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

h1 {
  font-size: 36px;
  margin-bottom: 40px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #fff, 0 0 20px #ff4e50, 0 0 30px #302b63;
  animation: glow 2s ease-in-out infinite alternate;
  text-align: center;
}

@keyframes glow {
  from { text-shadow: 0 0 10px #fff, 0 0 20px #ff4e50, 0 0 30px #302b63; }
  to { text-shadow: 0 0 20px #fff, 0 0 30px #ff4e50, 0 0 40px #302b63; }
}

.container {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-card {
  background: rgba(0,0,0,0.5);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  width: 250px;
  transition: transform 0.5s, box-shadow 0.5s;
  cursor: pointer;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.2);
}

.profile-card:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 15px 30px rgba(255,255,255,0.3);
}

.profile-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  margin-bottom: 15px;
  transition: transform 0.5s;
}

.profile-card:hover img {
  transform: scale(1.05) rotate(-2deg);
}

.profile-card h2 {
  margin: 10px 0 5px;
  font-size: 22px;
  letter-spacing: 1px;
}

.profile-card p {
  margin: 5px 0;
  font-size: 16px;
  color: #ddd;
}

@media (max-width: 600px) {
  .container { flex-direction: column; gap: 40px; }
}