/* =========================================================
   DANIAL.DEV — PORTFOLIO SHOWCASE
========================================================= */

.portfolio-section {
    position: relative;
    overflow: hidden;

    padding: 130px 0;

    direction: rtl;

    background: linear-gradient(
        180deg,
        #f8fbff 0%,
        #ffffff 50%,
        #f7faff 100%
    );
}


/* =========================================================
   BACKGROUND
========================================================= */

.portfolio-bg-orb {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(80px);

    opacity: .45;
}

.orb-one {
    top: 80px;
    right: -240px;

    background: rgba(20, 100, 216, .12);
}

.orb-two {
    bottom: 0;
    left: -250px;

    background: rgba(77, 145, 255, .09);
}


/* =========================================================
   CONTAINER
========================================================= */

.portfolio-container {
    position: relative;

    width: min(
        1240px,
        calc(100% - 48px)
    );

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.portfolio-header {
    max-width: 780px;

    margin: 0 auto 65px;

    text-align: center;
}

.portfolio-heading-top {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    margin-bottom: 20px;
}

.portfolio-badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 13px;

    border-radius: 50px;

    color: #1464d8;

    background: rgba(20, 100, 216, .06);

    border: 1px solid rgba(20, 100, 216, .09);

    font-size: 11px;

    font-weight: 900;
}

.badge-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #1464d8;

    box-shadow: 0 0 0 5px rgba(20, 100, 216, .08);
}

.portfolio-counter {
    color: #91a0b4;

    font-family: Arial, sans-serif;

    font-size: 17px;

    font-weight: 800;
}

.portfolio-header h2 {
    margin: 0;

    color: #092653;

    font-size: clamp(40px, 5vw, 67px);

    font-weight: 950;

    letter-spacing: -2px;

    line-height: 1.2;
}

.portfolio-header h2 span {
    color: #1464d8;

    position: relative;
}

.portfolio-header h2 span::after {
    content: "";

    position: absolute;

    right: 0;
    left: 0;
    bottom: -8px;

    height: 8px;

    background: linear-gradient(
        90deg,
        rgba(20, 100, 216, .15),
        transparent
    );

    border-radius: 50%;
}

.portfolio-intro {
    max-width: 680px;

    margin: 24px auto 0;

    color: #71839b;

    font-size: 15px;

    line-height: 2.2;

    font-weight: 600;
}


/* =========================================================
   SHOWCASE
========================================================= */

.portfolio-showcase {
    position: relative;

    width: 100%;

    /*
     * مهم:
     * ارتفاع Showcase نباید محدود شود.
     */
    height: auto;

    overflow: visible;
}


/* =========================================================
   SWIPER
========================================================= */

.portfolio-swiper {
    position: relative;

    width: 100%;

    /*
     * ارتفاع اتوماتیک
     */
    height: auto;

    /*
     * فضای پایین فقط برای pagination
     */
    padding: 20px 5px 65px;

    overflow: visible;
}


/*
 * Swiper Wrapper
 */

.portfolio-swiper .swiper-wrapper {
    align-items: stretch;

    height: auto;
}


/*
 * Slides
 */

.portfolio-swiper .swiper-slide {
    height: auto;

    display: flex;

    align-items: stretch;
}


/* =========================================================
   CARD
========================================================= */

.portfolio-project-card {
    position: relative;

    width: 100%;

    overflow: hidden;

    display: grid;

    grid-template-columns: 1.08fr .92fr;

    min-height: 540px;

    height: auto;

    border-radius: 30px;

    background: rgba(255, 255, 255, .92);

    border: 1px solid rgba(20, 100, 216, .09);

    box-shadow: 0 30px 80px rgba(20, 55, 100, .08),
    0 2px 0 rgba(255, 255, 255, .9) inset;

    transition: transform .6s cubic-bezier(.22, 1, .36, 1),
    box-shadow .6s ease;
}

.portfolio-project-card:hover {
    transform: translateY(-7px);

    box-shadow: 0 40px 100px rgba(20, 55, 100, .13),
    0 2px 0 rgba(255, 255, 255, .9) inset;
}


/* =========================================================
   VISUAL
========================================================= */

.portfolio-visual {
    position: relative;

    min-height: 540px;

    overflow: hidden;

    background: #dfeaff;
}

.portfolio-visual img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}

.portfolio-project-card:hover .portfolio-visual img {
    transform: scale(1.07);
}

.portfolio-visual-overlay {
    position: absolute;

    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(5, 25, 55, .05),
        rgba(5, 25, 55, .72)
    );
}

.portfolio-visual-glow {
    position: absolute;

    width: 300px;
    height: 300px;

    right: -100px;
    bottom: -130px;

    border-radius: 50%;

    background: rgba(77, 145, 255, .25);

    filter: blur(60px);

    z-index: 1;
}


/* =========================================================
   PROJECT NUMBER
========================================================= */

.portfolio-project-number {
    position: absolute;

    top: 25px;
    right: 25px;

    z-index: 4;

    color: rgba(255, 255, 255, .75);

    font-family: Arial, sans-serif;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 2px;
}


