@import url("./common.css");

main {
  width: 80%;
  margin: 0 auto;
  padding-top: 105px;
  padding-bottom: 45px;
  text-align: center;
}

main section h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.desc {
  max-width: 600px;
  margin: 0 auto 30px auto;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

#galerie {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.card:nth-child(3) {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:nth-child(3):hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card h2 {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
  color: var(--text);
}

.card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.skill-image {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  margin-bottom: 15px;
  background-size: cover;
  background-position: center;
}

.placeholder-3d {
  background-image: url('/assets/side/3D.webp');
}

.placeholder-climbing {
  background-image: url('/assets/side/climb.webp');
}

.placeholder-drone {
  background-image: url('/assets/side/drone.webp');
}

.placeholder-it {
  background-image: url('/assets/side/pastry.webp');
}

@media (max-width: 768px) {
  main {
    width: 95%;
  }

  #galerie {
    grid-template-columns: 1fr;
  }

  .skill-image {
    height: 150px;
  }
}

@media (max-width: 480px) {
  main section h1 {
    font-size: 1.5rem;
  }

  .card h2 {
    font-size: 1rem;
  }

  .skill-image {
    height: 120px;
  }
}
