/* Dypsis Demo Portal - Custom Styles */
/* Design Language: dypsis.ai */

/* Demo Card Animations */
.demo-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-card:not(.cursor-not-allowed):hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(200, 244, 180, 0.08);
}

/* Line clamp for descriptions */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 244, 180, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 244, 180, 0.35);
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C8F4B4;
    outline-offset: 2px;
}

/* Mobile improvements */
@media (max-width: 640px) {
    .demo-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Subtle text selection */
::selection {
    background: rgba(200, 244, 180, 0.3);
    color: #fff;
}

/* Image loading placeholder */
.demo-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.demo-card:hover img {
    transform: scale(1.03);
}