/* =========================================================
   STATUS
========================================================= */

.portfolio-status {
    position: absolute;

    top: 22px;
    left: 22px;

    z-index: 5;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 8px 11px;

    border-radius: 50px;

    color: white;

    background: rgba(10, 30, 60, .35);

    border: 1px solid rgba(255, 255, 255, .18);

    backdrop-filter: blur(12px);

    font-size: 9px;

    font-weight: 900;
}

.portfolio-status span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #62e28b;

    box-shadow: 0 0 10px rgba(98, 226, 139, .8);
}

.portfolio-status.demo span {
    background: #62a7ff;
}

.portfolio-status.developing span {
    background: #ffc857;

    box-shadow: 0 0 10px rgba(255, 200, 87, .8);
}


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

.portfolio-visual-content {
    position: absolute;

    right: 30px;
    left: 30px;
    bottom: 30px;

    z-index: 4;

    color: white;
}

.portfolio-visual-content span {
    display: block;

    margin-bottom: 7px;

    color: rgba(255, 255, 255, .7);

    font-size: 10px;

    font-weight: 700;
}

.portfolio-visual-content strong {
    display: block;

    font-size: 32px;

    font-weight: 950;

    letter-spacing: -.8px;
}


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

.portfolio-project-content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 48px;

    min-width: 0;
}

.portfolio-project-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;

    color: #8a9bb1;

    font-size: 10px;

    font-weight: 800;
}

.portfolio-project-content h3 {
    margin: 0 0 18px;

    color: #092653;

    font-size: 31px;

    font-weight: 950;

    line-height: 1.35;
}

.portfolio-project-content p {
    margin: 0;

    color: #6f829b;

    font-size: 14px;

    line-height: 2.1;

    font-weight: 600;
}


/* =========================================================
   TAGS
========================================================= */

.portfolio-project-content .portfolio-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 25px;
}

.portfolio-project-content .portfolio-tags span {
    padding: 7px 10px;

    border-radius: 9px;

    color: #45617f;

    background: #f3f7fc;

    border: 1px solid #e6edf6;

    font-family: Arial, sans-serif;

    font-size: 9px;

    font-weight: 800;
}


/* =========================================================
   PROJECT FOOTER
========================================================= */

.portfolio-project-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: auto;

    padding-top: 30px;
}

.portfolio-project-link {
    min-height: 46px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 0 18px;

    border-radius: 13px;

    color: white;

    background: linear-gradient(
        135deg,
        #1769df,
        #0c4db1
    );

    text-decoration: none;

    font-size: 11px;

    font-weight: 900;

    box-shadow: 0 10px 25px rgba(20, 100, 216, .18);

    transition: transform .3s ease,
    box-shadow .3s ease;
}

.portfolio-project-link:hover {
    transform: translateY(-2px);

    box-shadow: 0 15px 32px rgba(20, 100, 216, .27);
}

.portfolio-project-link svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;

    transition: transform .3s ease;
}

.portfolio-project-link:hover svg {
    transform: translateX(-4px);
}

.portfolio-project-link.disabled {
    color: #8191a5;

    background: #eef3f8;

    box-shadow: none;

    cursor: default;
}

.portfolio-project-type {
    color: #99a8ba;

    font-family: Arial, sans-serif;

    font-size: 9px;

    font-weight: 800;
}


/* =========================================================
   SWIPER NAVIGATION
========================================================= */

.portfolio-nav {
    position: absolute;

    top: 50%;

    z-index: 20;

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(20, 100, 216, .09);

    border-radius: 50%;

    color: #1464d8;

    background: rgba(255, 255, 255, .92);

    backdrop-filter: blur(15px);

    box-shadow: 0 10px 30px rgba(20, 60, 110, .09);

    cursor: pointer;

    transform: translateY(-50%);

    transition: transform .3s ease,
    background .3s ease,
    box-shadow .3s ease;
}

.portfolio-nav:hover {
    background: #1464d8;

    color: white;

    box-shadow: 0 15px 35px rgba(20, 100, 216, .22);

    transform: translateY(-50%) scale(1.05);
}

.portfolio-nav svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}

.portfolio-prev {
    right: -22px;
}

.portfolio-next {
    left: -22px;
}


/* =========================================================
   PAGINATION
========================================================= */

.portfolio-pagination {
    position: absolute;

    bottom: 10px !important;

    left: 50%;

    z-index: 15;

    transform: translateX(-50%);

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    width: auto;
}

.portfolio-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;

    margin: 0 !important;

    opacity: 1;

    background: #cbd7e7;

    transition: width .4s ease,
    background .3s ease;
}

.portfolio-pagination .swiper-pagination-bullet-active {
    width: 25px;

    border-radius: 20px;

    background: #1464d8;
}


/* =========================================================
   BOTTOM CTA
========================================================= */

.portfolio-bottom {
    position: relative;

    z-index: 30;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    width: 100%;

    /*
     * فاصله واقعی از Swiper
     */
    margin-top: 35px;

    padding: 28px 30px;

    box-sizing: border-box;

    border: 1px solid rgba(20, 100, 216, .07);

    border-radius: 20px;

    background: rgba(255, 255, 255, .85);

    box-shadow: 0 15px 45px rgba(20, 60, 110, .045);
}

