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

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

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

.service-card-popup-content {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 26, 48, 0.98), rgba(30, 41, 59, 0.98));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card-popup.active .service-card-popup-content {
    transform: scale(1) translateY(0);
}

.service-card-popup-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px 20px 0 0;
}

.service-card-popup-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.service-card-popup-icon svg {
    width: 30px;
    height: 30px;
}

.service-card-popup-title-section {
    flex: 1;
}

.service-card-popup-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.service-card-popup-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.service-card-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.service-card-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.1);
}

.service-card-popup-close svg {
    width: 20px;
    height: 20px;
}

.service-card-popup-body {
    padding: 30px;
}

.service-card-popup-section {
    margin-bottom: 30px;
}

.service-card-popup-section:last-child {
    margin-bottom: 0;
}

.service-card-popup-section h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card-popup-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 2px;
}

.service-card-popup-features,
.service-card-popup-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card-popup-features li,
.service-card-popup-benefits li {
    position: relative;
    padding: 12px 0 12px 35px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card-popup-features li:last-child,
.service-card-popup-benefits li:last-child {
    border-bottom: none;
}

.service-card-popup-features li::before {
    content: '>';
    position: absolute;
    left: 0;
    top: 12px;
    color: #6366f1;
    font-weight: bold;
    font-size: 1.2rem;
}

.service-card-popup-benefits li::before {
    content: '++';
    position: absolute;
    left: 0;
    top: 12px;
    color: #10b981;
    font-weight: bold;
    font-size: 0.9rem;
}

.service-card-popup-technologies,
.service-card-popup-use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    transform: translateY(-2px);
}

.use-case-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 197, 94, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.use-case-tag:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(34, 197, 94, 0.3));
    transform: translateY(-2px);
}

/* Click animation for service cards */
.included-item.clicked,
.benefit-card.clicked,
.tech-item.clicked {
    animation: cardClick 0.6s ease;
}

@keyframes cardClick {
    0% {
        transform: translateY(-5px) scale(1);
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
    }
    100% {
        transform: translateY(-5px) scale(1);
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    }
}

/* Responsive Design - Mobile Optimized */
@media (max-width: 768px) {
    .service-card-popup {
        padding: 10px;
    }
    
    .service-card-popup-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 15px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .service-card-popup-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 12px;
        flex-shrink: 0;
    }
    
    .service-card-popup-icon {
        width: 50px;
        height: 50px;
        align-self: center;
    }
    
    .service-card-popup-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .service-card-popup-close {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: rgba(255, 255, 255, 0.8);
        z-index: 10;
    }
    
    .service-card-popup-close:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        color: white;
        transform: scale(1.1);
    }
    
    .service-card-popup-close svg {
        width: 18px;
        height: 18px;
    }
    
    .service-card-popup-title {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .service-card-popup-description {
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.5;
        margin-bottom: 0;
    }
    
    .service-card-popup-body {
        padding: 15px 20px;
        overflow-y: auto;
        flex: 1;
        -webkit-overflow-scrolling: touch;
    }
    
    .service-card-popup-section {
        margin-bottom: 20px;
    }
    
    .service-card-popup-section:last-child {
        margin-bottom: 0;
    }
    
    .service-card-popup-section h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .service-card-popup-features li,
    .service-card-popup-benefits li {
        font-size: 0.9rem;
        padding: 8px 0 8px 25px;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    .service-card-popup-features li::before,
    .service-card-popup-benefits li::before {
        top: 8px;
    }
    
    .tech-tag,
    .use-case-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin: 4px;
        display: inline-block;
    }
    
    .service-card-popup-technologies,
    .service-card-popup-use-cases {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        margin: 0 -4px;
    }
}

@media (max-width: 480px) {
    .service-card-popup {
        padding: 5px;
    }
    
    .service-card-popup-content {
        max-height: 85vh;
        border-radius: 12px;
    }
    
    .service-card-popup-header {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .service-card-popup-icon {
        width: 45px;
        height: 45px;
    }
    
    .service-card-popup-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .service-card-popup-close {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
    
    .service-card-popup-close svg {
        width: 16px;
        height: 16px;
    }
    
    .service-card-popup-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .service-card-popup-description {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    .service-card-popup-body {
        padding: 12px 15px;
    }
    
    .service-card-popup-section {
        margin-bottom: 16px;
    }
    
    .service-card-popup-section h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .service-card-popup-features li,
    .service-card-popup-benefits li {
        font-size: 0.85rem;
        padding: 6px 0 6px 22px;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    
    .service-card-popup-features li::before,
    .service-card-popup-benefits li::before {
        top: 6px;
        font-size: 0.8rem;
    }
    
    .tech-tag,
    .use-case-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
        margin: 3px;
    }
    
    .service-card-popup-technologies,
    .service-card-popup-use-cases {
        gap: 4px;
        margin: 0 -3px;
    }
}

@media (max-width: 360px) {
    .service-card-popup-content {
        max-height: 80vh;
    }
    
    .service-card-popup-header {
        padding: 10px 12px;
    }
    
    .service-card-popup-title {
        font-size: 1.1rem;
    }
    
    .service-card-popup-description {
        font-size: 0.8rem;
    }
    
    .service-card-popup-body {
        padding: 10px 12px;
    }
    
    .service-card-popup-section h4 {
        font-size: 0.95rem;
    }
    
    .service-card-popup-features li,
    .service-card-popup-benefits li {
        font-size: 0.8rem;
        padding: 5px 0 5px 20px;
    }
    
    .tech-tag,
    .use-case-tag {
        font-size: 0.7rem;
        padding: 4px 8px;
        margin: 2px;
    }
}

/* Smooth scrollbar for popup content */
.service-card-popup-content::-webkit-scrollbar {
    width: 8px;
}

.service-card-popup-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.service-card-popup-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 4px;
}

.service-card-popup-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
}

/* Enhanced hover effects for service cards */
.included-item,
.benefit-card,
.tech-item {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.included-item:hover,
.benefit-card:hover,
.tech-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Loading animation for popup content */
.service-card-popup.loading .service-card-popup-body {
    opacity: 0.5;
    pointer-events: none;
}

.service-card-popup.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
