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

:root {
  --bg: #0b0f19;
  /* Deeper, richer midnight blue instead of flat grey */
  --surface: rgba(17, 24, 39, 0.7);
  --surface-hover: rgba(31, 41, 55, 0.8);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-secondary: #8b5cf6;
  /* Added purple for gradient accents */
  --accent-hover: #7dd3fc;
  --radius: 16px;
  --font-heading: 'Outfit', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

html {
  height: 100%;
  overflow-y: scroll;
}

body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 2rem;
  /* Premium Aurora Glow Effect */
  background-image:
    radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.18), transparent 30vw),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.18), transparent 30vw);
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 500px;
  margin: 10vh auto 2rem;
}

.profile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3.5rem 3rem;
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05),
    0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.avatar-ring {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  background: var(--surface);
  padding: 6px;
  box-shadow:
    0 0 0 1px var(--border),
    0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.avatar-crop {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edeff5;
  /* Fills in any gaps created by panning with white */
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3) translateY(15px);
  /* Zooms the picture 20% and moves it 10px down */
  color: #edeff5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.name {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.tagline {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.icon {
  margin-right: 0.75rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.link-card:hover .icon {
  opacity: 1;
}

.link-card::after {
  content: '→';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  color: var(--accent);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4);
}

.link-card:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 480px) {
  .profile {
    padding: 2rem 1.5rem;
  }

  .name {
    font-size: 1.5rem;
  }
}