@media only screen and (max-width: 400px) {
  body {
    margin: 0;
    padding: 0;
    background-color: #b3afaf;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .text {
    width: 250px;
    height: 180px;
  }

  .image img {
    width: 100px;
    position: relative;

  }

  .container {
    align-items: center;
    width: 200px;
  }

  .container1 {
    flex-direction: column;
    align-items: center;
    
  }

  .card {
    width: 90%;         /* почти весь экран */
    max-width: 400px; 
  }

  /* .responsive {
    width: 100%;
    height: auto;
  } */

}

body {
  font-family: sans-serif;
  font-weight: 200;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tekstkleur);
  background-color: rgb(170, 167, 167);

}

.text {
  width: 400px;
  height: 400px;
  position: relative;
  align-items: center;
  padding: 20px 20px 20px 20px;
  margin: 130px 100px 100px 150px;
  display: flex;
}

.container {
  display: flex;
  align-items: center;

}

.image img {
  width: 400px;
  height: auto;
  margin-left: 200px;
}

/*projecten */

.container1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;               /* растягивается на всю ширину */
  max-width: 1200px;         /* ограничим на десктопе */
  margin: 0 auto;            /* центрируем */
  text-align: center;
  font-size: large;
}

.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  width: 100%;               /* растягивается внутри grid */
  max-width: 350px;          /* ограничим размер */
  margin: 0 auto;
}
/* CV */
.responsive {
  max-width: 100%;

  height: auto;
}


.blok {
  width: 280px;
  height: 230px;
  border: 2px solid black;
  border-radius: 13px;
  position: relative;
  margin-top: 100px;
  align-items: center;
}

a {
  text-decoration: none;
  color: black;

}

.box:hover {
  background-color: #f0f0f0;
}

/* navbar */
@import url('https://fonts.googleapis.com/css?family=Open+Sans+Condensed:500');

* {
  margin: 0;
  padding: 0;
}

/* Анимация появления пунктов меню */
.navbar-nav .nav-item {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInDown 0.6s ease forwards;
}

.navbar-nav .nav-item:nth-child(1) {
  animation-delay: 0.2s;
}

.navbar-nav .nav-item:nth-child(2) {
  animation-delay: 0.4s;
}

.navbar-nav .nav-item:nth-child(3) {
  animation-delay: 0.6s;
}

/* Hover эффект */
.navbar-nav .nav-link h2 {
  transition: transform 0.3s ease, color 0.3s ease;
}

.navbar-nav .nav-link:hover h2,
.navbar-nav .nav-link:focus h2 {
  transform: scale(1.1);
  color: #fff2c4;
  /* Светлее жёлтый */
}

/* Анимация логотипа */
.navbar-brand img {
  transition: transform 0.4s ease;
}

.navbar-brand:hover img {
  transform: rotate(-5deg) scale(1.05);
}

/* Ключевые кадры */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}






.site-footer p {
  margin-bottom: 0;
  position: relative;
  margin: 0 auto ful auto;
}