body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4rem 2rem;
  box-sizing: border-box;
}

.page {
  max-width: 760px;
  text-align: center;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.5);
  padding: 3rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

p {
  margin: 0 0 1.5rem;
  line-height: 1.75;
  color: #cbd5e1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: 1200px;
  margin-top: 3rem;
}

.product-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-images {
  display: block;
  height: 300px;
  cursor: pointer;
  position: relative;
  background: #1e293b;
}

.product-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-images img:nth-child(n+2) {
  display: none; /* Hide all images except the first one initially */
}

.product-images::after {
  content: "View Gallery";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.product-images:hover::after {
  opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 4rem 1rem;
}

.modal.active { display: flex; }

.modal-content {
  display: flex;
  margin: auto;
  gap: 2rem;
  overflow-x: auto;
  max-width: 95vw;
  padding: 2rem;
  scroll-snap-type: x mandatory;
}

.modal-text {
  flex-direction: column;
  max-width: 600px;
  text-align: center;
}

.modal-content img {
  height: 70vh;
  border-radius: 12px;
  scroll-snap-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.close-modal {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  line-height: 1;
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.footer {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #94a3b8;
}
