:root {
  --surface: #ffffff;
  --surface-trans: rgba(255, 255, 255, 0.75);
  --on-surface: #1c1917;
  --muted: #57534e;
  --primary: #ea580c;
  --primary-glow: rgba(234, 88, 12, 0.25);
  --border: #e7e5e4;
  --nav-bg: #fafaf9;

  --bg-color: #fff7ed;

  --elev-1: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  --elev-card: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
}

:root[data-theme="dark"] {
  --surface: #1c1917;
  --surface-trans: rgba(28, 25, 23, 0.7);
  --on-surface: #fafaf9;
  --muted: #a8a29e;
  --primary: #fb923c;
  --primary-glow: rgba(251, 146, 60, 0.35);
  --border: #292524;
  --nav-bg: #292524;

  --bg-color: #0c0a09;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: transparent;
  color: var(--on-surface);
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
  transition: color 0.3s ease;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: var(--bg-color);
  transition: background-color 0.3s ease;
}

/* Minimalist Redesign */
.minimal-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  width: 100%;
}

.profile-card {
  width: 100%;
  max-width: 800px;
  background: var(--surface-trans);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--elev-card);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2.5rem;
}

.atom {
  width: 100px;
  /* Restored large size */
  height: 100px;
  color: var(--primary);
  filter: drop-shadow(0 0 20px var(--primary-glow));
  animation: atomRotate 20s infinite;
  flex-shrink: 0;
}

@keyframes atomRotate {

  0%,
  10% {
    transform: rotate(0deg);
  }

  15%,
  25% {
    transform: rotate(60deg);
  }

  30%,
  40% {
    transform: rotate(180deg);
  }

  45%,
  55% {
    transform: rotate(120deg);
  }

  60%,
  70% {
    transform: rotate(240deg);
  }

  75%,
  85% {
    transform: rotate(300deg);
  }

  90%,
  100% {
    transform: rotate(360deg);
  }
}

.name {
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.9;
  color: var(--primary);
  text-shadow: 0 0 30px var(--primary-glow);
  margin-bottom: 0;
  white-space: nowrap;
  text-align: center;
}

.social-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.profile-content {
  text-align: left;
  width: 100%;
}

.profile-content p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.profile-content p:last-child {
  margin-bottom: 0;
}

.minimal-footer {
  margin-top: 2rem;
  text-align: center;
}

.minimal-footer p {
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Floating Theme Toggle */
.theme-toggle.floating {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-trans);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: var(--elev-1);
}

.theme-toggle.floating:hover {
  background: var(--surface);
  border-color: var(--primary);
  transform: rotate(15deg);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.theme-icon {
  width: 22px;
  height: 22px;
  background-color: var(--muted);
  -webkit-mask-image: url('https://api.iconify.design/mdi:weather-night.svg');
  mask-image: url('https://api.iconify.design/mdi:weather-night.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.2s;
}

:root[data-theme="dark"] .theme-icon {
  -webkit-mask-image: url('https://api.iconify.design/mdi:weather-sunny.svg');
  mask-image: url('https://api.iconify.design/mdi:weather-sunny.svg');
}

.theme-toggle:hover .theme-icon {
  background-color: var(--primary);
}

/* Icon Styles */
.icon {
  height: 48px;
  padding: 0 1.5rem;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
  background: var(--nav-bg);
  border: 1px solid var(--border);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.social-icon {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.icon:hover {
  transform: translateY(-2px);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
  background: var(--surface);
}

.icon-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.icon--github .social-icon {
  mask-image: url('https://api.iconify.design/mdi:github.svg');
  -webkit-mask-image: url('https://api.iconify.design/mdi:github.svg');
}

.icon--huggingface .social-icon {
  mask-image: url('https://api.iconify.design/simple-icons:huggingface.svg');
  -webkit-mask-image: url('https://api.iconify.design/simple-icons:huggingface.svg');
}

.icon--substack .social-icon {
  mask-image: url('https://api.iconify.design/simple-icons:substack.svg');
  -webkit-mask-image: url('https://api.iconify.design/simple-icons:substack.svg');
  -webkit-mask-size: 85%;
  mask-size: 85%;
}

.icon--email .social-icon {
  mask-image: url('https://api.iconify.design/mdi:email.svg');
  -webkit-mask-image: url('https://api.iconify.design/mdi:email.svg');
}

@media (max-width: 480px) {
  .profile-card {
    padding: 2rem 1.5rem;
  }

  .name {
    font-size: 2.5rem;
  }

  .atom {
    width: 80px;
    height: 80px;
  }

  .icon-label {
    display: none;
    /* Hide label on mobile */
  }

  .icon {
    width: 48px;
    /* Reset to square/circle */
    padding: 0;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}