/**
 * Portfolio Stats Section
 * Modern stats display for portfolio section
 */

/* Portfolio Section - Fits 1080p Screen */
.portfolio4-section-area {
    padding: 80px 0 80px !important;
    max-height: 1080px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 991px) {
    .portfolio4-section-area {
        padding: 80px 0 80px !important;
        min-height: auto;
    }
}

.portfolio-header-content {
    margin-bottom: 50px;
}

.portfolio-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #FF4308;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-subtitle img {
    width: 20px;
    height: 20px;
}

.portfolio-main-title {
    font-size: 42px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

/* Portfolio section specific title color fix */
.portfolio4-section-area .portfolio-header h2,
.portfolio4-section-area .portfolio-header h2.text-anime-style-3 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    color: #ffffff !important;
}

.portfolio4-section-area .portfolio-header h5 {
    color: #FF4308 !important;
}

/* Testimonials section title color fix */
.testimonials-4 .heading3 h2,
.testimonials-4 .heading3 h2.text-anime-style-3 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    color: #ffffff !important;
}

.testimonials-4 .heading3 h5 {
    color: #FF4308 !important;
}

/* Team section title color fix */
.team4-section-area .team-header h2,
.team4-section-area .team-header h2.text-anime-style-3 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    color: #ffffff !important;
}

.team4-section-area .team-header h5 {
    color: #FF4308 !important;
}

.portfolio-description {
    font-size: 17px;
    line-height: 1.7;
    color: #999;
    max-width: 700px;
    font-weight: 400;
    margin: 0;
}

.portfolio4-section-area .portfolio-description {
    color: #cccccc !important;
}

.portfolio-stats-area {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    padding: 50px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg,
        rgba(255, 67, 8, 0) 0%,
        rgba(255, 67, 8, 0.3) 50%,
        rgba(255, 67, 8, 0) 100%
    );
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #FF4308 0%, #FB8500 50%, #FEFE1F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.stat-number::before {
    content: attr(data-prefix);
    position: absolute;
    left: -20px;
    font-size: 24px;
    opacity: 0.5;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hover effect */
.stat-item:hover .stat-number {
    animation: statPulse 0.6s ease-in-out;
}

@keyframes statPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Mobile responsive */
@media (max-width: 991px) {
    .portfolio-stats-area {
        gap: 30px;
        padding: 30px 0;
    }

    .stat-item {
        min-width: 120px;
        flex: 1 1 45%;
    }

    .stat-item::after {
        display: none;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 12px;
    }

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

@media (max-width: 480px) {
    .portfolio-stats-area {
        gap: 20px;
    }

    .stat-item {
        flex: 1 1 100%;
    }

    .stat-number {
        font-size: 32px;
    }

    .portfolio-description {
        font-size: 15px;
    }
}
