/* ========================================
   DEMOS SECTION
   ======================================== */

.demos-section {
    padding: 6rem 2rem;
    position: relative;
}

.demos-container {
    max-width: 1400px;
    margin: 0 auto;
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Demo Card */
.demo-card {
    background: rgba(10, 20, 15, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.demo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Demo Preview/Mockup */
.demo-preview {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.demo-mockup-bg {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Brand-specific backgrounds */
.nexus-bg {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.bloom-bg {
    background: linear-gradient(135deg, #ff6b9d 0%, #faf8f5 50%, #88a896 100%);
}

.velocity-bg {
    background: linear-gradient(135deg, #ff6b35 0%, #1e293b 100%);
    position: relative;
}

.velocity-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 107, 53, 0.1) 10px,
            rgba(255, 107, 53, 0.1) 20px);
}

.aurora-bg {
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    position: relative;
    overflow: hidden;
}

.aurora-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes scrollPattern {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(20px, 20px);
    }
}

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

/* Demo Content */
.demo-content {
    padding: 2rem;
}

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

.demo-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.nexus-logo-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 2rem;
}

.bloom-logo-text {
    font-size: 2rem;
}

.velocity-logo-text {
    font-size: 2rem;
}

.aurora-logo-text {
    font-size: 2rem;
}

.demo-brand {
    flex: 1;
}

.demo-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    color: var(--color-dark);
    /* Dark text for better contrast */
}

.demo-category {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
    /* Dark with opacity for readable subtitle */
    margin: 0.25rem 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.75);
    /* Dark with slight transparency for description */
    margin: 0 0 1.5rem 0;
}

.demo-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.05);
    /* Light background for tags */
    border: 1px solid rgba(0, 0, 0, 0.15);
    /* Darker border */
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.7);
    /* Dark text for visibility */
    font-weight: 500;
}

.demo-button {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.nexus-button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.nexus-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.bloom-button {
    background: #ff6b9d;
    color: white;
}

.bloom-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

.velocity-button {
    background: #ff6b35;
    color: white;
}

.velocity-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.aurora-button {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    color: white;
}

.aurora-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .demos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .demo-preview {
        height: 200px;
    }

    .demo-content {
        padding: 1.5rem;
    }
}

/* ========================================
   DEMO MODALS SYSTEM
   ======================================== */

.demo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.demo-modal-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: relative;
}

.demo-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 59, 48, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.demo-close:hover {
    background: rgba(255, 69, 58, 1) !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.5);
}

.demo-close svg {
    stroke: white !important;
    stroke-width: 3;
}

/* NEXUS FINTECH DEMO */
.nexus-theme {
    background: #0a0a0a;
    color: white;
    font-family: 'Inter', 'Rajdhani', sans-serif;
}

.nexus-header {
    padding: 1.5rem 2rem;
    background: rgba(10, 10, 10, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nexus-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nexus-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
}

.nexus-nav-tabs {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.nexus-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.nexus-tab.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.nexus-notification {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nexus-notification:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nexus-notification svg {
    stroke: white;
    /* White notification icon */
}

.nexus-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0a0a0a;
}

.nexus-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.nexus-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nexus-main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nexus-screen {
    display: none;
}

.nexus-screen.active {
    display: block;
}

.nexus-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.nexus-balance-card {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.nexus-balance-amount {
    font-size: 3rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.nexus-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.nexus-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white !important;
}

.nexus-action-btn span {
    color: white !important;
    font-size: 0.9rem;
}

.nexus-action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-4px);
}

.nexus-action-btn svg {
    stroke: white !important;
}

.nexus-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nexus-action-icon svg {
    stroke: white !important;
    /* White icons */
}

.nexus-action-icon.send {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.nexus-action-icon.request {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.nexus-action-icon.cards {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.nexus-action-icon.more {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
}

.nexus-transactions-list {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nexus-transaction {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.nexus-transaction-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nexus-transaction-info {
    flex: 1;
}

.nexus-transaction-name {
    font-weight: 500;
}

.nexus-transaction-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.nexus-transaction-amount.positive {
    color: #22c55e;
}

.nexus-transaction-amount.negative {
    color: rgba(255, 255, 255, 0.9);
}


.nexus-virtual-card {
    max-width: 400px;
    aspect-ratio: 1.586;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
}

.nexus-coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.demo-placeholder {
    padding: 4rem 2rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .nexus-grid {
        grid-template-columns: 1fr;
    }
}