/* Base Animations & Utilities */
.animate-spin-slow {
    animation: spin 30s linear infinite;
}

.animate-reverse-spin {
    animation: spin 45s linear infinite reverse;
}

.animate-pulse-slow {
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0% { opacity: 0.05; transform: scale(0.9); }
    100% { opacity: 0.15; transform: scale(1.1); }
}

.animate-blink {
    animation: blinker 1s cubic-bezier(0.5, 0, 1, 1) infinite alternate;
}

@keyframes blinker {
    from { opacity: 1; box-shadow: 0 0 12px rgba(255, 51, 51, 0.9); }
    to { opacity: 0.2; box-shadow: 0 0 0px rgba(255, 51, 51, 0); }
}

/* Custom easing for scroll animations */
.transition-all {
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fake VU Meter Animation */
.vu-level {
    width: 100%;
    transform-origin: bottom;
}

.vu-1 { animation: vu-bounce 0.8s infinite alternate ease-in-out; }
.vu-2 { animation: vu-bounce 0.6s infinite alternate-reverse ease-in-out; }
.vu-3 { animation: vu-bounce 1.1s infinite alternate ease-out; }
.vu-4 { animation: vu-bounce 0.9s infinite alternate-reverse ease-in; }

@keyframes vu-bounce {
    0% { height: 10%; }
    50% { height: 60%; }
    100% { height: 95%; }
}

/* Background Wood Texture */
.wood-panel {
    background-color: #2c1e16;
    background-image: repeating-linear-gradient(to right, transparent, transparent 50px, rgba(0,0,0,0.1) 50px, rgba(0,0,0,0.1) 51px);
}

/* Review Cloud */
.review-cloud {
    background-color: #FFFACD; /* Pale yellow */
    color: #0a0a0a; /* Vinyl color */
    border-radius: 12px;
    padding: 16px;
    width: 260px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7), inset 0 2px 5px rgba(255,255,255,0.5);
    position: absolute; /* Using absolute over fixed to scroll with page naturally */
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em; /* Denser font */
    line-height: 1.1;
    z-index: 100;
    pointer-events: none;
}

.review-cloud.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.review-cloud.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.review-stars {
    color: #FFA500; /* Bright orange */
    margin-bottom: 4px;
    font-size: 14px;
}

/* Rotary Dial Animation */
.animate-dial {
    animation: dial 5s ease-in-out infinite;
    transform-origin: center; /* Center of the dial */
}

@keyframes dial {
    0%, 15% { transform: rotate(0deg); }
    40% { transform: rotate(-140deg); }
    70%, 100% { transform: rotate(0deg); }
}

/* =========================================
   FAB (Floating Action Button) Vintage
   ========================================= */

.fab-item {
    position: absolute;
    top: 24px; /* Offset to center inside 96x96 (12px inset of 48x48) */
    left: 24px;
    opacity: 0;
    transform: scale(0.5); 
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#fab-container.active #fab-menu {
    pointer-events: auto;
}

#fab-container.active .fab-item {
    opacity: 1;
}

#fab-container.active .fab-item-1 { transform: translate(-105px, 0) scale(1); transition-delay: 0s; }
#fab-container.active .fab-item-2 { transform: translate(-95px, -60px) scale(1); transition-delay: 0.05s; }
#fab-container.active .fab-item-3 { transform: translate(-60px, -95px) scale(1); transition-delay: 0.1s; }
#fab-container.active .fab-item-4 { transform: translate(0, -105px) scale(1); transition-delay: 0.15s; }

#fab-container.active #fab-btn .animate-dial {
    /* Stop animating dial when open */
    animation: none;
    transform: rotate(0deg);
}

.fab-item:hover {
    filter: brightness(1.2) contrast(1.1);
}