/* ============================================
   Dashboard Demo Section - Dashboard Visibility
   Zencia.AI Theme - Image Left, Text Right
   ============================================ */

.dashboard-demo-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a1a1a 0%, #000000 100%);
    position: relative;
    overflow: hidden;
}

/* Background Effect - Mirror the gradient direction */
.dashboard-demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(0, 217, 213, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(0, 139, 139, 0.06) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.dashboard-demo-section .container {
    position: relative;
    z-index: 2;
}

/* ===== LAYOUT - Reversed Grid ===== */
.dashboard-demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* ===== VIDEO/GIF CONTAINER (LEFT SIDE) ===== */
.dashboard-demo-media {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.dashboard-demo-frame {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.4s ease;
}

.dashboard-demo-frame:hover {
    border-color: rgba(0, 217, 213, 0.3);
    box-shadow: 0 30px 80px rgba(0, 217, 213, 0.2);
    transform: translateY(-5px);
}

/* Glow effect */
.dashboard-demo-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-turquoise));
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(20px);
}

.dashboard-demo-frame:hover::before {
    opacity: 0.4;
}

.dashboard-demo-video {
    width: 100%;
    border-radius: 16px;
    display: block;
    background: #000;
}

/* Play button overlay (if needed) */
.dashboard-demo-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 217, 213, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.dashboard-demo-frame:hover .dashboard-demo-play-overlay {
    opacity: 1;
}

.dashboard-demo-play-overlay svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
    margin-left: 4px;
}

.dashboard-demo-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-teal);
}

/* Badge on media */
.dashboard-demo-badge {
    position: absolute;
    top: 30px;
    left: 30px;  /* Positioned on left instead of right */
    background: rgba(0, 217, 213, 0.95);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 217, 213, 0.3);
    animation: pulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(0, 217, 213, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(0, 217, 213, 0.5);
    }
}

/* ===== TEXT CONTENT (RIGHT SIDE) ===== */
.dashboard-demo-text {
    max-width: 600px;
    margin-left: auto;  /* Align text to the right side */
}

.dashboard-demo-title {
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.dashboard-demo-title .highlight-text {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-turquoise) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.dashboard-demo-subheading {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* Supporting text styling (if you want to add it later) */
.dashboard-demo-supporting {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    background: rgba(0, 217, 213, 0.05);
    border-left: 4px solid var(--primary-teal);
    border-radius: 8px;
    font-style: italic;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.dashboard-demo-supporting strong {
    color: var(--primary-teal);
    font-weight: 600;
    font-style: normal;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .dashboard-demo-section {
        padding: 100px 0;
    }

    .dashboard-demo-content {
        gap: 60px;
    }
    
    .dashboard-demo-text {
        margin-left: 0;  /* Reset margin on smaller screens */
    }
}

@media (max-width: 768px) {
    .dashboard-demo-section {
        padding: 80px 0;
    }

    .dashboard-demo-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* On mobile, text comes first, then media */
    .dashboard-demo-text {
        order: 1;  /* Text first */
        max-width: 100%;
        text-align: center;
        margin-left: 0;
    }
    
    .dashboard-demo-media {
        order: 2;  /* Video/image second */
    }

    .dashboard-demo-title {
        margin-bottom: 1.5rem;
    }

    .dashboard-demo-subheading {
        margin-bottom: 1.5rem;
    }

    .dashboard-demo-supporting {
        padding: 1.25rem;
        text-align: left;
    }

    .dashboard-demo-frame {
        padding: 15px;
        border-radius: 20px;
    }

    .dashboard-demo-badge {
        top: 20px;
        left: 20px;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .dashboard-demo-section {
        padding: 60px 0;
    }

    .dashboard-demo-content {
        gap: 40px;
    }

    .dashboard-demo-title {
        letter-spacing: -0.5px;
        margin-bottom: 1.25rem;
    }

    .dashboard-demo-subheading {
        margin-bottom: 1.25rem;
    }

    .dashboard-demo-supporting {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .dashboard-demo-frame {
        padding: 12px;
        border-radius: 16px;
    }

    .dashboard-demo-video {
        border-radius: 12px;
    }

    .dashboard-demo-badge {
        top: 15px;
        left: 15px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .dashboard-demo-play-overlay {
        width: 60px;
        height: 60px;
    }

    .dashboard-demo-play-overlay svg {
        width: 24px;
        height: 24px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .dashboard-demo-title,
    .dashboard-demo-subheading,
    .dashboard-demo-supporting,
    .dashboard-demo-media,
    .dashboard-demo-badge {
        animation: none;
    }

    .dashboard-demo-frame:hover {
        transform: none;
    }
}

/* Focus states */
.dashboard-demo-play-overlay:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 4px;
}
/* ===== SCROLL ANIMATIONS ===== */
.dashboard-demo-media {
    opacity: 0;
    transform: translateX(-40px) rotate(-5deg);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-demo-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-demo-media.animate-in {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
    transition-delay: 0.2s;
}

.dashboard-demo-text.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}