@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

:root {
  --bg:          #1e1e2e;
  --surface:     #313244;
  --surface1:    #45475a;
  --text:        #cdd6f4;
  --subtext:     #bac2de;
  --muted:       #6c7086;
  --overlay:     #585b70;
  --accent:      #cba6f7;
  --accent-soft: rgba(203, 166, 247, 0.18);
  --accent-glow: rgba(203, 166, 247, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 28px;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Merriweather", Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -100%;
  background-image:
    linear-gradient(rgba(203,166,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203,166,247,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-drift 18s linear infinite;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(203,166,247,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(137,180,250,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

@keyframes grid-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(48px, 48px); }
}

.card {
  max-width: 900px;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.top {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
  border: 2px solid var(--surface1);
  box-shadow: 0 0 0 4px var(--accent-glow);
  transition: box-shadow 0.3s ease;
}

.avatar:hover {
  box-shadow: 0 0 0 6px rgba(203,166,247,0.18);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.header-column {
  display: flex;
  flex-direction: column;
}

.name {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.18s ease;
}

.name.pop {
  color: var(--accent);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.links-btn,
.projects-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--subtext);
  font-family: "Merriweather", Georgia, serif;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.links-btn:hover,
.projects-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(203,166,247,0.25);
}

.links-btn.active,
.projects-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(203,166,247,0.3);
}

.status-bar {
  display: flex;
  align-items: center;
  margin-top: 2px;
  height: 20px;
}

.status-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--accent);
  font-family: "Merriweather", Georgia, serif;
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.status-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
  border-radius: 1px;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.tag-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tag-list li {
  color: var(--muted);
  font-size: 14px;
}

.tag-text {
  position: relative;
  display: inline-block;
  cursor: default;
  color: var(--subtext);
}

.tag-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.tag-text:hover::after {
  transform: scaleX(1);
}

.tag-list li:not(:last-child)::after {
  content: "•";
  margin-left: 12px;
  color: var(--overlay);
}

.icons {
  margin-top: 12px;
  display: flex;
  gap: 0;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease;
}

.social-link:hover {
  transform: scale(1.12);
}

.social-link:active {
  transform: scale(1.05);
}

.social-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.projects {
  margin-top: 10px;
}

.projects.hidden {
  display: none;
}

.project {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  align-items: baseline;
}

.project-name {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.project-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.project-name:hover::after {
  transform: scaleX(1);
}

.project-desc {
  color: var(--muted);
  font-size: 13px;
}

.time {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--overlay);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
  z-index: 1;
}

@media (max-width: 640px) {
  .card {
    padding: 20px 18px;
  }

  .top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-row {
    flex-direction: column;
    gap: 10px;
  }

  .icons {
    justify-content: center;
  }

  .status-bar {
    justify-content: center;
  }
}