/* Nord color palette */
:root {
  --nord0: #2e3440;
  --nord1: #3b4252;
  --nord2: #434c5e;
  --nord3: #4c566a;
  --nord4: #d8dee9;
  --nord5: #e5e9f0;
  --nord6: #eceff4;
  --nord7: #8fbcbb;
  --nord8: #88c0d0;
  --nord9: #81a1c1;
  --nord10: #5e81ac;
  --nord11: #bf616a;
  --nord12: #d08770;
  --nord13: #ebcb8b;
  --nord14: #a3be8c;
  --nord15: #b48ead;

  --bg-primary: var(--nord0);
  --bg-card: var(--nord1);
  --bg-hover: var(--nord2);
  --border: var(--nord2);
  --border-hover: var(--nord8);
  --text-primary: var(--nord6);
  --text-secondary: var(--nord4);
  --text-muted: var(--nord3);
  --accent: var(--nord8);
  --accent-alt: var(--nord9);
}

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

html {
  font-size: 18px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, var(--nord0) 0%, var(--nord1) 100%);
  background-attachment: fixed;
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.card {
  max-width: 480px;
  width: 100%;
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

/* Header & Avatar */
header {
  text-align: center;
  margin-bottom: 2rem;
}

.avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nord9) 0%, var(--nord10) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 12px rgba(136, 192, 208, 0.3),
    inset 0 -2px 8px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--nord2);
  overflow: hidden;
}

.avatar svg {
  width: 60%;
  height: 60%;
  color: var(--nord6);
}

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

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.tagline {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Links */
.links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.links li a {
  display: flex;
  align-items: center; /* Center icon vertically */
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.links li a:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(136, 192, 208, 0.15);
}

.links li a:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(136, 192, 208, 0.25);
}

.link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Slightly larger for better balance */
  height: 32px;
  font-size: 1.5rem; /* Emoji size */
  color: var(--accent-alt);
  flex-shrink: 0;
}

.link-icon svg {
  width: 100%;
  height: 100%;
}

.link-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden; /* Prevent text overflow issues */
}

.link-text {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-secondary); /* Was text-primary */
  line-height: 1.2;
}

.link-desc {
  font-size: 0.85rem;
  color: var(--text-secondary); /* Was text-muted */
  opacity: 0.8; /* Slightly dimmed but much more readable than muted */
  line-height: 1.3;
  /* Optional: truncate text if too long */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Allow multiline description on larger screens if desired, or keep truncated */
@media (min-width: 480px) {
  .link-desc {
     white-space: normal;
  }
}

/* Footer */
footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Subtle animation */
@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: fadeIn 0.4s ease-out;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Responsive */
@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .container {
    padding: 1rem;
  }

  .card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }
}

/* ========================================
   Light theme - uncomment to use
   ======================================== */
/*
:root {
  --bg-primary: var(--nord6);
  --bg-card: var(--nord5);
  --bg-hover: var(--nord4);
  --border: var(--nord4);
  --border-hover: var(--nord10);
  --text-primary: var(--nord0);
  --text-secondary: var(--nord1);
  --text-muted: var(--nord3);
  --accent: var(--nord10);
  --accent-alt: var(--nord9);
}

body {
  background: linear-gradient(135deg, var(--nord5) 0%, var(--nord6) 100%);
}

.avatar {
  box-shadow:
    0 4px 12px rgba(94, 129, 172, 0.2),
    inset 0 -2px 8px rgba(0, 0, 0, 0.05);
  border-color: var(--nord4);
}

.card {
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 10px 40px rgba(0, 0, 0, 0.08);
}

.links li a:hover {
  box-shadow: 0 4px 12px rgba(94, 129, 172, 0.1);
}
*/
