/* Demo Page Specific Styles */

/* Page Hero */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
}

.page-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.page-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* Demos Content */
.demos-content {
    padding: 80px 0;
}

.demo-detail {
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.demo-detail.visible {
    opacity: 1;
    transform: translateY(0);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.demo-number {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 255, 136, 0.2);
    line-height: 1;
}

.demo-header h2 {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex: 1;
}

.demo-showcase {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.demo-showcase.reverse {
    grid-template-columns: 1fr 1.5fr;
}

.demo-showcase.reverse .demo-video-large {
    order: 2;
}

.demo-showcase.reverse .demo-info {
    order: 1;
}

.demo-video-large {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    background: var(--bg-secondary);
}

.demo-video-large iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.demo-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.demo-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.demo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--gradient-2);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    isolation: isolate;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 2px;
    background: radial-gradient(
        calc(500px * var(--glow-intensity, 0.8)) circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 255, 136, calc(1.2 * var(--glow-intensity, 0))) 0%,
        rgba(0, 204, 255, calc(0.8 * var(--glow-intensity, 0))) 20%,
        rgba(255, 255, 255, calc(0.3 * var(--glow-intensity, 0))) 35%,
        rgba(0, 255, 136, calc(0.2 * var(--glow-intensity, 0))) 50%,
        transparent 70%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: var(--border-opacity, 0);
    transition: opacity 0.1s ease;
    pointer-events: none;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-value {
    display: block;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Coming Soon Section */
.coming-soon {
    text-align: center;
    padding: 80px 40px;
    background: var(--gradient-2);
    border-radius: 20px;
    margin-top: 80px;
    position: relative;
    isolation: isolate;
}

.coming-soon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: radial-gradient(
        calc(600px * var(--glow-intensity, 0.8)) circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 255, 136, calc(1.2 * var(--glow-intensity, 0))) 0%,
        rgba(0, 204, 255, calc(0.8 * var(--glow-intensity, 0))) 20%,
        rgba(255, 255, 255, calc(0.3 * var(--glow-intensity, 0))) 35%,
        rgba(0, 255, 136, calc(0.2 * var(--glow-intensity, 0))) 50%,
        transparent 70%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: var(--border-opacity, 0);
    transition: opacity 0.1s ease;
    pointer-events: none;
}

.coming-soon h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.coming-soon p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Active Nav Item */
.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    width: 100%;
}

/* Logo Link */
.logo-section a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .demo-showcase,
    .demo-showcase.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .demo-showcase.reverse .demo-video-large,
    .demo-showcase.reverse .demo-info {
        order: unset;
    }
    
    .demo-video-large iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .demo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .demo-number {
        font-size: 3rem;
    }
    
    .demo-header h2 {
        font-size: 1.8rem;
    }
    
    .demo-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .coming-soon {
        padding: 60px 20px;
    }
} 