/* ===== Variables ===== */
:root {
  --bg-primary: #0a0a0a;
  --bg-card: rgba(15, 15, 15, 0.85);
  --bg-button: rgba(26, 26, 26, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #888;
  --radius-card: 20px;
  --radius-button: 14px;
  --radius-icon: 10px;
  --transition: 200ms ease;
}

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

/* ===== Base ===== */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Background ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.3) 0%,
      rgba(10, 10, 10, 0.6) 40%,
      rgba(10, 10, 10, 0.95) 100%
    ),
    linear-gradient(
      135deg,
      #1a1a2e 0%,
      #16213e 25%,
      #0f3460 50%,
      #1a1a2e 75%,
      #0a0a0a 100%
    );
  z-index: -1;
}

/* ===== Layout ===== */
.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.card {
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 1.5rem 1.5rem;
}

/* ===== Profile ===== */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.75rem;
}

.profile-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
}

.profile-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.profile-name h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.verified-badge {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.profile-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 460px;
}

/* ===== Links ===== */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.link-button {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.125rem;
  background: var(--bg-button);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-button);
  text-decoration: none;
  color: var(--text-primary);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  cursor: pointer;
}

.link-button:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.link-button:focus-visible {
  outline: 2px solid #4a9eff;
  outline-offset: 2px;
}

.link-button:active {
  transform: translateY(0);
}

.link-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-icon);
  object-fit: cover;
  flex-shrink: 0;
}

.link-external {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0.4;
  filter: brightness(2);
}

.link-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.link-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding-top: 0.5rem;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Animations ===== */
.profile,
.link-button {
  opacity: 0;
  transform: translateY(10px);
}

.animate-in {
  animation: fadeSlideIn 0.5s ease forwards;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .profile,
  .link-button {
    opacity: 1;
    transform: none;
  }

  .link-button:hover {
    transform: none;
  }

  .animate-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .container {
    align-items: center;
    padding: 3rem 1.5rem;
  }

  .card {
    padding: 3rem 2rem 2rem;
  }

  .profile-photo {
    width: 110px;
    height: 110px;
  }

  .profile-name h1 {
    font-size: 1.65rem;
  }

  .profile-bio {
    font-size: 0.875rem;
  }
}
