/* =========================================================
   WEBLINKUS
   OUR WORK / PORTFOLIO
   ========================================================= */


/* =========================================================
   01. OUR WORK SECTION
========================================================= */

.our-work {
    position: relative;
    width: 100%;
    padding: 85px 0;
    direction: rtl;
}


/* =========================================================
   02. SECTION TITLE
========================================================= */

.our-work .section-title {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}


/* Small Label */

.our-work .work-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;
    padding: 6px 16px;

    font-family: "Tajawal", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;

    color: #0868e8;

    background: rgba(8, 104, 232, 0.07);

    border: 1px solid rgba(8, 104, 232, 0.10);
    border-radius: 50px;
}


/* Main Title */

.our-work .section-title h2 {
    margin: 0 0 12px;

    font-family: "Tajawal", sans-serif;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.3;
    font-weight: 800;

    color: #03142d;
}


/* Highlight */

.our-work .section-title h2 strong {
    color: #0868e8;
    font-weight: 800;
}


/* Description */

.our-work .section-title p {
    max-width: 650px;

    margin: 0 auto;

    font-family: "Tajawal", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;

    color: #667085;
}


/* =========================================================
   03. WORK GRID
========================================================= */

.our-work .work-grid {
    display: grid;

    /*
     * DESKTOP
     * 4 PROJECTS PER ROW
     */

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 22px;

    width: 100%;
}


/* =========================================================
   04. WORK CARD
========================================================= */

.our-work .work-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    background: #ffffff;

    border: 1px solid #e8edf4;
    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 5px 22px rgba(3, 20, 45, 0.045);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* Card Hover */

.our-work .work-card:hover {
    transform: translateY(-5px);

    border-color: #d9e1ec;

    box-shadow:
        0 15px 35px rgba(3, 20, 45, 0.09);
}


/* =========================================================
   05. WORK IMAGE
========================================================= */

.our-work .work-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #f3f5f8;
}


/* Image */

.our-work .work-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.5s ease;
}


/* Image Hover */

.our-work .work-card:hover .work-image img {
    transform: scale(1.045);
}


/* =========================================================
   06. IMAGE OVERLAY
========================================================= */

.our-work .work-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px;

    /*
     * Dark neutral overlay
     * بدون Purple
     */

    background: rgba(3, 20, 45, 0.58);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


/* Show Overlay */

.our-work .work-card:hover .work-overlay {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   07. VIEW PROJECT BUTTON
========================================================= */

.our-work .work-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding: 9px 17px;

    font-family: "Tajawal", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;

    color: #ffffff;

    background: #0868e8;

    border: 1px solid #0868e8;
    border-radius: 7px;

    text-decoration: none;

    box-shadow:
        0 6px 18px rgba(8, 104, 232, 0.18);

    transform: translateY(8px);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* Button Appears */

.our-work .work-card:hover .work-link {
    transform: translateY(0);
}


/* Button Hover */

.our-work .work-link:hover {
    color: #ffffff;

    background: #055bcf;

    border-color: #055bcf;

    box-shadow:
        0 9px 22px rgba(8, 104, 232, 0.25);
}


/* Arrow */

.our-work .work-link span {
    display: inline-flex;

    font-size: 16px;
    line-height: 1;

    transition:
        transform 0.25s ease;
}


/* Arrow Hover */

.our-work .work-link:hover span {
    transform: translateX(-3px);
}


/* =========================================================
   08. WORK CONTENT
========================================================= */

.our-work .work-content {
    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 17px 18px 19px;

    text-align: right;

    background: #ffffff;
}


/* Project Title */

.our-work .work-content h3 {
    margin: 0;

    font-family: "Tajawal", sans-serif;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 800;

    color: #03142d;
}


/* Project Category */

.our-work .work-content > span {
    display: block;

    font-family: "Tajawal", sans-serif;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;

    color: #7a8597;
}


/* =========================================================
   09. MORE WORK BUTTON
========================================================= */

.our-work .work-more {
    display: flex;

    justify-content: center;

    margin-top: 42px;
}


/* Main Button */

.our-work .work-more-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 46px;

    padding: 10px 24px;

    font-family: "Tajawal", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;

    color: #ffffff;

    background: #0868e8;

    border: 1px solid #0868e8;
    border-radius: 7px;

    text-decoration: none;

    box-shadow:
        0 6px 18px rgba(8, 104, 232, 0.16);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* Main Button Hover */

.our-work .work-more-btn:hover {
    transform: translateY(-3px);

    color: #ffffff;

    background: #055bcf;

    border-color: #055bcf;

    box-shadow:
        0 10px 24px rgba(8, 104, 232, 0.24);
}


/* Main Button Arrow */

.our-work .work-more-btn > span:last-child {
    display: inline-flex;

    font-size: 17px;
    line-height: 1;

    transition:
        transform 0.25s ease;
}


/* Arrow Hover */

.our-work .work-more-btn:hover > span:last-child {
    transform: translateX(-3px);
}


/* =========================================================
   10. TABLET
   768px - 991px
========================================================= */

@media (max-width: 991px) {

    .our-work {
        padding: 70px 0;
    }


    .our-work .section-title {
        margin-bottom: 42px;
    }


    .our-work .work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px;
    }

}


