/* Custom Animations and Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Pulse effect for specific elements */
@keyframes soft-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.pulse-soft {
    animation: soft-pulse 3s infinite ease-in-out;
}

/* Custom Glassmorphism refinements */
.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animated Image Showcase */
.image-showcase {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-showcase::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #2d4f1e, #4f7942);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    animation: subtle-pulse 3s ease-in-out infinite;
}

.image-showcase:hover::before {
    opacity: 0.15;
}

.image-showcase:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(45, 79, 30, 0.2);
}

.image-showcase img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-showcase:hover img {
    transform: scale(1.05);
}

@keyframes subtle-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(45, 79, 30, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 8px rgba(45, 79, 30, 0.1);
    }
}

/* Toast notification animation */
@keyframes slide-down {
    from {
        opacity: 0;
        transform: translate(-50%, -30px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.animate-slide-down {
    animation: slide-down 0.4s ease-out;
}

/* Rotating Text Animation */
.rotating-text-container {
    position: relative;
    display: inline-block;
}

.rotating-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
    visibility: hidden;
}

.rotating-text.active {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

/* Text Shadow for Better Visibility */
.text-shadow-lg {
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Smooth fade animation for rotating text */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    10%,
    90% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Hero Section Animations - Premium Elastic Feel */
@keyframes blurIn {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1) translateY(0);
    }
}

@keyframes revealSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-premium-in {
    animation: blurIn 1.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.animate-reveal-up {
    opacity: 0;
    animation: revealSlideUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Precise Staggered Delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.delay-800 {
    animation-delay: 800ms;
}

.delay-900 {
    animation-delay: 900ms;
}

.delay-1000 {
    animation-delay: 1000ms;
}

/* Legibility improvement for rotating text */
.rotating-text-container {
    perspective: 1000px;
}

.rotating-text {
    backface-visibility: hidden;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Premium Pricing Cards ========== */

/* Glassmorphism card base */
.pricing-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Hero card (Standard) — glow ring */
.pricing-card-hero {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 2px solid rgba(45, 79, 30, 0.3);
    box-shadow:
        0 32px 64px -16px rgba(45, 79, 30, 0.18),
        0 0 0 1px rgba(45, 79, 30, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.pricing-card-hero:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 40px 80px -20px rgba(45, 79, 30, 0.25),
        0 0 40px rgba(45, 79, 30, 0.08),
        0 0 0 2px rgba(45, 79, 30, 0.15);
}

/* Shimmer highlight line */
@keyframes shimmer-line {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

.pricing-shimmer {
    position: relative;
    overflow: hidden;
}

.pricing-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(79, 121, 66, 0.6), transparent);
    animation: shimmer-line 3s ease-in-out infinite;
}

/* Dark card (High Finish) */
.pricing-card-dark {
    background: linear-gradient(145deg, #4a3728 0%, #3a2a1e 50%, #2d1f15 100%);
    border: 1px solid rgba(244, 228, 188, 0.15);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.pricing-card-dark:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 48px -12px rgba(74, 55, 40, 0.4),
        0 0 30px rgba(244, 228, 188, 0.05);
    border-color: rgba(244, 228, 188, 0.25);
}

/* Price typography */
.price-amount {
    background: linear-gradient(135deg, #2d4f1e, #4f7942);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature icon pill */
.feature-icon {
    transition: all 0.3s ease;
}

.pricing-card:hover .feature-icon,
.pricing-card-hero:hover .feature-icon,
.pricing-card-dark:hover .feature-icon {
    transform: scale(1.1);
}

/* CTA button glow */
.cta-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-premium::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #2d4f1e, #4f7942, #2d4f1e);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.cta-premium:hover::before {
    opacity: 1;
}

.cta-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 79, 30, 0.3);
}

/* Staggered card entry */
@keyframes cardFloat {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pricing-enter {
    animation: cardFloat 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.pricing-enter:nth-child(1) {
    animation-delay: 0.1s;
    opacity: 0;
}

.pricing-enter:nth-child(2) {
    animation-delay: 0.25s;
    opacity: 0;
}

.pricing-enter:nth-child(3) {
    animation-delay: 0.4s;
    opacity: 0;
}