:root {
  --bg: #0a0a0a;
  --card: #1a1a1a;
  --card-hover: #2a2a2a;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: #a0a0a0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image: url('assets/bg-topographic.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 1rem;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: blur(8px);
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 10, 10, 0.85);
  z-index: -1;
}

.page-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  width: 100%;
}

.container {
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1rem;
}

.left-column {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 100%;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: background-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  background-color: var(--card-hover);
}

.card h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.2s ease;
}

.social-link:hover {
  background-color: var(--card-hover);
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.social-link-info {
  display: flex;
  flex-direction: column;
}

.social-link-name {
  font-weight: 500;
}

.social-link-username {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-link:hover {
  background-color: var(--card-hover);
  color: var(--text);
}

.contact-link:hover {
  color: var(--text);
}

.contact-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.contact-link-info {
  display: flex;
  flex-direction: column;
}

.contact-card .contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.contact-email {
  font-size: 0.875rem;
}

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

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.avatar-container {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  margin-bottom: 1rem;
}

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

.avatar-loading {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-hover);
}

.avatar-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--text-muted);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* .status-bubble {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.5rem 0.75rem;
  margin-bottom: -20px;
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.status-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--border);
}

.status-bubble::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--card);
  z-index: 1;
}

.status-emoji {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.status-text {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-bubble:hover {
  max-width: none;
  white-space: normal;
  word-break: break-word;
  z-index: 10;
}

.status-bubble:hover .status-text {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
} */

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

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.clickable-name {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.clickable-name:hover {
  opacity: 0.7;
}

@keyframes honkShake {
  0% { transform: translateX(0); }
  10% { transform: translateX(-3px) rotate(-2deg); }
  20% { transform: translateX(3px) rotate(2deg); }
  30% { transform: translateX(-3px) rotate(-2deg); }
  40% { transform: translateX(3px) rotate(2deg); }
  50% { transform: translateX(-2px); }
  60% { transform: translateX(2px); }
  70% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
  90% { transform: translateX(0); }
  100% { transform: translateX(0); }
}

.honk-animation {
  animation: honkShake 0.4s ease-out;
}

.tags {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tags img {
  height: 40px;
  width: auto;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.tags img:hover {
  opacity: 0.7;
}

.bio {
  list-style: none;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.bio li {
  padding: 0.5rem 0;
  color: var(--text-muted);
}

.bio li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bio li a:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  body {
    min-height: 100dvh;
  }

  .page-wrapper {
    align-items: flex-start;
  }

  .container {
    grid-template-columns: 1fr;
  }

  .left-column {
    order: 2;
    grid-template-rows: auto auto;
  }

  .right-column {
    order: 1;
  }

  .card {
    height: auto;
  }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.greeting {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  z-index: 67;
  pointer-events: none;
  animation: greetingSlideIn 0.5s ease-out forwards;
  max-width: 90%;
  text-align: center;
}

@keyframes greetingSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.greeting.fade-out {
  animation: greetingFadeOut 0.5s ease-out forwards;
}

@keyframes greetingFadeOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
  }
}

.profile-card {
  position: relative;
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.page-wrapper {
  position: relative;
  z-index: 10;
}

.greeting {
  z-index: 1000;
}

.nsfw-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: nsfwFadeIn 0.3s ease-out forwards;
}

.nsfw-modal.open {
  display: flex;
}

@keyframes nsfwFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nsfwFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.nsfw-modal.closing {
  animation: nsfwFadeOut 0.3s ease-out forwards;
}

.nsfw-modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: nsfwSlideIn 0.3s ease-out forwards;
}

@keyframes nsfwSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes nsfwSlideOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
}

.nsfw-modal.closing .nsfw-modal-content {
  animation: nsfwSlideOut 0.3s ease-out forwards;
}

.nsfw-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.nsfw-modal-content h2 {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.nsfw-main {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.nsfw-sub {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.nsfw-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.nsfw-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nsfw-btn.back {
  background: var(--border);
  color: var(--text-muted);
}

.nsfw-btn.back:hover {
  background: var(--card-hover);
  color: var(--text);
}

.nsfw-btn.enter {
  background: var(--text);
  color: var(--bg);
}

.nsfw-btn.enter:hover {
  opacity: 0.9;
}

@media (max-width: 480px) {
  .nsfw-modal-content {
    padding: 1.5rem;
  }
  
  .nsfw-buttons {
    flex-direction: column;
  }
  
  .nsfw-btn {
    width: 100%;
  }
}
