/* =========================================================
   WORK PAGE
   ========================================================= */

.work-page {
    position: relative;
    overflow: hidden;
    background: var(--bg-primary, #07111f);
    color: var(--text-primary, #ffffff);
}

.work-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.work-hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 10px 0 100px;
}


.work-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 70px;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.work-eyebrow,
.work-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #6d92ff;
}


.work-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6d92ff;
    box-shadow: 0 0 15px rgba(109, 146, 255, .8);
}


.work-hero-title {
    margin: 22px 0 24px;
    max-width: 680px;
    font-size: clamp(46px, 5vw, 76px);
    line-height: 1.03;
    letter-spacing: -2.5px;
    font-weight: 800;
}


.work-hero-title span {
    display: block;
    background: linear-gradient(
        90deg,
        #6d92ff,
        #9a7cff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.work-hero-description {
    max-width: 620px;
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary, #9ca8ba);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.work-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}


.work-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease,
        color .25s ease,
        box-shadow .25s ease;
}


.work-btn:hover {
    transform: translateY(-3px);
}


.work-btn-primary {
    background: #6d92ff;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(109, 146, 255, .25);
}


.work-btn-primary:hover {
    background: #587ff0;
    color: #ffffff;
}


.work-btn-secondary {
    border: 1px solid var(--border-color, rgba(255,255,255,.12));
    background: var(--card-bg, rgba(255,255,255,.04));
    color: var(--text-primary, #ffffff);
}


.work-btn-secondary:hover {
    border-color: #6d92ff;
    color: #6d92ff;
}


/* =========================================================
   STATS
   ========================================================= */

.work-hero-stats {
    display: flex;
    gap: 38px;
    margin-top: 48px;
}


.work-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.work-stat strong {
    font-size: 28px;
    line-height: 1;
}


.work-stat span {
    font-size: 12px;
    color: var(--text-secondary, #8995a8);
}


/* =========================================================
   HERO VISUAL
   ========================================================= */

.work-hero-visual {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: start;
    justify-content: center;
}


.work-visual-card {
    width: min(500px, 100%);
    padding: 18px;
    border: 1px solid var(--border-color, rgba(255,255,255,.12));
    border-radius: 20px;
    background: var(--card-bg, rgba(255,255,255,.05));
    box-shadow: 0 35px 100px rgba(0,0,0,.25);
    backdrop-filter: blur(18px);
    transform: rotate(2deg);
}


.work-card-top,
.work-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.work-card-top {
    margin-bottom: 15px;
}


.work-card-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-secondary, #8d99aa);
}


.work-card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #52d99a;
}


.work-card-status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #52d99a;
}


/* =========================================================
   BROWSER MOCKUP
   ========================================================= */

.work-browser {
    overflow: hidden;
    border: 1px solid var(--border-color, rgba(255,255,255,.1));
    border-radius: 13px;
    background: var(--browser-bg, #0b1525);
}


.work-browser-bar {
    height: 35px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,.08));
}


.work-browser-bar > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #697586;
}


.work-browser-url {
    flex: 1;
    margin-left: 8px;
    padding: 5px 10px;
    border-radius: 5px;
    background: var(--url-bg, rgba(255,255,255,.05));
    color: var(--text-secondary, #8995a8);
    font-size: 9px;
}


.work-browser-content {
    min-height: 270px;
    padding: 30px;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(109,146,255,.18),
            transparent 35%
        ),
        var(--browser-bg, #0b1525);
}


.work-browser-brand {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
}


.work-browser-line {
    width: 70%;
    height: 10px;
    margin-top: 25px;
    border-radius: 5px;
    background: rgba(255,255,255,.16);
}


.work-browser-line.large {
    width: 85%;
    height: 28px;
    margin-top: 35px;
    background: linear-gradient(
        90deg,
        #6d92ff,
        rgba(109,146,255,.2)
    );
}


.work-browser-line.short {
    width: 48%;
    margin-top: 12px;
}


.work-browser-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 35px;
}


.work-browser-cards div {
    height: 70px;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.06);
}


.work-card-bottom {
    gap: 20px;
    padding: 17px 3px 3px;
}


.work-card-bottom div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.work-card-bottom strong {
    font-size: 14px;
}


.work-card-bottom span {
    font-size: 10px;
    color: var(--text-secondary, #8d99aa);
}


.work-card-bottom > i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #6d92ff;
    color: #ffffff;
}


/* =========================================================
   FLOATING BADGE
   ========================================================= */

.work-floating-badge {
    position: absolute;
    right: -20px;
    bottom: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 17px;
    border: 1px solid var(--border-color, rgba(255,255,255,.12));
    border-radius: 13px;
    background: var(--card-bg, rgba(255,255,255,.06));
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}


