/* =============================
   Modern Services & CTA Styles
=============================== */

/* Modern Services Section */
.modern-services {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.modern-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23667eea" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.modern-services .container {
    position: relative;
    z-index: 2;
}

.modern-services-header {
    text-align: center;
    margin-bottom: 80px;
}

.modern-services-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.modern-services-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.modern-services-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Service Cards Grid */
.modern-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.modern-service-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.modern-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transition: left 0.4s ease;
    z-index: 1;
}

.modern-service-card:hover::before {
    left: 0;
}

.modern-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.modern-service-card > * {
    position: relative;
    z-index: 2;
}

.modern-service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

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

.modern-service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.modern-service-card:hover .modern-service-title {
    color: #667eea;
}

.modern-service-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modern-service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.modern-service-features li {
    padding: 8px 0;
    color: #555;
    font-size: 0.95rem;
    position: relative;
    padding-left: 25px;
}

.modern-service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.1rem;
}

.modern-service-cta {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.modern-service-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

/* Modern Need Service CTA */
.modern-need-service {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin: 80px 0;
}

.modern-need-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.modern-need-service::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.modern-need-service-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.modern-need-service h2 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

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

.modern-need-service p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.modern-need-service-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.modern-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.modern-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.modern-cta-button:hover::before {
    left: 100%;
}

.modern-cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.modern-cta-button.primary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-color: rgba(255, 255, 255, 0.9);
}

.modern-cta-button.primary:hover {
    background: white;
    color: #667eea;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

.modern-cta-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.modern-cta-button:hover i {
    transform: translateX(5px);
}

/* Service Statistics */
.modern-service-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 80px;
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.modern-stat-item {
    text-align: center;
    padding: 20px;
}

.modern-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    display: block;
    margin-bottom: 10px;
    counter-reset: stat-counter;
    animation: countUp 2s ease-out;
}

.modern-stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modern-service-card {
        padding: 30px 25px;
    }
    
    .modern-services-header h2 {
        font-size: 2.2rem;
    }
    
    .modern-need-service h2 {
        font-size: 2.2rem;
    }
    
    .modern-need-service p {
        font-size: 1.1rem;
    }
    
    .modern-need-service-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modern-cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .modern-service-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .modern-services {
        padding: 60px 0;
    }
    
    .modern-need-service {
        padding: 60px 0;
        margin: 60px 0;
    }
    
    .modern-services-header h2 {
        font-size: 1.8rem;
    }
    
    .modern-need-service h2 {
        font-size: 1.8rem;
    }
    
    .modern-service-card {
        padding: 25px 20px;
    }
    
    .modern-service-stats {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
    
    .modern-stat-number {
        font-size: 2.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .modern-services {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .modern-services-header h2 {
        color: #fff;
    }
    
    .modern-services-header p {
        color: #ccc;
    }
    
    .modern-service-card {
        background: rgba(30, 30, 30, 0.9);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .modern-service-title {
        color: #fff;
    }
    
    .modern-service-description {
        color: #ccc;
    }
    
    .modern-service-features li {
        color: #bbb;
    }
    
    .modern-service-stats {
        background: rgba(30, 30, 30, 0.5);
    }
    
    .modern-stat-label {
        color: #ccc;
    }
}

/* Loading animations */
.modern-service-card {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease 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; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
