/* AI Services Specific Styles */

.ai-overview {
    padding: 5rem 0;
    background: var(--primary-800);
    margin-bottom: 3rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--mckinsey-blue);
    background: rgba(255, 255, 255, 0.04);
}

.tech-card h3 {
    color: var(--neutral-50);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.tech-card p {
    color: var(--neutral-400);
    font-size: 0.9rem;
    line-height: 1.6;
}

.ai-technologies {
    padding: 5rem 0;
    background: var(--primary-900);
    margin-bottom: 3rem;
}

.ai-use-cases {
    padding: 5rem 0;
    background: var(--primary-800);
    margin-bottom: 3rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use-case-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    border-color: var(--mckinsey-teal);
    background: rgba(255, 255, 255, 0.04);
}

.use-case-card h3 {
    color: var(--neutral-50);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.use-case-card ul {
    list-style: none;
    padding: 0;
}

.use-case-card li {
    color: var(--neutral-400);
    font-size: 0.9rem;
    padding: 0.375rem 0;
    position: relative;
    padding-left: 1.25rem;
}

.use-case-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0.375rem;
    color: var(--mckinsey-teal);
    font-weight: bold;
}

.ai-methodology {
    padding: 5rem 0;
    background: var(--primary-900);
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.ai-methodology::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 115, 230, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 160, 176, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(0, 115, 230, 0.03) 50%, transparent 60%);
    pointer-events: none;
}

.ai-methodology .container {
    position: relative;
    z-index: 2;
}

.ai-methodology .section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mckinsey-blue), transparent);
}

.ai-methodology .process-step {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 115, 230, 0.1);
    border-radius: 8px;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.ai-methodology .process-step:hover {
    transform: translateY(-10px);
    background: rgba(0, 115, 230, 0.05);
    border-color: var(--mckinsey-blue);
    box-shadow: 0 10px 30px rgba(0, 115, 230, 0.2);
}

.ai-methodology .step-number {
    background: linear-gradient(135deg, var(--mckinsey-blue), var(--mckinsey-teal));
    box-shadow: 0 4px 15px rgba(0, 115, 230, 0.3);
}

.ai-methodology .process-step::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--mckinsey-blue), transparent, var(--mckinsey-teal));
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-methodology .process-step:hover::before {
    opacity: 1;
}

.ai-benefits {
    padding: 5rem 0;
    background: var(--primary-800);
    margin-bottom: 3rem;
}

.ai-benefits .benefit i {
    color: var(--mckinsey-blue);
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.benefit {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.benefit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 115, 230, 0.2);
    border-color: var(--mckinsey-blue);
}

.ai-benefits .benefit:hover i {
    color: var(--mckinsey-teal);
    transform: scale(1.2);
}

/* Interactive AI Services Layout */
.ai-services-interactive {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.services-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-point:hover,
.service-point.active {
    background: rgba(0, 115, 230, 0.1);
    border-color: var(--mckinsey-blue);
    transform: translateX(10px);
}

.point-icon {
    width: 40px;
    height: 40px;
    background: var(--mckinsey-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.service-point span {
    color: var(--neutral-50);
    font-weight: 500;
    font-size: 0.9rem;
}

.service-content {
    position: relative;
    min-height: 400px;
}

.service-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-detail.active {
    opacity: 1;
    transform: translateY(0);
}

.service-detail {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 115, 230, 0.2);
    border-color: rgba(0, 115, 230, 0.3);
}

@media (max-width: 768px) {
    .ai-services-interactive {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-sidebar {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .service-point {
        min-width: 200px;
    }
}

/* Animation classes for AI services */
.tech-card:nth-child(1) { animation: fadeInUp 0.8s ease 0.1s forwards; opacity: 0; }
.tech-card:nth-child(2) { animation: fadeInUp 0.8s ease 0.2s forwards; opacity: 0; }
.tech-card:nth-child(3) { animation: fadeInUp 0.8s ease 0.3s forwards; opacity: 0; }
.tech-card:nth-child(4) { animation: fadeInUp 0.8s ease 0.4s forwards; opacity: 0; }
.tech-card:nth-child(5) { animation: fadeInUp 0.8s ease 0.5s forwards; opacity: 0; }
.tech-card:nth-child(6) { animation: fadeInUp 0.8s ease 0.6s forwards; opacity: 0; }
.tech-card:nth-child(7) { animation: fadeInUp 0.8s ease 0.7s forwards; opacity: 0; }
.tech-card:nth-child(8) { animation: fadeInUp 0.8s ease 0.8s forwards; opacity: 0; }

.use-case-card:nth-child(1) { animation: fadeInUp 0.8s ease 0.1s forwards; opacity: 0; }
.use-case-card:nth-child(2) { animation: fadeInUp 0.8s ease 0.2s forwards; opacity: 0; }
.use-case-card:nth-child(3) { animation: fadeInUp 0.8s ease 0.3s forwards; opacity: 0; }
.use-case-card:nth-child(4) { animation: fadeInUp 0.8s ease 0.4s forwards; opacity: 0; }
.use-case-card:nth-child(5) { animation: fadeInUp 0.8s ease 0.5s forwards; opacity: 0; }
.use-case-card:nth-child(6) { animation: fadeInUp 0.8s ease 0.6s forwards; opacity: 0; }

/* AI Service Cards Glow Animation */
.service-detail-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 115, 230, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.service-detail-card:hover::before {
    animation: aiGlow 2s ease-in-out infinite;
    opacity: 1;
}

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

/* Floating Animation for Icons */
.service-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* AI Methodology Process Steps in One Line */
.ai-methodology .process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .ai-methodology .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Light Theme Overrides for AI Services */
body.light-theme .tech-card h3,
body.light-theme .tech-card p,
body.light-theme .use-case-card h3,
body.light-theme .use-case-card li,
body.light-theme .service-point span,
body.light-theme .service-detail h3,
body.light-theme .service-detail p,
body.light-theme .service-detail li {
    color: #000000 !important;
}

body.light-theme .ai-overview,
body.light-theme .ai-use-cases,
body.light-theme .ai-benefits {
    background: #f8f9fa;
}

body.light-theme .ai-technologies,
body.light-theme .ai-methodology {
    background: #ffffff;
}

body.light-theme .tech-card,
body.light-theme .use-case-card,
body.light-theme .service-point,
body.light-theme .service-detail {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}