/* ===== COVER LAYOUT ===== */
.project-cover-layout {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    justify-content: center;
}

/* Demo panel */
.project-demo-panel {
    background: rgba(20, 20, 20, 0.95);
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    flex-shrink: 0;
    width: 200px;
}

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

.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 img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

.project-intro-text {
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 840px;
    color: #b0b0b0;
    line-height: 1.7;
}

/* Section intro text */
.project-section-intro {
  color: #b0b0b0;
}

/* ===== MODELING / TEXTURING GRID ===== */
.asset-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.asset-card {
    background: #000;
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.asset-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 1px;
}

.asset-card figcaption {
    background: #151515;
    padding: 0.9rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e0e0e0;
    text-align: left;
}

/* ===== STEP SECTIONS (Lighting + Particles) ===== */
.scene-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 1.7rem;
}

.scene-step {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.scene-step-image {
    width: 450px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.scene-step-text {
    flex: 1;
    min-width: 0;
}

.scene-step-title {
    margin: 0 0 0.6rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.scene-step-title span {
    color: #00c3ff;
    font-weight: 700;
    margin-right: 0.5rem;
    font-size: 1.6rem;
}

.scene-step-text p {
    margin: 0;
    color: #d0d0d0;
    font-size: 1.05rem;
    line-height: 1.65;
}

/* ===== 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;
}

.project-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* pill */
.project-meta-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.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;
}

/* ====== RESPONSIVE ====== */

/* Tablet tweaks */
@media (max-width: 900px) {
    .project-cover-layout {
        flex-direction: column;
        align-items: center;
    }

    .project-demo-panel {
        width: 100%;
        max-width: 320px;
        margin-bottom: 1rem;
    }

    .scene-step {
        flex-direction: column;
        align-items: flex-start;
    }

    .scene-step-image {
        width: 100%;
        max-width: 480px;
        height: auto;              /* avoid fixed height on smaller screens */
    }

    .project-meta-grid {
        gap: 0.9rem;
    }

    .project-meta-item {
        min-width: 160px;
    }
}

/* Phone tweaks */
@media (max-width: 600px) {

    /* hero area */
    .project-hero {
        min-height: auto;
        align-items: flex-start;
    }

    .project-hero-overlay {
        padding: 2.2rem 1.2rem 2rem;
        text-align: left;
    }

    .project-main-title {
        font-size: 2rem;
        line-height: 1.15;
    }

    /* meta pills stack full width */
    .project-meta-grid {
        flex-direction: column;
    }

    .project-meta-item {
        width: 100%;
        border-radius: 18px;
        min-height: 72px;
    }

    /* cover area */
    .project-cover-layout {
        gap: 1.5rem;
    }

    .cover-video {
        max-width: 100%;
        border-radius: 18px;
    }

    .project-intro-text {
        font-size: 0.95rem;
    }

    /* asset grid becomes single column and centered */
    .asset-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }

    /* steps */
    .scene-step {
        gap: 1.4rem;
    }

    .scene-step-title {
        font-size: 1.25rem;
    }

    .scene-step-title span {
        font-size: 1.3rem;
    }

    .scene-step-text p {
        font-size: 0.95rem;
    }
}
/* ===== MOBILE FONT FIX ===== */
@media (max-width: 600px) {

    /* Global paragraph text */
    p,
    .project-intro-text,
    .scene-step-text p,
    .asset-card figcaption,
    .article-body p {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
    }

    /* Section titles (Modeling, Lighting, etc.) */
    h2,
    .project-section-title,
    .scene-step-title {
        font-size: 1.3rem !important;
    }

    /* Scene step title number (01, 02...) */
    .scene-step-title span {
        font-size: 1.4rem !important;
    }

    /* Main page titles (big title on hero) */
    .project-main-title {
        font-size: 1.8rem !important;
    }

    /* Meta text */
    .meta-label {
        font-size: 0.65rem !important;
    }

    .meta-value {
        font-size: 0.9rem !important;
    }

    /* Buttons inside demo panel */
    .btn-outline,
    .project-demo-title {
        font-size: 0.8rem !important;
    }
}
/* ===== MOBILE FONT SIZE TWEAKS FOR FOX IN JUNGLE ===== */
@media (max-width: 768px) {

  /* Main body text paragraphs in sections */
  .project-section-intro,
  .project-intro-text,
  .scene-step-text p,
  .asset-card figcaption {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
  }

  /* Section titles: "Modeling", "Texturing", etc. */
  .project-section-title {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }

  /* Small step titles: "01 Raw Scene", etc. */
  .scene-step-title {
    font-size: 1.1rem !important;
  }

  .scene-step-title span {
    font-size: 1.3rem !important;
  }

  /* Hero title "Fox in Jungle" */
  .project-main-title {
    font-size: 1.8rem !important;
  }

  /* Meta pills under the hero */
  .meta-label {
    font-size: 0.7rem !important;
  }

  .meta-value {
    font-size: 0.9rem !important;
  }
}
