/* Add this to style.css */

.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hobby-card {
  perspective: 1000px;
  height: 300px;
  cursor: pointer;
}

.hobby-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.hobby-card.flipped .hobby-card-inner {
  transform: rotateY(180deg);
}

.hobby-card-front,
.hobby-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-align: left;
}

.hobby-card-front {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hobby-card-back {
  transform: rotateY(180deg);
  overflow-y: auto;
  padding: 1rem;
}

.hobby-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.hobby-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hobby-card p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hobby-link {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.hobby-link:hover {
  text-decoration: underline;
}

/* Responsive: stack to single column on small screens */
@media (max-width: 480px) {
  .hobbies-grid {
    grid-template-columns: 1fr;
  }
}