/* =========================================================
   11. MOBILE
   max-width: 767px
========================================================= */

@media (max-width: 767px) {

    .our-work {
        padding: 60px 0;
    }


    .our-work .section-title {
        margin-bottom: 35px;

        padding: 0 10px;
    }


    .our-work .work-label {
        margin-bottom: 10px;

        padding: 6px 15px;

        font-size: 13px;
    }


    .our-work .section-title h2 {
        font-size: 29px;

        line-height: 1.35;
    }


    .our-work .section-title p {
        font-size: 15px;

        line-height: 1.8;
    }


    .our-work .work-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .our-work .work-card {
        border-radius: 14px;
    }


    .our-work .work-image {
        aspect-ratio: 16 / 10;
    }


    .our-work .work-content {
        padding: 17px 18px 19px;
    }


    .our-work .work-content h3 {
        font-size: 18px;
    }


    .our-work .work-content > span {
        font-size: 13px;
    }


    .our-work .work-more {
        margin-top: 35px;
    }

}


/* =========================================================
   12. SMALL MOBILE
   max-width: 480px
========================================================= */

@media (max-width: 480px) {

    .our-work {
        padding: 52px 0;
    }


    .our-work .section-title h2 {
        font-size: 27px;
    }


    .our-work .section-title p {
        font-size: 14px;
    }


    .our-work .work-grid {
        gap: 18px;
    }


    .our-work .work-link {
        min-height: 40px;

        padding: 8px 14px;

        font-size: 13px;
    }


    .our-work .work-more-btn {
        min-height: 44px;

        padding: 9px 20px;

        font-size: 14px;
    }

}


/* =========================================================
   13. ACCESSIBILITY
========================================================= */

.our-work .work-link:focus-visible,
.our-work .work-more-btn:focus-visible {
    outline: 3px solid rgba(8, 104, 232, 0.25);

    outline-offset: 4px;
}


/* =========================================================
   14. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .our-work .work-card,
    .our-work .work-image img,
    .our-work .work-overlay,
    .our-work .work-link,
    .our-work .work-link span,
    .our-work .work-more-btn,
    .our-work .work-more-btn > span:last-child {

        transition: none;
    }

}

/* =========================================================
   15. BUTTON SHINE EFFECT
========================================================= */


/* ---------------------------------------------------------
   PROJECT BUTTON
--------------------------------------------------------- */

.our-work .work-link,
.our-work .work-more-btn {
    position: relative;

    overflow: hidden;

    isolation: isolate;
}


/* Shine Layer */

.our-work .work-link::before,
.our-work .work-more-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 55%;
    height: 100%;

    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 35%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.08) 65%,
        transparent 100%
    );

    transform: skewX(-20deg);

    pointer-events: none;

    z-index: 1;
}


/* Shine Animation */

.our-work .work-link:hover::before,
.our-work .work-more-btn:hover::before {
    animation: workButtonShine 0.8s ease forwards;
}


/* Keep Button Content Above Shine */

.our-work .work-link > *,
.our-work .work-more-btn > * {
    position: relative;

    z-index: 2;
}


/* =========================================================
   SHINE KEYFRAMES
========================================================= */

@keyframes workButtonShine {

    0% {
        left: -120%;
    }

    100% {
        left: 150%;
    }

}


/* =========================================================
   15. BUTTON SHINE EFFECT
========================================================= */

.our-work .work-link,
.our-work .work-more-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}


/* Shine */

.our-work .work-link::before,
.our-work .work-more-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 55%;
    height: 100%;

    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.10) 35%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.10) 65%,
        transparent 100%
    );

    transform: skewX(-20deg);

    pointer-events: none;

    z-index: 1;
}


/* Run shine on hover */

.our-work .work-link:hover::before,
.our-work .work-more-btn:hover::before {
    animation: work-button-shine 0.8s ease forwards;
}


/* Keep text and arrow above shine */

.our-work .work-link > *,
.our-work .work-more-btn > * {
    position: relative;
    z-index: 2;
}


/* =========================================================
   SHINE ANIMATION
========================================================= */

@keyframes work-button-shine {

    0% {
        left: -120%;
    }

    100% {
        left: 150%;
    }

}