/* ===== PAGE BASE ===== */
.project-body {
  background: #050505;
  color: #f5f5f5;
  font-family: "Poppins", system-ui, sans-serif;
  margin: 0;
}

/* ===== HERO ===== */
.project-hero {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.project-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.75) 65%,
    #050505
  );
  z-index: -1;
}

.project-hero-overlay {
  padding: 3.5rem 1.5rem 2.75rem;
}

.project-main-title {
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  margin: 0 0 1.6rem;
}
/* === HERO META FIX FOR JAP RIDER OTW === */

/* Make the whole row a flex row instead of grid */
.project-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* Each pill becomes a flex column, centered vertically */
.project-meta-item {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* center label + value inside */
    min-height: 80px;          /* ensures same height even if text wraps */
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Label + value sizing so they look consistent */
.meta-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8b8b8;
    margin-bottom: 0.15rem;
}

.meta-value {
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.35;
}


/* ===== MAIN LAYOUT ===== */
.project-main {
  padding-bottom: 4rem;
}

.project-section {
  margin-top: 2.5rem;
}

/* ===== COVER + DEMO ===== */
.project-cover-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.project-demo-panel {
  background: rgba(20, 20, 20, 0.95);
  padding: 1.5rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.project-demo-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.project-demo-buttons-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.btn-outline {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #00c3ff;
  color: #00c3ff;
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.2s;
}

.btn-outline:hover {
  background: #00c3ff;
  color: #000;
}

.project-cover-image {
  width: 100%;
}

.cover-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  object-fit: cover;
}

/* ===== GENERIC TITLES ===== */
.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin: 0;
}

.section-intro {
  margin: 0.75rem auto 0;
  max-width: 880px;
  color: #c0c0c0;
  font-size: 0.98rem;
  text-align: center;
}

/* ===== TUTORIAL GALLERY ===== */
.tutorial-section {
  margin-top: 3rem;
}

.tutorial-gallery {
  position: relative;
  max-width: 80%;
  margin: 2rem auto 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: #1a0730;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8);
}

.tutorial-main-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.tutorial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tutorial-section {
  margin-bottom: 1rem !important;  /* reduce gap */
}

.project-section {
  margin-top: 1rem !important;     /* reduce spacing between sections */
  margin-bottom: 1rem !important;
}

.tutorial-nav-prev {
  left: 16px;
}

.tutorial-nav-next {
  right: 16px;
}

.tutorial-thumbs {
  max-width: 1100px;
  margin: 0.75rem auto 0;
  display: flex;
  gap: 0.5rem;
  padding-bottom: 0.25rem;

  overflow-x: hidden;      /* prevents scrollbar */
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none;    /* Firefox */
}

.tutorial-thumbs::-webkit-scrollbar {
  display: none;            /* Chrome/Safari/Brave */
}


.tutorial-thumb {
  flex: 0 0 130px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.55;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.2s, transform 0.2s, border-color 0.2s;
}

.tutorial-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.tutorial-thumb-active {
  opacity: 1;
  border-color: #ffb21a;
}

/* ===== PLAYER MECHANICS GRID ===== */
.mechanics-section {
  margin-top: 3.5rem;
}

.mechanics-intro {
  margin-bottom: 2.2rem;
}

.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.mechanic-card {
  background: #1b1b1b;
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mechanic-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.mechanic-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #d0d0d0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .project-cover-layout {
    grid-template-columns: 1fr;
  }

  .project-demo-panel {
    max-width: 260px;
    margin: 0 auto 1.5rem;
  }

  .mechanics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mechanics-grid {
    grid-template-columns: 1fr;
  }

  .project-hero-overlay {
    padding: 2.75rem 1.25rem 2.25rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}


@media (max-width: 900px) {
    .project-meta-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-meta-item {
        width: 100%;
        max-width: 480px;
    }
}
