html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #9D7CC1;
    border-radius: 4px;
}

.glass-nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

/* Hero Vertical Scroll Animations */
@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes scroll-down {
    0% {
        transform: translateY(-50%);
    }

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

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.animate-scroll-up {
    animation: scroll-up 30s linear infinite;
}

.animate-scroll-down {
    animation: scroll-down 30s linear infinite;
}

.animate-scroll-left {
    animation: scroll-left 30s linear infinite;
}

.animate-scroll-right {
    animation: scroll-right 30s linear infinite;
}

/* Desktop-specific overrides */
@media (min-width: 1024px) {
    .lg\:animate-scroll-down {
        animation: scroll-down 30s linear infinite;
    }

    .lg\:animate-scroll-up {
        animation: scroll-up 30s linear infinite;
    }
}

.hero-column:hover .animate-scroll-up,
.hero-column:hover .animate-scroll-down,
.hero-column:hover .animate-scroll-left,
.hero-column:hover .animate-scroll-right,
.hero-column:hover .lg\:animate-scroll-down,
.hero-column:hover .lg\:animate-scroll-up {
    animation-play-state: paused;
}

.hero-image {
    width: 160px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .hero-image {
        width: 100%;
    }
}

/* Carousel Styles with Navigation */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.carousel-track-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    width: max-content;
}

.carousel-slide {
    flex: 0 0 250px;
    height: 350px;
    transition: transform 0.3s ease;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
}

.carousel-slide:hover {
    transform: scale(1.02);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #5C4076;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s;
}

.dark .carousel-btn {
    background: rgba(38, 32, 53, 0.8);
    color: #9D7CC1;
    border-color: rgba(255, 255, 255, 0.1);
}

.carousel-btn:hover {
    background: #9D7CC1;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}


/* Card Animations */
.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card .icon-box {
    transition: all 0.3s ease;
}

.product-card:hover .icon-box {
    background-color: #9D7CC1;
    color: white;
    transform: rotate(-10deg) scale(1.1);
}

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

@keyframes float {

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

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