/* =====================================================
   PROJECT DETAIL PAGE
   Scoped styles - does not affect other pages
===================================================== */

.project-page {
    --project-blue: var(--primary-blue, #0a3d62);
    --project-yellow: var(--accent-yellow, #ffb300);
    --project-dark: #07141f;
    --project-dark-2: #0c202d;
    --project-text: #182631;
    --project-muted: #71808b;
    --project-border: #e4e9ec;
    --project-light: #f4f6f7;
    --project-radius: 4px;

    color: var(--project-text);
    background: #fff;
}


/* =====================================================
   HERO
===================================================== */
/* =====================================================
   HERO - Animated Gradient
===================================================== */

.project-hero {
    position: relative;
    width: 100vw;

    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    

    height: 100vh;
    min-height: 100vh;

    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 130px 20px 80px;
    overflow: hidden;

    color: #fff;
    text-align: center;

    background:
        linear-gradient(
            125deg,
            #06101f 0%,
            #0a2940 20%,
            #075e70 42%,
            #123b57 62%,
            #241653 82%,
            #050816 100%
        );

    background-size: 400% 400%;
    animation: projectHeroGradientFlow 9s ease-in-out infinite;
}


/* =====================================================
   Animated Glow
===================================================== */

.project-hero::before {
    position: absolute;
    inset: -35%;
    z-index: -2;

    content: "";

    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 15% 20%,
            rgba(0, 229, 255, 0.62) 0,
            transparent 24%
        ),
        radial-gradient(
            ellipse at 85% 25%,
            rgba(124, 77, 255, 0.58) 0,
            transparent 25%
        ),
        radial-gradient(
            ellipse at 70% 85%,
            rgba(255, 179, 0, 0.34) 0,
            transparent 22%
        ),
        radial-gradient(
            ellipse at 25% 80%,
            rgba(0, 255, 170, 0.26) 0,
            transparent 20%
        );

    filter: blur(28px);
    opacity: 0.95;

    animation: projectHeroGlowMove 8s ease-in-out infinite alternate;
}


/* =====================================================
   Animated Overlay
===================================================== */

.project-hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;

    content: "";

    pointer-events: none;

    background:
        linear-gradient(
            115deg,
            rgba(4, 17, 27, 0.86) 0%,
            rgba(4, 17, 27, 0.28) 42%,
            rgba(4, 17, 27, 0.72) 100%
        ),
        linear-gradient(
            135deg,
            transparent 0%,
            rgba(0, 229, 255, 0.13) 45%,
            transparent 50%
        );

    background-size:
        100% 100%,
        250% 250%;

    animation: projectHeroOverlayMove 6s linear infinite;
}


/*
   این عناصر برای سازگاری با HTML قبلی باقی مانده‌اند،
   اما دیگر هیچ تصویری نمایش داده نمی‌شود.
*/

.project-hero__media,
.project-hero__overlay,
.project-hero__grid-lines {
    position: absolute;
    inset: 0;
}

.project-hero__media {
    z-index: -3;
    pointer-events: none;
}

.project-hero__media img {
    display: none !important;
}


/* =====================================================
   Animated Grid Lines
===================================================== */

.project-hero__grid-lines {
    z-index: -1;

    opacity: 0.16;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.55) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.55) 1px,
            transparent 1px
        );

    background-size: 90px 90px;

    mask-image: linear-gradient(
        90deg,
        #000 0%,
        transparent 90%
    );

    animation: projectHeroGridMove 5s linear infinite;
}


/* Overlay قبلی غیرفعال می‌شود */

.project-hero__overlay {
    z-index: -1;
    pointer-events: none;
    background: transparent;
}


/* =====================================================
   Hero Content
===================================================== */

.project-hero__container {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    width: 100%;
    padding-top: 95px;
    padding-bottom: 85px;
}

.project-hero__content {
    max-width: 780px;
}


/* عنوان کوچک */

