/* Custom Animations and Base Styles */

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

/* Global Layout Fixes (Production Safe) */
body {
    padding-top: 5rem;
    /* Ensure content is never hidden behind fixed header */
}

#header-placeholder {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    /* Ensure visual separation */
}

/* Custom Animation Keyframes */
@keyframes moveRightShort {
    0% {
        left: 0%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes moveLeftShort {
    0% {
        right: 0%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        right: 100%;
        opacity: 0;
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Custom Utility Classes */
.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Glassmorphism Utilities (if needed beyond Tailwind backdrop-blur) */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text Utilities */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #4f46e5, #ec4899);
}

/* Hero Animations */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes float {

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

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

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

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}



.animate-pulse-soft {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Premium Roadmap Header Effects */
@keyframes text-gradient-sweep {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: -200% center;
    }
}

@keyframes bounce-up-down {

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

    50% {
        transform: translateY(-10px);
    }
}

/* Traveling dot on line */
@keyframes line-travel {
    0% {
        top: 0%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@-webkit-keyframes line-travel {
    0% {
        top: 0%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.line-dot {
    position: absolute;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #4f46e5;
    border-radius: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    box-shadow: 0 0 10px #4f46e5, 0 0 20px #4f46e5;
    animation: line-travel 4s linear infinite;
    -webkit-animation: line-travel 4s linear infinite;
    z-index: 10;
}

.animate-bounce-up-down {
    animation: bounce-up-down 2s ease-in-out infinite;
}

@keyframes title-reveal-up {
    0% {
        transform: translateY(20px);
        opacity: 0;
        filter: blur(5px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

.text-reveal-luxury {
    background: linear-gradient(to right,
            #0f172a,
            #4f46e5,
            #7c3aed,
            #4f46e5,
            #0f172a);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.25em;
    margin-bottom: -0.25em;
    animation: text-gradient-sweep 8s linear infinite, title-reveal-up 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glow-sweep {
    position: relative;
    overflow: hidden;
}

.glow-sweep::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse-slow 6s ease-in-out infinite;
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Code block handling */
pre,
code {
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Custom Scrollbar */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}