/* Services Page Specific Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    border: 1px solid rgba(0, 138, 255, 0.6);
    box-shadow: 0 0 10px rgba(0, 138, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 20px rgba(0, 138, 255, 0.7);
}

.service-icon {
    background: linear-gradient(135deg, #000000, var(--neon-secondary));
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 8px rgba(0, 138, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.service-icon i {
    width: 2rem;
    height: 2rem;
    color: white;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(0, 138, 255, 0.8);
    color: var(--text-white);
}

.service-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-btn {
    width: 100%;
    font-size: 0.875rem;
}

/* Service Modal */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    border: 1px solid rgba(0, 138, 255, 0.6);
    box-shadow: 0 0 30px rgba(0, 138, 255, 0.7);
    border-radius: 0.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.service-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(0, 138, 255, 0.3);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-shadow: 0 0 8px rgba(0, 138, 255, 0.8);
    color: var(--text-white);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text-white);
    background: rgba(0, 138, 255, 0.2);
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-icon {
    background: linear-gradient(135deg, #000000, var(--neon-secondary));
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 8px rgba(0, 138, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.modal-icon i {
    width: 2rem;
    height: 2rem;
    color: white;
}

.modal-description {
    color: var(--text-white);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-cta {
    font-size: 1rem;
    padding: 1rem 2rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
}