/* Services Modal Styles */
.services-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.services-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s forwards;
}

.services-modal-content {
    background: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(-50px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-modal.show .services-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.services-modal-content::-webkit-scrollbar {
    display: none;
}

.services-modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, #f8faff 0%, #eeeeff 100%);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.services-modal-header h2 {
    margin: 0;
    color: #2B2B7B;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.services-modal-header p {
    color: #4F5B76;
    font-size: 1.1rem;
    margin: 0;
}

.services-modal-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-tabs {
    display: flex;
    overflow-x: auto;
    background: #f8faff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-tabs::-webkit-scrollbar {
    display: none;
}

.services-tab {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: #4F5B76;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.services-tab:hover {
    color: #2B2B7B;
}

.services-tab.active {
    color: #2B2B7B;
}

.services-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2B2B7B, #B8860B);
    animation: slideIn 0.3s forwards;
}

.services-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-content::-webkit-scrollbar {
    display: none;
}

.service-tab-content {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.5s forwards;
}

.service-tab-content.active {
    display: block;
}

.service-tab-content .service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f0f0ff 0%, #eeeeff 100%);
    border-radius: 14px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s forwards;
}

.service-tab-content .service-icon i {
    font-size: 32px;
    background: linear-gradient(45deg, #2B2B7B, #B8860B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.service-tab-content h3 {
    color: #2B2B7B;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s 0.1s forwards;
    opacity: 0;
}

.service-tab-content p {
    color: #4F5B76;
    line-height: 1.7;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s 0.2s forwards;
    opacity: 0;
}

.close-services-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2B2B7B;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    border: none;
    transform: translateY(1px);
}

.close-services-modal:hover {
    background: #2B2B7B;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(43, 43, 123, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .services-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .services-tabs {
        padding: 0;
    }

    .services-tab {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .service-tab-content {
        padding: 1.5rem;
    }

    .service-features {
        grid-template-columns: 1fr;
    }
}