.work-floating-badge > i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(109,146,255,.15);
    color: #6d92ff;
}


.work-floating-badge div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.work-floating-badge strong {
    font-size: 12px;
}


.work-floating-badge span {
    font-size: 10px;
    color: var(--text-secondary, #8995a8);
}


/* =========================================================
   HERO GLOW
   ========================================================= */

.work-hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}


.work-glow-one {
    top: 5%;
    right: 5%;
    background: rgba(78,112,255,.13);
}


.work-glow-two {
    bottom: -10%;
    left: -5%;
    background: rgba(130,76,255,.09);
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.work-categories {
    position: relative;
    z-index: 5;
    border-top: 1px solid var(--border-color, rgba(255,255,255,.08));
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,.08));
    background: var(--bg-secondary, rgba(255,255,255,.02));
}


.work-category-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


.work-category-heading {
    display: flex;
    align-items: baseline;
    gap: 9px;
    white-space: nowrap;
}


.work-category-heading span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-secondary, #8995a8);
}


.work-category-heading strong {
    font-size: 16px;
}


.work-category-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}


.work-category-links a {
    padding: 9px 13px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--text-secondary, #8995a8);
    font-size: 12px;
    transition: .25s ease;
}


.work-category-links a:hover,
.work-category-links a.active {
    background: rgba(109,146,255,.12);
    color: #6d92ff;
}


/* =========================================================
   PROJECT SECTION
   ========================================================= */

.work-projects {
    padding: 110px 0;
}


.work-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 55px;
}


.work-section-heading h2 {
    max-width: 650px;
    margin: 14px 0 0;
    font-size: clamp(34px, 4vw, 55px);
    line-height: 1.08;
    letter-spacing: -1.8px;
}


.work-section-heading h2 span {
    color: #6d92ff;
}


.work-section-heading > p {
    max-width: 400px;
    margin: 0;
    color: var(--text-secondary, #8995a8);
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   PROJECT GRID
   ========================================================= */

.work-project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}


.work-project-card {
    overflow: hidden;
    border: 1px solid var(--border-color, rgba(255,255,255,.09));
    border-radius: 18px;
    background: var(--card-bg, rgba(255,255,255,.035));
    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}


.work-project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(109,146,255,.45);
    box-shadow: 0 25px 70px rgba(0,0,0,.18);
}


/* =========================================================
   PROJECT IMAGE
   ========================================================= */

.work-project-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}


.work-project-image::before,
.work-project-image::after {
    position: absolute;
    content: "";
    pointer-events: none;
}


.work-project-image::before {
    width: 200px;
    height: 200px;
    top: 35px;
    right: 45px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.15);
    transform: rotate(25deg);
}


.work-project-image::after {
    width: 140px;
    height: 140px;
    bottom: 20px;
    left: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
}


.work-project-image-one {
    background:
        radial-gradient(
            circle at 70% 35%,
            rgba(109,146,255,.8),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #111c38,
            #15295d
        );
}


.work-project-image-two {
    background:
        radial-gradient(
            circle at 30% 35%,
            rgba(117,91,255,.7),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #17152f,
            #30215c
        );
}


.work-project-image-three {
    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(61,205,176,.55),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #0d2828,
            #123e40
        );
}


.work-project-image-four {
    background:
        radial-gradient(
            circle at 40% 35%,
            rgba(255,145,75,.6),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #2b1c17,
            #55301f
        );
}


.work-project-image-five {
    background:
        radial-gradient(
            circle at 70% 35%,
            rgba(236,105,176,.55),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #32172d,
            #572345
        );
}


.work-project-image-six {
    background:
        radial-gradient(
            circle at 30% 35%,
            rgba(88,197,255,.55),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #112433,
            #153d55
        );
}


.work-project-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 22px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.55),
        transparent 50%
    );
    opacity: 0;
    transition: opacity .3s ease;
}


.work-project-card:hover .work-project-overlay {
    opacity: 1;
}


.work-project-overlay span {
    padding: 7px 11px;
    border-radius: 6px;
    background: rgba(0,0,0,.35);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}


.work-project-overlay a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #6d92ff;
    color: #ffffff;
    text-decoration: none;
}


/* =========================================================
   PROJECT CONTENT
   ========================================================= */

.work-project-content {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 18px;
    padding: 24px;
}


.work-project-number {
    font-size: 11px;
    font-weight: 700;
    color: #6d92ff;
}


.work-project-content h3 {
    margin: 0 0 8px;
    font-size: 19px;
}


.work-project-content p {
    margin: 0;
    color: var(--text-secondary, #8995a8);
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   CTA
   ========================================================= */

.work-cta {
    padding: 0 0 110px;
}


.work-cta-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 65px;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(109,146,255,.25),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #111d38,
            #172858
        );
}


