/* Global Animations */
html {
    scroll-behavior: smooth;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 60px, 0) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Utility Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.fade-in-up {
    transform: translate3d(0, 30px, 0);
}

.fade-in-up.visible {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in {
    opacity: 0;
}

.fade-in.visible {
    animation: fadeIn 1s ease-out forwards;
}

/* Dramatic Services Animation */
@keyframes fadeInUpDramatic {
    from {
        opacity: 0;
        transform: translate3d(0, 100px, 0) scale(0.85);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.fade-in-up-dramatic {
    transform: translate3d(0, 100px, 0) scale(0.85);
}

.fade-in-up-dramatic.visible {
    animation: fadeInUpDramatic 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Pricing Drop Puff Animation */
@keyframes dropPuff {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(1.1);
    }

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

.animate-drop-puff {
    opacity: 0;
}

.animate-drop-puff.visible {
    animation: dropPuff 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Stagger Delays */
.stagger-delay-1 {
    transition-delay: 100ms;
    animation-delay: 100ms;
}

.stagger-delay-2 {
    transition-delay: 200ms;
    animation-delay: 200ms;
}

.stagger-delay-3 {
    transition-delay: 300ms;
    animation-delay: 300ms;
}

.stagger-delay-4 {
    transition-delay: 400ms;
    animation-delay: 400ms;
}

.stagger-delay-5 {
    transition-delay: 500ms;
    animation-delay: 500ms;
}

.stagger-delay-6 {
    transition-delay: 600ms;
    animation-delay: 600ms;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.hover-lift {
    transition: transform 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Button Hover Enhancement */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn-hover-effect:hover::after {
    transform: translateX(0);
}

/* Button Pulse Glow Animation */
@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

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

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

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

@keyframes floatDelayed {
    0% {
        transform: translateY(0px);
    }

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

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

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

.animate-float-delayed {
    animation: floatDelayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Hero Staggered Text */
.hero-stagger-item {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-stagger-1 {
    animation-delay: 0.2s;
}

.hero-stagger-2 {
    animation-delay: 0.4s;
}

.hero-stagger-3 {
    animation-delay: 0.6s;
}

.hero-stagger-4 {
    animation-delay: 0.8s;
}

.hero-stagger-5 {
    animation-delay: 1.0s;
}

/* H1 Pop and Shine */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    70% {
        opacity: 1;
        transform: scale(1.05);
    }

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

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

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

.animate-text-pop {
    animation: popIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.text-shine {
    background: linear-gradient(to right, #0f172a 20%, #3b82f6 40%, #3b82f6 60%, #0f172a 80%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: backgroundShine 3s linear infinite;
}

/* Jumping Letter Animation */
@keyframes jump {
    0% {
        transform: translateY(0);
        color: inherit;
    }

    3.75% {
        transform: translateY(-6px);
        color: #3b82f6;
    }

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

.text-jump {
    display: inline-block;
}

.jump-letter {
    display: inline-block;
    animation: jump 8s ease-in-out infinite;
}

/* Why Sowynet Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(50px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.animate-slide-in-right {
    opacity: 0;
    animation: slideInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.icon-pulse {
    transition: transform 0.3s ease;
}

.icon-pulse:hover {
    animation: pulse 1s infinite;
}

.card-hover-creative {
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-hover-creative:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
    /* slate-300 */
}

/* Pricing Scroll Sequence */
.pricing-scroll-container {
    height: auto;
    position: relative;
}

@media (min-width: 1024px) {
    .pricing-scroll-container {
        height: 250vh;
    }
}

.pricing-sticky-wrapper {
    position: relative;
    height: auto;
    overflow: visible;
    display: block;
}

@media (min-width: 1024px) {
    .pricing-sticky-wrapper {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: center;
    }
}

.pricing-content-wrapper {
    width: 100%;
    max-width: 80rem;
    /* max-w-7xl */
    margin: 0 auto;
    padding: 0 1rem;
    /* px-4 */
}

@media (min-width: 640px) {
    .pricing-content-wrapper {
        padding: 0 1.5rem;
    }
}

/* sm:px-6 */
@media (min-width: 1024px) {
    .pricing-content-wrapper {
        padding: 0 2rem;
    }
}

/* lg:px-8 */

.pricing-item {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (min-width: 1024px) {
    .pricing-item {
        opacity: 0;
        transform: translateY(30px);
    }

    .pricing-item.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card-item {
    opacity: 1;
}

@media (min-width: 1024px) {
    .pricing-card-item {
        opacity: 0;
    }

    .pricing-card-item.visible {
        animation: dropPuff 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }
}

/* Pricing Background Animation */
.pricing-container-hidden {
    background-color: white;
    border-color: #e2e8f0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: background-color 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease;
}

@media (min-width: 1024px) {
    .pricing-container-hidden {
        background-color: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }
}

.pricing-container-visible {
    background-color: white !important;
    border-color: #e2e8f0 !important;
    /* slate-200 */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
    /* shadow-sm */
}