/* Showcase page styling (shared theme look) */

.showcase-container {
  position: relative;
  isolation: isolate;                     /* <- stops pseudo-bg from interfering */
  background: radial-gradient(circle at top right, #161a3b, #0b0f25 75%);
  color: #f5f6ff;
  text-align: center;
  padding: 6rem clamp(16px, 5vw, 48px) 6rem;
  min-height: 100vh;
  overflow: visible;                       /* <- allow shadows/transforms */
}

.showcase-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/accents/hero-purple.png") center/cover no-repeat;
  opacity: 0.22;
  filter: brightness(1.2) contrast(1.3);
  z-index: -1;                             /* <- sits behind everything */
  pointer-events: none;
}

.showcase-container section { position: relative; }

.intro h1 {
  color: var(--accent);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 .75rem;
  text-shadow: 0 0 20px rgba(0, 209, 255, 0.65), 0 2px 10px rgba(0,0,0,.8);
}
.intro p {
  color: #d0d2ff;
  margin: 0 0 2.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: start;
  justify-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;                        /* <- no clipping */
}

.project-card {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 460px;
  text-align: center;
  border-radius: 22px;
  background: rgba(25, 30, 65, 0.65);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.65);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
}

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

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 70px rgba(0, 202, 255, 0.25);
}

.project-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

.project-card h3 {
  margin: 1rem 0 0.5rem;
  color: var(--accent);
  font-size: 1.45rem;
}

.project-card p {
  font-size: 1rem;
  padding: 0 1.4rem 2rem;
  color: #e0e2ff;
}

.project-card:active {
  transform: translateY(-3px) scale(0.98);
  box-shadow: 0 12px 40px rgba(0, 202, 255, 0.2);
}
