/* Global Styles */
body {
    background-color: #020617;
    /* Slate 950 from user theme */
    cursor: default;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #22d3ee;
    /* Primary Cyan */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0891b2;
    /* Primary Dark */
}

/* User Provided Styles */
/* Terminal Scrollbar (Targeting xterm internal viewport) */
.xterm-viewport::-webkit-scrollbar {
    width: 8px;
}

.xterm-viewport::-webkit-scrollbar-track {
    background: transparent;
}

.xterm-viewport::-webkit-scrollbar-thumb {
    background: #22d3ee;
    border-radius: 10px;
}

.xterm-viewport::-webkit-scrollbar-thumb:hover {
    background: #0891b2;
}

.glass-nav {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(16px);
}

.blob-hero {
    position: absolute;
    filter: blur(90px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
    transform: translateY(var(--scroll-y, 0px));
    transition: transform 0.1s linear;
}

.blob-footer {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
    transform: translateY(var(--scroll-y, 0px));
    transition: transform 0.1s linear;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-delay-1 {
    transition-delay: 0.1s;
}

.scroll-animate-delay-2 {
    transition-delay: 0.2s;
}

.scroll-animate-delay-3 {
    transition-delay: 0.3s;
}

.scroll-animate-delay-4 {
    transition-delay: 0.4s;
}

.scroll-animate-delay-5 {
    transition-delay: 0.5s;
}

.scroll-animate-delay-6 {
    transition-delay: 0.6s;
}

.timeline-step {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-step:nth-child(1) {
    transition-delay: 0.1s;
}

.timeline-step:nth-child(2) {
    transition-delay: 0.3s;
}

.timeline-step:nth-child(3) {
    transition-delay: 0.5s;
}

.dashboard-card-entry {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.dashboard-card-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.dashboard-card-entry:nth-child(1) {
    transition-delay: 0.2s;
}

.dashboard-card-entry:nth-child(2) {
    transition-delay: 0.4s;
}

.dashboard-card-entry:nth-child(3) {
    transition-delay: 0.6s;
}

.dashboard-health-bar {
    width: 0;
    transition: width 1.5s ease-out 0.8s;
}

.dashboard-health-bar.visible {
    width: 92%;
}

/* Legacy Scroll Reveal Support (for compatibility) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cinematic Demo Panel */
#demo-subtitles.active {
    width: 35%;
    opacity: 1;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 768px) {
    #demo-subtitles.active {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    }
}

/* Floating Animation for Hero Blob */
@keyframes float {
    0% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }

    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
}

.blob-hero {
    animation: float 10s ease-in-out infinite;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.02em;
}

/* Custom Scrollbar for Modal Body */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.2);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, 0.4);
}