/* =============================================
   TOKENS & RESET
   ============================================= */
:root {
  --bg: #0a0a0c;
  --bg-card: #111116;
  --bg-card-h: #18181f;
  --border: rgba(255, 255, 255, 0.07);
  --border-h: rgba(236, 72, 153, 0.4);
  --pink: #ec4899;
  --pink-dim: #be185d;
  --pink-glow: rgba(236, 72, 153, 0.18);
  --text: #e8e8ef;
  --text-muted: #6b6b80;
  --mono: 'DM Mono', monospace;
  --sans: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* =============================================
   CANVAS BACKGROUND
   ============================================= */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* =============================================
   LANG BAR — centered, prominent
   ============================================= */
.lang-bar {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.5rem;
  white-space: nowrap;
}

.lang-btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  color: var(--pink);
  background: var(--pink-glow);
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.lang-divider {
  color: var(--text-muted);
  font-size: 0.75rem;
  user-select: none;
  opacity: 0.4;
  padding: 0 0.1rem;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 4.5rem;
  gap: 2.5rem;
}

/* Avatar */
.avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}

.avatar-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  display: block;
  border: 2px solid var(--bg);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), transparent 60%);
  animation: ring-spin 4s linear infinite;
  z-index: 1;
  opacity: 1;
  filter: blur(8px);
}

.avatar-ring.ring-2 {
  inset: -15px;
  border: 1.5px solid rgba(236, 72, 153, 0.7);
  background: transparent;
  animation: ring-pulse 3s ease-in-out infinite alternate;
  z-index: 1;
  opacity: 0.8;
  filter: none;
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ring-pulse {
  0% {
    transform: scale(0.98);
    opacity: 0.4;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
  }

  100% {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.8);
  }
}

/* Hero text */
.hero-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.5rem;
}

.hero-name {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text);
  text-shadow:
    0 0 20px rgba(236, 72, 153, 0.5),
    0 0 50px rgba(236, 72, 153, 0.3),
    0 0 100px rgba(236, 72, 153, 0.2);
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px 2px rgba(74, 222, 128, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.3);
  }
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  box-shadow: 0 0 30px var(--pink-glow);
  transform: translateY(-2px);
}

/* Bio */
.bio-card {
  padding: 1.5rem 1.75rem;
}

.bio-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* =============================================
   TWO-COLUMN BODY
   ============================================= */
.body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.col-left,
.col-right {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

@media (max-width: 620px) {
  .body-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   SECTION LABEL
   ============================================= */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--pink);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =============================================
   LINK CARDS
   ============================================= */
.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--pink-glow);
  color: var(--pink);
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(236, 72, 153, 0.2);
  transition: background var(--transition);
}

.link-card:hover .link-icon {
  background: rgba(236, 72, 153, 0.3);
}

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

.link-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.link-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  font-size: 1.05rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

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

/* =============================================
   TERMINAL
   ============================================= */
.terminal-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: text;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.terminal-wrap:focus-within,
.terminal-wrap.active {
  border-color: var(--border-h);
  box-shadow: 0 0 30px var(--pink-glow);
}

.terminal-bar {
  background: #1a1a22;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.t-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-left: 0.5rem;
}

.terminal-body {
  background: var(--bg-card);
  padding: 1.25rem 1.25rem 1rem;
  min-height: 120px;
  font-size: 0.82rem;
  line-height: 1.7;
}

.t-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.t-prompt {
  color: var(--pink);
  user-select: none;
  font-weight: 500;
  flex-shrink: 0;
}

.t-cmd {
  color: var(--text);
  white-space: pre;
}

.cursor {
  color: var(--pink);
  animation: blink 1.1s step-end infinite;
  line-height: 1;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.terminal-input-hidden {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

#terminal-output {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.t-output-line {
  padding-left: 1.5rem;
  font-size: 0.8rem;
}

.t-output-line.pink {
  color: var(--pink);
}

.t-output-line.green {
  color: #4ade80;
}

.t-output-line.dim {
  color: var(--text-muted);
}

.t-output-line.white {
  color: var(--text);
}

.terminal-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  letter-spacing: 0.04em;
  opacity: 0.7;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  letter-spacing: 0.06em;
}

/* =============================================
   ENTRANCE ANIMATIONS
   ============================================= */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

.hero {
  animation: fade-up 0.7s ease both;
}

.body-grid {
  animation: fade-up 0.7s 0.18s ease both;
}

.footer {
  animation: fade-up 0.7s 0.35s ease both;
}

/* =============================================
   CAT INTERACTION
   ============================================= */
.cat-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  cursor: pointer;
  position: relative;
  width: max-content;
  align-self: center;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}

.cat-wrapper:hover {
  color: var(--pink);
  transform: scale(1.1);
}

.cat-wrapper i {
  font-size: 2rem;
}

.cat-message {
  position: absolute;
  top: -2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--pink);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
  white-space: nowrap;
  font-weight: bold;
}

.cat-message.show {
  opacity: 1;
  transform: translateY(0);
}

.cat-message::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}