/* Animations */

/* Typing cursor animation */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: white;
    margin-left: 0.2em;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transition: all 0.4s ease;
}

.btn:hover::after {
    left: 100%;
}

/* Category card hover effects */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    /* box-shadow: var(--shadow-lg); */
}

/* Category buttons staggered animation */
.category-menu .category-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

.category-menu .category-item:nth-child(1) {
    animation-delay: 0.1s;
}

.category-menu .category-item:nth-child(2) {
    animation-delay: 0.2s;
}

.category-menu .category-item:nth-child(3) {
    animation-delay: 0.3s;
}

.category-menu .category-item:nth-child(4) {
    animation-delay: 0.4s;
}

.category-menu .category-item:nth-child(5) {
    animation-delay: 0.5s;
}

.category-menu .category-item:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header scroll animation */
.header-scrolled {
    padding: var(--spacing-2) 0;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

/* Social icons animation */
.social-icons a i {
    transition: transform 0.3s ease;
}

.social-icons a:hover i {
    transform: scale(1.2);
}

/* Inventory image floating animation */
.inventory-image {
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Typing effect animations */
.typed-text {
    border-right: 2px solid white;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(30, end), blink-caret 0.5s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: white
    }
}

/* Page transition */
.page-transition {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Button pulse animation */
.btn-primary {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(41, 64, 161, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(41, 64, 161, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(41, 64, 161, 0);
    } }