/* Project card shadow + hover lift + responsive typography
   Put this file at ./styles.css and add:
     <link rel="stylesheet" href="./styles.css">
   inside your <head>.
*/

/* styles.css */
html { scroll-behavior: smooth; }



/* Extra hardening so it doesn’t “feel” like a video */
video {
    -webkit-user-select: none;
    user-select: none;
}

/* Grid items align vertically centered in their row */
#projectGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

/* Flow wrapper to keep shadow + content in same natural height */
.project-wrapper {
  position: relative;
  width: 100%;
}

/* Shadow layer matches content height now */
.project-shadow {
  border-radius: 1rem;
  pointer-events: none;
  z-index: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;

  /* stronger layered shadow for elevation */
  box-shadow: 0 0 25px -10px white
}

/* Content surface */
.project-inner {
  position: relative;
  z-index: 10;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.53);
  transition: transform 240ms cubic-bezier(.2,.9,.2,1);
  will-change: transform;
}

/* card wrapper hover moves only the inner surface */
.project-card:hover .project-inner {
  transform: translateY(-10px);
}

/* make sure initial reveal (opacity/translate) lives on the outer card
   but hover transform is applied to .project-inner only. */

/* --- Typographic tuning (responsive) --- */
.project-title {
  margin: 0;
  font-size: 1.15rem; /* mobile baseline ~16.8px */
  line-height: 1.25;
}

/* description */
.project-desc {
  margin: 0;
  font-size: 1rem;
  color: rgba(255,255,255,0.86);
  line-height: 1.47;
  padding-bottom: 0.5rem;
}

/* buttons */
.project-btn {
  font-size: 0.99rem;
  padding-inline: 0.6rem;
  padding-block: 0.45rem;
}

/* Responsive upscaling on medium+ screens */
@media (min-width: 640px) {
  .project-title { font-size: 1.4rem; }   /* ~18.4px */
  .project-desc  { font-size: 1rem; }   /* ~16px */
  .project-btn   { font-size: 0.98rem; padding-inline: 0.75rem; padding-block: 0.48rem; }
}

@media (min-width: 1024px) {
  .project-title { font-size: 1.5rem; }   /* ~20px */
  .project-desc  { font-size: 1.1rem; }   /* ~16.8px */
  .project-btn   { font-size: 1.03rem; padding-inline: 0.9rem; padding-block: 0.5rem; }
}

/* Slight polish: reduce motion for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-inner {
    transition: none !important;
    transform: none !important;
  }
}

/* Ensure the grid stays centered and consistent (a gentle safety net if Tailwind classes differ) */
#projectGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem; /* matches the tailwind 'gap-8' spacing */
}

/* if needed, make the card width fallback consistent for older browsers */
.project-card {
  /* keep the width set by Tailwind if available; fallback to reasonable width */
  max-width: 22rem;
}

