/* Services Section - Additional Styles for Briefing Integration */

/* Animation for service cards */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.service-card.special-card:hover {
    animation: cardFloat 2s ease-in-out infinite;
}

/* Gradient animation for special card */
@keyframes gradientShift {
    0% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    50% { background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); }
    100% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
}

.service-card.special-card {
    animation: gradientShift 8s ease-in-out infinite;
}

/* Improved responsive grid for services */
@media (max-width: 1200px) {
    .services-section .row.g-4 {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .services-section .col-lg-4 {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Service card hover effects */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(58, 134, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

/* Enhanced icon styles */
.service-icon {
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.service-card:hover .service-icon::before {
    animation: shine 1s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

/* Special styling for briefing card elements */
.service-card.special-card .service-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.service-card.special-card:hover .service-icon {
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.4);
    transform: scale(1.05);
}

/* Loading state for briefing card */
.service-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.service-card.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
}

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

/* Accessibility improvements */
.service-card:focus {
    outline: 3px solid var(--px-theme);
    outline-offset: 2px;
}

.service-card[tabindex]:focus {
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.4);
}

/* Print styles */
@media print {
    .service-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .service-card.special-card {
        background: #f8f9fa !important;
        color: #000 !important;
    }
}
