/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

/* Glassmorphism Utilities (Used in Tone Lab Section) */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Range Slider Styling (Dark Theme Specific) */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: transform 0.1s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Animations */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

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

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accordion Animation */
.accordion-content {
    transition: height 0.3s ease-in-out;
}

.accordion-item.active .accordion-content {
    height: auto;
}

.accordion-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Custom Selection Color */
::selection {
    background-color: #ef4444;
    color: white;
}

/* Brand Ticker Fade In/Out */
.brand-item {
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

/* Ensure all brand items are at exact same position - no layout shifts */
#brand-ticker {
    position: relative;
    min-height: 3rem;
}

/* Bulletpoint Alignment - Second line aligns with first (desktop + mobile) */
ul:not(.flex):not([class*="flex"]) li, ol:not(.flex):not([class*="flex"]) li {
    list-style-position: outside;
    padding-left: 0.25rem;
    margin-left: 0;
    padding-right: 0;
}

/* Ul/Ol padding for bullet/number space - consistent indent */
ul:not(.flex) {
    padding-left: 1.5rem;
}
ol:not(.flex) {
    padding-left: 1.75rem;
}

ul:not(.flex) li::marker, ol:not(.flex) li::marker {
    margin-right: 0.25rem;
}

/* Fix for flex-based lists (Hero Section) - no text-indent */
ul.flex li, li.flex {
    text-indent: 0;
    padding-left: 0;
}

/* Tone Lab Loading Indicator */
#tone-lab-loading {
    transition: opacity 0.3s ease-in-out;
}

#tone-lab-loading.hidden {
    visibility: hidden;
    opacity: 0;
}

#tone-lab-loading:not(.hidden) {
    visibility: visible;
    opacity: 1;
}

#tone-lab-loading p {
    font-size: 1rem;
    color: #cbd5e1;
    font-weight: 500;
    animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}
