/*=========================================
    Our Works Styles
=========================================*/

/* ===== Hero Section ===== */
.ow-hero-section {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    padding-top: 35px;
    /* padding-bottom: 60px; */
}

.ow-hero-top {
    /* margin-bottom: 50px; */
    text-align: center;
}

.ow-hero-title {
    font-size: 50px;
    line-height: normal;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: var(--tp-ff-platform);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    background-image: linear-gradient(90deg,
            #ce403d 0%,
            #ce403d 40%,
            #2a2f36 50%,
            #ce403d 60%,
            #ce403d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ow-hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: #636368;
    max-width: 600px;
    font-family: p_r;
    text-align: center;
    margin: 0 auto;
}

.ow-hero-bottom {
    display: flex;
    align-items: stretch;
    gap: 60px;
}

.ow-hero-image-col {
    flex: 0 0 50%;
    position: relative;
}

.ow-hero-svg-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ow-hero-svg-illustration {
    width: 100%;
    max-width: 550px;
    height: auto;
}

.ow-hero-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ow-hero-content {
    position: relative;
    z-index: 2;
}

.ow-hero-content-title {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 20px;
    color: #141414;
    font-family: var(--tp-ff-platform);
}

.ow-hero-description {
    font-size: 16px;
    line-height: 1.8;
    color: #636368;
    font-family: p_r;
    margin-bottom: 20px;
}

.ow-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    margin-top: 25px;
}

