* {
  color: white;
}

main {
  margin-top: var(--nav-height);
  min-height: 100vh;
}

/* -- NOT FOUND -- */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  gap: 20px;
}

/* -- HERO -- */
.project-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px 8%;
  align-items: center;
  min-height: 85vh;
}

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

.back-link {
  font-size: 0.95em;
  color: #888;
  transition: color 0.2s ease;
  width: fit-content;
}

.back-link:hover {
  color: #cc67fc;
}

.project-category {
  font-size: 1em;
  color: #888;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-text h1 {
  font-size: 4em;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 0.85em;
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
}

.hero-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #5726fb, #cc67fc);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1em;
  transition:
    opacity 0.3s ease,
    transform 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1em;
  transition:
    border-color 0.3s ease,
    transform 0.2s ease;
}

.btn-secondary:hover {
  border-color: #cc67fc;
  transform: translateY(-2px);
}

.btn-disabled {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 1em;
  color: #555;
  cursor: not-allowed;
}

.hero-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -- SECTIONS -- */
.description-section,
.code-section,
.lesson-section {
  padding: 80px 8%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-label {
  font-size: 0.9em;
  color: #cc67fc;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}

.description-section h2,
.code-section h2 {
  font-size: 2em;
  font-weight: 500;
  margin-bottom: 25px;
}

.description-text {
  font-size: 1.3em;
  font-weight: 300;
  line-height: 1.8;
  color: #ccc;
  max-width: 800px;
}

.code-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
/* -- CODE BLOCK -- */
.snippet-description {
  font-size: 1.3em;
  font-weight: 300;
  line-height: 1.7;
  color: #aaa;
  max-width: 700px;
  margin-bottom: 30px;
}

.code-block {
  background: #111;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  max-width: 900px;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-lang {
  font-size: 0.8em;
  color: #888;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.code-dots span:nth-child(1) {
  background: #ff5f57;
}
.code-dots span:nth-child(2) {
  background: #febc2e;
}
.code-dots span:nth-child(3) {
  background: #28c840;
}

pre {
  margin: 0;
  padding: 25px;
  overflow-x: auto;
}

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
  line-height: 1.7;
  color: #e0e0e0;
}

/* -- LESSON -- */
.lesson-text {
  font-size: 1.3em;
  font-weight: 300;
  line-height: 1.8;
  color: #ccc;
  max-width: 800px;
}

/* -- BOTTOM LINKS -- */
.project-footer-links {
  display: flex;
  gap: 15px;
  padding: 60px 8% 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* -- RESPONSIVE -- */
@media (max-width: 1024px) {
  .project-hero {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 40px 6%;
  }

  .hero-image {
    order: -1;
  }

  .hero-text h1 {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.2em;
  }

  .description-section,
  .code-section,
  .lesson-section,
  .project-footer-links {
    padding: 50px 5%;
  }

  .description-text,
  .lesson-text {
    font-size: 1.1em;
  }
}
