/* ===================================================
   STANDARD ZONE TECHNOLOGIES - SERVICES PAGE STYLES
   =================================================== */

/* ===================== SERVICE FILTERS ===================== */
.service-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.service-filter-btn {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid #e9ecef;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    z-index: -1;
}

.service-filter-btn:hover::before,
.service-filter-btn.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-filter-btn:hover,
.service-filter-btn.active {
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.3);
    transform: translateY(-2px);
}

/* ===================== SERVICE DETAIL CARD ===================== */
.service-item {
    transition: all 0.4s ease;
}

.service-item.hide {
    opacity: 0;
    transform: scale(0.8);
}

.service-detail-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-detail-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.4s ease;
    z-index: 0;
}

.service-detail-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-detail-card:hover::before {
    height: 100%;
}

.service-detail-card > * {
    position: relative;
    z-index: 1;
}

.sd-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.sd-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.12) 0%, rgba(25, 118, 210, 0.12) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-detail-card:hover .sd-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: rotate(-10deg) scale(1.05);
}

.sd-number {
    font-size: 38px;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
    transition: var(--transition);
    line-height: 1;
}

.service-detail-card:hover .sd-number {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    background: none;
    opacity: 0.3;
}

.service-detail-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    transition: var(--transition);
    line-height: 1.4;
}

.service-detail-card:hover h4 {
    color: var(--white);
}

.service-detail-card > p {
    color: var(--text-light);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-detail-card:hover > p {
    color: rgba(255, 255, 255, 0.92);
}

.sd-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    flex-grow: 1;
}

.sd-features li {
    padding: 7px 0;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.sd-features li i {
    width: 22px;
    height: 22px;
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
}

.service-detail-card:hover .sd-features li {
    color: var(--white);
}

.service-detail-card:hover .sd-features li i {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.sd-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
    transition: var(--transition);
}

.sd-link i {
    transition: var(--transition);
}

.sd-link:hover {
    color: var(--accent-color);
}

.sd-link:hover i {
    transform: translateX(5px);
}

.service-detail-card:hover .sd-link {
    color: var(--white);
    border-top-color: rgba(255, 255, 255, 0.25);
}

.service-detail-card:hover .sd-link:hover {
    color: #ffd54f;
}

/* ===================== PROCESS SECTION ===================== */
.process-section {
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.2;
    z-index: 0;
}

.process-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.process-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.06;
    transition: var(--transition);
}

.process-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.process-card:hover::after {
    transform: scale(2.5);
    opacity: 0.12;
}

.process-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 60px;
    font-weight: 900;
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    line-height: 1;
    z-index: 1;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
    margin: 0 auto 25px;
    box-shadow: 0 10px 25px rgba(13, 71, 161, 0.35);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.process-card:hover .process-icon {
    background: var(--gradient-accent);
    box-shadow: 0 10px 25px rgba(255, 111, 0, 0.4);
    transform: rotateY(360deg);
}

.process-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.process-card p {
    color: var(--text-light);
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Process Connection Lines on Large Screens */
@media (min-width: 992px) {
    .process-card::before {
        content: '';
        position: absolute;
        top: 60px;
        right: -25px;
        width: 50px;
        height: 2px;
        background: repeating-linear-gradient(
            90deg,
            var(--primary-color) 0,
            var(--primary-color) 6px,
            transparent 6px,
            transparent 12px
        );
        z-index: 3;
        opacity: 0.5;
    }

    .col-lg-3:last-child .process-card::before {
        display: none;
    }
}

/* ===================== INDUSTRIES SECTION ===================== */
.industries-section {
    position: relative;
    overflow: hidden;
}

.industry-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

.industry-card:hover::before {
    width: 400px;
    height: 400px;
}

.industry-card > * {
    position: relative;
    z-index: 1;
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.industry-card i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 18px;
    display: inline-block;
    transition: var(--transition);
}

.industry-card:hover i {
    color: var(--white);
    transform: scale(1.15) rotate(360deg);
}

.industry-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    transition: var(--transition);
}

.industry-card:hover h5 {
    color: var(--white);
}

/* ===================== TECH SECTION ===================== */
.tech-section {
    position: relative;
}

.tech-category-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.tech-category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tech-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.tech-category-card:hover::after {
    transform: scaleX(1);
}

.tcc-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 22px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f4f8;
}

.tcc-header i {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.3);
    transition: var(--transition);
}

.tech-category-card:hover .tcc-header i {
    background: var(--gradient-accent);
    box-shadow: 0 8px 20px rgba(255, 111, 0, 0.4);
    transform: rotate(-10deg);
}

.tcc-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.tcc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tcc-tag {
    background: linear-gradient(135deg, #f0f4f8 0%, #e9ecef 100%);
    color: var(--text-dark);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
    cursor: default;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.tcc-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: -1;
}

.tcc-tag:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(13, 71, 161, 0.3);
}

.tcc-tag:hover::before {
    left: 0;
}

/* ===================== RESPONSIVE STYLES ===================== */
@media (max-width: 991px) {
    .service-filters {
        gap: 10px;
    }

    .service-filter-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .service-detail-card {
        padding: 30px 25px;
    }

    .sd-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .sd-number {
        font-size: 32px;
    }

    .tech-category-card {
        padding: 30px 25px;
    }
}

@media (max-width: 767px) {
    .service-filters {
        gap: 8px;
    }

    .service-filter-btn {
        padding: 8px 16px;
        font-size: 12.5px;
    }

    .service-detail-card {
        padding: 28px 22px;
    }

    .service-detail-card h4 {
        font-size: 18px;
    }

    .sd-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .sd-number {
        font-size: 28px;
    }

    .process-card {
        padding: 35px 25px;
    }

    .process-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }

    .process-number {
        font-size: 50px;
    }

    .process-card h4 {
        font-size: 18px;
    }

    .industry-card {
        padding: 30px 18px;
    }

    .industry-card i {
        font-size: 42px;
        margin-bottom: 14px;
    }

    .industry-card h5 {
        font-size: 14px;
    }

    .tech-category-card {
        padding: 28px 22px;
    }

    .tcc-header {
        gap: 14px;
        padding-bottom: 18px;
        margin-bottom: 20px;
    }

    .tcc-header i {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .tcc-header h4 {
        font-size: 18px;
    }

    .tcc-tag {
        padding: 7px 14px;
        font-size: 12.5px;
    }
}

@media (max-width: 575px) {
    .service-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0 20px;
    }

    .service-filter-btn {
        width: 100%;
        padding: 10px;
    }

    .industry-card i {
        font-size: 36px;
    }

    .tcc-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}