@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes parallax {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes flipBook {
    0% { transform: perspective(1000px) rotateY(0deg); }
    50% { transform: perspective(1000px) rotateY(-15deg); }
    100% { transform: perspective(1000px) rotateY(0deg); }
}
@keyframes scrollPhone {
    0% { transform: translateY(0); }
    25% { transform: translateY(-20%); }
    50% { transform: translateY(-40%); }
    75% { transform: translateY(-60%); }
    100% { transform: translateY(0); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes subtleShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes flowRight {
    0% {
        width: 0%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}
@keyframes flowLeft {
    0% {
        width: 0%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-fadeInUp { animation: fadeInUp 0.8s ease-out; }
.animate-parallax { animation: parallax 8s ease-in-out infinite; }
.animate-slideIn { animation: slideIn 0.6s ease-out; }
.animate-flipBook { animation: flipBook 3s ease-in-out infinite; }
.animate-scrollPhone { animation: scrollPhone 8s ease-in-out infinite; }
/* Hero gradient - matches app's blue-purple-pink */
.gradient-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

/* Sticky navbar styles */
.navbar {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled .nav-logo {
    opacity: 1;
    transform: translateX(0);
}

.nav-logo {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.btn-shimmer {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    transition: none;
}
.btn-shimmer:hover::before {
    animation: subtleShimmer 0.8s ease-out;
}
.btn-shimmer:hover {
    background-color: #f3f4f6;
}

/* Cleaner flow effect for "Watch your year build itself" section */
@keyframes cardPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 10px 15px -3px rgba(118, 75, 162, 0.2), 0 4px 6px -2px rgba(118, 75, 162, 0.1);
    }
}

@keyframes flowGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes subtleWiggle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(-0.5deg);
    }
    75% {
        transform: translateY(3px) rotate(0.5deg);
    }
}

@media (min-width: 1024px) {
    .flow-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 100%;
        background: radial-gradient(
            ellipse 50% 30% at 50% 70%,
            rgba(118, 75, 162, 0.15) 0%,
            rgba(102, 126, 234, 0.1) 40%,
            transparent 70%
        );
        pointer-events: none;
        z-index: 0;
        animation: flowGlow 3s ease-in-out infinite;
    }

    .flow-card {
        position: relative;
        z-index: 1;
        animation: cardPulse 3s ease-in-out infinite !important;
    }

    /* Stagger the pulse for each card */
    .flow-card-down:nth-child(1) {
        animation-delay: 0s !important;
    }
    .flow-card-down:nth-child(2) {
        animation-delay: 0.3s !important;
    }
    .flow-card-down:nth-child(3) {
        animation-delay: 0.6s !important;
    }
    .flow-card-down:nth-child(4) {
        animation-delay: 0.9s !important;
    }

    /* Center image subtle wiggle */
    .flow-center {
        position: relative;
        animation: subtleWiggle 4s ease-in-out infinite;
    }

    .flow-center::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 110%;
        height: 110%;
        transform: translate(-50%, -50%);
        background: radial-gradient(
            circle at center,
            rgba(118, 75, 162, 0.2) 0%,
            rgba(102, 126, 234, 0.12) 40%,
            transparent 70%
        );
        border-radius: 50%;
        pointer-events: none;
        z-index: -1;
        opacity: 0.5;
    }
}
