.projects-page {
  padding-top: 60px;
  padding-bottom: 80px;
}

.projects-page .container {
  max-width: 1100px;
}



.projects-page h2 {
  text-align: left;
  font-size: 40px;
  margin-bottom: 32px;
}

.projects-layout {
  display: grid;
  grid-template-columns: 200px minmax(500px, 1fr);
  gap: 40px;
  align-items: start;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.project-item:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.project-item.active {
  background: var(--accent);
  color: #fff;
}

.projects-display {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  transition: opacity 0.15s ease;
}

.projects-display.fading {
  opacity: 0;
}

.projects-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: var(--bg-alt);
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.projects-links {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}

.projects-links a {
  padding: 6px 16px;
  background: #222;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s;
}

.projects-links a:hover {
  background: #444;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.arrow:hover {
  background: rgba(0,0,0,0.8);
}

.arrow-left {
  left: 8px;
}

.arrow-right {
  right: 8px;
}

.projects-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
}

.projects-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active {
  background: rgba(0,0,0,0.8);
}

.dot:hover {
  background: rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
  .projects-layout {
    grid-template-columns: 1fr;
  }

  .projects-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .project-item {
    width: auto;
  }
}
