/* Theme Variables */
:root {
  --bg: #0a0f14;
  --bg-card: #111820;
  --text: #e8fff5;
  --text-muted: #6b8f7a;
  --primary: #22c55e;
  --primary-dim: #166534;
  --border: #1e3a28;
  --glow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(180deg, var(--bg) 0%, #050809 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Background Grid */
.background-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Main Container */
.container {
  position: relative;
  z-index: 10;
  max-width: 28rem;
  margin: 0 auto;
  padding: 3rem 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

/* Profile */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  animation: fadeInUp 0.5s ease-out;
}

/* Avatar */
.avatar-wrapper {
  position: relative;
}

.avatar-glow {
  position: absolute;
  inset: 0;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  filter: blur(20px);
  animation: pulseGlow 2s ease-in-out infinite;
}

.avatar {
  position: relative;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--bg-card);
  box-shadow: var(--glow);
  overflow: visible;
}

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

.cat-overlay {
  position: absolute;
  top: -20px;
  right: -30px;
  width: 10rem;
  height: auto;
  z-index: 5;
  pointer-events: none;
  animation: catBob 2.5s ease-in-out infinite;
}

/* Profile Info */
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.highlight {
  color: var(--primary);
}

.cursor {
  color: var(--primary);
  animation: blink 1s step-end infinite;
}

.bio {
  max-width: 18rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

/* Link Buttons */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(17, 24, 32, 0.5);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  animation: tileIn 0.6s cubic-bezier(.21,.6,.35,1) backwards;
}

@keyframes tileIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.link-button:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow:
    0 8px 30px rgba(34,197,94,0.25),
    inset 0 0 0 rgba(0,0,0,0);
  transform: translateY(-4px);
}

.link-button .prompt {
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.25s ease, text-shadow 0.25s ease;
}

.link-button:hover .prompt {
  transform: translateX(2px);
  text-shadow: 0 0 8px rgba(34,197,94,0.6);
}

.link-button .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.link-button:hover .icon {
  color: var(--primary);
}

.link-button .label {
  flex: 1;
  font-weight: 500;
}

.link-button .arrow {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.link-button:hover .arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* Social Icons */
.socials {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  animation: fadeInUp 0.5s ease-out 0.6s backwards;
}

.social-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(17, 24, 32, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.social-icon:hover svg {
  color: var(--bg);
}

/* Footer */
.footer {
  padding-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  animation: fadeInUp 0.5s ease-out 0.7s backwards;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: var(--glow); }
  50% { box-shadow: var(--glow-intense); }
}

/* Responsive */
@media (min-width: 640px) {
  .name { font-size: 1.875rem; }
  .bio { font-size: 1rem; }
}

@media (max-width: 400px) {
  .container { padding: 2rem 0.75rem; }
  .link-button { padding: 0.875rem 1rem; gap: 0.75rem; }
  .avatar { width: 5rem; height: 5rem; }
}
