/* ===================================
   AI Solutions Content Styles
   - Timeline Section
   - Challenges Section
   - Trust Section
   - Results Section
   =================================== */

/* ===== Timeline Section ===== */
.timeline-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 50%, #0A0E27 100%);
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(247, 147, 30, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.timeline-hero-image {
    margin: 60px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.timeline-image-full {
    width: 100%;
    height: auto;
    display: block;
}

.timeline-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 80px;
}

.timeline-item {
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}

.timeline-kaleido {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(247, 147, 30, 0.15));
    border-color: rgba(247, 147, 30, 0.4);
}

.timeline-kaleido:hover {
    border-color: rgba(247, 147, 30, 0.6);
    box-shadow: 0 10px 40px rgba(247, 147, 30, 0.3);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, #8B5CF6, #F97316);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.timeline-item h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-list li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.timeline-list li i {
    position: absolute;
    left: 0;
    color: #F97316;
    font-size: 1.1rem;
}

.timeline-arrow {
    color: #F97316;
    font-size: 2rem;
    opacity: 0.6;
}

/* Mobile Responsive - Timeline */
@media (max-width: 768px) {
    .timeline-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-arrow {
        display: none;
    }
    
    .timeline-item {
        padding: 30px 20px;
    }
}

/* ===== Challenges Section ===== */
.challenges-section {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.challenge-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.challenge-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.15);
}

.challenge-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.challenge-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.challenge-card:hover .challenge-image {
    transform: scale(1.1);
}

.challenge-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(247, 147, 30, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.challenge-card:hover .challenge-overlay {
    opacity: 1;
}

.challenge-overlay i {
    font-size: 4rem;
    color: var(--white);
}

.challenge-content {
    padding: 30px;
}

.challenge-content h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.challenge-problem,
.challenge-solution {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #666;
}

.challenge-problem strong,
.challenge-solution strong {
    color: var(--dark-blue);
    font-weight: 600;
}

.challenge-benefits {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.challenge-benefits li {
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.challenge-benefits li i {
    position: absolute;
    left: 0;
    color: #10B981;
    font-size: 1rem;
}

.challenge-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tool-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(247, 147, 30, 0.15));
    color: #8B5CF6;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.tool-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(247, 147, 30, 0.2));
}

/* Mobile Responsive - Challenges */
@media (max-width: 768px) {
    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .challenge-image-wrapper {
        height: 200px;
    }
}

/* ===== Trust Section ===== */
.trust-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 50%, #0A0E27 100%);
    position: relative;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.trust-card {
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.trust-card:hover {
    transform: translateY(-10px);
    border-color: rgba(247, 147, 30, 0.5);
    box-shadow: 0 15px 50px rgba(247, 147, 30, 0.2);
}

.trust-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #8B5CF6, #F97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.trust-card h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.trust-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.trust-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.trust-features li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.trust-features li i {
    position: absolute;
    left: 0;
    color: #10B981;
    font-size: 1.1rem;
}

/* Quality Workflow */
.quality-workflow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8B5CF6, #F97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.step-label {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

.workflow-arrow {
    color: #F97316;
    font-size: 1.5rem;
}

/* Trust Logos */
.trust-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.tool-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tool-logo:hover {
    opacity: 1;
}

/* Tools Showcase */
.trust-tools-showcase {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tool-logo-large {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.tool-item:hover .tool-logo-large {
    opacity: 1;
    transform: scale(1.1);
}

.tool-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Mobile Responsive - Trust */
@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .quality-workflow {
        flex-direction: column;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
    }
}

/* ===== Results Section ===== */
.results-section {
    padding: 120px 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.result-card {
    background: var(--white);
    border: 2px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-10px);
    border-color: rgba(247, 147, 30, 0.5);
    box-shadow: 0 15px 50px rgba(247, 147, 30, 0.15);
}

.result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #8B5CF6, #F97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.result-card h3 {
    color: var(--dark-blue);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.result-challenge {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.result-challenge strong {
    color: var(--dark-blue);
    font-weight: 600;
}

.result-metrics {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8B5CF6, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.metric-value span {
    font-size: 1.8rem;
}

.metric-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Mobile Responsive - Results */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .result-metrics {
        flex-direction: column;
        gap: 25px;
    }
}

/* ===== Global Utilities ===== */
.section-padding {
    padding: 80px 0;
}

.bg-white {
    background: var(--white);
}

/* Make sure section headers work properly on white backgrounds */
section.bg-white .section-header h2,
section.bg-white h2,
section.bg-light .section-header h2,
section.bg-light h2,
.game-demo-section .section-header h2,
.game-demo-section h2 {
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
}

section.bg-white .section-header p,
section.bg-white p,
section.bg-light .section-header p,
section.bg-light p,
.game-demo-section .section-header p,
.game-demo-section p {
    color: #666 !important;
}

/* Light background sections with white/light gray background - force dark text */
section[style*="background: #f9fafb"] .section-title,
section[style*="background: white"] .section-title,
section[style*="background:#f9fafb"] .section-title,
section[style*="background:white"] .section-title {
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
}

section[style*="background: #f9fafb"] .section-subtitle,
section[style*="background: white"] .section-subtitle,
section[style*="background:#f9fafb"] .section-subtitle,
section[style*="background:white"] .section-subtitle {
    color: #666 !important;
}

/* Make sure Trust Section headers are white on dark background */
.trust-section .section-header h2 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.trust-section .section-header p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Make sure Timeline Section headers are white on dark background */
.timeline-section .section-header h2 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.timeline-section .section-header p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Force Hero Section title to be visible - HIGHEST PRIORITY */
.services-hero .hero-title {
    color: #ffffff !important;
    font-size: 4rem !important;
    font-weight: 800 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.services-hero .hero-title .highlight {
    background: linear-gradient(135deg, #8B5CF6, #F97316, #10B981) !important;
    background-size: 200% 200% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
}

}

.timeline-section .section-header p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ===== Services Scope Flow (Enhanced) ===== */
.scope-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 80px 0 60px;
    position: relative;
}

/* Timeline connecting line */
.scope-flow::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 107, 53, 0.2) 0%, 
        rgba(139, 92, 246, 0.4) 50%, 
        rgba(255, 107, 53, 0.2) 100%);
    z-index: 0;
}

