/* Custom Styles & Animations */

/* Smooth Scrolling (Lenis handles this, but keep for fallback) */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

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

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e62239;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

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

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
        filter: blur(80px);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
        filter: blur(100px);
    }
}

.animate-pulse-slow {
    animation: pulse-glow 10s ease-in-out infinite;
}

/* Typing Effect Cursor */
.type-writer-text::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: #e62239;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Enhanced Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(230, 34, 57, 0.3);
    box-shadow: 0 0 30px rgba(230, 34, 57, 0.1);
    transform: translateY(-5px);
}

/* Spotlight Effect */
.spotlight-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Magnetic Button */
.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* FAQ Accordion Transition */
.faq-content {
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Initial States for GSAP - handled by JS now to avoid invisible content on error */
.fade-in-up {
    /* opacity: 0; handled by GSAP from() */
    /* transform: translateY(40px); */
}

.scroll-reveal {
    /* opacity: 0; */
    /* transform: translateY(60px); */
}

.scroll-reveal-left {
    /* opacity: 0; */
    /* transform: translateX(-60px); */
}

.scroll-reveal-right {
    /* opacity: 0; */
    /* transform: translateX(60px); */
}

.plan-card {
    /* opacity: 0; */
    /* transform: translateY(60px); */
}

/* Mobile Menu */
.mobile-menu-open {
    overflow: hidden;
}

/* Font Utilities */
.font-stem {
    font-family: 'Montserrat', sans-serif;
}

/* Text Reveal */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.5, 0, 0.5, 1), opacity 0.5s linear;
}

.char.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient Text Animation */
.gradient-text-animate {
    background-size: 200% auto;
    animation: gradient-flow 5s linear infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Shimmer Animation */
@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Word Animation Styles */
.word-animation {
    display: inline-block;
    transform-origin: bottom;
    will-change: transform, opacity;
}

/* Enhanced Button Hover */
.magnetic-btn {
    will-change: transform;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.magnetic-btn:hover {
    filter: brightness(1.1);
}

/* Typing Text with Gradient */
.typing-text {
    background: linear-gradient(90deg, #ffffff 0%, #e0e0e0 50%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}