.ow-hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ow-hero-feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(206, 64, 61, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ow-hero-feature-icon svg {
    width: 12px;
    height: 12px;
    stroke: #ce403d;
}

.ow-hero-feature-text {
    font-size: 15px;
    color: #444;
    font-family: p_r;
}

@media (max-width: 991px) {
    .ow-hero-bottom {
        flex-direction: column;
        gap: 40px;
    }

    .ow-hero-image-col {
        flex: 0 0 100%;
    }

    .ow-hero-title {
        font-size: 36px;
    }

    .ow-hero-content-title {
        font-size: 28px;
    }
}

/*-----------------------------------------
    Breadcrumb / Hero Area (Old - can be removed)
-----------------------------------------*/
.tp-breadcrumb-area {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.tp-breadcrumb-ptb {
    padding-top: 200px;
    padding-bottom: 80px;
}

.tp-portfolio-inner-box {
    position: relative;
}

.tp-portfolio-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
}

.tp-section-subtitle.pre {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.tp-section-subtitle svg {
    width: 82px;
    height: 9px;
}

.tp-blog-title.fs-100 {
    font-size: 72px;
    font-weight: 600;
    line-height: 1.1;
    color: #000;
    margin: 0;
}

.tp-blog-title.fs-100 img {
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px;
    max-height: 60px;
}

.tp-portfolio-description {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin-top: 30px;
}

@media (max-width: 1199px) {
    .tp-breadcrumb-ptb {
        padding-top: 150px;
        padding-bottom: 60px;
    }

    .tp-blog-title.fs-100 {
        font-size: 56px;
    }

    .tp-section-subtitle.mr-95 {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .tp-breadcrumb-ptb {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .tp-blog-title.fs-100 {
        font-size: 36px;
    }

    .tp-blog-title.fs-100 img {
        max-height: 40px;
    }

    .tp-portfolio-description {
        font-size: 16px;
    }
}

/*-----------------------------------------
    Filter Section (Tabs Style like our_work.php)
-----------------------------------------*/
.our_work_nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
}

.our_work_nav .tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    position: relative;
}

.our_work_nav .tab:hover {
    color: #ce403d;
}

.our_work_nav .tab.active {
    color: #ce403d;
    font-weight: 600;
}

/* Arrow icon logic - File: assets/css/our_works.css */
/* ALL tabs use same arrow icon (up-arrow-work.svg) */
/* Inactive tabs: arrow points up (rotate 0deg), opacity 0.4 */
/* Active tab: arrow rotates 180deg (points down), opacity 1 */
.our_work_nav .tab {
    position: relative;
    padding-right: 35px;
    /* Increased spacing for arrow */
}

.our_work_nav .tab::after {
    content: "";
    background-image: url(../img/up-arrow-work.svg);
    background-size: cover;
    width: 10px;
    height: 10px;
    position: absolute;
    right: 12px;
    /* Increased spacing from right edge (was 10px) */
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.4;
    display: block;
}

.our_work_nav .tab.active::after {
    transform: translateY(-50%) rotate(180deg) !important;
    opacity: 1 !important;
}

.our_work_nav .tab:not(.active)::after {
    opacity: 0.4 !important;
    transform: translateY(-50%) rotate(0deg) !important;
}

/* Tab Content */
.tab-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category subtitle */
.dgm-hero-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 15px;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tags:last-child {
    margin-bottom: 0;
}

.tag_red {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(206, 64, 61, 0.08);
    border: 1px solid rgba(206, 64, 61, 0.15);
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    color: #ce403d;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Desktop: Old hover effect - full red background on hover */
.tag_red:hover:not(.selected) {
    /* Desktop: keep same colors on hover, but remove any lift animation */
    background: #ce403d;
    color: #fff;
    border-color: #ce403d;
    transform: none;
}

.tag_red.selected {
    background: #ce403d !important;
    color: #fff !important;
    border-color: #ce403d !important;
    transform: none;
}

/* Ensure selected state persists even when hovering */
.tag_red.selected:hover {
    background: #ce403d !important;
    color: #fff !important;
    border-color: #ce403d !important;
}

.our_work_filtter_icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

@media (max-width: 767px) {

    /* Center filter tabs on mobile (only 3 items, no scroll needed) */
    .tabs.our_work_nav {
        gap: 5px !important;
        padding-bottom: 15px;
        justify-content: center !important;
        overflow-x: visible !important;
        flex-wrap: wrap !important;
    }

    .tabs.our_work_nav::-webkit-scrollbar {
        display: none;
    }

    .tabs.our_work_nav .tab {
        padding: 10px 16px !important;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
        background: transparent !important;
    }

    /* Remove hover background effect on filter tabs */
    .tabs.our_work_nav .tab:hover {
        background: transparent !important;
        color: #ce403d;
    }

    /* Reduce filter section margin top */
    .container.container-1230.pt-60 {
        padding-top: 20px !important;
    }

    /* Center hero section text on mobile */
    .ow-hero-content-col .ow-hero-content {
        text-align: center;
    }

    .ow-hero-content-title,
    .ow-hero-description {
        text-align: center;
    }

    .ow-hero-features {
        justify-content: center;
    }

    .tag_red {
        padding: 8px 14px;
        font-size: 12px;
    }

    /* Mobile: same visual states as desktop, but NO hover effect.
       - Not selected  => white bg, red text, red border
       - Selected      => red bg, white text, red border
       - Tap again / other item => back to not-selected state */
    .tag_red.selected {
        background: #ce403d !important;
        color: #fff !important;
        border-color: #ce403d !important;
    }

    .tag_red:not(.selected) {
        background: transparent !important;
        color: #ce403d !important;
        border-color: #ce403d !important;
    }

    /* Disable hover color on mobile so only "selected" controls red bg */
    .tag_red:hover {
        background: transparent !important;
        color: #ce403d !important;
        border-color: #ce403d !important;
        transform: none !important;
    }

    /* Fix: plain p tags in filter sections */
    .tab-content p,
    .tab-pane p,
    .tags+p,
    p.dgm-hero-subtitle {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .dgm-hero-subtitle {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
}

/*-----------------------------------------
    Portfolio Grid Section
-----------------------------------------*/
.tp-portfolio-inner-ptb {
    padding-top: 60px;
    padding-bottom: 120px;
}

.tp-portfolio-inner-item {
    position: relative;
}

.tp-portfolio-inner-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 20px;
}

.tp-portfolio-inner-thumb a {
    display: block;
}

.tp--hover-img,
.project-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: none !important;
}

/* Disable any WebGL/animation effects */
.tp--hover-img canvas,
.tp--hover-img .webgl-hover,
.tp--hover-img [class*="distortion"],
.tp--hover-img [class*="hover-effect"] {
    display: none !important;
}

.tp--hover-img,
.project-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow:
        0 12px 40px rgba(31, 38, 135, 0.08),
        0 4px 12px rgba(31, 38, 135, 0.05);
    transition: none !important;
    /* 
       === ASPECT RATIO CONFIGURATION ===
       16/10 = shorter cards
       16/11 = medium cards 
       16/12 = taller cards
    */
    aspect-ratio: 16 / 11;
    background: transparent;
}

/* When using project card visuals */
.tp--hover-img:has(.project-card-visual) {
    /* Aspect ratio: 16/10=short, 16/11=medium, 16/12=tall */
    aspect-ratio: 16 / 11;
}

.tp--hover-img img,
.project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the area, maintain aspect ratio */
    object-position: center;
    transition: none !important;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}

.tp-portfolio-inner-thumb:hover .tp--hover-img,
.tp-portfolio-inner-thumb:hover .project-card-media {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.tp-portfolio-inner-thumb:hover .tp--hover-img img,
.tp-portfolio-inner-thumb:hover .project-card-media img {
    transform: none !important;
}

/*-----------------------------------------
    Portfolio Chips & Content Below Image
-----------------------------------------*/

/* Glassmorphism Capsule Chips - Atmospheric Style */
.portfolio-chip {
    position: absolute;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 10;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    transition: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.chip-service {
    top: 14px;
    right: 14px;
    background: rgba(206, 64, 61, 0.12);
    color: #b73a38;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.chip-tech {
    bottom: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.55);
    color: #3a5566;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tp-portfolio-inner-thumb:hover .portfolio-chip {
    transform: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Hide old content */
.tp-portfolio-inner-content {
    display: none;
}

@media (max-width: 767px) {
    .portfolio-chip {
        padding: 4px 10px;
        font-size: 9px;
        letter-spacing: 0.6px;
        backdrop-filter: blur(14px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
    }

    .chip-service {
        top: 10px;
        right: 10px;
    }

    .chip-tech {
        bottom: 10px;
        right: 10px;
    }
}

/*-----------------------------------------
    Load More Button
-----------------------------------------*/
.tp-portfolio-masonry-grid-bottom {
    text-align: center;
    padding-top: 40px;
}

.tp-btn-animation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 56px;
}

.tp-btn-animation span {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    transition: transform 0.4s ease;
}

.tp-btn-animation svg {
    width: 13px;
    height: 13px;
}

.tp-btn-animation svg path {
    stroke: #fff;
    transition: stroke 0.3s ease;
}

.tp-btn-animation:hover {
    background: #ce403d;
    color: #fff;
}

/* Button Animation Effect */
.tp-btn-animation span:nth-child(1) {
    transform: translateY(0);
}

.tp-btn-animation span:nth-child(2) {
    transform: translateY(100%);
}

.tp-btn-animation span:nth-child(3) {
    transform: translateY(200%);
}

.tp-btn-animation span:nth-child(4) {
    transform: translateY(300%);
}

.tp-btn-animation span:nth-child(5) {
    transform: translateY(400%);
}

.tp-btn-animation:hover span:nth-child(1) {
    transform: translateY(-100%);
}

.tp-btn-animation:hover span:nth-child(2) {
    transform: translateY(0);
}

.tp-btn-animation:hover span:nth-child(3) {
    transform: translateY(100%);
}

.tp-btn-animation:hover span:nth-child(4) {
    transform: translateY(200%);
}

.tp-btn-animation:hover span:nth-child(5) {
    transform: translateY(300%);
}

/*-----------------------------------------
    Responsive Adjustments
-----------------------------------------*/
@media (max-width: 991px) {
    .tp-portfolio-inner-ptb {
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .tp-portfolio-inner-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .tp-portfolio-inner-item {
        margin-bottom: 0;
    }

    .tp-portfolio-inner-thumb {
        margin-bottom: 0;
    }

    .tp-portfolio-inner-title {
        font-size: 18px;
    }

    .tp-btn-animation {
        padding: 15px 30px;
        font-size: 13px;
        height: 50px;
    }
}

/*-----------------------------------------
    Animation Classes
-----------------------------------------*/
.tp_fade_anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Hover Effects */
.tp--hover-item {
    position: relative;
}

.tp--hover-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: none;
    z-index: 1;
    border-radius: 16px;
}

.tp--hover-item:hover::before {
    opacity: 0;
}

/*========================================
   Project Card Styles - Simplified
========================================*/

/* Card Link Wrapper */
.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Card Styling - No Hover Animation */
.project-animated-card {
    position: relative;
}

/* Technology Chips Container - Centered */
.tech-chips-container {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    transform: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 5;
    max-width: none;
    justify-content: flex-start;
}

/* Individual Tech Chip - No red fill on hover */
.tech-chip {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #dbe3ed;
    border-radius: 16px;
    font-family: p_m;
    font-size: 11px;
    color: #1e293b;
    backdrop-filter: blur(4px);
    line-height: 1.2;
}

.tech-chip:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #cbd5e1;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .tech-chips-container {
        bottom: 8px;
        left: 8px;
        right: 8px;
        transform: none;
        gap: 4px;
        max-width: none;
        justify-content: flex-start;
    }

    .tech-chip {
        padding: 3px 7px;
        font-size: 9px;
    }

    /* Remove hover background on filter tabs */
    .tabs.our_work_nav .tab:hover {
        background: transparent !important;
    }

    /* Reduce filter section margin top */
    .container.container-1230.pt-60 {
        padding-top: 20px !important;
    }
}



/*========================================
   Card Alignment Fixes - Equal Height
========================================*/

/* Ensure row items align properly */
.tp-portfolio-tab-content-wrap .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

/* Each project item should stretch to fill */
.tp-portfolio-tab-content-wrap .row .col-md-6,
.tp-portfolio-tab-content-wrap .row .col-sm-6 {
    display: flex;
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 15px;
}

/* Card link should fill the column */
.project-card-link {
    display: flex;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

/* Card container - flex column for equal height */
.project-animated-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* Thumb area should grow to fill available space */
.tp-portfolio-inner-thumb {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Media container fills the thumb area */
.project-card-media {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Consistent bottom info block height for equal card alignment */
.portfolio-content-below {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 2px 2px;
    min-height: 74px;
}

.portfolio-below-title {
    margin: 0;
    flex: 1;
    color: #111827;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 2.6em;
}

.portfolio-below-industry {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #ce403d;
    border: 1px solid #ce403d;
    border-radius: 999px;
    padding: 8px 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

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

@media (max-width: 767px) {
    .tp-portfolio-tab-content-wrap .row {
        margin-left: -6px;
        margin-right: -6px;
    }

    .tp-portfolio-tab-content-wrap .row .col-md-6,
    .tp-portfolio-tab-content-wrap .row .col-sm-6 {
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 12px;
    }

    .portfolio-content-below {
        min-height: 64px;
        padding-top: 10px;
    }

    .portfolio-below-title {
        font-size: 16px;
    }

    .portfolio-below-industry {
        font-size: 10px;
        padding: 7px 10px;
    }
}