.scope-item {
    position: relative;
    text-align: center;
    padding: 40px 25px;
    background: white;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    z-index: 1;
}

.scope-item:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.15);
}

/* Gradient backgrounds for each item */
.scope-item:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
}

.scope-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(192, 132, 252, 0.05) 100%);
}

.scope-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(52, 211, 153, 0.05) 100%);
}

.scope-item:nth-child(4) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
}

.scope-item:nth-child(5) {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
}

.scope-item:nth-child(6) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(248, 113, 113, 0.05) 100%);
}

.scope-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

/* Icon gradient variations */
.scope-item:nth-child(1) .scope-icon {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
}

.scope-item:nth-child(2) .scope-icon {
    background: linear-gradient(135deg, #8B5CF6, #C084FC);
}

.scope-item:nth-child(3) .scope-icon {
    background: linear-gradient(135deg, #10B981, #34D399);
}

.scope-item:nth-child(4) .scope-icon {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
}

.scope-item:nth-child(5) .scope-icon {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
}

.scope-item:nth-child(6) .scope-icon {
    background: linear-gradient(135deg, #EF4444, #F87171);
}

.scope-item:hover .scope-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

/* Icon pulse effect */
.scope-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    transition: all 0.6s ease;
}

.scope-item:hover .scope-icon::before {
    width: 120%;
    height: 120%;
    opacity: 0.3;
}

.scope-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.scope-item:hover h3 {
    color: #FF6B35;
}

.scope-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Number badges */
.scope-item::after {
    content: attr(data-step);
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.scope-item:hover::after {
    transform: scale(1.2) rotate(360deg);
}

.scope-arrow {
    display: none; /* Hide arrows in new design */
}

.scope-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
    padding: 50px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 53, 0.1);
}

.scope-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-weight: 600;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.scope-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

.scope-feature i {
    color: #10B981;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Mobile Responsive for Scope */
@media (max-width: 1024px) {
    .scope-flow {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .scope-flow {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .scope-flow::before {
        display: none;
    }
    
    .scope-item {
        padding: 35px 20px;
    }
    
    .scope-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .scope-features {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

/* ===== Advantages Grid ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.advantage-card {
    background: white;
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.advantage-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
}

.advantage-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.advantage-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.advantage-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.advantage-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.advantage-list li i {
    color: #10B981;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Mobile Responsive for Scope & Advantages */
@media (max-width: 768px) {
    .scope-flow {
        flex-direction: column;
    }
    
    .scope-arrow {
        transform: rotate(90deg);
    }
    
    .scope-item {
        min-width: 100%;
    }
    
    .scope-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Override USP Items for Light Background ===== */
.bg-light .usp-item,
.game-demo-section .usp-item {
    color: #2C3E50 !important;
}

.bg-light .usp-item span,
.game-demo-section .usp-item span {
    color: #2C3E50 !important;
}

.bg-light .usp-item i,
.game-demo-section .usp-item i {
    color: var(--primary-color) !important;
}

.bg-light .usp-separator,
.game-demo-section .usp-separator {
    color: #2C3E50 !important;
}