.project-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 25px;

    color: var(--project-yellow);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.project-hero__line {
    display: block;

    width: 58px;
    height: 2px;

    background: var(--project-yellow);
}


/* دسته‌بندی */

.project-hero__category {
    display: inline-block;

    margin-bottom: 22px;
    padding: 8px 14px;

    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;

    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(5px);
}


/* عنوان پروژه */

.project-hero__title {
    max-width: 800px;
    margin: 0 0 27px;

    color: #fff;
    font-size: clamp(2.7rem, 6vw, 6.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;

    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}


/* توضیح پروژه */

.project-hero__description {
    max-width: 650px;
    margin: 0 0 45px;

    color: rgba(255, 255, 255, 0.8);
    font-size: 1.08rem;
    line-height: 2;
}


/* اطلاعات پروژه */

.project-hero__meta {
    display: flex;
    align-items: center;
    gap: 28px;
}

.project-hero__meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-hero__meta-label {
    color: var(--project-yellow);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.project-hero__meta-item strong {
    color: #fff;
    font-size: 0.92rem;
}

.project-hero__meta-divider {
    width: 1px;
    height: 42px;

    background: rgba(255, 255, 255, 0.25);
}


/* شماره پروژه */

.project-hero__index {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;

    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
}

.project-hero__index strong {
    color: var(--project-yellow);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.08em;
}


/* =====================================================
   Scroll Indicator
===================================================== */

.project-hero__scroll {
    position: absolute;
    bottom: 34px;
    left: 50%;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    color: rgba(255, 255, 255, 0.65);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-decoration: none;

    transform: translateX(-50%);
}

.project-hero__scroll span {
    position: relative;

    width: 1px;
    height: 55px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.3);
}

.project-hero__scroll span::after {
    position: absolute;
    top: -20px;
    left: 0;

    width: 100%;
    height: 20px;

    content: "";

    background: var(--project-yellow);

    animation: projectScroll 1.8s infinite;
}


/* =====================================================
   Animations
===================================================== */

@keyframes projectHeroGradientFlow {
    0% {
        background-position: 0% 50%;
    }

    20% {
        background-position: 35% 100%;
    }

    40% {
        background-position: 100% 75%;
    }

    60% {
        background-position: 80% 0%;
    }

    80% {
        background-position: 20% 25%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes projectHeroGlowMove {
    0% {
        transform: translate3d(-12%, -8%, 0) scale(0.92) rotate(0deg);
    }

    25% {
        transform: translate3d(16%, 5%, 0) scale(1.08) rotate(8deg);
    }

    50% {
        transform: translate3d(5%, 22%, 0) scale(1.18) rotate(-5deg);
    }

    75% {
        transform: translate3d(-18%, 12%, 0) scale(1.04) rotate(10deg);
    }

    100% {
        transform: translate3d(-12%, -8%, 0) scale(0.92) rotate(0deg);
    }
}

@keyframes projectHeroOverlayMove {
    0% {
        background-position:
            0% 0%,
            -100% 0%;
    }

    50% {
        background-position:
            0% 0%,
            100% 100%;
    }

    100% {
        background-position:
            0% 0%,
            -100% 0%;
    }
}

@keyframes projectHeroGridMove {
    0% {
        background-position:
            0 0,
            0 0;
    }

    100% {
        background-position:
            90px 90px,
            90px 90px;
    }
}

@keyframes projectScroll {
    from {
        top: -20px;
    }

    to {
        top: 100%;
    }
}


/* =====================================================
   Responsive
===================================================== */

@media (max-width: 992px) {
    .project-hero__container {
        padding-top: 85px;
        padding-bottom: 75px;
    }

    .project-hero__index {
        display: none;
    }
}

@media (max-width: 768px) {
    .project-hero {
        min-height: 570px;
    }

    .project-hero__container {
        align-items: center;
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .project-hero__title {
        font-size: clamp(2.6rem, 12vw, 4.5rem);
    }

    .project-hero__description {
        font-size: 0.98rem;
    }

    .project-hero__meta {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .project-hero {
        min-height: 520px;
    }

    .project-hero__container {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .project-hero__meta {
        gap: 18px;
    }

    .project-hero__meta-divider {
        height: 35px;
    }
}


/* =====================================================
   Reduced Motion
===================================================== */

@media (prefers-reduced-motion: reduce) {
    .project-hero,
    .project-hero::before,
    .project-hero::after,
    .project-hero__grid-lines {
        animation: none;
    }

    .project-hero {
        background-position: 50% 50%;
    }

    .project-hero__scroll span::after {
        animation: none;
    }
}




/* =====================================================
   CONTENT
===================================================== */

.project-content {
    padding: 105px 0 120px;
    background: #fff;
}

.project-content__header,
.project-gallery__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 48px;
}

.section-kicker {
    display: block;

    margin-bottom: 13px;

    color: var(--project-yellow);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.project-content__title,
.project-gallery__title {
    margin: 0;

    color: var(--project-dark);
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 900;
    line-height: 1.2;
}

.project-content__number {
    color: var(--project-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.project-content__number span {
    margin: 0 8px;
    color: var(--project-yellow);
}

.project-content__layout {
    display: grid;
    grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
    gap: clamp(40px, 7vw, 110px);

    padding-bottom: 110px;
    border-bottom: 1px solid var(--project-border);
}


/* =====================================================
   SIDEBAR
===================================================== */

.project-spec-card {
     padding: 26px;

    background: rgba(7, 20, 31, 0.88);

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 4px solid var(--project-yellow);
    border-radius: 22px;

    box-shadow:
        0 18px 45px rgba(7, 20, 31, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.project-spec-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.project-spec-card__label,
.project-spec-card__status {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.project-spec-card__label {
    color: rgba(255, 255, 255, 0.55);
}

.project-spec-card__status {
    color: var(--project-yellow);
}

.project-spec-card__icon {
    display: flex;
    gap: 5px;

    margin: 31px 0;
}

.project-spec-card__icon span {
    display: block;

    width: 18px;
    height: 18px;

    border: 2px solid var(--project-yellow);
}

.project-spec-card__icon span:nth-child(2) {
    background: var(--project-yellow);
}

.project-spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.project-spec-list li {
   display: flex;
    flex-direction: column;
    gap: 7px;

    min-height: 92px;
    padding: 16px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.08);
}

.project-spec-list li:last-child {
    border-bottom: 0;
}

.project-spec-list span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.75rem;
}

.project-spec-list strong {
    color: #fff;
    font-size: 0.9rem;
}

.project-sidebar__accent {
    display: flex;
    flex-direction: column;
    gap: 2px;

    margin-top: 27px;
    padding-right: 18px;

    color: var(--project-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1.8;

    border-right: 3px solid var(--project-yellow);
}

.project-sidebar__accent strong {
    color: var(--project-blue);
}


/* =====================================================
   DESCRIPTION
===================================================== */

.project-description {
    max-width: 800px;

    color: #596873;
    font-size: 1.08rem;
    line-height: 2.25;
}

.project-description p {
    margin: 0 0 22px;
}

.project-description p:first-child::first-letter {
    float: right;

    margin: 6px 0 0 12px;

    color: var(--project-blue);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 0.75;
}


/* =====================================================
   GALLERY GRID
===================================================== */

.project-gallery {
    padding-top: 100px;
}

.project-gallery__hint {
    max-width: 260px;
    margin: 0;

    color: var(--project-muted);
    font-size: 0.85rem;
    line-height: 1.8;
    text-align: left;
}

.project-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
    gap: 14px;
}

.project-gallery__item {
    position: relative;

    display: block;

    width: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;

    cursor: zoom-in;
    background: var(--project-dark);
    border: 0;
    border-radius: var(--project-radius);
}

.project-gallery__item--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.project-gallery__item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    filter: saturate(0.78);
    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.project-gallery__item:hover img,
.project-gallery__item:focus-visible img {
    filter: saturate(1.08);
    transform: scale(1.07);
}

.project-gallery__shade {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        transparent 45%,
        rgba(3, 15, 23, 0.8)
    );

    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.project-gallery__item:hover .project-gallery__shade,
.project-gallery__item:focus-visible .project-gallery__shade {
    opacity: 1;
}

.project-gallery__item-info {
    position: absolute;
    right: 20px;
    bottom: 18px;
    left: 20px;
    z-index: 2;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;

    color: #fff;
    text-align: right;
}

.project-gallery__item-number {
    color: var(--project-yellow);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.project-gallery__caption {
    max-width: 75%;

    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    line-height: 1.7;
}

.project-gallery__zoom {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    color: var(--project-dark);
    font-size: 1.35rem;
    line-height: 1;

    background: var(--project-yellow);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.project-gallery__item:hover .project-gallery__zoom,
.project-gallery__item:focus-visible .project-gallery__zoom {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   LIGHTBOX
===================================================== */

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: grid;
    place-items: center;

    padding: 30px;

    visibility: hidden;
    opacity: 0;
    background: rgba(3, 12, 18, 0.94);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.project-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.project-lightbox__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

    max-width: min(1100px, 94vw);
    max-height: 90vh;
}

.project-lightbox__content img {
    display: block;

    max-width: 100%;
    max-height: 78vh;

    object-fit: contain;
}

.project-lightbox__content p {
    margin: 0;

    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
}

.project-lightbox__close {
    position: absolute;
    top: 25px;
    left: 30px;

    width: 45px;
    height: 45px;

    color: #fff;
    font-size: 2rem;
    line-height: 1;

    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

.project-lightbox__close:hover {
    color: var(--project-dark);
    background: var(--project-yellow);
}

/* =====================================================
   RESPONSIVE — PROJECT DETAIL PAGE
===================================================== */

/* -----------------------------------------------------
   لپ‌تاپ کوچک و تبلت افقی
----------------------------------------------------- */
@media (max-width: 1100px) {
    .project-hero {
        min-height: 760px;
        height: auto;
        padding: 125px 28px 85px;
    }

    .project-hero__container {
        max-width: 960px;
        padding-top: 75px;
        padding-bottom: 70px;
    }

    .project-hero__content {
        max-width: 700px;
    }

    .project-hero__title {
        font-size: clamp(2.8rem, 6vw, 5rem);
    }

    .project-hero__description {
        max-width: 610px;
        font-size: 1rem;
    }

    .project-hero__index strong {
        font-size: 3.4rem;
    }

    .project-content {
        padding: 90px 0 100px;
    }

    .project-content__layout {
        grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
        gap: clamp(35px, 5vw, 65px);
        padding-bottom: 90px;
    }

    .project-spec-card {
        padding: 22px;
    }

    .project-spec-list li {
        min-height: 85px;
        padding: 13px;
    }

    .project-gallery {
        padding-top: 85px;
    }

    .project-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 220px;
    }
}


/* -----------------------------------------------------
   تبلت عمودی و موبایل بزرگ
----------------------------------------------------- */
@media (max-width: 768px) {
    /* Hero */
    .project-hero {
        min-height: 700px;
        height: auto;
        padding: 110px 18px 75px;
    }

    .project-hero::before {
        inset: -50%;
        filter: blur(35px);
    }

    .project-hero__grid-lines {
        background-size: 70px 70px;
        opacity: 0.12;
    }

    .project-hero__container {
        align-items: center;
        justify-content: center;

        padding-top: 45px;
        padding-bottom: 50px;

        text-align: center;
    }

    .project-hero__content {
        max-width: 650px;
    }

    .project-hero__eyebrow {
        justify-content: center;
        gap: 12px;

        margin-bottom: 18px;
        font-size: 0.7rem;
    }

    .project-hero__line {
        width: 42px;
    }

    .project-hero__category {
        margin-bottom: 17px;
        padding: 7px 12px;
        font-size: 0.72rem;
    }

    .project-hero__title {
        margin-bottom: 20px;
        font-size: clamp(2.35rem, 10vw, 4rem);
        line-height: 1.25;
        letter-spacing: -0.03em;
    }

    .project-hero__description {
        max-width: 580px;
        margin: 0 auto 32px;

        font-size: 0.95rem;
        line-height: 2;
    }

    .project-hero__meta {
        justify-content: center;
        gap: 22px;
    }

    .project-hero__meta-label {
        font-size: 0.6rem;
    }

    .project-hero__meta-item strong {
        font-size: 0.85rem;
    }

    .project-hero__index {
        display: none;
    }

    .project-hero__scroll {
        bottom: 22px;
    }

    .project-hero__scroll span {
        height: 42px;
    }

    /* محتوا */
    .project-content {
        padding: 70px 0 80px;
    }

    .project-content__header,
    .project-gallery__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;

        margin-bottom: 35px;
    }

    .project-content__number {
        display: none;
    }

    .section-kicker {
        margin-bottom: 10px;
        font-size: 0.65rem;
    }

    .project-content__title,
    .project-gallery__title {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

    .project-content__layout {
        grid-template-columns: 1fr;
        gap: 38px;

        padding-bottom: 70px;
    }

    /* مشخصات پروژه */
    .project-spec-card {
        max-width: 620px;
        padding: 24px;
    }

    .project-spec-card__icon {
        margin: 24px 0;
    }

    .project-spec-list {
        gap: 12px;
    }

    .project-spec-list li {
        min-height: 80px;
        padding: 14px;
    }

    .project-sidebar__accent {
        margin-top: 22px;
    }

    /* توضیحات */
    .project-description {
        max-width: none;
        font-size: 1rem;
        line-height: 2.1;
    }

    .project-description p {
        margin-bottom: 18px;
    }

    .project-description p:first-child::first-letter {
        margin-left: 10px;
        font-size: 4rem;
    }

    /* گالری */
    .project-gallery {
        padding-top: 70px;
    }

    .project-gallery__hint {
        max-width: none;
        font-size: 0.82rem;
        text-align: right;
    }

    .project-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 195px;
        gap: 10px;
    }

    .project-gallery__item--featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .project-gallery__item-info {
        right: 15px;
        bottom: 14px;
        left: 15px;
    }

    .project-lightbox {
        padding: 20px;
    }

    .project-lightbox__close {
        top: 18px;
        left: 18px;
    }
}


/* -----------------------------------------------------
   موبایل
----------------------------------------------------- */
@media (max-width: 540px) {
    /* Hero */
    .project-hero {
        min-height: 630px;
        padding: 95px 14px 62px;
    }

    .project-hero__container {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .project-hero__eyebrow {
        margin-bottom: 15px;
        font-size: 0.65rem;
        letter-spacing: 0.14em;
    }

    .project-hero__line {
        width: 32px;
    }

    .project-hero__category {
        margin-bottom: 15px;
        padding: 6px 10px;
        font-size: 0.68rem;
    }

    .project-hero__title {
        margin-bottom: 17px;
        font-size: clamp(2rem, 10vw, 2.8rem);
        line-height: 1.35;
    }

    .project-hero__description {
        margin-bottom: 26px;
        font-size: 0.87rem;
        line-height: 1.95;
    }

    .project-hero__meta {
        width: 100%;
        gap: 14px;
    }

    .project-hero__meta-item {
        gap: 6px;
    }

    .project-hero__meta-label {
        font-size: 0.55rem;
        letter-spacing: 0.1em;
    }

    .project-hero__meta-item strong {
        font-size: 0.78rem;
    }

    .project-hero__meta-divider {
        height: 35px;
    }

    .project-hero__scroll {
        bottom: 15px;
        gap: 7px;
        font-size: 0.58rem;
    }

    .project-hero__scroll span {
        height: 34px;
    }

    /* محتوا */
    .project-content {
        padding: 55px 0 65px;
    }

    .project-content__header,
    .project-gallery__header {
        margin-bottom: 28px;
    }

    .project-content__title,
    .project-gallery__title {
        font-size: 1.65rem;
        line-height: 1.45;
    }

    .project-content__layout {
        gap: 30px;
        padding-bottom: 55px;
    }

    /* کارت مشخصات */
    .project-spec-card {
        padding: 18px;
        border-radius: 16px;
    }

    .project-spec-card__top {
        padding-bottom: 18px;
    }

    .project-spec-card__icon {
        margin: 18px 0;
    }

    .project-spec-card__icon span {
        width: 15px;
        height: 15px;
    }

    .project-spec-list {
        gap: 8px;
    }

    .project-spec-list li {
        min-height: 74px;
        padding: 12px 10px;
        border-radius: 10px;
    }

    .project-spec-list span {
        font-size: 0.68rem;
    }

    .project-spec-list strong {
        font-size: 0.78rem;
    }

    .project-sidebar__accent {
        margin-top: 18px;
        padding-right: 12px;
        font-size: 0.65rem;
    }

    /* توضیحات */
    .project-description {
        font-size: 0.91rem;
        line-height: 2;
    }

    .project-description p:first-child::first-letter {
        margin: 5px 0 0 8px;
        font-size: 3.3rem;
    }

    /* گالری */
    .project-gallery {
        padding-top: 55px;
    }

    .project-gallery__hint {
        font-size: 0.78rem;
    }

    .project-gallery__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 245px;
        gap: 12px;
    }

    .project-gallery__item--featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .project-gallery__item-info {
        right: 14px;
        bottom: 13px;
        left: 14px;
    }

    .project-gallery__item-number {
        font-size: 0.72rem;
    }

    .project-gallery__caption {
        display: none;
    }

    .project-gallery__zoom {
        top: 13px;
        left: 13px;

        width: 31px;
        height: 31px;

        font-size: 1.15rem;
        opacity: 1;
        transform: none;
    }

    /* Lightbox */
    .project-lightbox {
        padding: 15px;
    }

    .project-lightbox__content {
        gap: 14px;
        max-width: 100%;
    }

    .project-lightbox__content img {
        max-height: 72vh;
    }

    .project-lightbox__content p {
        font-size: 0.78rem;
        line-height: 1.8;
    }

    .project-lightbox__close {
        top: 12px;
        left: 12px;

        width: 39px;
        height: 39px;

        font-size: 1.65rem;
    }
}


/* -----------------------------------------------------
   موبایل بسیار کوچک
----------------------------------------------------- */
@media (max-width: 360px) {
    .project-hero {
        min-height: 600px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .project-hero__title {
        font-size: 1.8rem;
    }

    .project-hero__description {
        font-size: 0.81rem;
    }

    .project-hero__meta {
        gap: 10px;
    }

    .project-hero__meta-item strong {
        font-size: 0.72rem;
    }

    .project-spec-card {
        padding: 15px;
    }

    .project-spec-list li {
        padding: 10px 8px;
    }

    .project-gallery__grid {
        grid-auto-rows: 210px;
    }
}


/* -----------------------------------------------------
   کاهش حرکت برای دسترس‌پذیری
----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .project-hero,
    .project-hero::before,
    .project-hero::after,
    .project-hero__grid-lines,
    .project-hero__scroll span::after,
    .project-gallery__item img,
    .project-gallery__zoom,
    .project-lightbox {
        animation: none !important;
        transition: none !important;
    }

    .project-hero {
        background-position: 50% 50%;
    }
}
