/* =============================================================
   ANIMATIONS — Tire background, spinner, FAB pulse
   ============================================================= */

/* --- Tire Background --- */
.tire-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.tire {
    position: absolute;
    border-radius: 50%;
    border: 8px solid #003087;
    opacity: 0.03;
    animation: float 20s infinite ease-in-out;
}

.tire::before,
.tire::after {
    content: '';
    position: absolute;
    background: #003087;
}

.tire::before {
    width: 40%;
    height: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tire::after {
    width: 8px;
    height: 40%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tire:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.tire:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.tire:nth-child(3) {
    width: 180px;
    height: 180px;
    bottom: 15%;
    left: 15%;
    animation-delay: 10s;
    animation-duration: 28s;
}

.tire:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 25%;
    animation-delay: 15s;
    animation-duration: 22s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25%       { transform: translateY(-30px) rotate(90deg); }
    50%       { transform: translateY(0px) rotate(180deg); }
    75%       { transform: translateY(30px) rotate(270deg); }
}

/* --- Loading Spinner --- */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0,48,135,0.1);
    border-top: 4px solid #ba0c2f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Floating Action Button Pulse --- */
@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(0,48,135,0.35); }
    50%       { box-shadow: 0 6px 24px rgba(0,48,135,0.35), 0 0 0 8px rgba(0,48,135,0.12); }
}
