body {
  margin: 0;
  background-color: #000;
  color: #fff;
}

.topnav {
  background-color: #050505;
  overflow: hidden;
  padding-top: 30px;
  padding-left: 40px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.topnav a {
  float: left;
  color: #8c8c8c;
  text-align: center;
  padding: 14px 30px 14px 0;
  text-decoration: none;
  font-size: 14px;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.topnav a:hover {
  color: #ffffff;
  background-color: transparent;
}

/* --- SECTIONS --- */

.section {
  height: calc(100% + 50px);
  padding-top: 100px;
  padding-bottom: 50px;
  padding-left: 40px;
  box-sizing: border-box;
  border-bottom: 1px solid #333;
}

.section h1 {
  font-family: "Courier New", Courier, monospace;
  text-transform: uppercase;
  color: #8c8c8c;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.container h1 {
    margin-bottom: 40px;
    font-size: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

.info-box {
    background-color: #0a0a0a;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.info-box h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.info-box p {
    color: #b3b3b3;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 60px;
    margin-top: 1.5rem;
}

.links a {
    display: block;
    padding: 5px 0;
    color: #a0a0a0;
    text-decoration: none;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: transparent;
    border: none;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    line-height: 1.5;
}

.links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration-thickness: 2px;
}

.links a:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .info-box {
        padding: 30px 20px;
    }
    .links {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 20px;
    }
}

/* --- Languages Grid --- */
.languages-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease;
}

.language-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.language-item span {
    color: #e0e0e0;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

/* --- MODS CARD --- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

/* --- META FORMATTING --- */
.mod-meta {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mod-meta p {
    margin: 0;
    color: #8b8b8d;
    font-size: 0.85rem;
    line-height: 1.5;
    font-family: system-ui, -apple-system, sans-serif;
}

.mod-meta strong {
    color: #8b8b8d;
    font-weight: 700;
}

.meta-value {
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.project-card {
    background-color: #121213;
    border: 1px solid #222224;
    border-radius: 6px;
    width: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    margin-bottom: 24px;
    height: 100%;
    margin-left: 0;
}

.project-card:hover {
    border-color: #444448;
}

.card-header {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.card-icon img {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
}

.card-title-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}

.card-description {
    color: #8b8b8d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #1f1f21;
    padding-top: 20px;
}

/* --- CARD LINKS --- */
.links-wrapper {
    display: grid;
    grid-template-columns: repeat(5, max-content);
    align-items: center;
    row-gap: 10px;
    column-gap: 12px;
    width: 100%;
}

.mod-links-separator {
    display: none !important;
}

.mod-links-label {
    color: #8b8b8d !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.mod-links-label:hover {
    color: #ffffff !important;
}

.mod-links-label:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -12px;
    color: #555;
    text-decoration: none;
    display: inline-block;
    font-weight: normal;
}

.mod-links-label:nth-child(3)::after {
    display: none;
}

.mod-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.mod-links {
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
}

.bsky-wrapper {
    width: 500px;
    max-width: 100%;
    transform: scale(0.85);
    transform-origin: top left;
    margin: 0;
}
