/* ===== USE CASES SECTION - TIMELINE DESIGN ===== */

/* Section Container */
.use-cases-section {
    padding: 0px 0 80px;
    background: white;
    position: relative;
    overflow: hidden;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-block;
    margin-bottom: 20px;
}

.badge-text {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 1400px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Use Cases Timeline */
.use-cases-timeline {
    position: relative;
    z-index: 2;
    max-width: 1275px;
    margin: 0 auto;
    padding: 0 40px;
}

.use-cases-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3b82f6;
    opacity: 0.6;
    transform: translateX(-50%);
    z-index: 1;
}

/* Timeline Loader */
.timeline-loader {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    transform: translateX(-50%);
    z-index: 2;
    transition: height 0.05s ease-out;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.timeline-loader::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

/* Use Case Item - Active State when loader reaches */
.use-case-item.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.3), 0 10px 10px -5px rgba(59, 130, 246, 0.2);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.use-case-item.active .use-case-title {
    color: white;
}

.use-case-item.active .use-case-description {
    color: rgba(255, 255, 255, 0.9);
}

.use-case-item.active .industry-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.use-case-item.active .stat-number {
    color: white;
}

.use-case-item.active .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.use-case-item.active .industry-icon {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.use-case-item.active .industry-icon i {
    color: white;
}

/* Use Case Item */
.use-case-item {
    position: relative;
    margin-bottom: 40px;
    width: 45%;
    opacity: 1;
    transform: translateY(0);
}

.use-case-item:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.use-case-item:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

/* Connecting lines */
.use-case-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: #3b82f6;
    opacity: 0.6;
    z-index: 1;
}

.use-case-item:nth-child(odd)::before {
    right: -40px;
}

.use-case-item:nth-child(even)::before {
    left: -40px;
}

/* Timeline nodes - removed circles, using icons instead */
.use-case-item::after {
    display: none;
}

/* Timeline node icons */
.use-case-item .timeline-node-icon {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    z-index: 4;
    font-size: 0.9rem;
    color: #3b82f6;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.use-case-item:nth-child(odd) .timeline-node-icon {
    right: -52px;
}

.use-case-item:nth-child(even) .timeline-node-icon {
    left: -52px;
}

/* Active state for timeline node icons */
.use-case-item.active .timeline-node-icon {
    background: #3b82f6;
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
}

/* Use Case Content */
.use-case-item {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.use-case-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Use Case Header */
.use-case-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.use-case-item:nth-child(odd) .use-case-header {
    flex-direction: row;
}

.use-case-item:nth-child(even) .use-case-header {
    flex-direction: row-reverse;
}

.industry-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.industry-icon i {
    font-size: 1.5rem;
    color: white;
}

.use-case-item:hover .industry-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.use-case-info {
    flex: 1;
}

.use-case-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.industry-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    display: inline-block;
}

/* Use Case Body */
.use-case-body {
    margin-bottom: 24px;
}

.use-case-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 24px;
}

/* Use Case Stats */
.use-case-stats {
    display: flex;
    gap: 24px;
    justify-content: flex-start;
}

.use-case-item:nth-child(odd) .use-case-stats {
    justify-content: flex-start;
}

.use-case-item:nth-child(even) .use-case-stats {
    justify-content: flex-end;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .use-cases-timeline {
        max-width: 1400px;
        padding: 0 20px;
    }
    
    .section-title {
        max-width: 1400px;
    }
    
    .section-subtitle {
        max-width: 1400px;
    }
    
    .use-case-item {
        width: 48%;
        padding: 28px;
    }
    
    .use-case-stats {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .use-cases-section {
        padding: 80px 0 60px;
    }
    
    .section-title {
        font-size: 2.25rem;
        max-width: 1400px;
    }
    
    .section-subtitle {
        max-width: 1400px;
    }
    
    .use-cases-timeline {
        max-width: 1400px;
        padding: 0 20px;
    }
    
    .use-cases-timeline::before {
        left: 30px;
    }
    
    .timeline-loader {
        left: 30px;
    }
    
    .use-case-item {
        width: auto;
        margin-left: 60px !important;
        margin-right: 0 !important;
        padding-left: 32px;
        padding-right: 32px;
        text-align: left;
    }
    
    .use-case-item::before {
        right: auto !important;
        left: -30px !important;
        width: 30px;
    }
    
    .use-case-item::after {
        display: none !important;
    }
    
    .use-case-item .timeline-node-icon {
        right: auto !important;
        left: -40px !important;
        width: 16px;
        height: 16px;
        font-size: 0.7rem;
    }
    
    .use-case-item:nth-child(odd) .use-case-header,
    .use-case-item:nth-child(even) .use-case-header {
        flex-direction: row;
    }
    
    .use-case-item:nth-child(odd) .use-case-stats,
    .use-case-item:nth-child(even) .use-case-stats {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .use-cases-section {
        padding: 60px 0 40px;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .use-cases-timeline {
        padding: 0 15px;
    }
    
    .use-case-item {
        padding: 24px;
        margin-left: 50px !important;
    }
    
    .use-case-item::before {
        left: -25px !important;
        width: 25px;
    }
    
    .use-case-item::after {
        display: none !important;
    }
    
    .use-case-item .timeline-node-icon {
        left: -35px !important;
        width: 14px;
        height: 14px;
        font-size: 0.6rem;
    }
    
    .use-case-header {
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .industry-icon {
        width: 48px;
        height: 48px;
    }
    
    .industry-icon i {
        font-size: 1.25rem;
    }
    
    .use-case-title {
        font-size: 1.25rem;
    }
    
    .use-case-description {
        font-size: 0.95rem;
    }
    
    .use-case-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        min-width: auto;
    }
    
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .use-cases-section {
        padding: 50px 0 30px;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .use-cases-timeline {
        padding: 0 10px;
    }
    
    .use-case-item {
        margin-bottom: 30px;
        padding: 20px;
        margin-left: 40px !important;
    }
    
    .use-case-item::before {
        left: -20px !important;
        width: 20px;
    }
    
    .use-case-item::after {
        display: none !important;
    }
    
    .use-case-item .timeline-node-icon {
        left: -30px !important;
        width: 12px;
        height: 12px;
        font-size: 0.5rem;
    }
    
    .use-case-header {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .industry-icon {
        width: 40px;
        height: 40px;
    }
    
    .industry-icon i {
        font-size: 1rem;
    }
    
    .use-case-title {
        font-size: 1.125rem;
    }
    
    .use-case-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .use-case-stats {
        gap: 12px;
    }
    
    .stat-item {
        gap: 8px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .use-cases-section {
        padding: 40px 0 20px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .use-cases-timeline {
        padding: 0 8px;
    }
    
    .use-case-item {
        margin-bottom: 20px;
        padding: 16px;
        margin-left: 35px !important;
    }
    
    .use-case-item::before {
        left: -17px !important;
        width: 17px;
    }
    
    .use-case-item::after {
        display: none !important;
    }
    
    .use-case-item .timeline-node-icon {
        left: -25px !important;
        width: 10px;
        height: 10px;
        font-size: 0.4rem;
    }
    
    .use-case-header {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .industry-icon {
        width: 36px;
        height: 36px;
    }
    
    .industry-icon i {
        font-size: 0.875rem;
    }
    
    .use-case-title {
        font-size: 1rem;
    }
    
    .use-case-description {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }
    
    .use-case-stats {
        gap: 8px;
    }
    
    .stat-item {
        gap: 6px;
    }
    
    .stat-number {
        font-size: 1.125rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .industry-tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

