/* --- 1. Global & Background --- */
body {
  margin: 0;
  padding: 0;
  background-color: #121212;
  font-family: 'Fira Code', monospace;
  color: #ddd;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* --- 2. Layout & Containers --- */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 36px 16px;
  position: relative;
  z-index: 1;
}

.card {
  background-color: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- 3. Navigation --- */
#nav-bar {
  display: flex;
  padding-bottom: 30px;
}

#nav-bar>h1 {
  margin: 0 10px;
  cursor: pointer;
}

.active-nav {
  text-decoration: underline;
}

.deactive-section {
  display: none;
}

/* --- 4. Typography --- */
h1 {
  margin: 0 0 16px;
  font-size: 2rem;
  color: #fff;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* --- 5. Icon Links & Brand Colors --- */
.icon-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.icon-row a {
  font-size: 1.3rem;
  transition: transform 0.2s;
  text-decoration: none;
}

.icon-row a:hover {
  transform: scale(1.2);
}

.fa-linkedin,
.fa-artstation {
  color: #49bfff;
}

.fa-github,
.fa-discord,
.fa-reddit {
  color: #ffffff;
}

.fa-youtube,
.fa-itch-io {
  color: #ff6161;
}

.fa-envelope {
  color: #c062ff;
}

.fa-file {
  color: #53ff56;
}

/* --- 6. Projects Grid & Cards --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background-color: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.project-card>img,
.project-card>video {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.project-card .content {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.1rem;
}

.project-card .content p {
  font-size: 0.85rem;
  color: #a0a0a0;
  line-height: 1.5;
  margin: 10px 0 15px;
  font-weight: 400;
}

.project-card a {
  margin-top: 12px;
  color: #1abc9c;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.project-card a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* --- 7. Tags, Stacks & GitHub Info --- */
.status-tag {
  margin-top: 8px;
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 6px;
  text-transform: uppercase;
  color: white;
}

.status-tag i {
  margin-left: 6px;
}

.status-tag.done {
  background-color: #27ae60;
}

.status-tag.progress {
  background-color: #b74141;
}

.tech-stack span {
  background-color: #333;
  color: #ccc;
  font-size: 0.7rem;
  padding: 2px 6px;
  margin: 2px -5px 2px 2px;
  display: inline-block;
  border-radius: 4px;
}

.tech-stack span i {
  margin-right: 4px;
}

[class^="year-stack-"] {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

[class^="year-stack-"] span {
  color: #121212;
  font-size: 0.7rem;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  font-weight: 600;
}

.year-stack-2026 span {
  background-color: #3ec6c9;
}

.year-stack-2025 span {
  background-color: #c5b53e;
}

.year-stack-2024 span {
  background-color: #c27146;
}

.year-stack-2023 span {
  background-color: #60bc3f;
}

.commit-info {
  font-family: 'Fira Code', monospace;
  letter-spacing: -0.2px;
}

.commit-info strong {
  color: #fff;
  background: rgba(204, 204, 204, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
}

/* --- 8. Compact Footer Card --- */
footer {
  background-color: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  font-size: 0.85rem;
  color: #8b949e;
}

footer p {
  margin: 0;
  white-space: nowrap;
}

.view-count-raw {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #ccd6f6;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

/* --- 9. Media Queries --- */
@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }

  p {
    font-size: 0.95rem;
  }

  .icon-row {
    justify-content: center;
  }

  .project-card>img {
    height: 140px;
  }
}

@media (max-width: 600px) {
  footer {
    flex-direction: column;
    text-align: center;
    padding: 16px;
    margin: 20px 16px;
    gap: 12px;
  }

  footer p {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 12px;
  }

  .card {
    padding: 16px;
  }

  h1 {
    font-size: 1.4rem;
  }

  .project-card>img {
    height: 120px;
  }
}