/* ===================================
   Modern Services Section
   =================================== */

.services-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 120px 0;
    position: relative;
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card-modern {
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15);
}

.service-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-size: 50px;
    color: white;
    position: relative;
    transition: all 0.4s ease;
    overflow: visible;
}

/* Geometric D decoration - Top right corner */
.service-icon-large::before {
    content: 'D';
    position: absolute;
    top: -12px;
    right: -12px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: white;
    text-align: center;
    line-height: 38px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Geometric lines decoration */
.service-icon-large::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -8px;
    width: 28px;
    height: 28px;
    border-left: 3px solid rgba(255, 255, 255, 0.4);
    border-bottom: 3px solid rgba(255, 255, 255, 0.4);
    border-bottom-left-radius: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

.game-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.design-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.pm-gradient {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.service-card-modern:hover .service-icon-large {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-card-modern:hover .service-icon-large::before {
    transform: rotate(360deg) scale(1.25);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.service-card-modern:hover .service-icon-large::after {
    width: 38px;
    height: 38px;
    border-color: rgba(255, 255, 255, 0.6);
    border-width: 4px;
}

.service-card-modern h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 25px;
}

.service-tags {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.service-tags li {
    background: var(--light-gray);
    color: var(--dark-gray);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-tags li {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-link:hover {
    gap: 12px;
    color: var(--secondary-color);
}

.btn-link i {
    transition: transform 0.3s ease;
}

.btn-link:hover i {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .services-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        margin-top: 60px;
    }
    
    .service-card-modern {
        padding: 40px 30px;
    }
    
    .service-icon-large {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .service-card-modern h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 80px 0;
    }
    
    .services-grid-modern {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 50px;
    }
    
    .service-card-modern {
        padding: 35px 25px;
    }
}
