/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Split Screen Transitions */
.split-side {
    transition: width 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Text Selection Colors */
::selection {
    background: #00f2ff;
    color: #000;
}

.split-right ::selection {
    background: #ff4d00;
    color: #fff;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes float-down {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(100px);
        opacity: 0;
    }
}

@keyframes float-up {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

.animate-float-down {
    animation: float-down 4s infinite linear;
}

.animate-float-up {
    animation: float-up 4s infinite linear;
}

.delay-100 {
    animation-delay: 0.5s;
}

.delay-200 {
    animation-delay: 1s;
}

.delay-300 {
    animation-delay: 1.5s;
}

.delay-500 {
    animation-delay: 2.5s;
}

/* Product Category Accordion Animations */
.category-content {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.category-arrow {
    transition: transform 0.3s ease-in-out;
}

/* Refrigeration Cycle Animations */
@keyframes flow-animation {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 30;
    }
}

.animate-flow-hot,
.animate-flow-warm,
.animate-flow-cold,
.animate-flow-cool {
    animation: flow-animation 2s linear infinite;
}

.animate-spin-slow {
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}