@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #000000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: #ffffff;
}

.container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.file-tree {
  width: 30%;
  background: #000000;
  padding: 1.5rem;
  overflow-y: auto;
  border-right: 2px solid #ffffff;
}

.terminal-header {
  margin-bottom: 1rem;
  font-weight: 700;
}

.tree, .tree ul {
  list-style: none;
}

.tree ul {
  padding-left: 1.5rem;
  display: none;
  transition: all 0.3s ease;
}

.tree .folder {
  cursor: pointer;
  padding: 0.2rem 0;
}

.tree .folder > span {
  transition: color 0.2s ease;
}

.tree .folder:hover > span {
  color: #00ff00;
}

.tree .folder::before {
  content: '├── ';
  color: #ffffff;
}

.tree .folder:last-child::before {
  content: '└── ';
}

.tree .file {
  cursor: pointer;
  padding: 0.2rem 0;
}

.tree .file > span {
  transition: color 0.2s ease;
}

.tree .file:hover > span {
  color: #cccccc;
}

.tree .file::before {
  content: '├── ';
  color: #ffffff;
}

.tree .file:last-child::before {
  content: '└── ';
}

.tree .folder.open > ul {
  display: block;
}

.content {
  width: 70%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 1.2rem;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  overflow-y: auto;
}

.content-panel {
  display: none;
  width: 100%;
  max-width: 800px;
}

.content-panel.active {
  display: block;
}

.content-panel p {
  margin-bottom: 1rem;
}

.content-panel .social-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.content-panel .social-links li {
  flex: 0 0 auto;
}

.content-panel .contact-links {
  list-style: none;
  display: block;
}

.content-panel .contact-links li {
  margin-bottom: 0.5rem;
}

.content-panel a {
  color: #00ff00;
  text-decoration: none;
  border-bottom: 1px solid #00ff00;
  transition: color 0.2s ease;
}

.content-panel a:hover {
  color: #cccccc;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .file-tree {
    width: 100%;
    max-height: 40vh;
    border-right: none;
    border-bottom: 2px solid #ffffff;
  }
  .content {
    width: 100%;
    height: 60vh;
    aspect-ratio: auto;
  }
  .content-panel .social-links {
    flex-direction: column;
    gap: 1rem;
  }
}

.tree .folder:focus, .tree .file:focus {
  outline: none;
}