* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(-45deg, #0f172a, #1e293b, #334155, #475569);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  height: 100vh;
  overflow: hidden;
}

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

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  perspective: 1200px;
  padding: clamp(10px, 3vw, 30px);
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 1;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
    align-items: center;
    padding-top: 30px;
  }
  
  .card {
    margin: 15px auto;
    padding: 25px;
    width: 95%;
    max-width: 400px;
  }

  .profile-section {
    margin-bottom: 25px;
  }

  .avatar {
    width: 150px;
    height: 150px;
  }

  .animated-text {
    font-size: 2.5rem;
  }

  .about-section {
    margin: 25px 0;
    padding: 20px;
  }

  .typing-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 10px 0;
  }

  .social-links {
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
  }

  .social-btn {
    width: 100%;
    padding: 12px 20px;
    justify-content: center;
  }

  .music-btn {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: clamp(20px, 5vw, 40px);
  max-width: 480px;
  width: min(90%, 480px);
  backdrop-filter: blur(10px);
  margin: auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 20px;
}

@media (max-width: 768px) {
  .animated-text {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .avatar {
    width: 140px;
    height: 140px;
  }
  
  .about-section h2 {
    font-size: 1.5rem;
  }
  
  .typing-text {
    font-size: 1.1rem;
  }
  
  .social-links {
    flex-direction: column;
    gap: 15px;
  }
  
  .social-btn {
    width: 100%;
    justify-content: center;
  }
  
  .music-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 20px;
  }
  
  .profile-section {
    margin-bottom: 25px;
  }
}

.card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
}

.profile-section {
  margin-bottom: 35px;
}

.profile-pic {
  position: relative;
  margin-bottom: 25px;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2);
  object-fit: cover;
  transition: transform 0.5s ease;
  animation: float 6s ease-in-out infinite;
}

.avatar:hover {
  transform: scale(1.05);
  border-color: rgba(255,255,255,0.4);
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.name-container {
  margin-bottom: 35px;
}

.animated-text {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 5px rgba(255,255,255,0.5); }
  to { text-shadow: 0 0 20px rgba(255,255,255,0.8); }
}

.about-section {
  margin: 35px 0;
  padding: 25px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  transform: translateZ(20px);
}

.about-title {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
}

.typing-wrapper {
  display: block;
  text-align: left;
  padding: 0 10px;
}

.typing-text {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: typing 0.5s forwards;
  animation-delay: calc(var(--order) * 0.5s);
  display: inline;
  margin-right: 5px;
}

@keyframes typing {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

.typing-text:nth-child(1) { --order: 1; }
.typing-text:nth-child(2) { --order: 2; }
.typing-text:nth-child(3) { --order: 3; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-links {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-top: 40px;
}

.social-btn {
  padding: 15px 30px;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.instagram {
  background: linear-gradient(45deg, #ec4899, #db2777, #be185d);
}

.spotify {
  background: #10b981;
}

.music-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(45deg, #1e293b, #334155);
  border: 3px solid rgba(255,255,255,0.3);
  color: white;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-btn:hover {
  transform: scale(1.1);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.music-btn.playing {
  background: linear-gradient(45deg, #1DB954, #1e3c72);
  animation: pulse-playing 2s infinite;
}

@keyframes pulse-playing {
  0% { transform: scale(1); }
  50% { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1); }
}

.music-btn i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}