/* Live Demo Section Styles */

/* Demo Section Container */
#live-demo {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 100%);
    position: relative;
    overflow: hidden;
}

#live-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Demo Intro Text */
.demo-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
    animation: fadeInUp 0.8s ease-out;
}

/* Demo Grid */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* Demo Card */
.demo-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.demo-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.demo-card:hover::before {
    left: 100%;
}

/* Demo Icon */
.demo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.demo-card:hover .demo-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Demo Card Title */
.demo-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.demo-card:hover h3 {
    color: #3b82f6;
}

/* Demo Card Description */
.demo-card p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 25px;
    min-height: 80px;
}

/* Demo Link */
.demo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.demo-link:hover {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
}

.demo-link i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.demo-link:hover i {
    transform: translateX(3px);
}

/* Demo CTA Section */
.demo-cta {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.demo-cta .btn {
    font-size: 1rem;
    padding: 14px 40px;
    transition: all 0.3s ease;
}

.demo-cta .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
}

.demo-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    #live-demo {
        padding: 60px 0;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .demo-card {
        padding: 30px 20px;
    }

    .demo-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .demo-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .demo-card h3 {
        font-size: 1.2rem;
    }

    .demo-card p {
        min-height: auto;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #live-demo {
        padding: 40px 0;
    }

    .demo-card {
        padding: 25px 15px;
    }

    .demo-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 15px;
    }

    .demo-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .demo-cta .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Animation for fade-in effect */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.demo-card:nth-child(1) {
    animation-delay: 0.1s;
}

.demo-card:nth-child(2) {
    animation-delay: 0.2s;
}

.demo-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Featured Demo Card Specific Styles */
.featured-demo {
    grid-column: span 1;
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
}

@media (min-width: 1024px) {
    .featured-demo {
        grid-column: span 2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .featured-demo .demo-icon {
        margin: 0 0 25px 0;
    }
    
    .featured-demo .demo-link {
        margin-top: auto;
    }
}

/* Demo Badge */
.demo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* Tech Stack Tags */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    justify-content: center;
}

@media (min-width: 1024px) {
    .featured-demo .tech-stack {
        justify-content: flex-start;
    }
}

.tech-stack span {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.demo-card:hover .tech-stack span {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #bfdbfe;
}
