:root {
  --accent: #6c5ce7;
  --accent-hover: #5a4bd1;
  --bg: #0a0a0a;
  --surface: rgba(22, 22, 22, 0.6);
  --text: #f5f5f5;
  --text-dim: #a0a0a0;
  --radius: 16px;
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, #2b1a5e, transparent 50%),
              radial-gradient(circle at 80% 80%, #1a3a5e, transparent 50%),
              var(--bg);
  background-size: 200% 200%;
  animation: bgShift 12s ease infinite;
  color: var(--text);
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  text-align: center;
  padding: 2rem;
  /* overflow: hidden;  ← removed */
}


@keyframes bgShift {
  0%, 100% { background-position: 0% 0%, 100% 100%, center; }
  50% { background-position: 20% 30%, 80% 60%, center; }
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), #a29bfe, #6c5ce7);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shine 4s linear infinite;
  margin-bottom: 0.5rem;
}

@keyframes shine {
  to { background-position: 200% center; }
}

h3 {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

button {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
  transition: background var(--transition), transform 0.1s ease, box-shadow var(--transition);
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

button:hover::before {
  left: 125%;
}

button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.7);
}

button:active {
  transform: translateY(0);
}

a {
  position: relative;
  display: inline-block;
  color: var(--accent);
  background: white;
  text-decoration: none;
  margin: 1rem 3.7rem 1rem 3.7rem;
  padding: 0.75rem clamp(1.5rem, 8vw, 5rem);
  border-radius: 25px;
  font-weight: 600;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1),
              0 0 0 0 rgba(108, 92, 231, 0);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(108, 92, 231, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

a:hover::before {
  left: 125%;
}

a:hover {
  transform: translateY(-3px) scale(1.02);
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2),
              0 0 25px rgba(108, 92, 231, 0.5);
}

a:active {
  transform: translateY(-1px) scale(0.99);
}


.card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
  animation: fadeUp 0.6s ease;
}

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

img {
  display: block;
  width: 200px;
  height: 200px;
  max-width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 auto;
  box-shadow: 0 0 0 3px rgba(108,92,231,0.3), 0 10px 30px rgba(0,0,0,0.5);
  animation: float 4s ease-in-out infinite;
}

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

@media (max-width: 480px) {
  .card { padding: 1.5rem; }
  img { width: 150px; height: 150px; }
  footer { margin-top: 5rem; }
}
