/* ==========================================================================
   WORK / PORTFOLIO PAGE REDESIGN - IMMERSIVE SHOWCASE (2026)
   ========================================================================== */

/* Page Container Reset */
.work-page-modern {
    background-color: #0b0d14;
    color: #e2e8f0;
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 60px;
}

/* Background Atmosphere */
.work-bg-ambient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-glow-1 {
    position: absolute;
    top: -100px;
    left: 15%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.14) 0%, rgba(255, 106, 0, 0) 70%);
    filter: blur(80px);
    border-radius: 50%;
    animation: pulseAmbient 12s ease-in-out infinite alternate;
}

.ambient-glow-2 {
    position: absolute;
    top: 35%;
    right: -100px;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(255, 78, 0, 0.1) 0%, rgba(255, 140, 42, 0) 70%);
    filter: blur(90px);
    border-radius: 50%;
    animation: pulseAmbient 16s ease-in-out infinite alternate-reverse;
}

.ambient-glow-3 {
    position: absolute;
    top: 75%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.12) 0%, rgba(255, 78, 0, 0) 70%);
    filter: blur(80px);
    border-radius: 50%;
    animation: pulseAmbient 14s ease-in-out infinite alternate;
}

@keyframes pulseAmbient {
    0% { transform: scale(0.9) translate(0, 0); opacity: 0.6; }
    100% { transform: scale(1.15) translate(40px, -30px); opacity: 1; }
}

.work-bg-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.8;
}

/* Hero Section */
.work-hero-section {
    position: relative;
    z-index: 2;
    padding: 130px 0 60px;
    text-align: center;
}

.work-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(255, 106, 0, 0.12);
    border: 1px solid rgba(255, 106, 0, 0.35);
    border-radius: 50px;
    color: #ff8c2a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.15);
}

.work-badge-pill i {
    font-size: 11px;
}

