/* === PAGE BACKGROUND === */
body {
  background: linear-gradient(135deg, #1e1e2e, #2d2d44);
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  padding: 20px;
  color: #fff;
  transition: background 0.5s ease;
}

/* === PROFILE CONTAINER === */
.profile-container {
  width: 90%;
  max-width: 450px;
  margin: auto;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.8s ease forwards;
  opacity: 0;
}

/* Neon animated border effect */
.profile-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(60deg, #ff3ec1, #3498db, #f39c12, #9b59b6);
  background-size: 400% 400%;
  animation: neonBorder 10s linear infinite;
  border-radius: 22px;
  z-index: -1;
}

/* Neon animation */
@keyframes neonBorder {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Slide-up animation */
@keyframes slideUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* === PROFILE PICTURE WITH HOVER MENU === */
.profile-pic {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
  border: 4px solid #3498db;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.profile-pic:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px #3498db;
}

/* Hover menu */
.pic-menu {
  display: none;
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  padding: 10px 15px;
  border-radius: 12px;
  text-align: center;
  animation: fadeIn 0.4s ease forwards;
  z-index: 10;
}

.pic-menu button {
  background: transparent;
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.pic-menu button:hover {
  color: #3498db;
  transform: scale(1.1);
}

/* Show menu on hover */
.profile-pic-container:hover .pic-menu {
  display: block;
}

/* === INPUTS & TEXTAREAS === */
input, textarea {
  width: 100%;
  margin-bottom: 18px;
  padding: 12px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 12px #3498db;
}

/* === BUTTONS === */
button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: #3498db;
  color: white;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Hover effect */
button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #3498db;
}

/* Ripple effect */
button::after {
  content: "";
  position: absolute;
  width: 0px;
  height: 0px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  top: var(--y);
  left: var(--x);
  opacity: 0;
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
}

button:active::after {
  width: 320px;
  height: 320px;
  opacity: 1;
}

/* === STATS / PROGRESS BARS === */
.profile-stats {
  margin-top: 20px;
}

.stat {
  margin-bottom: 15px;
}

.stat-label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #b3c7f7;
}

.stat-bar {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  width: 0%;
  background: #3498db;
  border-radius: 8px;
  animation: fillBar 1s ease forwards;
}

@keyframes fillBar {
  from { width: 0; }
  to { width: var(--fill); }
}

/* Profile Pic Hover Menu */
.profile-pic-container {
  display: inline-block;
  position: relative;
}

.pic-menu {
  display: none;
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  padding: 10px 15px;
  border-radius: 12px;
  text-align: center;
  z-index: 10;
  animation: fadeIn 0.3s ease forwards;
}

.pic-menu button {
  background: transparent;
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.pic-menu button:hover {
  color: #3498db;
  transform: scale(1.1);
}

/* Show menu on hover */
.profile-pic-container:hover .pic-menu {
  display: block;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px);}
  to { opacity: 1; transform: translateY(0);}
}

.back-btn {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.back-btn:hover {
  color: #2980b9;
}
