/* Modern Services Page Styles - WWTEC 2024 */

/* Hero Section */
.modern-services-hero {
    position: relative;
    min-height: 60vh;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
}

.modern-services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/services-pattern.svg') no-repeat center;
    background-size: cover;
    opacity: 0.1;
}

.modern-services-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 0;
}

.modern-services-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.modern-services-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.modern-services-hero .badge {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Content Section */
.modern-services-content {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    overflow: hidden;
}

.modern-services-content h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

.modern-services-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/services-pattern.svg');
    background-size: cover;
    opacity: 0.05;
}

.modern-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
}

/* Service Cards */
.modern-service-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.modern-service-card:nth-child(1) { animation-delay: 0.1s; }
.modern-service-card:nth-child(2) { animation-delay: 0.2s; }
.modern-service-card:nth-child(3) { animation-delay: 0.3s; }
.modern-service-card:nth-child(4) { animation-delay: 0.4s; }
.modern-service-card:nth-child(5) { animation-delay: 0.5s; }
.modern-service-card:nth-child(6) { animation-delay: 0.6s; }
.modern-service-card:nth-child(7) { animation-delay: 0.7s; }

.modern-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: -1;
}

.modern-service-card:hover::before {
    transform: translateX(100%);
}

.modern-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Service Icons */
.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.modern-service-card:hover .service-icon img {
    transform: scale(1.1);
}

/* Service Content */
.modern-service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.modern-service-card p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Service Features */
.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-features span {
    font-size: 0.9rem;
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Modern Buttons */
.modern-service-card .modern-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modern-service-card .modern-button:hover {
    transform: translateX(5px);
    text-decoration: none;
    color: white;
}

.modern-service-card .modern-button i {
    transition: all 0.3s ease;
}

.modern-service-card .modern-button:hover i {
    transform: translateX(5px);
}

/* Service Backgrounds */
.service-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.03;
    transition: all 0.3s ease;
}

.modern-service-card[data-service="software"] .service-background {
    background: url('assets/images/services/software-development.svg') no-repeat center;
    background-size: 150%;
}

.modern-service-card[data-service="web"] .service-background {
    background: url('assets/images/services/web-development.svg') no-repeat center;
    background-size: 150%;
}

.modern-service-card[data-service="saas"] .service-background {
    background: url('assets/images/services/saas-products.svg') no-repeat center;
    background-size: 150%;
}

.modern-service-card[data-service="management"] .service-background {
    background: url('assets/images/services/management-systems.svg') no-repeat center;
    background-size: 150%;
}

.modern-service-card[data-service="bug"] .service-background {
    background: url('assets/images/services/bug-fixing.svg') no-repeat center;
    background-size: 150%;
}

.modern-service-card[data-service="modernization"] .service-background {
    background: url('assets/images/services/api.webp') no-repeat center;
    background-size: 150%;
}

.modern-service-card[data-service="personnel"] .service-background {
    background: url('assets/images/services/Personel Allocation.png') no-repeat center;
    background-size: 150%;
}

.modern-service-card:hover .service-background {
    opacity: 0.05;
    transform: scale(1.1);
}

/* Breadcrumb */
.breadcrumb-container {
    margin-top: 2rem;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    backdrop-filter: blur(10px);
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-services-content {
        padding: 60px 0;
    }

    .modern-services-grid {
        grid-template-columns: 1fr;
    }

    .modern-service-card {
        padding: 1.5rem;
    }

    .modern-services-hero h1 {
        font-size: 2rem;
    }

    .modern-services-hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modern-services-hero {
        min-height: 50vh;
    }

    .modern-services-hero-content {
        padding: 2rem 0;
    }

    .modern-service-card {
        padding: 1rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }
}