.work-cta-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}


.work-cta-content > span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #9eafff;
}


.work-cta-content h2 {
    margin: 15px 0;
    font-size: clamp(34px, 4vw, 55px);
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: #ffffff;
}


.work-cta-content h2 strong {
    color: #8fa8ff;
}


.work-cta-content p {
    max-width: 600px;
    margin-bottom: 28px;
    color: rgba(255,255,255,.72);
    line-height: 1.8;
    font-size: 14px;
}


.work-cta-content .work-btn-primary {
    background: #ffffff;
    color: #14234a;
    box-shadow: none;
}


.work-cta-content .work-btn-primary:hover {
    background: #edf1ff;
    color: #14234a;
}


/* =========================================================
   CTA DECORATION
   ========================================================= */

.work-cta-decoration {
    position: absolute;
    width: 500px;
    height: 500px;
    right: -100px;
    top: -70px;
}


.work-cta-circle {
    position: absolute;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
}


.circle-one {
    width: 220px;
    height: 220px;
    right: 80px;
    top: 130px;
}


.circle-two {
    width: 330px;
    height: 330px;
    right: 25px;
    top: 75px;
}


.circle-three {
    width: 450px;
    height: 450px;
    right: -35px;
    top: 15px;
}


.work-cta-decoration > i {
    position: absolute;
    right: 190px;
    top: 230px;
    font-size: 60px;
    color: rgba(255,255,255,.16);
}


/* =========================================================
   LIGHT THEME
   ========================================================= */

html[data-theme="light"] .work-page {
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #101828);
}


html[data-theme="light"] .work-visual-card,
html[data-theme="light"] .work-project-card,
html[data-theme="light"] .work-floating-badge {
    box-shadow: 0 25px 70px rgba(15,23,42,.08);
}


html[data-theme="light"] .work-browser {
    background: #f3f6fb;
}


html[data-theme="light"] .work-browser-content {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(109,146,255,.15),
            transparent 35%
        ),
        #f3f6fb;
}


html[data-theme="light"] .work-browser-brand {
    color: #172033;
}


html[data-theme="light"] .work-browser-line {
    background: rgba(15,23,42,.12);
}


html[data-theme="light"] .work-browser-cards div {
    background: rgba(15,23,42,.05);
    border-color: rgba(15,23,42,.06);
}


html[data-theme="light"] .work-project-card:hover {
    box-shadow: 0 25px 70px rgba(15,23,42,.12);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .work-hero-grid {
        grid-template-columns: 1fr;
        gap: 65px;
    }


    .work-hero-content {
        text-align: center;
    }


    .work-hero-title,
    .work-hero-description {
        margin-left: auto;
        margin-right: auto;
    }


    .work-hero-actions {
        justify-content: center;
    }


    .work-hero-stats {
        justify-content: center;
    }


    .work-hero-visual {
        min-height: 430px;
    }


    .work-category-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px 0;
    }


    .work-category-links {
        justify-content: flex-start;
    }

}


@media (max-width: 768px) {

    .work-container {
        width: min(100% - 28px, 1200px);
    }


    .work-hero {
        min-height: auto;
        padding: 100px 0 75px;
    }


    .work-hero-title {
        font-size: clamp(40px, 11vw, 58px);
        letter-spacing: -1.8px;
    }


    .work-hero-description {
        font-size: 15px;
    }


    .work-hero-stats {
        gap: 22px;
        flex-wrap: wrap;
    }


    .work-stat strong {
        font-size: 24px;
    }


    .work-hero-visual {
        min-height: 360px;
    }


    .work-visual-card {
        transform: none;
    }


    .work-floating-badge {
        right: 0;
        bottom: 5px;
    }


    .work-projects {
        padding: 75px 0;
    }


    .work-section-heading {
        display: block;
        margin-bottom: 35px;
    }


    .work-section-heading > p {
        margin-top: 20px;
    }


    .work-project-grid {
        grid-template-columns: 1fr;
    }


    .work-project-image {
        height: 260px;
    }


    .work-cta-card {
        padding: 45px 30px;
    }


    .work-cta-decoration {
        opacity: .45;
        right: -180px;
    }

}


@media (max-width: 480px) {

    .work-hero-actions {
        flex-direction: column;
    }


    .work-btn {
        width: 100%;
    }


    .work-hero-stats {
        justify-content: space-between;
    }


    .work-category-links {
        gap: 4px;
    }


    .work-category-links a {
        font-size: 11px;
        padding: 8px 10px;
    }


    .work-project-content {
        grid-template-columns: 32px 1fr;
        padding: 20px;
    }


    .work-project-image {
        height: 220px;
    }


    .work-cta {
        padding-bottom: 70px;
    }


    .work-cta-content h2 {
        font-size: 34px;
    }

}