:root {
  --primary-color: #16161d;
  --secundary-color: #0a0a0f;
  --text-color: #e0e0e0;
  --accent-color: #4f46e5;
}

.projects-container {
  background-color: var(--primary-color);
  width: auto;
  height: calc(100vh - 140px);
  margin: 40px 30px 60px;
  border-radius: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: stretch;
  animation: fadeInUp 1.2s ease-out forwards;
  box-sizing: border-box;
  overflow: hidden;
}

.projects-border {
  width: calc(100% - 20px);
  margin: 10px;
  background-color: var(--primary-color);
  border: 2px solid #262630;
  border-radius: 6px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  padding: 20px;
  box-sizing: border-box;
  gap: 20px;
  height: calc(100% - 20px);
}

.project-kolom {
  flex: 1;
  background-color: #262630;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 100%;
}

.images-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.images-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.project-kolom:hover {
  transform: translateY(-5px);
}

.text-row {
  margin-top: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.text-row h1 {
  color: var(--text-color);
  font-family: inherit;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 700;
  margin: 0;
}

.text-row button {
  height: 40px;
  padding: 0 22px;
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.8rem;
  white-space: nowrap;
}

.text-row button:hover {
  background-color: #5a52ff;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .projects-container {
    height: auto;
    min-height: 100vh;
  }

  .projects-border {
    flex-direction: column;
    height: auto;
  }

  .project-kolom {
    height: 450px;
    flex: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
