/* Service Modal Styles */
.service-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-modal.show {
    display: block !important;
    opacity: 1 !important;
}

.service-modal-content {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.service-modal.show .service-modal-content {
    transform: scale(1) !important;
}

.service-modal-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    padding: 2rem;
    border-radius: 25px 25px 0 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-modal-header h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.service-modal-close {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.1);
}

.service-modal-body {
    padding: 2rem;
    position: relative;
    z-index: 10002;
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 10002;
}

.service-description h4 {
    color: #3b82f6;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-description p {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.service-features h4 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    position: relative;
    z-index: 10002;
}

.service-features li {
    color: #cbd5e1;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.service-features li i {
    color: #10b981;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.service-process h4 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.process-steps {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.process-step .step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 0.75rem;
}

.process-step p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.service-cta-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 10003;
}

.service-cta-section h4 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-cta-section p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.modal-cta-btn {
    background: linear-gradient(135deg, #3b82f6, #8b82f6);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 10003;
}

.modal-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.modal-cta-btn i {
    font-size: 1.2rem;
}

/* Scrollbar Styling */
.service-modal-content::-webkit-scrollbar {
    width: 8px;
}

.service-modal-content::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 4px;
}

.service-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

.service-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-modal {
        padding: 1rem;
    }
    
    .service-modal-content {
        width: 100%;
        margin: 0 auto;
        max-height: 90vh;
        border-radius: 20px;
        transform: scale(0.95);
    }
    
    .service-modal.show .service-modal-content {
        transform: scale(1) !important;
    }
    
    .service-modal-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        border-radius: 20px 20px 0 0;
    }
    
    .service-modal-header h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .modal-icon {
        width: 55px;
        height: 55px;
    }
    
    .modal-icon i {
        font-size: 1.6rem;
    }
    
    .service-modal-body {
        padding: 1.5rem;
    }
    
    .service-description h4 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .service-description p {
        font-size: 1rem;
        text-align: center;
    }
    
    .service-features h4 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .service-features ul {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .service-features li {
        font-size: 0.95rem;
        padding: 0.75rem;
        background: rgba(59, 130, 246, 0.05);
        border-radius: 10px;
        border: 1px solid rgba(59, 130, 246, 0.1);
    }
    
    .service-process h4 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .process-step {
        min-width: auto;
        background: rgba(59, 130, 246, 0.05);
        padding: 1rem;
        border-radius: 15px;
        border: 1px solid rgba(59, 130, 246, 0.1);
    }
    
    .process-step .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .process-step p {
        font-size: 0.9rem;
    }
    
    .service-cta-section {
        padding: 1.5rem;
        margin: 0 0.5rem;
        border-radius: 15px;
    }
    
    .service-cta-section h4 {
        font-size: 1.3rem;
    }
    
    .service-cta-section p {
        font-size: 1rem;
    }
    
    .modal-cta-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
        border-radius: 25px;
    }
    
    /* Mobile-specific scrollbar */
    .service-modal-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .service-modal-content::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #3b82f6, #8b5cf6);
        border-radius: 3px;
    }
}

@media (max-width: 480px) {
    .service-modal {
        padding: 0.5rem;
    }
    
    .service-modal-content {
        width: 100%;
        margin: 0 auto;
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .service-modal-header {
        padding: 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-icon {
        width: 45px;
        height: 45px;
    }
    
    .modal-icon i {
        font-size: 1.4rem;
    }
    
    .service-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .service-modal-body {
        padding: 1rem;
    }
    
    .service-description h4 {
        font-size: 1.1rem;
    }
    
    .service-description p {
        font-size: 0.95rem;
    }
    
    .service-features h4 {
        font-size: 1.1rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .service-process h4 {
        font-size: 1.1rem;
    }
    
    .process-step {
        padding: 0.75rem;
    }
    
    .process-step .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .process-step p {
        font-size: 0.85rem;
    }
    
    .service-cta-section {
        padding: 1rem;
        margin: 0 0.25rem;
    }
    
    .service-cta-section h4 {
        font-size: 1.2rem;
    }
    
    .service-cta-section p {
        font-size: 0.95rem;
    }
    
    .modal-cta-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .service-modal-content {
        max-height: 85vh;
        margin: 2% auto;
    }
    
    .service-modal-header {
        padding: 1rem;
        flex-direction: row;
        text-align: left;
    }
    
    .service-modal-body {
        padding: 1rem;
    }
    
    .service-features ul {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        flex-direction: row;
        gap: 1rem;
    }
}
