:root {
  --primary-color: #16161d;
  --secundary-color: #0a0a0f;
  --text-color: #e0e0e0;
  --accent-color: #4f46e5;
}

.introduction-container {
  background-color: var(--primary-color);
  width: calc(100% - 40px);
  min-height: 550px;
  max-width: 1200px;
  margin: 30px auto 0;
  border-radius: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease-out forwards;
  padding: 60px 50px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  box-sizing: border-box;
  overflow: hidden;
}

.intro-text {
  flex: 1;
  z-index: 2;
}

.introduction-container img {
  width: min(300px, 40%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  box-shadow:
    -10px -10px 20px rgba(255, 255, 255, 0.05),
    10px 10px 25px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.introduction-container h1,
.introduction-container h2 {
  font-size: clamp(24px, 5vw, 48px);
  color: var(--text-color);
  font-family: Lato, sans-serif;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.introduction-container h2 {
  font-weight: 500;
}

.bar-header {
  width: 150px;
  height: 4px;
  background-color: var(--accent-color);
  border: none;
  border-radius: 2px;
  margin: 30px 0;
}

.introduction-container p {
  max-width: 550px;
  font-size: 1.05rem;
  color: #a0a0a0;
  line-height: 1.6;
  margin: 0;
}

.beste-projecten {
  color: var(--text-color);
  text-align: center;
  margin: 80px 0 20px;

  font-size: 2rem;
}

.projects-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 20px;
  margin-bottom: 100px;
}

.project-kolom {
  position: relative;
  background-color: var(--primary-color);
  width: 100%;
  max-width: 580px;
  height: 400px;
  border-radius: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 1.2s ease-out forwards;
}

.images-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.images-container h1 {
  color: var(--text-color);
  font-size: 1.2rem;
  opacity: 0.5;
}

.images-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-row {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.text-row h1 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-row button {
  width: 0;
  opacity: 0;
  overflow: hidden;
  height: 42px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition:
    width 0.4s,
    opacity 0.3s,
    margin-left 0.4s,
    transform 0.2s;
}

.project-kolom:hover .text-row h1 {
  transform: translateX(-15px);
}

.project-kolom:hover .text-row button {
  width: 140px;
  opacity: 1;
  margin-left: 15px;
}

.text-row button:hover {
  background-color: #3f38c5;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .introduction-container {
    min-height: auto;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding: 40px 25px;
    margin-top: 30px;
    min-height: 800px;
  }

  .intro-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .introduction-container img {
    width: 200px;
    margin-top: 0;
    margin-bottom: 20px;
  }

  .bar-header {
    margin: 25px auto;
  }

  .introduction-container p {
    margin: 0 auto;
  }

  .beste-projecten {
    margin-top: 25px;
  }

  .project-kolom {
    height: 350px;
  }

  .text-row h1 {
    font-size: 1.2rem;
    transform: translateX(-10px);
  }

  .text-row button {
    width: 140px;
    opacity: 1;
    margin-left: 15px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
