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

:root {
  --bg:         #0a0c10;
  --bg-card:    #10141c;
  --bg-card-hv: #151a26;
  --border:     rgba(255,255,255,0.07);
  --border-hv:  rgba(99,236,176,0.35);
  --green:      #63ecb0;
  --green-dim:  rgba(99,236,176,0.15);
  --text-pri:   #e8edf5;
  --text-sec:   #6a7589;
  --text-mut:   #3d4455;
  --mono:       'JetBrains Mono', monospace;
  --sans:       'Syne', sans-serif;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text-pri);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* =============================================
   BACKGROUND FX
   ============================================= */

/* subtle horizontal scanline overlay */
.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.12) 3px,
    rgba(0,0,0,0.12) 4px
  );
  z-index: 0;
}

/* grain noise */
.noise {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: 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");
  opacity: 0.35;
  z-index: 0;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 3rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* =============================================
   PROFILE HEADER
   ============================================= */
.profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.initials {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--green);
  letter-spacing: 0.05em;
}

.status-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

.profile-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.prompt {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-sec);
  letter-spacing: 0.04em;
}

.caret {
  color: var(--green);
  margin-right: 0.3em;
}

.name {
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-pri);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tagline {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-sec);
  letter-spacing: 0.03em;
}

/* =============================================
   LINK CARDS
   ============================================= */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

/* green left accent on hover */
.link-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  border-radius: 0 2px 2px 0;
}

.link-card:hover {
  background: var(--bg-card-hv);
  border-color: var(--border-hv);
  transform: translateX(3px);
}

.link-card:hover::before {
  transform: scaleY(1);
}

.link-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--green-dim);
  border: 1px solid rgba(99,236,176,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.link-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.link-label {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-pri);
}

.link-sub {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-sec);
  letter-spacing: 0.02em;
}

.link-arrow {
  font-size: 1rem;
  color: var(--text-mut);
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.link-card:hover .link-arrow {
  color: var(--green);
  transform: translate(2px, -2px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  text-align: center;
}

.footer-line {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-mut);
  letter-spacing: 0.04em;
}

/* =============================================
   ENTRANCE ANIMATION
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.profile  { animation: fadeUp 0.5s ease both; animation-delay: 0.1s; }
.links    { animation: fadeUp 0.5s ease both; animation-delay: 0.25s; }
.footer   { animation: fadeUp 0.5s ease both; animation-delay: 0.4s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 480px) {
  .container { padding: 2rem 1.25rem 2rem; }
  .name { font-size: 1.35rem; }
}