.work-hero-title {
    font-size: clamp(34px, 5.5vw, 62px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.work-title-gradient {
    background: linear-gradient(135deg, #ffffff 30%, #ff8c2a 80%, #ff5500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.work-hero-subtitle {
    font-size: clamp(16px, 1.8vw, 19px);
    color: #94a3b8;
    max-width: 720px;
    margin: 0 auto 35px;
    line-height: 1.6;
    font-weight: 400;
}

/* Stats Counter Row */
.work-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.work-stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 14px 24px;
    min-width: 140px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-stat-box:hover {
    background: rgba(255, 106, 0, 0.08);
    border-color: rgba(255, 106, 0, 0.3);
    transform: translateY(-3px);
}

.work-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #ff8c2a;
    line-height: 1;
    margin-bottom: 4px;
}

.work-stat-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Sticky Filter Controls */
.work-filter-wrapper {
    position: sticky;
    top: 75px;
    z-index: 100;
    padding: 16px 0;
    background: rgba(11, 13, 20, 0.85);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.work-filter-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.work-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    outline: none;
}

.work-filter-btn i {
    font-size: 12px;
    color: #94a3b8;
    transition: color 0.25s ease;
}

.work-filter-btn:hover {
    background: rgba(255, 106, 0, 0.12);
    border-color: rgba(255, 106, 0, 0.35);
    color: #ffffff;
}

.work-filter-btn:hover i {
    color: #ff8c2a;
}

.work-filter-btn.active {
    background: linear-gradient(135deg, #ff6a00 0%, #ff4500 100%);
    border-color: #ff6a00;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(255, 106, 0, 0.4);
}

.work-filter-btn.active i {
    color: #ffffff;
}

/* Project Cards Grid */
.work-grid-container {
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
}

.work-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

@media (max-width: 991px) {
    .work-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Individual Interactive Project Card */
.work-project-card {
    background: rgba(18, 21, 31, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(14px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(35px);
    will-change: transform, opacity;
}

/* Scroll Animation revealed state */
.work-project-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.work-project-card:hover {
    border-color: rgba(255, 106, 0, 0.45);
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(255, 106, 0, 0.16), 0 0 35px rgba(255, 106, 0, 0.08);
}

/* Featured / Full Width Card Modifier */
.work-project-card.featured-card {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

@media (max-width: 991px) {
    .work-project-card.featured-card {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
    }
}

/* Media Showcase Area */
.work-card-media {
    position: relative;
    overflow: hidden;
    background: #0f121d;
    min-height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-card .work-card-media {
    min-height: 380px;
}

.work-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    filter: brightness(0.92) contrast(1.05);
}

.work-project-card:hover .work-card-media img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.08);
}

/* Gradient overlay on media */
.work-card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 13, 20, 0) 40%, rgba(11, 13, 20, 0.9) 100%);
    pointer-events: none;
}

/* Floating Tag / Badges on Media */
.work-media-tag-left {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(11, 13, 20, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #ff8c2a;
    z-index: 2;
}

.work-media-status {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    color: #34d399;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.work-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Card Content Details */
.work-card-content {
    padding: 28px 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.work-card-header {
    margin-bottom: 14px;
}

.work-project-client {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff8c2a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.work-project-client::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 2px;
    background: #ff6a00;
}

.work-project-name {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 12px;
    transition: color 0.25s ease;
}

.work-project-card:hover .work-project-name {
    color: #ff8c2a;
}

.work-project-desc {
    font-size: 14.5px;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Metrics highlight row */
.work-metrics-strip {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 22px;
}

.work-metric-item {
    display: flex;
    flex-direction: column;
}

.work-metric-val {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.work-metric-val span {
    color: #ff6a00;
}

.work-metric-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Technology Stack Pills */
.work-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.work-tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 500;
    transition: all 0.2s ease;
}

.work-tech-pill img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.work-tech-pill:hover {
    background: rgba(255, 106, 0, 0.12);
    border-color: rgba(255, 106, 0, 0.3);
    color: #ffffff;
}

/* Card Action Footer */
.work-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.work-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.work-view-btn i {
    font-size: 12px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 106, 0, 0.15);
    color: #ff8c2a;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-project-card:hover .work-view-btn {
    color: #ff8c2a;
}

.work-project-card:hover .work-view-btn i {
    background: #ff6a00;
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.4);
}

.work-year-stamp {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}

/* Interactive Floating Preview Modal */
.work-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.work-modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.work-modal-container {
    background: #10131d;
    border: 1px solid rgba(255, 106, 0, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 106, 0, 0.2);
    border-radius: 20px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 35px 40px;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-modal-backdrop.show .work-modal-container {
    transform: scale(1) translateY(0);
}

.work-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.work-modal-close-btn:hover {
    background: #ff6a00;
    border-color: #ff6a00;
    transform: rotate(90deg);
}

.work-modal-img-wrap {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    background: #090b12;
}

.work-modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-modal-category {
    font-size: 13px;
    font-weight: 700;
    color: #ff8c2a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.work-modal-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.work-modal-desc {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 24px;
}

.work-modal-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

@media (max-width: 600px) {
    .work-modal-details-grid {
        grid-template-columns: 1fr;
    }
}

.work-modal-detail-item h6 {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.work-modal-detail-item p {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    margin: 0;
}

.work-modal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff6a00 0%, #ff4500 100%);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.4);
    transition: all 0.25s ease;
}

.work-modal-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(255, 106, 0, 0.5);
    color: #ffffff;
}

/* Call to Action Section */
.work-cta-banner {
    position: relative;
    z-index: 2;
    margin: 60px 0 30px;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.12) 0%, rgba(18, 21, 31, 0.95) 100%);
    border: 1px solid rgba(255, 106, 0, 0.35);
    border-radius: 24px;
    padding: 55px 45px;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.work-cta-banner h2 {
    font-size: clamp(26px, 3.8vw, 42px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.work-cta-banner p {
    font-size: clamp(15px, 1.6vw, 17px);
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.work-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.work-cta-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    background: linear-gradient(135deg, #ff6a00 0%, #ff4500 100%);
    border-radius: 50px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 22px rgba(255, 106, 0, 0.45);
    transition: all 0.25s ease;
}

.work-cta-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 106, 0, 0.6);
    color: #ffffff;
}

.work-cta-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.work-cta-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Mobile Responsiveness Adjustments */
@media (max-width: 768px) {
    .work-hero-section {
        padding: 95px 0 40px;
    }
    .work-filter-wrapper {
        top: 65px;
        padding: 12px 0;
    }
    .work-card-content {
        padding: 20px 20px 18px;
    }
    .work-metrics-strip {
        gap: 10px;
        padding: 10px 12px;
    }
    .work-metric-val {
        font-size: 14px;
    }
    .work-cta-banner {
        padding: 40px 20px;
    }
    .work-modal-container {
        padding: 24px 20px;
    }
    .work-modal-img-wrap {
        height: 200px;
    }
}