.portfolio-bottom-text {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.portfolio-bottom-text span {
    color: #91a0b4;

    font-size: 10px;

    font-weight: 800;
}

.portfolio-bottom-text strong {
    color: #092653;

    font-size: 16px;

    font-weight: 950;
}

.portfolio-all-projects {
    min-height: 46px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 0 18px;

    border-radius: 13px;

    color: #1464d8;

    background: #eef5ff;

    border: 1px solid rgba(20, 100, 216, .08);

    text-decoration: none;

    font-size: 11px;

    font-weight: 900;

    transition: transform .3s ease,
    background .3s ease;
}

.portfolio-all-projects:hover {
    background: #1464d8;

    color: white;

    transform: translateY(-2px);
}

.portfolio-all-projects svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .portfolio-project-card {
        grid-template-columns: 1fr;

        min-height: auto;

        height: auto;
    }

    .portfolio-visual {
        min-height: 400px;

        height: 400px;
    }

    .portfolio-project-content {
        min-height: 390px;

        height: auto;
    }

    .portfolio-prev {
        right: 10px;
    }

    .portfolio-next {
        left: 10px;
    }

    .portfolio-bottom {
        margin-top: 35px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .portfolio-section {
        padding: 85px 0;
    }

    .portfolio-container {
        width: calc(100% - 24px);
    }

    .portfolio-header {
        margin-bottom: 35px;
    }

    .portfolio-heading-top {
        margin-bottom: 14px;
    }

    .portfolio-header h2 {
        font-size: 38px;

        letter-spacing: -1.2px;
    }

    .portfolio-intro {
        margin-top: 16px;

        font-size: 13px;

        line-height: 2;
    }


    /* =========================================
       MOBILE SWIPER
    ========================================= */
    .portfolio-swiper {
        padding: 8px 2px 55px;

        overflow: visible;
    }

    .portfolio-swiper .swiper-wrapper {
        align-items: stretch;
    }

    .portfolio-swiper .swiper-slide {
        height: auto;

        display: flex;
    }


    /* =========================================
       MOBILE CARD
    ========================================= */
    .portfolio-project-card {
        display: block;

        width: 100%;

        height: auto;

        min-height: 0;

        border-radius: 24px;
    }

    .portfolio-visual {
        min-height: 280px;

        height: 280px;
    }

    .portfolio-visual-content {
        right: 20px;
        left: 20px;
        bottom: 20px;
    }

    .portfolio-visual-content strong {
        font-size: 25px;
    }

    .portfolio-project-number {
        top: 18px;
        right: 18px;
    }

    .portfolio-status {
        top: 17px;
        left: 17px;
    }

    .portfolio-project-content {
        min-height: 0;

        height: auto;

        padding: 24px 20px 22px;
    }

    .portfolio-project-content h3 {
        margin-bottom: 11px;

        font-size: 23px;
    }

    .portfolio-project-content p {
        font-size: 12px;

        line-height: 2;
    }

    .portfolio-project-content .portfolio-tags {
        margin-top: 17px;
    }

    .portfolio-project-content .portfolio-tags span {
        padding: 6px 8px;

        font-size: 8px;
    }

    .portfolio-project-footer {
        padding-top: 22px;
    }

    .portfolio-project-link {
        min-height: 43px;

        padding: 0 14px;

        font-size: 10px;
    }

    .portfolio-project-type {
        font-size: 8px;
    }


    /* =========================================
       MOBILE NAVIGATION
    ========================================= */
    .portfolio-nav {
        width: 40px;
        height: 40px;

        top: 140px;
    }

    .portfolio-prev {
        right: 8px;
    }

    .portfolio-next {
        left: 8px;
    }


    /* =========================================
       MOBILE PAGINATION
    ========================================= */
    .portfolio-pagination {
        bottom: 8px !important;
    }


    /* =========================================
       MOBILE BOTTOM CTA
    ========================================= */
    .portfolio-bottom {
        position: relative;

        z-index: 30;

        flex-direction: column;

        align-items: stretch;

        text-align: center;

        width: 100%;

        margin-top: 30px;

        padding: 22px 18px;

        gap: 18px;

        box-sizing: border-box;
    }

    .portfolio-all-projects {
        width: 100%;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .portfolio-header h2 {
        font-size: 34px;
    }

    .portfolio-visual {
        min-height: 245px;

        height: 245px;
    }

    .portfolio-project-content {
        padding: 21px 17px;
    }

    .portfolio-project-content h3 {
        font-size: 21px;
    }

    .portfolio-project-content p {
        font-size: 11px;
    }

    .portfolio-project-footer {
        flex-direction: column;

        align-items: stretch;
    }

    .portfolio-project-link {
        width: 100%;
    }

    .portfolio-project-type {
        text-align: center;
    }

    .portfolio-bottom {
        margin-top: 25px;
    }

}


