/* ================================
   Modern Tech Services Cards
   ================================ */

/* Override default service section */
.ori-service-section-1 .ori-service-wrapper-1 {
    background-color: transparent;
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 100px;
}

/* Modern Services Grid */
.modern-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    padding-top: 60px;
}

/* Service Card */
.tech-service-card {
    position: relative;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(23, 23, 23, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.tech-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(38, 211, 0, 0.03) 0%, 
        transparent 50%,
        rgba(38, 211, 0, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.tech-service-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 21px;
    background: linear-gradient(135deg, 
        rgba(38, 211, 0, 0.4) 0%, 
        transparent 50%,
        rgba(38, 211, 0, 0.2) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tech-service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(38, 211, 0, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(38, 211, 0, 0.1);
}

.tech-service-card:hover::before {
    opacity: 1;
}

.tech-service-card:hover::after {
    opacity: 1;
}

/* Card Background Image */
.tech-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.tech-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    transition: all 0.5s ease;
    filter: grayscale(30%);
}

.tech-service-card:hover .tech-card-bg img {
    opacity: 0.45;
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Gradient overlay */
.tech-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(13, 13, 13, 0.3) 0%,
        rgba(13, 13, 13, 0.7) 50%,
        rgba(13, 13, 13, 0.95) 100%);
    z-index: 1;
}

/* Card Content */
.tech-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

/* Icon */
.tech-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(38, 211, 0, 0.1);
    border: 1px solid rgba(38, 211, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.tech-card-icon i {
    font-size: 28px;
    color: #26d300;
    transition: all 0.4s ease;
}

.tech-service-card:hover .tech-card-icon {
    background: rgba(38, 211, 0, 0.15);
    border-color: rgba(38, 211, 0, 0.4);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(38, 211, 0, 0.2);
}

.tech-service-card:hover .tech-card-icon i {
    text-shadow: 0 0 20px rgba(38, 211, 0, 0.5);
}

/* Title */
.tech-card-title {
    margin-top: auto;
}

.tech-card-title h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.tech-service-card:hover .tech-card-title h3 {
    color: #fff;
}

/* Description */
.tech-card-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.tech-service-card:hover .tech-card-desc {
    color: rgba(255, 255, 255, 0.75);
}

/* Action link */
.tech-card-action {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #26d300;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.tech-card-action i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.tech-service-card:hover .tech-card-action {
    opacity: 1;
    transform: translateY(0);
}

.tech-service-card:hover .tech-card-action i {
    transform: translateX(5px);
}

/* Decorative elements */
.tech-card-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 2;
}

.tech-card-corner::before,
.tech-card-corner::after {
    content: '';
    position: absolute;
    background: rgba(38, 211, 0, 0.3);
    transition: all 0.4s ease;
}

.tech-card-corner.top-right {
    top: 20px;
    right: 20px;
}

.tech-card-corner.top-right::before {
    top: 0;
    right: 0;
    width: 20px;
    height: 2px;
}

.tech-card-corner.top-right::after {
    top: 0;
    right: 0;
    width: 2px;
    height: 20px;
}

.tech-card-corner.bottom-left {
    bottom: 20px;
    left: 20px;
}

.tech-card-corner.bottom-left::before {
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
}

.tech-card-corner.bottom-left::after {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 20px;
}

.tech-service-card:hover .tech-card-corner::before,
.tech-service-card:hover .tech-card-corner::after {
    background: rgba(38, 211, 0, 0.6);
}

/* Tech Lines decoration */
.tech-card-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.tech-card-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(38, 211, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tech-card-line:nth-child(1) {
    top: 30%;
    left: 0;
    right: 0;
    height: 1px;
}

.tech-card-line:nth-child(2) {
    top: 60%;
    left: 0;
    right: 0;
    height: 1px;
}

.tech-service-card:hover .tech-card-line {
    opacity: 1;
}

/* Modern Section Header */
.modern-services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 30px;
}

.modern-services-title h2 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0;
}

.modern-services-title h2 span {
    color: #26d300;
    display: block;
}

.modern-services-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.4s ease;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.modern-services-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(38, 211, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.modern-services-btn:hover {
    border-color: #26d300;
    color: #26d300;
    box-shadow: 0 0 30px rgba(38, 211, 0, 0.2);
}

.modern-services-btn:hover::before {
    left: 100%;
}

.modern-services-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.modern-services-btn:hover i {
    transform: translateX(5px);
}

/* Card without image - icon focused */
.tech-service-card.no-image .tech-card-content {
    justify-content: space-between;
}

.tech-service-card.no-image .tech-card-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
}

.tech-service-card.no-image .tech-card-icon i {
    font-size: 42px;
}

/* Grid pattern background */
.tech-service-card.no-image::before {
    background: 
        linear-gradient(rgba(38, 211, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 211, 0, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.tech-service-card.no-image:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .modern-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ori-service-section-1 {
        padding: 0 20px;
    }
    
    .modern-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-service-card {
        height: 340px;
    }
    
    .modern-services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .modern-services-title h2 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .tech-card-content {
        padding: 25px;
    }
    
    .tech-card-title h3 {
        font-size: 20px;
    }
    
    .tech-card-icon {
        width: 60px;
        height: 60px;
    }
    
    .tech-card-icon i {
        font-size: 24px;
    }
}

/* Animation variants */
.tech-service-card[data-delay="1"] { transition-delay: 0.1s; }
.tech-service-card[data-delay="2"] { transition-delay: 0.2s; }
.tech-service-card[data-delay="3"] { transition-delay: 0.3s; }
