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

html, body {
  height: 100%;
  width: 100%;
  background: #0a0a0a;
  color: #ffffff;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Shader Toggle Container */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.toggle-label {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Geist', sans-serif;
  transition: color 0.3s ease;
}

.toggle-label.active {
  color: #f4a358;
}

/* Shader Toggle Switch */
.shader-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.shader-toggle .toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.shader-toggle.active {
  background: rgba(244, 163, 88, 0.3);
  border-color: rgba(244, 163, 88, 0.5);
}

.shader-toggle.active .toggle-slider {
  left: 22px;
  background: #f4a358;
}

/* Canvas as card background */
canvas#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 16px;
  z-index: 1;
  object-fit: cover;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

canvas#canvas.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Container - Centered and Narrow */
.container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 2rem 2rem;
  gap: 1.5rem;
}

/* Top Shader Canvas */
.top-shader-canvas {
  width: 300px;
  height: 300px;
  border-radius: 16px;
  display: block;
  margin: -2rem auto 0 auto;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.content {
  max-width: 680px;
  width: 100%;
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.content-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 2.5rem 2.5rem 2.5rem;
  background: rgba(22, 22, 24, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease;
}

.content-overlay.shader-off {
  background: #161618;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.header .bio {
  margin-top: 1.5rem;
}

.name {
  font-size: 2.5rem;
  font-weight: 400;
  font-family: 'Geist Mono', monospace;
  letter-spacing: -0.03em;
  color: #fffffc;
  line-height: 1.2;
  margin: 0;
}

.title {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  margin: 0;
}

.bio {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  white-space: pre-line;
}

.works {
  margin-top: 1.5rem;
}

.works p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.link {
  font-size: 0.875rem;
  font-weight: 300;
  color: #f4a358;
  text-decoration: underline;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.link:hover {
  color: #e77433;
}

/* Icon Buttons */
.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4a358;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 163, 88, 0.4);
  color: #e77433;
  transform: translateY(-2px);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1.5rem;
    overflow-x: hidden;
    gap: 1.25rem;
  }

  .top-shader-canvas {
    width: min(90vw, 250px);
    height: min(90vw, 250px);
  }

  .content {
    overflow: hidden;
    position: relative;
  }

  canvas#canvas {
    border-radius: 16px;
    overflow: hidden;
  }

  .content-overlay {
    gap: 1.25rem;
    padding: 1.75rem 1.5rem 2rem 1.5rem;
  }

  .name {
    font-size: 2rem;
  }

  .title {
    font-size: 1rem;
  }

  .bio,
  .works p {
    font-size: 0.875rem;
  }

  .links {
    gap: 0.75rem;
    padding-top: 1.5rem;
  }

  .link {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.25rem 1rem;
    overflow-x: hidden;
    gap: 1rem;
  }

  .top-shader-canvas {
    width: min(85vw, 200px);
    height: min(85vw, 200px);
  }

  .content {
    overflow: hidden;
    position: relative;
  }

  canvas#canvas {
    border-radius: 16px;
    overflow: hidden;
  }

  .content-overlay {
    gap: 1rem;
    padding: 1.5rem 1.25rem 1.75rem 1.25rem;
  }

  .name {
    font-size: 1.75rem;
  }

  .title {
    font-size: 1rem;
  }

  .bio,
  .works p {
    font-size: 0.8125rem;
  }

  .links {
    gap: 0.75rem;
    flex-direction: row;
    flex-wrap: nowrap;
    padding-top: 1.25rem;
    justify-content: flex-start;
  }

  .link {
    font-size: 0.8125rem;
  }

  .toggle-container {
    margin-left: auto;
    flex-shrink: 0;
  }
}

