/* Typography & Base */
body {
  font-family: 'Crimson Pro', serif;
  background: linear-gradient(to bottom, #0a0a0a, #1c1c1c);
  color: #e6e3d5;
  margin: 0;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

/* Background overlay for starry feel */
.background-overlay {
  background: url('https://i.ibb.co/tJzBpVx/stars.png') repeat;
  opacity: 0.04;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Header */
header {
  background: rgba(24, 32, 18, 0.97);
  text-align: center;
  padding: 2rem 1rem;
  color: #b6b89a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

header h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  text-shadow: 0 0 6px rgba(60, 80, 40, 0.15);
  color: #b6b89a;
}

.quote {
  font-size: 1.1rem;
  font-style: italic;
  color: #d2c7a2;
}

/* Navigation */
nav {
  background-color: #232d1a;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 0.5rem;
  margin: 0;
  list-style: none;
}

nav a {
  color: #e3e0c3;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  font-weight: bold;
  border-radius: 8px;
  background-color: rgba(60, 80, 40, 0.13);
  transition: background-color 0.3s, transform 0.3s, color 0.3s;
}

nav a:hover {
  background-color: #3a4a2a;
  color: #fffbe6;
  transform: scale(1.05);
}

/* Main Layout */
main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

/* Cards */
.card {
  background: #232d1a;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  width: 90vw;
  max-width: 340px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s;
  opacity: 0;
  transform: translateY(30px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  border-bottom: 1px solid #2e2e1a;
  filter: brightness(0.92);
  background: #181818;
  display: block;
  margin: 0 auto;
}

.card-content {
  padding: 1rem;
}

.card h3 {
  color: #b6b89a;
  font-size: 1.1rem;
  margin: 0.5rem 0;
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
}

.card p {
  color: #d2c7a2;
  font-size: 0.9rem;
  line-height: 1.4;
}

.card:active, .card.selected {
  animation: card-bounce 0.4s cubic-bezier(.36,1.3,.64,1) both;
  box-shadow: 0 0 24px 4px #6b7a4b, 0 8px 24px rgba(0,0,0,0.6);
  border: 2px solid #6b7a4b;
}

@keyframes card-bounce {
  0% { transform: scale(1) translateY(0); }
  30% { transform: scale(0.97) translateY(2px); }
  50% { transform: scale(1.04) translateY(-6px); }
  70% { transform: scale(0.98) translateY(2px); }
  100% { transform: scale(1) translateY(0); }
}

/* Footer */
footer {
  background-color: #181e13;
  color: #b6b89a;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.social-icons a {
  color: #b6b89a;
  margin: 0 0.6rem;
  text-decoration: none;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #fffbe6;
}

/* Responsive */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }
  .quote {
    font-size: 1rem;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 95vw;
  }
}
