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

:root {
  --bg: #0a0a0a;
  --fg: #ededed;
  --muted: #888888;
  --dim: #666666;
  --border: #222222;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 0 80px;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.header-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.name {
  font-weight: 500;
  font-size: 15px;
  color: var(--fg);
}

.tagline {
  font-size: 14px;
  color: var(--dim);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--fg);
}

.hero {
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeIn 0.6s ease 0.1s forwards;
}

.hero-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.pfp-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.pfp {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.pfp-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  pointer-events: none;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.intro em {
  color: var(--fg);
  font-style: italic;
}

.intro.muted {
  color: var(--dim);
}

.highlight {
  color: var(--fg);
  font-weight: 500;
}

.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.section:nth-child(2) {
  animation-delay: 0.15s;
}
.section:nth-child(3) {
  animation-delay: 0.2s;
}
.section:nth-child(4) {
  animation-delay: 0.25s;
}
.section:nth-child(5) {
  animation-delay: 0.3s;
}

.section-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: center;
}

.section-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--dim);
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.skill-group h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
}

.skill-group p {
  color: var(--muted);
  font-size: 14px;
}

.dni .section-content p {
  color: var(--dim);
  font-size: 14px;
}

.carousel-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  min-width: 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  color: var(--fg);
  border-color: var(--muted);
}

.show-card {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
}

.show-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.show-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.show-card:hover .show-overlay {
  opacity: 1;
}

.show-card:hover img {
  transform: scale(1.05);
}

.show-year {
  font-size: 12px;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
}

.show-view {
  font-size: 13px;
  color: var(--fg);
  font-weight: 500;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.links a:hover {
  color: var(--fg);
}

.links a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer {
  padding: 48px 0;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.35s forwards;
}

.footer p {
  font-size: 13px;
  color: var(--dim);
}

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

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 0 48px;
  }

  .hero-content {
    flex-direction: column;
    gap: 24px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .section-label {
    padding-top: 0;
  }

  .links {
    flex-direction: column;
    gap: 12px;
  }

  .carousel-controls {
    display: none;
  }

  .carousel-track {
    padding: 4px 0;
  }
}
