
 
.counter-card {
    width: 285px;
    height: 420px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin: 0 10px;
}

.counter-card .right-border {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #feb116 0%, #ffa726 100%);
    transition: all 0.4s ease;
    z-index: 3;
}

.counter-card .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

    .counter-card .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(100%);
        transition: all 0.5s ease;
    }

.counter-card .dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    z-index: 1;
}

/* گرادیانت زرد خیلی ملایم */
.counter-card .hover-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to left, rgba(254, 177, 22, 0.35) 0%, rgba(255, 167, 38, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

/* ═══════════ HOVER ═══════════ */

.counter-card:hover .card-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.counter-card:hover .hover-gradient {
    opacity: 1;
}

.counter-card:hover .dark-overlay {
    background: rgba(0,0,0,0.25);
}

.counter-card .card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 20px;
    z-index: 4;
}

    .counter-card .card-content h5 {
        font-size: 1rem;
        letter-spacing: 1px;
        transition: all 0.4s ease;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

 
/* اطمینان از نمایش صحیح در موبایل */
@media (max-width: 991px) {
    .desktop-cards-wrapper {
        display: none !important;
    }

    .mobile-cards-wrapper {
        display: block !important;
    }
}

/* در فایل CSS خود اضافه کنید */
.work-history-section {
    background-image: url('/Content/UI/rtl/images/bgbodystripe.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* اختیاری - برای افکت پارالکس */
/*    min-height: 500px;*/
    position: relative;
    width: 100%;
}

/* اگر تصویر لود نشد، رنگ جایگزین */
.work-history-section {
    background-color: #f5f5f5;
    overflow:hidden
}

.stats-container {
    position: absolute;
    bottom: 10%;
    width: 95%;
     
}

.stat-box {
    background: white;
    padding: 20px 15px;
    margin: 20px 0;
    border-right: 4px solid #000;
    transition: all 0.3s ease;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .stat-box:hover {
        border-right-color: #ffd700;
        transform: translateX(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.2;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 1.7rem;
    }

    .stat-box {
        padding: 20px 15px;
        min-height: 150px;
    }
}

@media (max-width: 991px) {
    .stats-container {
        position: relative !important;
        top: auto !important;
        margin-bottom: 30px;
    }

    .stat-box {
        background: #f8f9fa;
        padding: 10px;
        
        margin-bottom: 15px;
        text-align: center;
    }
}
.hero {
    min-height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/Userfiles/AboutUs/download.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 80px;
    color: white;
}

.brand {
    color: #ff6b6b;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.title {
    font-size: 62px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.btn {
    background: #c55656;
    color: white;
    border: none;
    padding: 18px 35px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    }

.tabs-wrapper {
    background: #f5f5f5;
/*    padding: 20px 0;*/
}

.tabs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: transparent;
    gap: 0;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.active-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, #d99b27 0%,#d99b27 100%);
    box-shadow: 0 4px 15px rgba(217, 155, 39, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.tab {
    min-width: 160px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding: 25px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .tab:first-child {
        border-left: none;
    }

    .tab:hover:not(.active) {
        background: rgba(255, 255, 255, 0.95);
        transform: translateY(-2px);
    }

    .tab.active {
        background: transparent;
        color: white;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }

.tab-label {
    position: relative;
    z-index: 3;
}

.info-box {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    width: 300px;
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
   
}

.tab.active .info-box {
    opacity: 1;
    visibility: visible;
}

.info-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.info-img {
    width: 70px;
    height: 70px;
    background: white;
    border: 1px solid #ddd;
    padding: 8px;
    flex-shrink: 0;
   
}

.info-text {
    flex: 1;
    text-align: right;
}

    .info-text h3 {
        color: #333;
        font-size: 13px;
        margin: 0 0 5px 0;
        font-weight: 600;
    }

    .info-text p {
        color: #666;
        font-size: 11px;
        margin: 0;
        line-height: 1.4;
    }

.info-box::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

/* انیمیشن‌ها */
@keyframes slideFromRight {
    from {
        transform: translateX(calc(-50% + 100px));
        opacity: 0;
    }

    to {
        transform: translateX(-50%);
        opacity: 1;
    }
}

@keyframes slideFromLeft {
    from {
        transform: translateX(calc(-50% - 100px));
        opacity: 0;
    }

    to {
        transform: translateX(-50%);
        opacity: 1;
    }
}

.tab.active.slide-right .info-box {
    animation: slideFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab.active.slide-left .info-box {
    animation: slideFromLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* موبایل استایل */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
        min-height: 50vh;
    }

    .title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .btn {
        padding: 14px 25px;
        font-size: 12px;
    }

    .tabs-wrapper {
        padding: 0;
        background: white;
    }

    .tabs-container {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 10px;
        gap: 10px;
    }

        .tabs-container::-webkit-scrollbar {
            display: none;
        }

    .active-bg {
        display: none;
    }

    .tab {
        min-width: auto;
        flex: 0 0 auto;
        border: 2px solid #e0e0e0;
        
        padding: 15px 20px;
        background: white;
        font-size: 12px;
    }

        .tab:hover:not(.active) {
            transform: none;
            background: #f9f9f9;
        }

        .tab.active {
            background: linear-gradient(135deg, #d99b27 0%, #d99b27 100%);
            color: white;
            border-color: transparent;
            box-shadow: 0 4px 15px rgba(217, 155, 39, 0.3);
        }

        /* مخفی کردن info-box در تب‌ها */
        .tab .info-box {
            display: none !important;
        }

    /* نمایش باکس اطلاعات جداگانه در موبایل */
    .mobile-info-container {
        display: block;
        padding: 20px;
        background: white;
        margin-top: 20px;
     
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

        .mobile-info-container .info-content {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .mobile-info-container .info-img {
            width: 80px;
            height: 80px;
            padding: 10px;
            background: #f5f5f5;
        
            border: none;
        }

        .mobile-info-container .info-text {
            flex: 1;
        }

            .mobile-info-container .info-text h3 {
                font-size: 16px;
                margin-bottom: 8px;
                color: #333;
            }

            .mobile-info-container .info-text p {
                font-size: 13px;
                color: #666;
                line-height: 1.5;
            }
}

/* دسکتاپ - مخفی کردن باکس موبایل */
@media (min-width: 769px) {
    .mobile-info-container {
        display: none !important;
    }
}

/* انیمیشن برای موبایل */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
:root {
    --primary-color: #ffffff;
    --accent-color: #ff6b35;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #666666;
    --border-color: #444444;
    --line-color: #333333;
    --transition-speed: 0.3s;
    --spacing-unit: 20px;
}

.section-project-dark {
    /*    background-color: #000000;*/
    background: #1D1D1D url('/Content/UI/rtl/images/bgbodystripe.png');
    color: var(--text-primary);
  
}
 

.featured-section {
    max-width: 1400px;
    margin: 0 auto;
  
    position: relative;
    z-index: 2;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.view-all {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
}

    .view-all:hover {
        color: var(--primary-color);
        border-color: var(--primary-color);
        background: rgba(255, 255, 255, 0.05);
    }

.project-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: calc(var(--spacing-unit) * 3);
    align-items: start;
    min-height: 450px;
}

.project-image {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid var(--line-color);
}

    .project-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.6s ease;
    }

    .project-image:hover img {
        transform: scale(1.05);
    }

.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--line-color);
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
    display: none;
    z-index: 2;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.loading .image-loader {
    display: block;
}

.project-details {
    padding-top: var(--spacing-unit);
}

/* Navigation Controls in Details Section */
.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-unit);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line-color);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.arrow-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 35px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 0.9rem;
}

    .arrow-btn:hover {
        color: var(--primary-color);
        border-color: var(--primary-color);
        background: rgba(255, 255, 255, 0.05);
    }

.project-counter {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0 10px;
}

    .project-counter span {
        color: var(--text-primary);
        font-weight: 700;
    }

.progress-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--border-color);
    transition: all var(--transition-speed);
    cursor: pointer;
}

    .dot.active {
        width: 24px;
        background: var(--accent-color);
    }

    .dot:hover:not(.active) {
        background: var(--text-secondary);
    }

.project-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-unit);
    letter-spacing: -0.5px;
    line-height: 1.2;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line-color);
}

.project-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line-color);
}

.discover-btn {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    border: 1px solid var(--border-color);
    background: transparent;
    transition: all var(--transition-speed);
    margin-top: var(--spacing-unit);
}

    .discover-btn:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--primary-color);
        transform: translateX(-5px);
    }

/* Responsive Design */
@media (max-width: 992px) {
    .project-container {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 2);
    }

    .section-title {
        font-size: 1.8rem;
    }

    .project-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-unit);
    }

    .view-all {
        align-self: stretch;
        text-align: center;
    }

    .details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .nav-controls {
        width: 100%;
        justify-content: center;
    }

    .progress-dots {
        width: 100%;
        justify-content: center;
    }
}

