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

body {
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  height: 100vh;
  overflow: hidden;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}


.layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  width: 100%;
  max-width: 1100px;
  padding: 40px;
  min-height: calc(100vh - 96px);
  align-items: start;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
}

/* ── Sidebar ── */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid #e0e0e0;
  padding-right: 24px;
  align-self: stretch;
}

.mobile-bar {
  display: none;
}

.nav-items {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #aaa;
  padding-bottom: 18px;
  border-bottom: 1px solid #e0e0e0;
}

.nav-item.active {
  color: #1a1a1a;
}

.nav-item.active span {
  font-family: "Silkscreen", monospace;
}

.nav-item span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav-item:hover span {
  transform: scale(1.08);
}

.folder-icon {
  width: 36px;
  height: auto;
  image-rendering: pixelated;
  transition: transform 0.2s ease;
}

.nav-item:hover .folder-icon {
  transform: scale(1.1);
}

.hamburger {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-title {
  font-family: "Silkscreen", monospace;
  font-size: 14px;
  color: #1a1a1a;
}

/* ── Content Load Animation ── */

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

.bio {}

/* ── Content Panels ── */

.content-panel {
  animation: contentFadeIn 0.4s ease both;
}

.content-panel[data-panel="projects"],
.content-panel[data-panel="experience"],
.content-panel[data-panel="testimonials"],
.content-panel[data-panel="education"] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.education-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.testimonial-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-panel.hidden {
  display: none;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1a1a1a;
}

.project-link-icon {
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.project-link:hover .project-link-icon {
  opacity: 1;
}

.project-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
}

.project-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
}

.project-header:hover {
  background-color: #f9f9f9;
}

.project-chevron {
  color: #aaa;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.project-item.open .project-chevron {
  transform: rotate(180deg);
}

.project-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.project-item.open .project-body {
  grid-template-rows: 1fr;
}

.project-body-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-item.open .project-body-inner {
  padding: 0 20px 24px;
}

.project-body-inner p {
  line-height: 1.8;
  color: #1a1a1a;
}

.about-header {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.tech-cell {
  aspect-ratio: 1;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  min-width: 0;
}

.tech-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tech-icon-text {
  font-family: "Silkscreen", monospace;
  font-size: 20px;
  color: #1a1a1a;
  line-height: 1;
}

.tech-label {
  font-size: 9px;
  color: #777;
  text-align: center;
  line-height: 1.2;
}

.tech-cell:nth-child(6n) {
  border-right: none;
}

.tech-cell:nth-last-child(-n+6) {
  border-bottom: none;
}

.testimonial-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  line-height: 1.8;
  color: #1a1a1a;
}

.experience-list {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  line-height: 1.8;
  color: #1a1a1a;
}

.education-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 32px 0;
}

.education-degree {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

.education-years {
  font-size: 12px;
  color: #777;
}

.education-desc {
  line-height: 1.8;
  color: #1a1a1a;
}

.section-subheading {
  font-size: 12px;
  color: #777;
  margin-top: 32px;
}

.about-header + .project-item {
  margin-top: 32px;
}

.project-desc {
  line-height: 1.8;
  color: #1a1a1a;
}

.project-stack-heading {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
}

.stack-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.stack-table td {
  padding: 10px 14px;
  vertical-align: top;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.stack-table td:last-child {
  border-right: none;
}

.stack-table tr:last-child td {
  border-bottom: none;
}

.stack-table td:first-child {
  white-space: nowrap;
  color: #1a1a1a;
  width: 100px;
}

.project-inline-link {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-inline-link:hover {
  color: #83BC91;
}

.project-screenshot {
  display: block;
  width: 100%;
  height: 370px;
  object-fit: contain;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #d4d4d4;
}

/* ── Bio ── */

.bio {
  display: flex;
  flex-direction: column;
  gap: 20px;
  line-height: 1.8;
  overflow-y: auto;
  max-height: calc(100vh - 176px);
}

.bio .social-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* ── Profile ── */

.profile {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.profile-name {
  font-size: 11px;
  color: #1a1a1a;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 2px;
  white-space: nowrap;
}

.profile-photo {
  width: 220px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1a1a1a;
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: 100%;
  text-align: left;
}

.social-link span {
  display: inline-block;
  flex: 1;
}

.social-link-icon {
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.social-link:hover .social-link-icon {
  opacity: 1;
}

.copy-icon {
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.social-link:hover .copy-icon {
  opacity: 1;
}

.social-link:hover {
  background-color: #f9f9f9;
  color: #83BC91;
}

.link-bullet {
  display: none;
  font-family: "Silkscreen", monospace;
}

/* ── Mobile Nav ── */

.mobile-nav {
  display: none;
}

/* ── Responsive ── */

@media (max-width: 720px) {
  body {
    height: auto;
    overflow: auto;
    align-items: flex-start;
    padding: 16px;
  }

  .layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 16px;
    height: auto;
    border-radius: 8px;
  }

  .sidebar {
    order: 1;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding-right: 0;
    padding-bottom: 16px;
    gap: 0;
  }

  .mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .nav-items {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
  }

  .nav-items.open {
    display: flex;
  }

  .bio {
    order: 2;
    max-height: none;
    overflow-y: visible;
  }

  .about-header {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .profile {
    width: auto;
    align-items: center;
  }

  .profile-name {
    writing-mode: horizontal-tb;
    letter-spacing: 1px;
    color: #aaa;
    font-size: 12px;
  }

  .profile-photo {
    width: 52px;
    height: 52px;
    max-height: none;
    object-fit: cover;
    border-radius: 50%;
  }

  .bio .social-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tech-cell:nth-child(6n) {
    border-right: 1px solid #e0e0e0;
  }

  .tech-cell:nth-child(3n) {
    border-right: none;
  }

  .tech-cell:nth-last-child(-n+6) {
    border-bottom: 1px solid #e0e0e0;
  }

  .tech-cell:nth-last-child(-n+3) {
    border-bottom: none;
  }

  .project-screenshot {
    height: 220px;
  }

  .stack-table {
    font-size: 12px;
  }

  .sidebar {
    display: none;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 4px;
    cursor: pointer;
    color: #aaa;
    font-size: 10px;
    text-align: center;
    border-right: 1px solid #e0e0e0;
  }

  .mobile-nav-item:last-child {
    border-right: none;
  }

  .mobile-nav-item.active {
    background: #1a1a1a;
    color: #ffffff;
    border-right: none;
  }

  .mobile-nav-item.active span {
    font-family: "Silkscreen", monospace;
  }

  .bio {
    padding-bottom: 80px;
  }
}
