.video-demo-section {
    padding: 120px 40px;
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
}

.video-demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.video-demo-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

.video-timeline {
    position: sticky;
    top: 100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.02));
    border-radius: 30px;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.timeline-progress {
    position: absolute;
    right: 75px;
    top: 60px;
    bottom: 60px;
    width: 3px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
}

.timeline-progress-bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 0%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: height 0.3s ease;
    box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step:hover {
    transform: translateX(-5px);
}

.timeline-marker {
    position: relative;
    flex-shrink: 0;
}

.marker-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.timeline-step.active .marker-ring {
    border-color: var(--accent-primary);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.2;
    }
}

.marker-dot {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.marker-dot svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: all 0.4s ease;
}

.timeline-step.active .marker-dot {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.15);
    box-shadow: 0 8px 25px -5px var(--accent-glow);
}

.timeline-step.active .marker-dot svg {
    color: white;
}

.timeline-step:hover .marker-dot {
    transform: scale(1.1);
    border-color: var(--accent-primary);
}

.timeline-content {
    flex: 1;
    padding-top: 4px;
}

.timeline-time {
    display: inline-block;
    font-size: clamp(11px, 0.8vw, 13px);
    font-weight: 700;
    color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: clamp(16px, 1.15vw, 19px);
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.timeline-step.active .timeline-content h4 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-content p {
    font-size: clamp(13px, 0.95vw, 15px);
    color: var(--text-secondary);
    line-height: 1.6;
}

.video-player-wrapper {
    position: relative;
}

.video-decorations {
    position: absolute;
    inset: -100px;
    pointer-events: none;
    z-index: 0;
}

.video-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: glowFloat 8s ease-in-out infinite;
}

.video-glow-1 {
    top: -150px;
    right: -150px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.video-glow-2 {
    bottom: -150px;
    left: -150px;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    animation-delay: -4s;
}

@keyframes glowFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.video-frame {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: #000;
    box-shadow: 
        0 30px 90px -15px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.video-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 3;
}

.video-frame:hover::before {
    opacity: 1;
}

.video-element {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    display: block;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(99, 102, 241, 0.3));
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: all 0.4s ease;
    z-index: 4;
}

.play-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-button:hover {
    transform: scale(1.08);
}

.play-button-circle {
 position: relative;
    width: 100px;
    height: 100px;
    background: rgba(99, 102, 241, 0.3); /* نیمه شفاف */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 60px -10px rgba(99, 102, 241, 0.4),
        0 0 30px 10px rgba(99, 102, 241, 0.2) inset;
    backdrop-filter: blur(8px); /* افکت لیکویید */
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: playButtonPulse 2s ease-in-out infinite;
}

@keyframes playButtonPulse {
    0%, 100% {
        box-shadow: 
            0 20px 60px -10px rgba(99, 102, 241, 0.6),
            0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 
            0 20px 60px -10px rgba(99, 102, 241, 0.8),
            0 0 0 20px rgba(99, 102, 241, 0);
    }
}
.play-button-circle svg {
    width: 44px;
    height: 44px;
    color: white;
    margin-right: 4px;
}

.play-button-text {
    font-size: clamp(18px, 1.3vw, 22px);
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: Kalameh;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(10px);
    padding: 20px 25px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 5;
}

.video-frame:hover .video-controls {
    opacity: 1;
    transform: translateY(0);
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.controls-right {
    flex-shrink: 0;
}

.controls-left {
    flex-shrink: 0;
}

.control-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    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;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.control-btn svg {
    width: 18px;
    height: 18px;
    color: white;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(13px, 0.9vw, 15px);
    font-weight: 600;
    color: white;
    user-select: none;
}

.time-separator {
    opacity: 0.5;
}

.progress-bar-container {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 0;
}

.progress-bar-bg {
    position: relative;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: visible;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.1s linear;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

.progress-bar-handle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-bar-container:hover .progress-bar-handle {
    opacity: 1;
}

.video-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.video-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-primary);
    padding: 22px 24px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.video-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-primary);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: clamp(18px, 1.3vw, 22px);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.stat-label {
    font-size: clamp(12px, 0.9vw, 14px);
    color: var(--text-muted);
}

@media (max-width: 1200px) {
    .video-demo-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .video-timeline {
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 30px 25px;
    }

    .timeline-progress {
        display: none;
    }

    .timeline-step {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .video-demo-section {
        padding: 80px 20px;
    }

    .video-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .play-button-circle {
        width: 80px;
        height: 80px;
    }

    .play-button-circle svg {
        width: 36px;
        height: 36px;
    }

    .video-controls {
        padding: 15px 18px 12px;
    }

    .control-btn {
        width: 34px;
        height: 34px;
    }

    .control-btn svg {
        width: 16px;
        height: 16px;
    }

    .time-display {
        font-size: clamp(11px, 0.9vw, 13px);
    }
}

@media (max-width: 576px) {
    .video-demo-section {
        padding: 60px 15px;
    }

    .timeline-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .marker-dot {
        width: 38px;
        height: 38px;
    }

    .marker-dot svg {
        width: 18px;
        height: 18px;
    }

    .timeline-content h4 {
        font-size: clamp(15px, 1.15vw, 17px);
    }

    .timeline-content p {
        font-size: clamp(12px, 0.95vw, 14px);
    }

    .video-stat-item {
        padding: 18px 20px;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
    }

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .controls-group {
        gap: 8px;
    }

    .video-frame {
        border-radius: 20px;
    }
}