/* Custom Styles and Animations for CartAnywhere Landing Page */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Cactus Icon Animation */
.cactus-icon {
    font-size: 1.5rem;
    display: inline-block;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

/* Cactus Loader */
.cactus-loader {
    transition: transform 0.3s ease;
}

.cactus-loader:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Feature Cards - Staggered Animation */
.feature-card {
    animation: slideUp 0.8s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Store Cards - Staggered Animation */
.store-card {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.store-card:nth-child(1) {
    animation-delay: 0.05s;
}

.store-card:nth-child(2) {
    animation-delay: 0.1s;
}

.store-card:nth-child(3) {
    animation-delay: 0.15s;
}

.store-card:nth-child(4) {
    animation-delay: 0.2s;
}

.store-card:nth-child(5) {
    animation-delay: 0.25s;
}

.store-card:nth-child(6) {
    animation-delay: 0.3s;
}

.store-card:nth-child(7) {
    animation-delay: 0.35s;
}

.store-card:nth-child(8) {
    animation-delay: 0.4s;
}

.store-card:nth-child(9) {
    animation-delay: 0.45s;
}

.store-card:nth-child(10) {
    animation-delay: 0.5s;
}

.store-card:nth-child(11) {
    animation-delay: 0.55s;
}

.store-card:nth-child(12) {
    animation-delay: 0.6s;
}

.store-card:nth-child(13) {
    animation-delay: 0.65s;
}

.store-card:nth-child(14) {
    animation-delay: 0.7s;
}

.store-card:nth-child(15) {
    animation-delay: 0.75s;
}

/* Hover Effects */
.feature-card:hover,
.store-card:hover {
    box-shadow: 0 20px 50px rgba(74, 124, 89, 0.2);
}

/* Code Block Styling */
pre {
    font-family: 'Courier New', monospace;
}

code {
    line-height: 1.6;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #4A7C59 0%, #00A8CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #00A8CC;
}

/* Loading Animation for API Status */
@keyframes pulse {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .cactus-loader svg {
        width: 80px;
        height: 80px;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    .feature-card,
    .store-card {
        animation-delay: 0s !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}