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

:root {
  --bg: #f0f0f0;
  --surface: #00000071;
  --border: #e8e4de;
  --text-primary: #ececec;
  --text-secondary: #eeeeee;
  --text-tagline: #c5c5c5;
  --accent: #2b2b2b;
  --hover-text: #242424;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-hover:
    0 4px 12px rgba(0, 0, 0, 0.12), 0 8px 32px rgba(0, 0, 0, 0.08);
}

body {
  font-family: "DM Sans", sans-serif;
  background: url("/images/background.jpg") center/cover no-repeat;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  position: relative;
}

/* Subtle grain texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.25)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");

  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Header */
.header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  animation: fadeUp 0.6s ease both;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%; /* makes it circular */
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures the image fills the circle without distortion */
}

.name {
  font-family: "DM Serif Display", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--bg);
  line-height: 1.1;
}

.tagline {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* Links */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow);
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
  animation: fadeUp 0.6s ease both;
}

.link-card:nth-child(1) {
  animation-delay: 0.1s;
}
.link-card:nth-child(2) {
  animation-delay: 0.18s;
}
.link-card:nth-child(3) {
  animation-delay: 0.26s;
}
.link-card:nth-child(4) {
  animation-delay: 0.34s;
}
.link-card:nth-child(5) {
  animation-delay: 0.42s;
}
.link-card:nth-child(6) {
  animation-delay: 0.5s;
}
.link-card:nth-child(7) {
  animation-delay: 0.58s;
}
.link-card:nth-child(8) {
  animation-delay: 0.66s;
}
.link-card:nth-child(9) {
  animation-delay: 0.74s;
}
.link-card:nth-child(10) {
  animation-delay: 0.82s;
}

.link-card:hover {
  background: var(--bg);
  color: var(--hover-text);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.link-card:hover .link-meta {
  color: rgb(65, 65, 65);
}

.link-card:hover .icon-wrap {
  border: 1px solid var(--hover-text);
}

.link-card:hover .icon-wrap img {
  filter: none;
}

.link-card:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

.icon-wrap {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.22s ease,
    border 0.22s ease;
}

.icon-wrap img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.22s ease;
}

.link-text {
  flex: 1;
}

.link-label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.link-meta {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-tagline);
  margin-top: 2px;
  transition: color 0.22s ease;
}

.arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  flex-shrink: 0;
}

/* Divider */
.divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  animation: fadeUp 0.6s 0.15s ease both;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.03em;
  animation: fadeUp 0.6s 0.35s ease both;
}

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

@media (max-width: 520px) {
  .name {
    font-size: 24px;
  }
}
