/* Watch Demo Page Specific Styles */

.demo-hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    padding: 120px 0 60px;
    color: white;
    text-align: center;
}

.demo-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E7FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Demo */
.featured-demo {
    padding: 80px 0;
    background: white;
}

.demo-video-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.video-wrapper {
    position: relative;
}

.video-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(107, 70, 193, 0.3);
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="7" cy="7" r="1"/></g></g></svg>');
    animation: float 20s ease-in-out infinite;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.play-button svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    z-index: 2;
}

.video-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-overlay p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.demo-info h2 {
    color: var(--gray-900);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.demo-info > p {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.demo-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-purple);
    flex-shrink: 0;
}

.feature-item span {
    color: var(--gray-700);
    font-weight: 500;
}

.demo-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Demo Categories */
.demo-categories {
    padding: 60px 0;
    background: var(--gray-100);
}

.demo-categories h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-purple);
}

.category-card.active {
    border-color: var(--primary-purple);
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05), rgba(147, 51, 234, 0.05));
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.category-card.active .category-icon {
    transform: scale(1.1);
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

.category-card h3 {
    color: var(--gray-900);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Demo Videos */
.demo-videos {
    padding: 60px 0;
    background: white;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    transition: opacity 0.3s ease;
}

.videos-grid.hidden {
    display: none;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-thumbnail .play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    transition: all 0.3s ease;
}

.video-thumbnail .play-button svg {
    width: 24px;
    height: 24px;
    margin-left: 2px;
}

.video-thumbnail:hover .play-button {
    background: white;
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-info {
    padding: 1.5rem;
}

.video-info h4 {
    color: var(--gray-900);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.video-category {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Case Studies */
.case-studies {
    padding: 80px 0;
    background: var(--gray-100);
}

.case-studies h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 3rem;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.case-study-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--primary-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.company-info h4 {
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.company-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.case-study-content h3 {
    color: var(--gray-900);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.case-study-content > p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 8px;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 500;
}

.case-study-actions {
    text-align: center;
}

/* Demo CTA */
.demo-cta {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.demo-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.demo-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-purple);
}

.cta-buttons .btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: black;
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.active .modal-content {
    transform: scale(1);
}

.modal-video {
    width: 100%;
    height: 500px;
    background: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: white;
}

.modal-info {
    padding: 2rem;
    background: white;
}

.modal-info h3 {
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-info p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .demo-hero h1 {
        font-size: 2rem;
    }

    .demo-hero p {
        font-size: 1rem;
    }

    .demo-video-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .video-placeholder {
        height: 250px;
    }

    .demo-info h2 {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .case-study-metrics {
        grid-template-columns: 1fr;
    }

    .demo-actions,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .demo-cta h2 {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
    }

    .modal-video {
        height: 300px;
    }

    .modal-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .demo-hero {
        padding: 100px 0 40px;
    }

    .featured-demo,
    .demo-categories,
    .demo-videos,
    .case-studies,
    .demo-cta {
        padding: 40px 0;
    }

    .category-card,
    .case-study-card {
        padding: 1.5rem;
    }

    .video-info {
        padding: 1rem;
    }

    .demo-features {
        gap: 0.75rem;
    }

    .feature-item {
        font-size: 0.9rem;
    }
}