:root {
  --bg: #f3f4f6;
  --text: #111;
  --box: #fff;
  --link: #3b82f6;
}

.dark {
  --bg: #0f172a;
  --text: #e1e7f5;
  --box: #1e293b;
  --link: #7dd3fc;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: 0.3s;
}

/* Action bar */
.action-bar {
  display: flex;
  justify-content: flex-end;
  padding: 12px;
}

button {
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  background: var(--link);
  color: white;
  font-size: 15px;
  transition: 0.25s;
}
button:hover {
  opacity: 0.85;
}

/* Container */
.container {
  max-width: 420px;
  margin: 20px auto;
  background: var(--box);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Avatar */
.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--link);
  transition: 0.3s;
}
.avatar:hover {
  transform: scale(1.06);
}

/* Animations */
.fade-in {
  animation: fade 0.6s ease;
}
.zoom-in {
  animation: zoom 0.5s ease;
}
@keyframes fade {
  from {opacity: 0;}
  to   {opacity: 1;}
}
@keyframes zoom {
  from {transform: scale(0.92);}
  to   {transform: scale(1);}
}

/* Links */
ul {
  list-style: none;
  padding: 0;
}
ul li {
  margin: 10px 0;
}
a {
  text-decoration: none;
  color: var(--link);
}

body {
  position: relative;
  overflow: hidden;
}

body::before {
  content: "";
  position: absolute;
  width: 300%;
  height: 300%;
  top: -100%;
  left: -100%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.12) 2px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 80px 80px, 50px 50px;
  animation: floatDots 40s linear infinite;
  pointer-events: none;
}

@keyframes floatDots {
  from { transform: translate(0, 0); }
  to { transform: translate(100px, 200px); }
}
