html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #6e00ff, #9c27b0);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

.container {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

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

h1 {
  margin: 10px 0 5px;
  font-size: 24px;
}

p {
  margin: 5px 0 10px;
  font-size: 14px;
  opacity: 0.9;
}

.mini-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.mini-socials a {
  color: white;
  font-size: 18px;
  transition: 0.3s;
}

.mini-socials a:hover {
  color: #ffeb3b;
  transform: scale(1.2);
}
.links a {
  display: block;
  margin: 10px 0;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.links a:nth-child(1) {
  animation-delay: 0.2s;
}
.links a:nth-child(2) {
  animation-delay: 0.3s;
}
.links a:nth-child(3) {
  animation-delay: 0.4s;
}
.links a:nth-child(4) {
  animation-delay: 0.5s;
}
.links a:nth-child(5) {
  animation-delay: 0.6s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.links a:hover::before {
  left: 100%;
}

.links a:hover {
  background: white;
  color: #6e00ff;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
.actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.8s;
}

.actions button {
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: 0.3s;
}

.actions button:hover {
  background: white;
  color: #6e00ff;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.qr-modal {
  display: none;
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.qr-content {
  background: white;
  color: black;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  position: relative;
  width: 300px;
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-modal.show .qr-content {
  transform: scale(1);
  opacity: 1;
}

.qr-content h2 {
  margin-bottom: 15px;
}

#qrCanvas {
  margin: 0 auto;
  display: block;
}

#closeQR {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

footer {
  margin-top: 25px;
  font-size: 12px;
  opacity: 0.8;
}
@media (max-width: 768px) {
  .container {
    animation-duration: 0.6s;
    padding: 25px;
  }
  .profile-pic {
    animation-duration: 4s;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .profile-pic {
    animation: none;
  }
}
