:root {
  --color-primary-hue: 200;
  --color-primary: hsl(var(--color-primary-hue), 80%, 60%);
  --color-primary-dark: hsl(var(--color-primary-hue), 80%, 40%);
  --color-bg-start: hsl(calc(var(--color-primary-hue) + 20), 90%, 15%);
  --color-bg-end: hsl(calc(var(--color-primary-hue) + 60), 90%, 25%);
  --color-text: #eee;
  --color-card-bg: rgba(255, 255, 255, 0.08);
  --color-card-shadow: rgba(0, 0, 0, 0.4);
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
  color: var(--color-text);
  min-height: 100vh;
  scroll-behavior: smooth;
  text-align: center;
  padding: 20px;
  overflow-x: hidden;
}

/* Floating abstract shapes */
body::before,
body::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 12s ease-in-out infinite alternate;
}

body::before {
  width: 400px;
  height: 400px;
  background: hsl(210, 90%, 60%);
  top: -100px;
  left: -100px;
}

body::after {
  width: 300px;
  height: 300px;
  background: hsl(160, 90%, 60%);
  bottom: -100px;
  right: -80px;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, -30px);
  }
}

/* Card */
.card {
  max-width: 700px;
  background: var(--color-card-bg);
  margin: 40px auto;
  padding: 30px 40px;
  border-radius: 25px;
  box-shadow: 0 12px 50px var(--color-card-shadow);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  perspective: 1000px;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: rotateX(3deg) rotateY(-3deg);
}

/* Profile */
.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary);
}

/* Text */
h1, h2 {
  margin: 0.5em 0;
  color: var(--color-primary);
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 500;
  color: hsl(calc(var(--color-primary-hue) + 40), 80%, 70%);
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 600px;
  margin: 0 auto;
}

/* Social links */
.social-links {
  margin-top: 25px;
}

.social-links a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: bold;
  margin: 0 12px;
  font-size: 1.1rem;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  transform: scale(1.15);
  box-shadow: 0 0 15px var(--color-primary);
  background-color: var(--color-primary);
  color: #111;
}

/* Inputs */
input, textarea {
  width: 100%;
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 1rem;
  border-radius: 15px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
  resize: none;
}

input:focus, textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 15px var(--color-primary);
  transition: box-shadow 0.3s ease;
}

/* Button with animated border */
button {
  position: relative;
  background-color: var(--color-primary);
  color: #111;
  padding: 14px 30px;
  border-radius: 40px;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px var(--color-primary);
  overflow: hidden;
}

button::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 40px;
  background: linear-gradient(45deg, #0ff, #0f0, #ff0, #f0f, #0ff);
  background-size: 300% 300%;
  animation: animateBorder 6s linear infinite;
  z-index: -1;
}

@keyframes animateBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Button hover */
button:hover {
  transform: scale(1.07);
  transition: transform 0.3s ease;
}

/* Footer */
footer {
  text-align: center;
  margin: 60px 0 20px;
  color: #aaa;
  font-size: 0.9rem;
  user-select: none;
}

/* Scroll to top */
.top-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 14px 18px;
  font-size: 22px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-primary);
  color: #222;
  cursor: pointer;
  box-shadow: 0 0 15px var(--color-primary);
  display: none;
  z-index: 10;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.top-button:hover {
  transform: scale(1.1);
  background-color: hsl(calc(var(--color-primary-hue) + 20), 80%, 70%);
}

/* Responsive */
@media (max-width: 720px) {
  .card {
    margin: 30px 20px;
    padding: 25px 20px;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }

  .social-links a {
    margin: 8px 6px;
    padding: 6px 12px;
    font-size: 1rem;
  }
}
