/* 
 * Custom CSS for Elevate SaaS Landing Page 
 * Augmenting Tailwind CSS utility classes
 */

/* Ambient Blob Backgrounds */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(36, 65, 134, 0.15);
    /* #244186 (Blue) */
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-2 {
    top: 20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: rgba(83, 41, 112, 0.15);
    /* #532970 (Purple) */
    animation: drift 25s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.05);
    }
}

/* Glassmorphism Utilities */
.glass-nav {
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Typography Tweaks for Premium Feel */
h1,
h2,
h3 {
    letter-spacing: -0.03em;
}

/* Focus ring for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #244186;
    outline-offset: 2px;
}

/* Animations & Transitions */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Floating Elements Animation */
.hero-float-main {
    animation: float-slow 8s ease-in-out infinite;
}

.hero-float-1 {
    animation: float-fast 6s ease-in-out infinite;
}

.hero-float-2 {
    animation: float-medium 7s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes float-medium {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes float-fast {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Specific component styles */
.btn-lift {
    will-change: transform, box-shadow;
}

/* Hide scrollbar for a cleaner look when appropriate, but allow scrolling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Custom Animation for Marquee */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}