/* ===== SERVICE MODAL STYLES ===== */
/* CSS Variables for Modal Theme Support */
:root {
    /* Dark Mode Modal Colors (Default) */
    --modal-bg: #1e1e1e;
    --modal-border: #333333;
    --modal-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    --modal-overlay: rgba(0, 0, 0, 0.8);
    --modal-header-bg: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(0, 245, 255, 0.05));
    --modal-text-primary: #ffffff;
    --modal-text-secondary: #b0b0b0;
    --modal-close-hover: rgba(239, 68, 68, 0.1);
    --modal-info-bg: rgba(6, 182, 212, 0.05);
    --modal-info-border: rgba(6, 182, 212, 0.1);
}

/* Light Mode Modal Colors */
:root[data-theme="light"] {
    --modal-bg: #ffffff;
    --modal-border: #e0e0e0;
    --modal-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    --modal-overlay: rgba(0, 0, 0, 0.5);
    --modal-header-bg: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(0, 245, 255, 0.03));
    --modal-text-primary: #1a1a1a;
    --modal-text-secondary: #666666;
    --modal-close-hover: rgba(239, 68, 68, 0.1);
    --modal-info-bg: rgba(6, 182, 212, 0.03);
    --modal-info-border: rgba(6, 182, 212, 0.08);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.service-modal {
    animation: fadeIn 0.3s ease;
    background-color: var(--modal-overlay);
    transition: background-color 0.3s ease;
}

.service-modal-content {


    background: var(--modal-bg);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;


    border: 1px solid var(--modal-border);
    box-shadow: var(--modal-shadow);
    animation: slideUp 0.3s ease;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;




    padding: 2rem;
    border-bottom: 1px solid var(--modal-border);
    background: var(--modal-header-bg);
    border-radius: 16px 16px 0 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.service-modal-header h2 {

    font-family: 'Orbitron', monospace;
    font-size: clamp(1.5rem, 3vw, 2rem);

    color: var(--modal-text-primary);
    margin: 0;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: color 0.3s ease;
}

.modal-close {
    background: none;
    border: none;

    color: var(--modal-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;



    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modal-close:hover {


    background: var(--modal-close-hover);
    color: #ef4444;
    transform: scale(1.1);
}

.service-modal-body {

    padding: 2rem;
    transition: background-color 0.3s ease;
}

.service-description {
    font-size: 1.1rem;

    color: var(--modal-text-secondary);
    line-height: 1.6;

    margin-bottom: 2rem;
    text-align: center;
    transition: color 0.3s ease;
}

.service-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;


    gap: 2rem;
    margin-bottom: 2rem;
}

.service-features h3,
.service-process h3 {

    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;


    color: var(--modal-text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;

    gap: 0.5rem;
    transition: color 0.3s ease;
}

.service-features h3 i {

    color: #10b981;
}

.service-process h3 i {

    color: #667eea;
}

.service-features ul {
    list-style: none;
    padding: 0;
}

.service-features li {


    padding: 0.5rem 0;
    color: var(--modal-text-secondary);
    display: flex;
    align-items: center;

    gap: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.service-features li i {

    color: #10b981;
    font-size: 0.8rem;
    width: 16px;
}

.service-process ol {


    padding-left: 1rem;
    color: var(--modal-text-secondary);
}

.service-process li {

    padding: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--modal-text-secondary);
    transition: color 0.3s ease;
}

.service-details {
    display: grid;
    grid-template-columns: 1fr 1fr;






    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--modal-info-bg);
    border-radius: 12px;
    border: 1px solid var(--modal-info-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.detail-item {
    display: flex;
    align-items: center;


    gap: 0.5rem;
    color: var(--modal-text-secondary);
    transition: color 0.3s ease;
}

.detail-item i {

    color: #667eea;
    font-size: 1.1rem;
    width: 20px;
}

.service-modal-actions {
    display: flex;

    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.service-modal-actions .btn {
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 0.5rem;
    transition: all 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .service-modal {

        padding: 1rem;
    }
    
    .service-modal-content {
        max-height: 95vh;
    }
    
    .service-modal-header {

        padding: 1.5rem;
    }
    
    .service-modal-body {

        padding: 1.5rem;
    }
    
    .service-info-grid {
        grid-template-columns: 1fr;

        gap: 1.5rem;
    }
    
    .service-details {
        grid-template-columns: 1fr;

        gap: 0.5rem;
    }
    
    .service-modal-actions {
        flex-direction: column;

        gap: 1rem;
    }
    
    .service-modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .service-modal {

        padding: 0.5rem;
    }
    
    .service-modal-header {

        padding: 1rem;
        flex-direction: column;

        gap: 0.5rem;
        text-align: center;
    }
    
    .service-modal-body {

        padding: 1rem;
    }
    
    .service-modal-header h2 {
        font-size: 1.3rem;
    }
}

/* ========== LIGHT MODE SPECIFIC MODAL OVERRIDES ========== */
:root[data-theme="light"] .service-modal {
    background-color: var(--modal-overlay);
}

:root[data-theme="light"] .service-modal-content {
    background-color: var(--modal-bg);
    border-color: var(--modal-border);
    box-shadow: var(--modal-shadow);
}

:root[data-theme="light"] .service-modal-header {
    background: var(--modal-header-bg);
    border-bottom-color: var(--modal-border);
}

:root[data-theme="light"] .service-modal-header h2 {
    color: var(--modal-text-primary);
}

:root[data-theme="light"] .modal-close {
    color: var(--modal-text-secondary);
}

:root[data-theme="light"] .modal-close:hover {
    background: var(--modal-close-hover);
}

:root[data-theme="light"] .service-description,
:root[data-theme="light"] .service-features li,
:root[data-theme="light"] .service-process li,
:root[data-theme="light"] .detail-item {
    color: var(--modal-text-secondary);
}

:root[data-theme="light"] .service-features h3,
:root[data-theme="light"] .service-process h3 {
    color: var(--modal-text-primary);
}

:root[data-theme="light"] .service-details {
    background: var(--modal-info-bg);
    border-color: var(--modal-info-border);
}